Analisis Sentimen Program Makan Gratis Pada Media Sosial X Menggunakan Metode Naïve Bayes
DOI:
https://doi.org/10.47065/jimat.v6i1.963Keywords:
Sentiment Analysis; Free Nutritious Meal Program; Social Media X; TF-IDF; Naive BayesAbstract
The Free Meal Program is a public policy aimed at improving students' nutritional needs. However, the program's implementation has generated diverse responses from the public. This study aims to analyze public sentiment in Medan Tuntungan District towards the Free Meal Program based on opinion data obtained from social media platform X. The methods used include text preprocessing, word weighting using Term Frequency–Inverse Document Frequency (TF-IDF), and sentiment classification using the Naïve Bayes algorithm. The research data was divided into training and test data with a ratio of 80% and 20%. The analysis results indicate that public sentiment is dominated by negative sentiment, generally related to food quality, portion adequacy, and program budget management. Model performance evaluation indicates that the Naïve Bayes algorithm is able to identify trends in public sentiment, although the accuracy obtained still shows limitations in classification performance. These findings provide an empirical overview of public perception of the Free Meal Program at the local level and serve as a basis for developing more adaptive sentiment analysis methods in future research.
Downloads
References
Baskoro, Sriyanto, and L. Setya Rini, “Prediksi Penerima Beasiswa dengan Menggunakan Teknik Data Mining di Universitas Muhammadiyah Pringsewu,” Semin. Nas. Has. Penelit. dan Pengabdi. Masy. Inst. Inform. dan Bisnis Darmajaya, vol. 1, no. 2, pp. 87–94, 2021.
D. Aulia, M. Safii, and D. Suhendro, “Penerapan Algoritma K-Means dalam Proses Clustering Penilaian Kinerja Aparatur Sipil Negera di Sekretariat DPRD Pematangsiantar,” Jurasik (Jurnal Ris. Sist. Inf. dan Tek. Inform., vol. 6, no. 1, p. 47, 2021, doi: 10.30645/jurasik.v6i1.270.
N. Agustina and M. Hermawati, “Implementasi Algoritma Naïve Bayes Classifier untuk Mendeteksi Berita Palsu pada Sosial Media,” Fakt. Exacta, vol. 14, no. 4, pp. 1979–276, 2021, doi: 10.30998/faktorexacta.v14i4.11259.
T. Tommy and A. M. Husein, “Model Prediksi Prestasi Mahasiswa Berdasarkan Evaluasi Pembelajaran Menggunakan Pendekatan Data Science,” Data Sci. Indones., vol. 1, no. 1, pp. 14–20, 2021, doi: 10.47709/dsi.v1i1.1168.
H. Mustakim and S. Priyanta, “Aspect-Based Sentiment Analysis of KAI Access Reviews Using NBC and SVM,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 16, no. 2, p. 113, 2022, doi: 10.22146/ijccs.68903.
S. Howay and S. Suhirman, “Comparison of SVM, NBC, and KNN Classification Methods in Determining Students’ Majors at SMK N02 Manokwari,” J. Comput. Sci. Technol. Stud., vol. 5, no. 1, pp. 15–23, 2023, doi: 10.32996/jcsts.2023.5.1.3.
S. W. Linderman et al., “Dynamax: A Python package for probabilistic state space modeling with JAX,” J. Open Source Softw., vol. 10, no. 108, p. 7069, 2025, doi: 10.21105/joss.07069
S. C. Nandaresta and C. Warman, “Analisis Sentimen Tanggapan Masyarakat Terhadap Tiktok Shop Dan Shopee Di Twitter Menggunakan Metode Naïve Bayes Dan Knn ( K- Nearest Neighbor,” Sismatik, vol. 12, no. 1, pp. 1–9, 2023, url: https://sismatik.nusaputra.ac.id/index.php/sismatik/id/article/view/216
R. Saputra and F. N. Hasan, “Analisis Sentimen Terhadap Program Makan Siang & Susu Gratis Menggunakan Algoritma Naive Bayes,” J. Teknol. Dan Sist. Inf. Bisnis, vol. 6, no. 3, pp. 411–419, 2024, doi: 10.47233/jteksis.v6i3.1378
M. L. Akmal, D. Pernadi, and J. Kusumaningrum, “Analisis Sentimen Program Makan Siang Gratis Menggunakan Multinomial Naive Bayes,” J. Ilm. SINUS, vol. 23, no. 1, pp. 117–126, 2025, url: https://p3m.sinus.ac.id/jurnal/index.php/e-jurnal_SINUS/article/view/899
A. Ramadhani, “Analisis Sentimen Tanggapan Publik Terhadap Program Makan Siang Gratis Menggunakan Algoritma Nbc Dan Svm,” Build. Informatics, Technol. Sci., vol. 6, no. 3, pp. 1509–1516, 2024, doi: 10.47065/bits.v6i3.6188
R. Hidayat and D. J. Ratnaningsih, “Analisis Sentimen Program Mbg Menggunakan Algoritma Random Forest Dan Naive Bayes,” J. Comput. Informatics Res., vol. 5, no. 1, pp. 395–400, 2025, doi: 10.47065/comforch.v5i1.2355
L. Nursinggah, T. Mufizar, and U. Perjuangan, “Analisis sentimen pengguna aplikasi x terhadap program makan siang gratis dengan metode naïve bayes classifier,” J. Inform. dan Tek. Elektro Ter, vol. 12, no. 3, 2024, doi: 10.23960/jitet.v12i3.4336
A. Sitanggang, Y. Umaidah, 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, 2024, doi: 10.23960/jitet.v12i3.4902
J. D. A. Wulla and R. Rino, “Penerapan Metode Naive Bayes Dalam Sentimen Analisis Terhadap Program Makan Siang & Susu Gratis Di Media X,” POTERS (Proceedings Technol. Eng. Comput., vol. 1, no. 2, pp. 427–434, 2025, url: https://jurnal.ubd.ac.id/index.php/poters/article/view/3930
N. Sakina, F. Wajidi, and M. R. Rasyid, “Evaluasi Algoritma KNN dan Naive Bayes untuk Analisis Sentimen Kebijakan Program Makan Bergizi Gratis,” Jambura J. Informatics, vol. 1, no. 2, pp. 83–97, 2025, doi: 10.37905/jji.v1i2.34418
Y. T. Handika, S. Defit, and G. W. Nurcahyo, “Text Mining Dalam Membandingkan Metode Naïve Bayes Dengan C.45 Dalam Mengidentifikasi Berita Hoax Pada Media Sosial,” Rang Tek. J., vol. 5, no. 1, pp. 116–123, 2022, doi: 10.31869/rtj.v5i1.2855.
C. A. Bahri and L. H. Suadaa, “Aspect-Based Sentiment Analysis in Bromo Tengger Semeru National Park Indonesia Based on Google Maps User Reviews,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 17, no. 1, p. 79, 2023, doi: 10.22146/ijccs.77354.
A. Damuri, U. Riyanto, H. Rusdianto, and M. Aminudin, “Implementasi Data Mining dengan Algoritma Naïve Bayes Untuk Klasifikasi Kelayakan Penerima Bantuan Sembako,” JURIKOM (Jurnal Ris. Komputer), vol. 8, no. 6, pp. 219–225, 2021, doi: 10.30865/jurikom.v8i6.3655
S. A. S. Mola, Y. C. Luttu, and D. N. Rumlaklak, “Perbandingan Metode Machine Learning dalam Analisis Sentimen Komentar Pengguna Aplikasi InDriver pada Dataset Tidak Seimbang,” J. Sist. Inf. Bisnis, vol. 14, no. 3, pp. 247–255, 2024, doi: 10.21456/vol14iss3pp247-255.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Sentimen Program Makan Gratis Pada Media Sosial X Menggunakan Metode Naïve Bayes
ARTICLE HISTORY
Issue
Section
Copyright (c) 2026 Jheki Pranta Singarimbun , Muhammad Iqbal

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).













