Journal of Data Insights
Vol 3 No 2 (2025): Journal of Data Insights

Sentiment Analysis of YouTube User Comments on Government Policies Using the Naïve Bayes Method: Analisis Sentimen Komentar Pengguna Youtube Terhadap Kebijakan Pemerintah Menggunakan Metode Naïve Bayes

Ismardani, Trisnawadi (Unknown)
Fatah, Zaihol (Unknown)



Article Info

Publish Date
31 Dec 2025

Abstract

This research endeavors to analyze public sentiment expressed in YouTube user comments regarding the government's policy pertaining to the confiscation of undeveloped land after a two-year period of non-utilization. The methodology employed leverages the Naïve Bayes algorithm for classification, implemented within the Google Colaboratory environment. Data were systematically collected from specific YouTube videos discussing the aforementioned land confiscation policy. The research workflow encompassed comprehensive stages: data acquisition, rigorous text preprocessing, feature weighting utilizing the Term Frequency-Inverse Document Frequency (TF-IDF) technique, and final classification using the Naïve Bayes algorithm. Evaluation results demonstrate that the proposed model achieved a high accuracy level of 90%, with the highest F1-score recorded within the neutral sentiment class. However, an imbalance in the dataset's class distribution led to comparatively lower precision and recall values for both the positive and negative classes. Overall, this study confirms the high efficacy of the Naïve Bayes algorithm in analyzing Indonesian-language text data from social media platforms, specifically YouTube comments, and provides a crucial foundation for the future development of more balanced sentiment models.

Copyrights © 2025






Journal Info

Abbrev

jodi

Publisher

Subject

Computer Science & IT Mathematics

Description

The Journal of Data Insights is an open access publication for peer-reviewed scholarly journals. The Journal of Data Insights focuses on the processing, analysis and interpretation of data for data-driven decisions and solutions in industry, hospitals, government and universities. All articles ...