Sentiment Analysis of Free Nutritious Meal Programs Using Naïve Bayes on Platforms X and TikTok

Authors

  • Fadila Ullul Azmie Universitas Muria Kudus
  • Yudie Irawan Universitas Muria Kudus
  • R.Rhoedy Setiawan Universitas Muria Kudus

DOI:

https://doi.org/10.24036/jtip.v19i1.1112

Keywords:

Sentimen Analysis, Multinominal Naive Bayes, MBG, Media Social, SMOTE

Abstract

This study analyzes public sentiment toward the Free Nutritious Meal Program (MBG) using the Multinomial Naive Bayes algorithm on data from X (Twitter) and TikTok. A total of 5,173 entries were collected through web scraping and processed with cleaning, normalization, tokenization, stopword removal, and stemming. To address class imbalance, SMOTE was applied, and evaluation employed accuracy, precision, recall, F1-score, and AUC-ROC. Results show that without SMOTE, the model tended to be biased toward the majority class, especially on TikTok, while after SMOTE recall increased significantly and a better balance between precision and recall was achieved. On Twitter, performance was more stable with a moderate class distribution, and SMOTE further improved sensitivity to positive sentiment. Word cloud analysis revealed differences across platforms: TikTok leaned more toward negative sentiment with dominant words such as “racun,” “korupsi,” and “dapur,” while Twitter showed a stronger balance with positive terms like “gizi,” “gratis,” and “program.” These findings highlight the importance of cross-platform analysis to comprehensively understand public perceptions.

References

S. Ahmad, N. Insani, and M. Salim, "Analysis of Cyberbullying on Social Media Using A Comparison of Naïve Bayes, Random Forest, and SVM Algorithms," J. Teknol. Inf. Dan Pendidik., vol. 17, no. 1, pp. 75-86, Mar. 2024, doi: 10.24036/jtip.v17i1.807.

G. Ainur, N. Latifah, and F. Nugraha, "Analisis Sentimen Publik Terhadap Program Makan Bergizi Gratis Menggunakan Metode Random Forest Pada Platform X," J. SITECH Sist. Inf. dan Teknol., vol. 8, no. 1, pp. 75-84, 2025.

I. G. A. S. Nugraha, I. G. A. Gunadi, and L. J. E. Dewi, "Application of Bagging Ensemble Learning on Naïve Bayes Algorithm to Predict Coronary Heart Disease," J. Teknol. Inf. Dan Pendidik., vol. 18, no. 2, pp. 943-954, Sep. 2025, doi: 10.24036/jtip.v18i2.981.

M. Karim, "Analisis Sentimen Pada Twitter Menggunakan Support Vector Machine Dengan Modifikasi Lexicon Inset Dan SentiStrength_Id (Studi Kasus: Vaksinasi Covid-19)," 2022.

A. F. Riany and G. Testiana, "Penerapan Data Mining untuk Klasifikasi Penyakit Jantung Koroner Menggunakan Algoritma Naïve Bayes," MDP Student Conf., vol. 2, no. 1, pp. 297-305, Apr. 2023, doi: 10.35957/mdp-sc.v2i1.4388.

I. M. A. A. D. Putra, I. M. G. Sunarya, and I. G. A. Gunadi, "Perbandingan Algoritma Naive Bayes Berbasis Feature Selection Gain Ratio dengan Naive Bayes Kovensional dalam Prediksi Komplikasi Hipertensi," JTIM J. Teknol. Inf. dan Multimed., vol. 6, no. 1, pp. 37-49, Apr. 2024, doi: 10.35746/jtim.v6i1.488.

M. N. Huda, D. A. Fauzan, M. Raihan, S. Putra, and N. Sabila, "Optimalisasi Model Klasifikasi Sentimen Netizen Terhadap Merek," J. KomtekInfo, vol. 10, no. 1, pp. 21-27, 2023, doi: 10.35134/komtekinfo.v10i1.360.

A. F. Hakim, Y. Irawan, and R. R. Setiawan, "Implementation of the Crisp Dm Methodology and Naive Bayes Algorithm on A Raw Material Requirement Prediction System to Reduce Food Waste (Case Study: Adamsafee Bakery, Resto, & Cafe)," J. Teknol. Inf. dan Pendidik., vol. 18, no. 2, pp. 968-983, 2025.

D. Amelia, P. Setiaji, and R. R. Setiawan, "Perbandingan Algoritma SVM dan Naive Bayes dalam Klasifikasi Sentimen pada Ulasan Aplikasi Traveloka dan Agoda," JEPIN (Jurnal Edukasi dan Penelitian Informatika), vol. 11, no. 2, pp. 263-270.

N. Lashkarashvili and M. Tsintsadze, "Toxicity detection in online Georgian discussions," Int. J. Inf. Manag. Data Insights, vol. 2, no. 1, p. 100062, 2022, doi: 10.1016/j.jjimei.2022.100062.

Y. Irawan and N. N. Najla, "Scabies Prediction In Cats Using Vector Machine Support Method," in Proc. Int. Conf. Comput. Sci. Eng. Technol. (ICCSET), vol. 2, no. 1, pp. 69-76, Nov. 2023.

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.

M. Saprizal and R. Anisa, "Analisis Sentimen Publik Terhadap Isu Wajib Militer di Indonesia Berdasarkan Komentar TikTok," J. Sains dan Teknol., vol. 6, no. 2, pp. 145-156, 2024.

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.

R. E. Laia, N. M. Br Ginting, and J. Hutabarat, "Analisis Sentimen Program Makan Gratis pada Platform X Menggunakan Algoritma Naïve Bayes," J. Teknol. Inf., vol. 9, no. 1, pp. 45-54, 2025.

D. O. Dewi, D. Oktafiani, and Y. Astica, "Optimasi Algoritma Stemming Porter Untuk Pemrosesan Teks Dalam Bahasa Indonesia," J. Inform. dan Sist. Inf., vol. 6, no. 1, pp. 42-52, 2025.

A. Pratiwi and M. Kamayani, "Analisis Sentimen Publik Terhadap Kurikulum Proyek vs Skripsi Menggunakan Naïve Bayes di TikTok," J. Ilmu Komput. dan Inform., vol. 10, no. 2, pp. 89-98, 2024.

T. M. Alvionita, A. H. A. Hindasyah, and A. K. A. Khalid, "Analisis Sentimen Persepsi Pengguna Kurikulum Merdeka Belajar Menggunakan Metode Naive Bayes Classifier (NBC) dan Support Vector Machine (SVM)," J. SISKOM-KB (Sist. Komput. dan Kecerdasan Buatan), vol. 9, no. 1, pp. 124-133, 2025.

B. Rahmatullah, S. A. Saputra, P. Budiono, and D. P. Wigandi, "Sentimen Analisis Makan Bergizi Gratis Menggunakan Algoritma Naive Bayes," J. Inf. Technol., vol. 5, no. 1, 2025.

E. Triningsih, "Analisis Sentimen Terhadap Program Makan Bergizi Gratis Menggunakan Algoritma Machine Learning Pada Sosial Media X," Build. Of Inform. Technol. And Sci. (BITS), vol. 6, no. 4, 2025.

A. Kurnia, D. P. Sari, and F. Rahman, "Analisis Sentimen Masyarakat Berdasarkan Komentar Kerja Sama TikTok Shop dan Tokopedia di Instagram Menggunakan Metode Naïve Bayes Classifier dengan SMOTE," J. Teknol. dan Sist. Inf., vol. 5, no. 3, pp. 234-245, 2024.

D. Apriliani, A. Budiman, and R. Rismala, "Analisis Sentimen Review Penggunaan TikTok Melalui Pendekatan Algoritma Naïve Bayes," eProceedings Eng., vol. 10, no. 5, pp. 4567-4575, 2023.

R. Aditiya, B. Setiaji, and H. Supriyono, "Implementasi TF-IDF untuk Klasifikasi Sentimen Berbasis Machine Learning," J. Inform. dan Komputasi, vol. 8, no. 1, pp. 23-34, 2025.

R. M. Sari, V. Tasril, S. Wahyuni, and S. E. Putri, "Desain Aplikasi Naïve Bayes Untuk Memprediksi Kelulusan Siswa," in Proc. Semin. Nas. Teknol. Inov. dan Kolaborasi Disiplin Ilmu, vol. 1, no. 1, 2024.

M. Nahdhudin, N. C. H. Wibowo, M. R. Handayani, and K. Umam, "Klasifikasi Sentimen Masyarakat Terhadap Aplikasi Tiktok Menggunakan Algoritma Naive Bayes," J. Teknol. Inf. dan Ilmu Komput., vol. 1, no. 3, pp. 107-112, 2025.

O. Y. Inonu, K. Magda, and Amarudin, "Analisis Kinerja Algoritma Random Forest dengan Model Machine Learning pada Dataset Penyakit Diabetes," EXPERT J. Manaj. Sist. Inf. dan Teknol., vol. 15, no. 1, pp. 1-7, 2025.

S. Amara, N. Novriyenni, and M. Khadapi, "Analisis Sentimen Masyarakat Terhadap Program Makan Siang Gratis di Indonesia Tahun 2024 Menggunakan Long Short-Term Memory (LSTM)," Merkurius J. Riset Sist. Inf. dan Tek. Inform., vol. 3, no. 4, pp. 150-160, 2025.

F. Fatkhurrohman, B. I. Nugroho, and N. Fadillah, "Analisis Sentimen Program Makan Bergizi Gratis Pemerintah RI Melalui Twitter Menggunakan Metode SVM," RIGGS J. Artif. Intell. and Digit. Bus., vol. 4, no. 3, pp. 3906-3917, 2025.

Z. Purwanti, "Pemodelan Text Mining untuk Analisis Sentimen Terhadap Program Makan Siang Gratis di Media Sosial X Menggunakan Algoritma Support Vector Machine (SVM)," J. Indones. Manaj. Inform. Dan Komun., vol. 5, no. 3, pp. 3065-3079, 2024.

M. H. Riwanto, P. Ardhiyansyah, R. A. Adiansyah, A. Alfiansyah, G. Waek, and R. Fahlapi, "Analisis Sentimen Komentar YouTube Terkait Penerapan Makan Bergizi Gratis Menggunakan Model Algoritma SVM," Kohesi J. Multidisiplin Saintek, vol. 6, no. 12, pp. 1-13, 2025

Downloads

Published

2026-03-07

How to Cite

[1]
Fadila Ullul Azmie, Yudie Irawan, and R.Rhoedy Setiawan, “Sentiment Analysis of Free Nutritious Meal Programs Using Naïve Bayes on Platforms X and TikTok ”, J. teknol. inf. pendidik., vol. 19, no. 1, pp. 1208–1227, Mar. 2026.