Building of Informatics, Technology and Science
Vol 7 No 4 (2026): March 2026

Analisis Sentimen Persepsi Publik Terhadap Program MBG Pada Komentar YouTube Menggunakan Naïve Bayes dan Resampling

Najib, Lutfi (Unknown)
Mahfudh, Adzhal Arwani (Unknown)
Bakhri, Syaiful (Unknown)



Article Info

Publish Date
06 Mar 2026

Abstract

The Free Nutritious Meal Program (MBG), launched by the Indonesian government in 2025, has generated diverse public responses on social media, particularly on YouTube as an open digital discussion space. This study aims to analyze public perception of the MBG program through sentiment classification of YouTube comments using the Multinomial Naïve Bayes algorithm combined with Term Frequency–Inverse Document Frequency (TF-IDF) weighting. The dataset consists of 1,082 comments categorized into three sentiment classes: negative, neutral, and positive. The data distribution reveals significant class imbalance, with negative sentiment dominating at 70.61%. The baseline model achieved an accuracy of 70.67% with a macro F1-score of 27.60%, indicating bias toward the majority class. To address this imbalance, Random Oversampling (ROS) and Synthetic Minority Over-sampling Technique (SMOTE) were applied. Although overall accuracy decreased to approximately 51% after resampling, the macro F1-score improved to 36.24% (SMOTE) and 37.09% (ROS), indicating enhanced performance in detecting minority classes. In the context of public policy evaluation, improved sensitivity to minority sentiment is considered more representative than high but biased accuracy. These findings highlight the importance of handling class imbalance in social media–based sentiment analysis for public policy monitoring.

Copyrights © 2026






Journal Info

Abbrev

bits

Publisher

Subject

Computer Science & IT

Description

Building of Informatics, Technology and Science (BITS) is an open access media in publishing scientific articles that contain the results of research in information technology and computers. Paper that enters this journal will be checked for plagiarism and peer-rewiew first to maintain its quality. ...