Najib, Lutfi
Unknown Affiliation

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : Building of Informatics, Technology and Science

Analisis Sentimen Persepsi Publik Terhadap Program MBG Pada Komentar YouTube Menggunakan Naïve Bayes dan Resampling Najib, Lutfi; Mahfudh, Adzhal Arwani; Bakhri, Syaiful
Building of Informatics, Technology and Science (BITS) Vol 7 No 4 (2026): March 2026
Publisher : Forum Kerjasama Pendidikan Tinggi

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.47065/bits.v7i4.9400

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.