PERBANDINGAN RANDOM FOREST, NAIVE BAYES, DAN HEURISTIC POUR UNTUK ANALISIS SENTIMEN MBG
DOI:
https://doi.org/10.32699/biner.v5i2.11465Keywords:
Sentiment Analysis, Random Forest, Naive Bayes, Heuristic Pour, SMOTE.Abstract
Program Makan Bergizi Gratis (MBG) merupakan kebijakan intervensi gizi nasional yang memicu beragam respons masyarakat di media sosial, khususnya YouTube. Penelitian ini bertujuan menganalisis sentimen publik terhadap program MBG, membandingkan kinerja Random Forest, Naive Bayes, dan Heuristic Pour, serta mengevaluasi pengaruh Synthetic Minority Oversampling Technique (SMOTE) dalam menangani ketidakseimbangan kelas. Sebanyak 2.278 komentar YouTube periode Agustus 2024–Januari 2025 diproses melalui tahapan cleaning, tokenizing, stopword removal, stemming, dan pembobotan TF-IDF. Evaluasi model dilakukan menggunakan 10-fold cross-validation berdasarkan confusion matrix, Precision, Recall, F1-score, dan Area Under Curve (AUC). Hasil penelitian menunjukkan bahwa Random Forest memberikan performa terbaik dengan akurasi 0,88 dan AUC 0,91. Penerapan SMOTE meningkatkan kemampuan model dalam mendeteksi sentimen positif sebagai kelas minoritas. Distribusi sentimen didominasi sentimen negatif lebih dari 87,5%. Penelitian ini memberikan kontribusi empiris terkait trade-off antara akurasi dan interpretabilitas dalam analisis sentimen berbahasa Indonesia.. Kebaruan penelitian ini terletak pada perbandingan komprehensif pendekatan machine learning dan rule-based dipadukan dengan SMOTE pada analisis sentimen komentar YouTube berbahasa Indonesia terkait kebijakan MBG. Penelitian ini memberikan bukti empiris mengenai efektivitas penanganan ketidakseimbangan kelas dan menjadi referensi dalam pengembangan analisis sentimen untuk evaluasi kebijakan publik
Downloads
References
[1] S. A. Sb, R. Hipni, and E. Kristiana, “HUBUNGAN PENGETAHUAN DAN PARITAS DENGAN KEJADIAN STUNTING PADA BALITA UMUR 1-3 TAHUN DI WILAYAH KERJA PUSKESMAS BATULICIN TAHUN 2024,” vol. 2, no. 1, pp. 265–277, 2025.
[2] S. Amara, M. Khadapi, S. Informasi, and S. Kaputama, “Analisis Sentimen Masyarakat terhadap Program Makan Siang Gratis di Indonesia Tahun 2024 Menggunakan Long Short-Term Memory ( LSTM ) kesulitan dalam pemenuhan kebutuhan primer , salah satunya ialah pangan . Produksi pangan Untuk dapat menghadapi masalah i,” Merkurius J. Ris. Sist. Inf. dan Tek. Inform., vol. 3, no. 4, pp. 150–160, 2025.
[3] Team of Reference, Indonesia Sehat. 2016. [Online]. Available: www.eagleinstitute.id/submission
[4] N. Kamalawati, N. R. Febrina, N. Wijayanti, and Y. Hanoselina, “Ekspansi Program Makan Bergizi Gratis ( MBG ) dalam Penanggulangan Stunting dan Peningkatan Kualitas Sumber Daya Manusia Ekspansi Program Makan Bergizi Gratis ( MBG ) dalam Penanggulangan Stunting dan Peningkatan Kualitas Sumber Daya Manusia,” J. Intelek Insa. Cendikia, vol. 2 No: 12, pp. 19033–19045, 2025.
[5] M. Wankhade, A. C. S. Rao, and C. Kulkarni, A survey on sentiment analysis methods, applications, and challenges, vol. 55, no. 7. Springer Netherlands, 2022. doi: 10.1007/s10462-022-10144-1.
[6] W. Anggriyani and M. Fakhriza, “Analisis Sentimen Program Makan Gratis Pada Media Sosial X Menggunakan Metode NLP,” J. Comput. Syst. Informatics, vol. 5, no. 4, pp. 1033–1042, 2024, doi: 10.47065/josyc.v5i4.5826.
[7] R. Obiedat et al., “Sentiment Analysis of Customers’ Reviews Using a Hybrid Evolutionary SVM-Based Approach in an Imbalanced Data Distribution,” IEEE Access, vol. 10, pp. 22260–22273, 2022, doi: 10.1109/ACCESS.2022.3149482.
[8] R. Hidayat and D. J. Ratnaningsih, “Analisis Sentimen Program Makanan Bergizi Gratis Menggunakan Algoritma Random Forest dan Naive Bayes,” vol. 5, no. 1, pp. 395–400, 2025, doi: 10.47065/comforch.v5i1.2355.
[9] W. A. Rayadhani and M. Rahardi, “Comparative Analysis of Random Forest , SVM , and Naive Bayes for Cardiovascular Disease Prediction,” vol. 9, no. 6, pp. 3234–3243, 2025.
[10] 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, Jul. 2024, doi: 10.47233/jteksis.v6i3.1378.
[11] 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, 2024, doi: 10.23960/jitet.v12i3.4902.
[12] D. T. Attaulah and D. Soyusiawaty, “Analisis Sentimen Program Makan Siang Gratis di Twitter/X menggunakan Metode BI-LSTM,” Edumatic J. Pendidik. Inform., vol. 9, no. 1, pp. 294–303, 2025, doi: 10.29408/edumatic.v9i1.29725.
[13] A. Molenaar, D. Lukose, L. Brennan, E. L. Jenkins, and T. A. McCaffrey, “Using Natural Language Processing to Explore Social Media Opinions on Food Security: Sentiment Analysis and Topic Modeling Study,” J. Med. Internet Res., vol. 26, no. 1, 2024, doi: 10.2196/47826.
[14] M. Tsiourlini, K. Tzafilkou, D. Karapiperis, and C. Tjortjis, “Text Analytics on YouTube Comments for Food Products,” Inf., vol. 15, no. 10, 2024, doi: 10.3390/info15100599.
[15] A. Cahya Kamilla, N. Priyani, R. Priskila, and V. Handrianus Pranatawijaya, “Analisis Sentimen Film Agak Laen Dengan Kecerdasan Buatan: Text Mining Metode Naïve Bayes Classifier,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 3, pp. 2923–2928, 2024, doi: 10.36040/jati.v8i3.9587.
[16] L. P. Mudarakola, R. K. Gatla, A. S. N. Raju, A. Y. Jaffar, A. Alzahrani, and A. A. Dessalegn, “Multi stage sentiment analysis for product reviews on Twitter using optimized machine learning algorithm,” Sci. Rep., vol. 15, no. 1, pp. 1–18, 2025, doi: 10.1038/s41598-025-23451-8.
[17] S. Tahun, D. Wilayah, K. Pkm, and K. Palembang, “Faktor Faktor Yang Berhubungan Dengan Kejadian Stunting Pada Balita Usia 2,” vol. 5, no. 2, pp. 11396–11406, 2025.
[18] A. A. Sy, Y. Franciska, and A. Noviyanti, “The Influence Of Feeding Habbits On The Incidence Of Stunting,” vol. 3, 2023, doi: 10.36086/maternalandchild.v3i2.2074.
[19] N. Technologies, “Sentiment analysis of Twitter data by making use of SVM , Random Forest and Decision Tree algorithm,” pp. 193–198, 2021, doi: 10.1109/CSNT.2021.35.
[20] Hastuti, H. F. Maulana, and E. Satria, “Sentiment Analysis and Topic Modeling of Twitter Conversations in Indonesia’s 2024 Presidential Election,” J. Pekommas, vol. 10, no. 1, pp. 17–28, 2025, doi: 10.56873/jpkm.v9i1.5545.
[21] A. Hermawan, I. Jowensen, J. Junaedi, and Edy, “Implementasi Text-Mining untuk Analisis Sentimen pada Twitter dengan Algoritma Support Vector Machine,” JST (Jurnal Sains dan Teknol., vol. 12, no. 1, pp. 129–137, 2023, doi: 10.23887/jstundiksha.v12i1.52358.
[22] R. F. Pramesti, A. A. Firdaus, K. Yulita, and M. Thoyyibah, “Analisis Efisiensi Apbn Era Prabowo: Kajian Ekonomi Dan Analisis Sentimen Publik,” Jesya, vol. 8, no. 2, pp. 1147–1161, 2025, doi: 10.36778/jesya.v8i2.2054.
[23] N. N. Azzat and M. C. Zulfa, “Optimasi Penjadwalan Produksi Dengan Algoritma Heuristik Pour Untuk Reduksi Makespan Pada CV CJ Furniture,” Integr. J. Ilm. Tek. Ind., vol. 8, no. 1, pp. 14–22, 2023, doi: 10.32502/js.v8i1.5977.
[24] S. Sutarmi, W. Warijan, T. Indrayana, D. P. P. B, and I. Gunawan, “Machine Learning Model For Stunting Prediction,” J. Heal. Sains, vol. 4, no. 9, pp. 10–23, 2023, doi: 10.46799/jhs.v4i9.1073.
[25] R. N. Handayani, I. Najiyah, and D. A. Wisnuwardana, “Classification of Bulughul Maraam Categories: Prohibitions, Recommendations, and Information Using Extreme Learning Machine and Fasttext,” J. Online Inform., vol. 8, no. 2, pp. 242–251, 2023, doi: 10.15575/join.v8i2.1205.
[26] M. C. Buzea, S. Trausan-Matu, and T. Rebedea, “A Three Word-Level Approach Used in Machine Learning for Romanian Sentiment Analysis,” Proc. - RoEduNet IEEE Int. Conf., vol. 2019-Octob, no. July, 2019, doi: 10.1109/ROEDUNET.2019.8909458.
[27] H. Aji and F. D. Astuti, “K-Means Approach to Identifying High-Risk Stunting Areas in Indonesia,” bit-Tech, vol. 8, no. 2, pp. 1680–1688, 2025, doi: 10.32877/bt.v8i2.3042.
[28] Aiswarya A S and H. Rajeev, “Youtube Comment Sentimental Analysis,” Indian J. Data Min., vol. 4, no. 1, pp. 5–8, 2024, doi: 10.54105/ijdm.a1633.04010524.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Biner : Jurnal Ilmiah Informatika dan Komputer

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
An author who publishes in this Journal agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is 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 the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her 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 the published work (See The Effect of Open Access).









