Analisis Sentimen Masyarakat Terhadap Program Makan Bergizi Gratis (MBG) di Jawa Tengah Menggunakan Model Bidirectional Encoder Representations From Transformers For Indonesian (Indobert)

Authors

  • Ibra Andnan Faiz Sempana Universitas Islam Sultan Agung
  • Imam Much Ibnu Subroto Universitas Islam Sultan Agung
  • Ghufron Ghufron Universitas Islam Sultan Agung

DOI:

https://doi.org/10.58192/populer.v5i3.5530

Keywords:

Free Nutritious Meal, IndoBERT, Natural Language Processing, Sentiment Analysis, Social Media X.

Abstract

This study analyzes public sentiment toward the Free Nutritious Meal (Makan Bergizi Gratis/MBG) program in Central Java using data from the social media platform X. Data were collected automatically with Python and Selenium WebDriver, yielding 2,000 tweets containing username, date, location, and comment text. The comments were labeled manually, producing a relatively balanced dataset of 1,017 negative and 983 positive comments. After preprocessing cleaning, case folding, slang normalization, and WordPiece tokenization the dataset was split 80:10:10 for training, validation, and testing. A pre-trained IndoBERT model (124,442,882 total parameters, of which 28,943,618 were trainable) was fine-tuned for binary sentiment classification over 8 epochs; training loss fell from 0.6925 to 0.4914 while validation accuracy rose from 71.00% to 76.50%. On the 200-sample held-out test set, the final model achieved 84.50% accuracy, 84.89% precision, 84.50% recall, and an 84.44% F1-score, with a confusion matrix of 92 true negatives, 77 true positives, 21 false negatives, and 10 false positives. As a practical output, the sentiment analysis results were integrated into an interactive Streamlit dashboard to support real-time monitoring of public opinion.

References

Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. NAACL HLT 2019 - 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies - Proceedings of the Conference, 1(Mlm), 4171–4186.

Fatkhurrohman, F., Nugroho, B. I., & Fadillah, N. (2025). Analisis Sentimen Program Makan Bergizi Gratis Pemerintah RI Melalui Twitter Menggunakan Metode SVM. RIGGS: Journal of Artificial Intelligence and Digital Business, 4(3), 3906–3917. https://doi.org/10.31004/riggs.v4i3.2533

Ghefira Ainur , Noor Latifah, F. N. (2024). Analisis Sentimen Publik Terhadap Program Makan Bergizi Gratis Menggunakan Metode Random Forest Pada Platform X. Jurnal Sistem Informasi Dan Teknologi (JSIT), 1(1), 50–64. https://ejournal.upnvj.ac.id/jsia/article/view/5907

Khairani, A. I., & Manurung, W. R. A. (2021). Metodologi Penelitian Kualitatif-Case Study (eBook). Trans Info Media.

Liu, B. (2020). Sentiment Analysis: Mining Opinions, Sentiments, and Emotions. Cambridge University Press. In Sentiment Analysis: mining sentiments, opinions, and emotions (Vol. 933, Issue November 2017). http://ieeexplore.ieee.org/document/6691379/

Munir, Rizal Abror, A. V. (2025). Analisis Sentimen Cuitan Di Media Sosial X Tentang Program Makan Bergizi Gratis Dengan Metode Nlp. Jurnal Informatika Dan Teknik Elektro Terapan, 13(3), 589–595. https://doi.org/10.23960/jitet.v13i3.6912

Nataprawira, H. I., Nurhaida, I., Jaya, U. P., Indonesia, T. S., Jaya, U. P., & Selatan, T. (2026). IndoBERT-Based Sentiment Analysis of Indonesian Social Media Discourse on AI- Generated Images. 10(3), 1464–1475.

Purmadani, S. &. (2025). MAKAN BERGIZI GRATIS DAN DAMPAK BAGI PERTUMBUHAN EKONOMI. 1, 496–505.

Putu Alya Noviyanti, N., Gusti Ngurah Anom Cahyadi Putra, I., Studi Informatika, P., Matematika dan Ilmu Pengetahuan Alam, F., Raya Kampus UNUD, J., Jimbaran, B., & Selatan, K. (2025). Penerapan Multinomial Naïve Bayes dan Chi-Square pada Analisis Sentimen Makan Bergizi Gratis. Jnatia, 3(4), 785–794.

RI, S. K. (2024). bahwa untuk. 211799.

Sutabri, T., & Herdiansyah, M. I. (2023). Sistem Pakar dan Analisis Sentimen Digital. Graha Ilmu. Jurnal Teknologi Informatika Dan Komputer, 9(2), 834–848. https://doi.org/10.37012/jtik.v9i2.1776

Triningsih, E. (2025). Machine Learning Pada Sosial Media X.

Wilie, B., Vincentio, K., Winata, G. I., Cahyawijaya, S., Li, X., Lim, Z. Y., Soleman, S., Mahendra, R., Fung, P., Bahar, S., & Purwarianti, A. (2020). IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding. 843–857. https://doi.org/10.18653/v1/2020.aacl-main.85

Downloads

Published

2026-09-25

How to Cite

Ibra Andnan Faiz Sempana, Imam Much Ibnu Subroto, & Ghufron Ghufron. (2026). Analisis Sentimen Masyarakat Terhadap Program Makan Bergizi Gratis (MBG) di Jawa Tengah Menggunakan Model Bidirectional Encoder Representations From Transformers For Indonesian (Indobert). Populer: Jurnal Penelitian Mahasiswa, 5(3), 195–205. https://doi.org/10.58192/populer.v5i3.5530