Jurnal Ilmu Komputer dan Sistem Informasi
Vol. 5 No. 2 (2025): Mei 2026

Analisis Sentimen Publik Terhadap Revisi UU TNI 2025 Menggunakan Algoritma Naïve Bayes

Rizky Barus (Universitas Islam Negeri Sumatera Utara)
Rakhmat Kurniawan (Universitas Islam Negeri Sumatera Utara)



Article Info

Publish Date
31 May 2026

Abstract

The development of public opinion regarding the revision of the 2025 Indonesian National Armed Forces Law (UU TNI) on social media has generated various responses that are difficult to analyze manually due to the large and unstructured amount of data. This condition requires a computational approach that is able to systematically identify public sentiment trends. This study aims to analyze public sentiment towards the revision of the 2025 TNI Law using the TF-IDF-based Naïve Bayes algorithm and evaluate the performance of the classification model used. The research data was obtained through crawling techniques from YouTube user comments related to the revision of the 2025 TNI Law. The data processing stages include cleaning, case folding, tokenizing, normalization, stopword removal, and stemming before TF-IDF weighting and the classification process using Naïve Bayes. The results of the study of 1826 data show that public sentiment is dominated by the neutral category at 79.8%, while positive sentiment is 13.1% and negative sentiment is 7.0%. The model evaluation yielded an accuracy of 77.11%, but the model showed a bias toward the majority class, resulting in suboptimal classification of positive and negative sentiments. Based on these results, the Naïve Bayes method is quite effective as an initial approach in sentiment analysis, but it still has limitations in handling imbalanced datasets and the complex characteristics of social media language. Therefore, the development of more adaptive methods is needed to improve the quality of sentiment classification results.

Copyrights © 2025






Journal Info

Abbrev

jirsi

Publisher

Subject

Computer Science & IT Library & Information Science

Description

Jurnal Ilmu Komputer dan Sistem Informasi (JIRSI) dikelola secara profesional oleh LKP UNITY Academy dalam membantu para akademisi, peneliti dan praktisi untuk menyebarkan hasil penelitiannya dalam panduan Kemendikbud Ristek Dikti. Jurnal Ilmu Komputer dan Sistem Informasi (JIRSI) Adalah sebuah ...