ANALISIS SENTIMEN SOSIAL MEDIA X TERHADAP PROGRAM MAKAN BERGIZI GRATIS MENGGUNAKAN MACHINE LEARNING
DOI:
https://doi.org/10.47111/jti.v20i2.24652Keywords:
Sentiment Analysis, Social Media X, Machine Learning, IndoBERT, Support Vector Machine.Abstract
The rapid development of digital technology has made social media an important source of information and a platform for expressing public opinion on government policies, including the Free Nutritious Meal Program which aims to improve public health, quality of life, and reduce nutritional and economic problems; this study analyzes public sentiment toward the program based on 10,381 comments from users of social media platform X (Twitter) collected through web scraping using Google Colab, which were then processed through cleaning, normalization, tokenization, stopword removal, and stemming, and automatically labeled into positive, negative, and neutral categories using IndoBERT, before being classified using four machine learning algorithms, namely Naive Bayes Classifier, Support Vector Machine, K-Nearest Neighbor, and Random Forest, with the results showing that SVM achieved the highest accuracy of 74%, followed by Random Forest at 70%, Naive Bayes at 69%, and KNN at 43%, while neutral and positive sentiments were dominant, indicating that the program has received a generally favorable response from the public, and therefore the findings are expected to serve as evaluation material for the government to improve the effectiveness and implementation of the Free Nutritious Meal Program in the future.
Downloads
References
[1] Z. Firmansyah dan N. F. Puspitasari, “analisis sentimen masyarakat terhadap vaksinasi covid-19 berdasarkan opini pada twitter
menggunakan algoritma naive bayes,” Jurnal Teknik Informatika, vol. 14, no. 2, 2021, doi: 10.15408/jti.v14i2.24024.
[2] I. Juventius, T. Gurning, P. P. Adikara, dan R. S. Perdana, “analisis sentimen dokumen twitter menggunakan metode naïve
bayes dengan seleksi fitur gu metric,” 2023. [Daring]. Tersedia pada: http://j-ptiik.ub.ac.id
[3] A. Mondaref Jon dan I. Vitra Paputungan, “analisis sentimen pada media sosial instagram klub persija jakarta menggunakan
metode naive bayes.” [Daring]. Tersedia pada: https://www.instagram.com/persija/
[4] M. Hadi Arfian dkk., “Analisis Sentimen Pada Media Sosial Menggunakan Metode Support Vector Machine,” Jurnal Ilmu
Teknik dan Komputer, vol. 09, no. 01, hlm. 1–6, 2025, doi: 10.22441/jitkom.v9i1.001.
[5] F. Fridom Mailo dkk., “Analisis Sentimen Data Twitter Menggunakan Metode Text Mining Tentang Masalah Obesitas di
Indonesia,” 2019.
[6] H. A. Rahmah, A. Anggraini, Y. P. Nilasari, dan E. P. Salsabilla, “analisis efektivitas program makan bergizi gratis di sekolah
dasar indonesia tahun 2025,” Integrative Perspectives of Social and Science Journal, vol. 2, no. 2, hlm. 2855, 2025.
[7] “makan bergizi gratis dan dampak bagi pertumbuhan ekonomi,” Suardi Suardi, Amy Syah Purmadani, 2023.
[8] A. Albaburrahim, A. P. A. Putikadyanto, A. N. Efendi, M. A. Alatas, S. Romadhon, dan L. R. Wachidah, “Program Makan
Bergizi Gratis: Analisis Kritis Transformasi Pendidikan Indonesia Menuju Generasi Emas 2045,” Entita: Jurnal Pendidikan
Ilmu Pengetahuan Sosial dan Ilmu-Ilmu Sosial, hlm. 767–780, Mei 2025, doi: 10.19105/ejpis.v1i.19191.
[9] S. Satriajati, S. Bagus Panuntun, dan S. Pramana, “Seminar Nasional Official Statistics 2020: Statistics in the New Normal: A
Challenge of Big Data and Official Statistics IMPLEMENTASI WEB SCRAPING DALAM PENGUMPULAN BERITA
KRIMINAL PADA MASA PANDEMI COVID-19 Studi Kasus:
Situs Berita detik.com.”
[10] R. Gelar Guntara, “Pemanfaatan Google Colab Untuk Aplikasi Pendeteksian Masker Wajah Menggunakan Algoritma Deep
Learning YOLOv7,” Jurnal Teknologi Dan Sistem Informasi Bisnis, vol. 5, no. 1, hlm. 55– 60, Feb 2023, doi:
10.47233/jteksis.v5i1.750.
[11] S. Diantika, “penerapan teknik random oversampling untuk mengatasi imbalance class dalam klasifikasi website phishing
menggunakan algoritma lightgbm,” 2023.
[12] A. Wibowo dan A. R. Isnain, “Implementasi Algoritma Machine Learning untuk Klasifikasi Suara Lingkungan,” MALCOM:
Indonesian Journal of Machine Learning and Computer Science, vol. 5, no. 2, hlm. 616–625, Mar 2025, doi:
10.57152/malcom.v5i2.1712.
[13] M. Novitri Waruwu dkk., “implementasi algoritma machine learning untuk deteksi performa akademik mahasiswa
(implementation of machine learning algorithm for student academic performance detection).”
[14] R. S. Nurhalizah, R. Ardianto, dan P. Purwono, “Analisis Supervised dan Unsupervised Learning pada Machine Learning:
Systematic Literature Review,” Jurnal Ilmu Komputer dan Informatika, vol. 4, no. 1, hlm. 61–72, Agu 2024, doi:
10.54082/jiki.168.
[15] F. V. Sari dan A. Wibowo, “analisis sentimen pelanggan toko online jd.id menggunakan metode naïve bayes classifier
berbasis konversi ikon emosi,” Jurnal SIMETRIS, vol. 10, no. 2, 2019.
[16] D. Normawati dan S. A. Prayogi, “Implementasi Naïve Bayes Classifier Dan Confusion Matrix Pada Analisis Sentimen
Berbasis Teks Pada Twitter,” 2021.
[17] J. Homepage dkk., “MALCOM: Indonesian Journal of Machine Learning and Computer Science Implementation of Decision
Tree Algorithm and Support Vector Machine for Lung Cancer Classification Implementasi Algoritma Decision Tree dan
Support Vector Machine untuk Klasifikasi Penyakit Kanker Paru,” vol. 3, hlm. 15–19, 2023.
[18] L. N. Aziza, R. Y. Astuti, B. A. Maulana, dan N. Hidayati, “Penerapan Algoritma K-Nearest Neighbor untuk Klasifikasi
Ketahanan Pangan di Provinsi Jawa Tengah,” MALCOM: Indonesian Journal of Machine Learning and Computer Science,
vol. 4, no. 2,
hlm. 404–412, Feb 2024, doi: 10.57152/malcom.v4i2.1201.
[19] R. S. Daulay, “Analisis Kritis dan Pengembangan Algoritma K-Nearest Neighbor (KNN): Sebuah Tinjauan Literatur,” Jurnal
Pendidikan Sains dan Komputer, vol. 4, no. 02, hlm. 131–141, Des 2024, doi: 10.47709/jpsk.v4i02.5055.
[20] Suci Amaliah, M. Nusrang, dan A. Aswi, “Penerapan Metode Random Forest Untuk Klasifikasi Varian Minuman Kopi di
Kedai Kopi Konijiwa Bantaeng,” VARIANSI: Journal of Statistics and Its application on Teaching and Research, vol. 4, no. 3,
hlm. 121–127, Des 2022, doi: 10.35580/variansiunm31





