Public Sentiment Analysis of Indonesia’s Free Nutritious Meals (MBG) Program Using Lexicon-Based Labeling, SMOTE, and Machine Learning

Kharisma Wiati Gusti, Anni Alvionita Simanjuntak

Abstract


The Free Nutritious Meals (MBG) Program is a strategic policy of the Indonesian government aimed at improving national nutrition and has elicited diverse public reactions on social media. This study analyses public sentiment toward the MBG program using 11,003 cleaned public comments. Because the dataset lacked sentiment labels, a lexicon-based labelling approach using the Indonesian InSet Lexicon was applied to automatically classify comments as positive, negative, or neutral. The labelled data were then divided into 80% training data and 20% testing data using stratified sampling, and TF-IDF was used for feature extraction. Because the resulting class distribution was imbalanced (61.9% negative, 20.3% positive, and 17.8% neutral), the Synthetic Minority Over-sampling Technique (SMOTE) was applied only to the training data. Four classification algorithms (Naive Bayes, Support Vector Machine, Logistic Regression, and Random Forest) were trained and compared with and without SMOTE. The results show that SMOTE improved the macro-average F1-score across all models, particularly Naive Bayes (from 0.42 to 0.67). At the same time, SVM remained the best-performing model, achieving 84.83% accuracy and a macro F1-score of 0.81 after SMOTE, with a slight accuracy trade-off for substantially better recall in the neutral and positive minority classes. These findings indicate that combining lexicon-based labelling with SMOTE and classical machine learning provides a more balanced and reliable tool for monitoring public sentiment toward government policy programs such as MBG.
Keywords: sentiment analysis; Free Nutritious Meals; lexicon-based labeling; SMOTE; machine learning

Full Text:

PDF

References


S. Deny, “Program Makan Bergizi Gratis Resmi Dimulai Hari Ini 6 Januari 2025,” Liputan6.com. Accessed: Aug. 07, 2026. [Online]. Available: https://www.liputan6.com/bisnis/read/5864 557/program-makan-bergizi-gratis-resmi-dimulai-hari-ini-6-januari-2025

M. I. Wibisono and S. Santosa, “Implementasi Program Makan Bergizi Gratis dalam Meningkatkan Ketahanan Gizi Pelajar di Indonesia,” RIGGS: Journal of Artificial Intelligence and Digital Business, vol. 4, no. 4, pp. 11973–11981, Jan. 2026, doi: 10.31004/riggs.v4i4.5365.

H. Fidelya Ardhana and U. Negeri Jakarta Rini Riris Setyowati, “Analisis Implementasi Dan Dampak Pada Makanan Bergizi Gratis (MBG): Studi Pendekatan Transdisipliner,” Jurnal Jendela Pendidikan, vol. 6, 2026.

M. E. Zainuri, “ANALISIS SENTIMEN PROGRAM MAKAN BERGIZI GRATIS (MBG) PADA PLATFORM X DENGAN MENGGUNAKAN METODE NAIVE,” Universitas Dinamika, Surabaya, 2026. Accessed: Aug. 07, 2026. [Online]. Available: https://repository.dinamika.ac.id/id/eprint/8387/1/21410100027-2026-UNIVERSITASDINAMIKA.pdf

M. A. Firmansyah, A. Saeppani, I. Fadil, U. Sebelas, and A. Sumedang, “Analisis Sentimen Publik Program Makan Bergizi Gratis Menggunakan Support Vector Machine,” Jurnal Pustaka Nusantara Multidisplin, vol. 3, no. 4, 2025.

M. S. Arum and A. Hendrawan, “Analisis Sentimen Komentar YouTube Terhadap Program Makan Bergizi Gratis (MBG) Menggunakan Long Short-Term Memory(LSTM),” KETIK:JurnalInformatika, pp. 121–129, 2026, Accessed: Aug. 07, 2026. [Online]. Available: https://jurnal.faatuatua.com/index.php/KETIK/article/view/627/237

B. Andianto and H. Februariyanti, “Analisis Opini Publik Terhadap Program Makan Bergizi Gratis (MBG) Pada Media Sosial Youtube Menggunakan Algoritma Support Vector Machine,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 13, no. 2, pp. 111–124, 2026, [Online]. Available: http://jurnal.mdp.ac.id

S. J. Rain et al., “ANALISIS SENTIMEN MASYARAKAT TERHADAP PROGRAM MAKAN BERGIZI GRATIS PADA MEDIA SOSIAL X DENGAN NAÏVE BAYES,” 2026.

H. Hidayah, “Indonesia MBG Sentiment Analysis ,” Kaggle. Accessed: Aug. 07, 2026. [Online]. Available: https://www.kaggle.com/datasets/neevvv/indonesia-mbg-sentiment-analysis](https://www.kaggle.com/datasets/neevvv/indonesia-mbg-sentiment-analysis

A. Okta, K. Adi, A. Sanjaya, A. B. Setiawan, and P. Korespondens, “Penerapan Inset Lexicon untuk Analisis Sentimen Penonton Video JKT48 di YouTube 1*,” 2025.

D. Pratiwi, N. Khoerani, S. Sari, and P. Korespondensi, “ANALISIS SENTIMEN TERHADAP KEBIJAKAN SUBSIDIPEMBELIAN KENDARAAN BERTENAGA LISTRIK DI INDONESIA MENGGUNAKAN PENDEKATAN INSET LEXICON DAN METODE SUPPORT VECTOR MACHINE,” Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 12, no. 6, pp. 1303–1314, 2025.

K. W. Gusti, “KLASIFIKASI BENCANA ALAM PADA TWITTER MENGGUNAKAN NAÏVE BAYES, SUPPORT VECTOR MACHINE DAN LOGISTIC REGRESSION,” Technologia : Jurnal Ilmiah, vol. 14, no. 4, p. 349, Oct. 2023, doi: 10.31602/tji.v14i4.11614.

F. Febriansyah Putra, S. Fakhri Wibowo, and J. R. Zebua, “Prediksi Kelulusan Mahasiswa Menggunakan Random Forest Dan Smote Untuk Mengatasi Imbalanced Data,” Jurnal Ilmiah Sains Teknologi dan Informasi, vol. 4, pp. 156–165, 2026, doi: 10.59024/jiti.v4i3.2225.

R. H. Tanjung, F. Damayanti, and A. Zaki, “Optimasi Random Forest Melalui Feature Engineering dan SMOTE untuk Klasifikasi Kesehatan Mental,” Bulletin of Information Technology (BIT), vol. 7, pp. 204–212, 2026.




DOI: https://doi.org/10.29040/ijcis.v7i3.302

Article Metrics

Abstract view : 14 times
PDF - 3 times

Refbacks

  • There are currently no refbacks.


toto slot

situs toto

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License
slot88
slot88
slot88
slot777
slot gacor
slot dana
slot gacor 777
slot qris
slot qris
slot thailand
slot gacor
slot88