Sentiment Analysis of Food Poisoning Incidents in Indonesia's Free Nutritious Meal Program Using TF-IDF and SVM

Authors

DOI:

https://doi.org/10.35870/ijsecs.v6i3.7809

Keywords:

Sentiment Analysis, Free Nutritious Meal Program, Food Poisoning, Support Vector Machine, X/Twitter

Abstract

Food poisoning incidents associated with the Free Nutritious Meal Program (MBG) have triggered significant public reactions on the social media platform X/Twitter. This study identified and classified public sentiment regarding food poisoning occurrences in the MBG program by applying a Support Vector Machine (SVM) classification framework. Data were crawled from X/Twitter via Tweet Harvest using keywords related to MBG food poisoning incidents between January 2025 and June 2026. A total of 6,929 posts were collected, and 6,902 Indonesian-language records were retained after duplicate removal. The analytical workflow comprised data selection, automated sentiment labeling with IndoBERTweet, text preprocessing, Term Frequency-Inverse Document Frequency (TF-IDF) feature weighting, and classification using the SVM algorithm. Model performance was evaluated through a confusion matrix using accuracy, precision, recall, and F1-score metrics. Based on an evaluation of 1,989 testing records, the SVM model achieved an overall accuracy of 76.42%, exhibiting its strongest performance in the negative sentiment class. However, positive sentiment recorded a low recall of 26.03%, reflecting the difficulty of detecting the minority class. Sentiment distribution analysis revealed that negative sentiment dominated public discourse at 63.78%, followed by neutral sentiment at 29.05% and positive sentiment at 7.17%. These findings indicate that public perceptions of food poisoning incidents in the MBG program were overwhelmingly negative, underscoring critical concerns regarding food safety and program oversight. Beyond contributing to machine learning-based social media analytics, this study provides actionable insights for policymakers to evaluate service delivery and reinforce food safety standards in the MBG program.

Downloads

Download data is not yet available.

Author Biographies

  • Muhammad Lucky Hermanto, Sriwijaya University

    Sriwijaya University, Palembang City, South Sumatra Province, Indonesia.

  • Ari Wedhasmara, Sriwijaya University

    Sriwijaya University, Palembang City, South Sumatra Province, Indonesia.

  • Ken Ditha Tania, Sriwijaya University

    Sriwijaya University, Palembang City, South Sumatra Province, Indonesia.

  • Allsela Meiriza, Sriwijaya University

    Sriwijaya University, Palembang City, South Sumatra Province, Indonesia

References

Airlangga, G. (2024). Comparative analysis of machine learning models for real-time disaster tweet classification: Enhancing emergency response with social media analytics. Brilliance: Research of Artificial Intelligence, 4(1), 25–31. https://doi.org/10.47709/brilliance.v4i1.3669

Ardiyanto, M. (2024). Aardiiiiy/indobertweet-base-Indonesian-sentiment-analysis [Machine learning model]. Hugging Face. https://doi.org/10.57967/hf/5111

Azmie, F. U., Irawan, Y., & Setiawan, R. R. (2026). Sentiment analysis of Free Nutritious Meal programs using Naïve Bayes on platforms X and TikTok. Jurnal Teknologi Informasi dan Pendidikan, 19(1), 1208–1227. https://doi.org/10.24036/jtip.v19i1.1112

Badan Gizi Nasional. (2025). BGN akan memulai program MBG secara bertahap. https://www.bgn.go.id/news/artikel/bgn-akan-memulai-program-mbg-secara-bertahap

CNN Indonesia. (2025, September 22). Ribuan anak sekolah keracunan, KPAI usul MBG dihentikan sementara. https://www.cnnindonesia.com/nasional/20250922155429-32-1276424/ribuan-anak-sekolah-keracunan-kpai-usul-mbg-dihentikan-sementara

Gesuri. (2026). Reses, Sudin terima keluhan warga soal kualitas program makan bergizi gratis. https://www.gesuri.id/kerakyatan/reses-sudin-terima-keluhan-warga-soal-kualitas-program-makan-bergizi-gratis-b2pNlZbdmd

Gozali, M. R. F., Tibyani, & Brata, D. W. (2026). Analisis sentimen pengguna Twitter/X terhadap fenomena #KaburAjaDulu menggunakan metode Support Vector Machine dan IndoBERT embedding. Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 10(2), 125–134. https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/16005

Haliza, D., & Ikhsan, M. (2025). Sentiment analysis on public perception of the Nusantara Capital on social media X using Support Vector Machine (SVM) and K-Nearest Neighbor (K-NN) methods. Journal of Applied Informatics and Computing, 9(3), 716–723. https://doi.org/10.30871/jaic.v9i3.9459

Kementerian Hukum dan Hak Asasi Manusia Republik Indonesia. (2025). Peraturan Presiden Nomor 115 Tahun 2025 tentang Tata Kelola Penyelenggaraan Program Makan Bergizi Gratis. https://peraturan.go.id/id/perpres-no-115-tahun-2025

Koto, F., Lau, J. H., & Baldwin, T. (2021). INDOBERTWEET: A pretrained language model for Indonesian Twitter with effective domain-specific vocabulary initialization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 10660–10668). Association for Computational Linguistics. https://doi.org/10.18653/v1/2021.emnlp-main.833

Munthe, M. H. R. P., & Lubis, A. H. (2025). Comparison of Support Vector Machine (SVM) and Naïve Bayes algorithm performance in analyzing Garuda bird design sentiment in IKN. JITE (Journal of Informatics and Telecommunication Engineering), 8(3 Special Issue), 1–8. https://doi.org/10.31289/jite.v8i3Spc.14830

Ombudsman Republik Indonesia. (2025). Ombudsman RI temukan empat potensi maladministrasi dalam program makan bergizi gratis. https://ombudsman.go.id/news/r/ombudsman-ri-temukan-empat-potensi-maladministrasi-dalam-program-makan-bergizi-gratis

Pemerintah Kabupaten Jember. (2026). Tanggapi keluhan kualitas makan bergizi gratis, Pemkab Jember lakukan sidak dan peninjauan di beberapa SPPG. https://www.jemberkab.go.id/tanggapi-keluhan-kualitas-makan-bergizi-gratis-pemkab-jember-lakukan-sidak-dan-peninjauan-di-beberapa-sppg/

Pemerintah Kota Cimahi. (2026). Sejumlah siswa dan guru di Kota Cimahi diduga alami keracunan MBG. https://cimahikota.go.id/berita/detail/83718-sejumlah-siswa-dan-guru-di-kota-cimahi-diduga-alami-keracunan-mbg

Ramadhan, N. G., & Khoirunnisa, A. (2025). An integrated Random Forest for analyzing public sentiment on the "Makan Bergizi Gratis" program. Journal of Information Systems and Informatics, 7(3), 2314–2328. https://doi.org/10.51519/journalisi.v6i2.759

Riyoldi, R., Muhtar, E. A., & Karlina, N. (2025). Public perception analysis of digital population identity policy in Pontianak City using Technology Acceptance Model (TAM) approach. International Journal of Social Science and Education, 3(1), 112–124. https://doi.org/10.59890/iijse.v3i1.6211

Saputra, A. N. A., Saputro, R. E., & Saputra, D. I. S. (2025). Enhancing sentiment analysis accuracy using SVM and slang word normalization on YouTube comments. Sinkron, 9(2), 687–699. https://doi.org/10.33395/sinkron.v9i2.14613

Sekretariat Kabinet Republik Indonesia. (2024). Inilah Perpres 83 Tahun 2024 tentang Badan Gizi Nasional. https://setkab.go.id/inilah-perpres-83-tahun-2024-tentang-badan-gizi-nasional/

Silaban, N., & Gumay, M. G. (2025). Analisis sentimen pengguna aplikasi pinjaman online melalui media sosial X (Twitter) menggunakan metode Support Vector Machine. Jurnal Minfo Polgan, 14(2), 2116–2130. https://doi.org/10.33395/jmp.v14i2.15300

Triningsih, E., Afdal, M., Permana, I., & Evrilyan Rozanda, N. (2025). Analisis sentimen terhadap program Makan Bergizi Gratis menggunakan algoritma machine learning pada sosial media X. Building of Informatics, Technology and Science (BITS), 6(4), 2240–2250. https://doi.org/10.47065/bits.v6i4.6534

Universitas Gadjah Mada. (2025). Keracunan MBG kembali terulang, guru besar UGM soroti lemahnya regulasi dan pengawasan. https://ugm.ac.id/id/berita/keracunan-mbg-kembali-terulang-guru-besar-ugm-soroti-lemahnya-regulasi-dan-pengawasan/

Wibowo, A. P., & Gunawan, D. (2026). Analisis sentimen publik terhadap Makan Bergizi Gratis menggunakan Bi-LSTM dan IndoBERT. Jurnal Sistem Komputer dan Informatika (JSON), 7(3), 842–852. https://doi.org/10.30865/json.v7i3.9458

Wiranti, D. A., & Ariawantara, P. A. F. (2024). Assessing the role of Surabaya City Government's responsiveness toward public acceptance of COVID-19 mitigation policies. Jurnal Borneo Administrator, 20(1), 85–100. https://doi.org/10.24258/jba.v20i1.1359

Xia, L., Chen, B., Hunt, K., Zhuang, J., & Song, C. (2022). Food safety awareness and opinions in China: A social network analysis approach. Foods, 11(18), 2909. https://doi.org/10.3390/foods11182909

Xu, B. (2023). Monitoring and guidance of public opinions on food safety based on information retrieval and data mining: An empirical study of microblog public opinions on food safety in large farmers' markets. Food Science, 44(7), 404–412. https://doi.org/10.7506/spkx1002-6630-20221125-297

Downloads

Published

2026-09-19

How to Cite

Hermanto, M. L., Wedhasmara, A., Tania, K. D., & Meiriza, A. (2026). Sentiment Analysis of Food Poisoning Incidents in Indonesia’s Free Nutritious Meal Program Using TF-IDF and SVM. International Journal Software Engineering and Computer Science (IJSECS), 6(3), 1046-1057. https://doi.org/10.35870/ijsecs.v6i3.7809

Most read articles by the same author(s)