Analisis Sentimen Publik Terhadap Kontroversi Ruu Tni Menggunakan Metode K-Nearest Neighbors

Putri, Jeni Avrilia (2026) Analisis Sentimen Publik Terhadap Kontroversi Ruu Tni Menggunakan Metode K-Nearest Neighbors. Other thesis, Politeknik Negeri Bengkalis.

[thumbnail of Abstract] Text (Abstract)
1.TA-6304221439 - Abstract.pdf - Submitted Version
Available under License Creative Commons Attribution Share Alike.

Download (339kB)
[thumbnail of Bab 1 Pendahuluan] Text (Bab 1 Pendahuluan)
2.TA-6304221439 - Bab 1 Pendahuluan.pdf - Submitted Version
Available under License Creative Commons Attribution Share Alike.

Download (292kB)
[thumbnail of Daftar Pustaka] Text (Daftar Pustaka)
3.TA-6304221439 - Daftar Pustaka.pdf - Submitted Version
Available under License Creative Commons Attribution Non-commercial Share Alike.

Download (274kB)
[thumbnail of Full Text] Text (Full Text)
4.TA-6304221439 - Full Text.pdf - Submitted Version
Restricted to Registered users only
Available under License Creative Commons Attribution Share Alike.

Download (3MB) | Request a copy

Abstract

The controversy surrounding the Indonesian National Armed Forces Bill (RUU TNI) has generated significant public discourse across social media platforms such as X, TikTok, and YouTube. The unstructured nature of user comments, the frequent use of informal language, and the diversity of political terminology present substantial challenges for conducting systematic sentiment analysis. This study aims to classify public sentiment toward the RUU TNI issue using the K-Nearest Neighbors (KNN) method and to evaluate the model’s performance quantitatively. The dataset consists of 12,000 comments collected through a web scraping technique. The data were processed through several preprocessing stages, including cleaning, case folding, normalization, tokenization, stopword removal, stemming, and the integration of a political lexicon to enhance contextual representation of political terms. Subsequently, the text data were transformed using Term Frequency–Inverse Document Frequency (TF-IDF) weighting before being classified. Model evaluation was conducted using a confusion matrix and classification report. The results indicate that the KNN model achieved an accuracy of 90%, a precision of 83.33%, a recall of 100%, and an F1-score of 90.9%. These findings demonstrate that the model provides a balanced and reliable performance in classifying sentiment. Therefore, the KNN method, supported by political lexicon-based preprocessing, is proven to be effective and relevant for sentiment analysis in complex socio-political issues.

Item Type: Thesis (Other)
Uncontrolled Keywords: K-Nearest Neighbors, Political Dictionary, RUU TNI, Sentiment Analysis, TF-IDF
Subjects: 000 – UMUM, ILMU KOMPUTER, DAN INFORMASI > 005 – Pemrograman, Perangkat Lunak > 005.3 Perangkat Lunak (Software)
000 – UMUM, ILMU KOMPUTER, DAN INFORMASI > 005 – Pemrograman, Perangkat Lunak > 005.9 Kecerdasan Buatan (AI), Komputasi Kognitif
Divisions: Jurusan Teknik Informatika > Sarjana Terapan (D-IV) Rekayasa Perangkat Lunak > SKRIPSI
Depositing User: RPL Kelas A 2022
Date Deposited: 15 Jul 2026 07:44
Last Modified: 15 Jul 2026 07:44
URI: https://eprints.polbeng.ac.id/id/eprint/5193

Actions (login required)

View Item
View Item