Sentiment Analysis on the Allocation of the MBG Program Budget Using Support Vector Machine
Abstract
Sentiment analysis is one of the applications of artificial intelligence and machine learning used to automatically identify and classify public opinions, particularly those expressed on social media. This approach is important for understanding public perceptions of a policy, as it provides a systematic, fast, and data-driven overview. With the increasing use of social media, sentiment analysis can be utilized as an evaluation tool to support transparency and more objective decision-making. One issue that has attracted public attention is the MBG (Free Nutritious Food) Program, a government initiative aimed at improving community nutrition. The budget allocation for this program has generated various responses from the public, including both support and criticism regarding its implementation and policy priorities. Therefore, an analysis that can comprehensively capture these diverse perspectives is necessary. This study aims to analyze public sentiment toward the MBG Program budget using data from the social media platform X (Twitter), which is known for its ability to represent real-time and dynamic public opinion. The dataset collected through crawling consists of 2,487 entries, and after preprocessing, 1,686 valid data points were obtained for analysis. Feature extraction was performed using the TF-IDF method, while sentiment classification was conducted using the Support Vector Machine (SVM) algorithm. Model evaluation was carried out using 5-Fold Cross Validation and Confusion Matrix. The results show that the developed model achieved an accuracy of 81.17%, indicating good performance in sentiment classification. For the negative class, the precision reached 85.48% and recall 98.76%. For the neutral class, the precision was 57.58%, recall 44.19%, and F1-score 49.98%. For the positive class, the precision was 75.00%, recall 15.79%, and F1-score 26.09%. These findings indicate that a machine learning-based approach can contribute to understanding public opinion and support more effective, data-driven government policy evaluation. This study contributes by demonstrating the effectiveness of the SVM algorithm in classifying public sentiment on policy-related issues, as well as by applying k-fold cross-validation and confusion matrix to provide a more comprehensive and reliable evaluation. The findings are expected to support data-driven policy evaluation and enhance understanding of public opinion toward government programs.
Downloads
References
R. D. Pebrianti, “Analisis Sentimen Masyarakat Platform X Terhadap Korupsi Pt. Pertamina (Persero) Menggunakan Metode Svm,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 2, pp. 1061–1068, 2025, doi: 10.23960/jitet.v13i2.6399.
U. Kurniasih and A. T. Suseno, “Analisis Sentimen Masyarakat Terhadap Isu Migrasi Rohingya Ke Indonesia,” J. Teknol. Dan Sist. Inf. Bisnis, vol. 7, no. 1, pp. 199–207, 2025, doi: 10.47233/jteksis.v7i1.1815.
M. Qadri, “Pengaruh Media Sosial Dalam Membangun Opini Publik,” Qaumiyyah J. Huk. Tata Negara, vol. 1, no. 1, pp. 49–63, 2020, doi: 10.24239/qaumiyyah.v1i1.4.
Masythoh, N. Wicaksono, and Wahyu imellya pratiwi, “Peran Media Sosial dalam Pembentukan Persepsi Publik terhadap Isu Lingkungan,” Pros. Semin. Nas. Sos., vol. 1, no. 1 SE-Articles, pp. 23–27, 2024, doi: 10.47134/interaction.v2i2.4250.
I. N. Awwalin, L. Syaipudin, and A. Luthfi, “Analisis Respon Publik Melalui Sosial Media Facebook terhadap Wacana Kenaikan Pajak Pasca Pilpres 2024 pada Media Pemberitaan,” AKSAYA J. Rumpun Akunt. Publik, vol. 1, no. 1, pp. 01–08, 2025, doi: 10.61166/aksaya.v1i2.7.
Q. A. Chairunnisa, Y. Herdiyeni, M. K. Dewi, and J. Adisantoso, “Analisis Sentimen Pengguna Twitter Terhadap Program Vaksinasi Covid-19 di Indonesia Menggunakan Algoritme Support Vector Machine Sentiment Analysis of Twitter Users on COVID-19 Vaccination Program in Indonesia using Support Vector Machine Algorithm,” Ilmu Komput. Agri-Informasi, vol. 9, no. Nuraini 2020, pp. 79–89, 2022, doi: 10.29244/jika.9.1.79‑89.
C. S. Octiva, T. I. Fajri, E. B. Sulistiarini, S. Suharjo, and U. W. Nuryanto, “Penggunaan Teknik Data Mining untuk Analisis Perilaku Pengguna pada Media Sosial,” J. Minfo Polgan, vol. 13, no. 1, pp. 1074–1078, 2024, doi: 10.33395/jmp.v13i1.13936.
C. Darmayanti, “Analisis Penyusunan dan Pelaksanaan Anggaran Pada BAPPEDA Aceh Barat Daya,” J. Ilm. Manaj. Kesatuan, vol. 12, no. 1, pp. 211–218, 2024, doi: 10.37641/jimkes.v12i1.2409.
K. Andreas et al., “Tinjauan Kritis Tentang Program Makan Bergizi Gratis Terhadap Produktivitas Belajar Siswa,” Katalis Pendidik. J. Ilmu Pendidik. dan Mat., vol. 2, no. 2, pp. 21–31, 2025, doi: https://doi.org/10.62383/katalis.v2i2.1428.
S. B. Hartono, W. Zaenuri, F. M. Savitri, D. N. Farida, and Y. Ristianawati, “Alokasi Anggaran, Intellectual Capital, Kinerja Keuangan, Dan Indikator Kinerja Utama Badan Layanan Umum Setyo,” JIAFE (Jurnal Ilm. Akunt. Fak. Ekon., vol. 7, no. 1, pp. 49–62, 2021, doi: https://doi.org/10.34204/jiafe.v7i1.2915.
I. G. Ngurah and O. Seventilofa, “The Impact Of Mbg ( Makanan Bergizi Gratis ) Program Towards Student Intelligence In Indonesia [ Dampak Program MBG ( Makanan Bergizi Gratis ) Terhadap Kecerdasan Siswa di Indonesia,” J. Pendidikan, Sos. dan Hum., vol. 1, no. 2, pp. 85–91, 2025, doi: https://doi.org/10.59896/pesolah.v1i2.576.
T. D. Larassetya, A. Suryasuciramdhan, N. U. Salsa, and I. S. Aeni, “Analisis Opini Publik Terhadap Pemilu 2024 Pada Media Sosial X,” TUTURAN J. Ilmu Komunikasi, Sos. dan Hum., vol. 2, no. 2, pp. 292–301, 2024, doi: 10.47861/tuturan.v2i2.994.
R. F. Syamsu, R. A. Putry, and N. M. Widyadhana, “Tinjauan Nilai Gizi Dari Program Makan Bergizi Gratis ( Mbg ) Presiden RI,” J. Kesehat. TAMBUSAI, vol. 6, no. 4, pp. 14843–14853, 2025, doi: https://doi.org/10.31004/jkt.v6i4.51554.
J. Ipmawati, S. Saifulloh, and K. Kusnawi, “Analisis Sentimen Tempat Wisata Berdasarkan Ulasan pada Google Maps Menggunakan Algoritma Support Vector Machine,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 4, no. 1, pp. 247–256, 2024, doi: 10.57152/malcom.v4i1.1066.
F. N. Hasan and A. Y. Kuntoro, “Analisis Kepuasan Pengguna Aplikasi Gopay Menggunakan Algoritma Naive Bayes Dan K-Fold Cross Validation,” J. Ilm. Inform., vol. 13, no. 02, pp. 128–123, 2025, doi: https://doi.org/10.33884/jif.v13i02.10276.
D. Normawati and S. A. Prayogi, “Implementasi Naïve Bayes Classifier Dan Confusion Matrix Pada Analisis Sentimen Berbasis Teks Pada Twitter,” J. Sains Komput. Inform., vol. 5, no. November 2019, pp. 697–711, 2021, doi: 10.30645/j‑sakti.v5i2.369.
R. R. Salam, M. F. Jamil, Y. Ibrahim, R. Rahmaddeni, S. Soni, and H. Herianto, “Analisis Sentimen Terhadap Bantuan Langsung Tunai (BLT) Bahan Bakar Minyak (BBM) Menggunakan Support Vector Machine,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 3, no. 1, pp. 27–35, 2023, doi: 10.57152/malcom.v3i1.590.
D. A. Kristiyanti, D. A. Putri, E. Indrayuni, A. Nurhadi, and A. H. Umam, “Twitter sentiment analysis using support vector machine and deep learning model in e-learning implementation during the Covid-19 outbreak,” AIP Conf. Proc., vol. 2714, no. May, pp. 1–6, 2023, doi: 10.1063/5.0128685.
A. Sitanggang, Y. Umaidah, Y. Umaidah, R. I. Adam, and R. I. Adam, “Analisis Sentimen Masyarakat Terhadap Program Makan Siang Gratis Pada Media Sosial X Menggunakan Algoritma Naïve Bayes,” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 3, pp. 2755–2762, 2024, doi: 10.23960/jitet.v12i3.4902.
P. I. Nainggolan, D. S. Prasvita, “Klasifikasi Informasi Kesehatan Pada Data Media Sosial Menggunakan Support Vector Machine Dan K-Fold Cross Validation,” Malikussaleh J. Mech. Sci. Technol., vol. 5, no. 2, pp. 34–38, 2021, doi: https://doi.org/10.29103/mjmst.v5i2.6317.
S. D. Septiani, “Pemodelan Dan Simulasi Antrian Layanan Menggunakan Teori Antrian Untuk Optimasi Sistem Pendukung Keputusan : Kajian Literatur Sistematis,” J. Edutama Multidiciplinary Indones., vol. 01, no. 05, pp. 1–9, 2025.
R. Sulthana, H. Harikrishnan, and V. Varadarajan, “Sentiment Analysis on Movie Reviews Dataset Using Support Vector Machines and Ensemble Learning,” Int. J. Inf. Technol. Web Eng., vol. 17, no. 1, pp. 1–23, 2022, doi: 10.4018/IJITWE.311428.
S. H. Imanuddin, K. Adi, and R. Gernowo, “Sentiment Analysis on Satusehat Application Using Support Vector Machine Method,” J. Electron. Electromed. Eng. Med. Informatics, vol. 5, no. 3, pp. 143–149, 2023, doi: doi.org/10.35882/jeemi.v5i3.304.
A. Irianti and M. Agariana, “Integration of BERT and SVM in Sentiment Analysis of Twitter / X,” J. Tek. Inform., vol. 6, no. 2, pp. 469–482, 2025, doi: doi.org/10.52436/1.jutif.2025.6.2.4068.
N. Azzahra, A. D. Dharmawan, A. F. Mardatilah, and M. I. Habibi, “Pelaksanaan Uji Coba Program Makan Bergizi Gratis di SMP Negeri 4 Tangerang,” Jurnal Pengabdian Masyarakat dan Riset Pendidikan, vol. 3, no. 4, pp. 5036–5044, 2025, doi: 10.31004/jerkin.v3i4.1335
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Sentiment Analysis on the Allocation of the MBG Program Budget Using Support Vector Machine
Pages: 2727-2735
Copyright (c) 2026 Aulia Kartika Dewi, Raissa Amanda Putri

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















