Sentiment Analysis of TikTok Comments on Free Nutritious Meals Using Naïve Bayes

Authors

  • Muhamad Adyaputra Yostira Universitas Widyatama, Indonesia
  • Ari Purno Wahyu Wibowo Universitas Widyatama, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v6i2.8854

Keywords:

Free Nutritious Meals Program, Naïve Bayes, Sentiment Analysis, TF-IDF, TikTok

Abstract

Public opinions on various issues, including government programs, are increasingly expressed through social media platforms. TikTok, as one of the most active social media platforms, allows users to share comments, criticism, and support regarding the Free Nutritious Meals Program. This study examines TikTok remarks about the Free Nutritious Meals Initiative and classifies them into sentiment categories using the Naïve Bayes algorithm. A total of 2,094 comments were obtained through a crawling process and then manually grouped into positive, negative, and neutral classes. The labeling process was conducted manually based on predefined sentiment guidelines and was reviewed to improve label consistency. Before being used in the classification stage, the comments were cleaned and standardized through several preprocessing steps, such as cleaning, case folding, tokenization, stopword removal, and stemming. After preprocessing, the text data were transformed into numerical representations using the Term Frequency–Inverse Document Frequency method, and the classification process was carried out with the Naïve Bayes algorithm. The results showed that neutral sentiment had the highest proportion at 45.9%, followed by negative sentiment at 33.9% and positive sentiment at 20.2%. The model achieved an accuracy of 73.75%, with precision of 68%, recall of 69%, and F1-score of 69%. These findings indicate that Naïve Bayes is able to classify TikTok user sentiment toward the Free Nutritious Meals Program with reasonably good performance, although informal language, ambiguous expressions, and sarcasm remain challenges in the classification process.

References

Afifah, L. N. (2026). Sentiment analysis of TikTok user comments on the Free Nutritious Food Program. Journal of Artificial Intelligence and Engineering Applications. https://ioinformatic.org/index.php/JAIEA/article/view/1879

Apriani, E., Oktavianalisti, F., Monasari, L. D. H., Winarni, I., & Hanif, I. F. (2024). Analisis sentimen penggunaan TikTok sebagai media pembelajaran menggunakan algoritma Naïve Bayes Classifier. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(3), 1160–1168. https://doi.org/10.57152/malcom.v4i3.1482

Barus, H., Fajri, I. N., & Pristyanto, Y. (2025). Sentiment classification analysis of Tokopedia reviews using TF-IDF, SMOTE, and traditional machine learning models. Journal of Applied Informatics and Computing, 9(5), 2552–2561. https://doi.org/10.30871/jaic.v9i5.10524

Dina, D. F. M., Haryanti, T., & Haq, M. A. (2025). Analisis sentimen terhadap komentar pada media sosial TikTok yang berpotensi menyebabkan depresi menggunakan metode Naive Bayes. Computing Insight: Journal of Computer Science, 7(1), 1–9. https://doi.org/10.30651/comp_insight.v7i1.26327

Husain, N. P., Sukirman, & Sajiah. (2024). Analisis sentimen ulasan pengguna TikTok pada Google Play Store berbasis TF-IDF dan Support Vector Machine. Journal of System and Computer Engineering, 5(1). https://doi.org/10.61628/jsce.v5i1.1105

Indriyani, F. A., Fauzi, A., & Faisal, S. (2023). Analisis sentimen aplikasi TikTok menggunakan algoritma Naïve Bayes dan Support Vector Machine. Teknosains: Jurnal Sains, Teknologi Dan Informatika, 10(2), 176–184. https://doi.org/10.37373/tekno.v10i2.419

Maulana, M. T. F., Nugroho, B. I., & Utami, E. U. S. (2025). Analisis sentimen ulasan aplikasi TikTok di Google Playstore menggunakan algoritma Naive Bayes. RIGGS: Journal of Artificial Intelligence and Digital Business, 4(3), 6627–6635. https://doi.org/10.31004/riggs.v4i3.2962

Naya, C. (2026). Analisis sentimen publik terhadap progres pembangunan Ibu Kota Nusantara pada komentar TikTok menggunakan Naïve Bayes dan Support Vector Machine. Bulletin of Computer Science Research. https://hostjournals.com/bulletincsr/article/view/969

Nurfirdaus, R. E., Setiawan, A., & Suryono, R. R. (2026). Comparison of Support Vector Machine and Random Forest for TikTok E10 bioethanol policy sentiment analysis. Journal of Applied Informatics and Computing. https://jurnal.polibatam.ac.id/index.php/JAIC/article/view/12395

Pandia, N. A. (2025). Analisis Sentimen Masyarakat terhadap Penggunaan Teknologi AI dengan Metode Machine Learning. https://doi.org/10.55606/juisik.v5i2.1198

Pratama, P. W., & Pamungkas, E. W. (2026). Analisis sentimen terhadap komentar pada video viral For You Page TikTok menggunakan metode Naïve Bayes. SKANIKA: Sistem Komputer Dan Teknik Informatika, 9(1). https://doi.org/10.36080/skanika.v9i1.3628

Saputro, R. E. (2025). Classification of hate speech in TikTok social media comments using Multinomial Naïve Bayes. Journal of Multimedia Trend and Technology. https://journal.educollabs.org/index.php/JMTT/article/view/102

Sari, N. (2025). Implementation of Naive Bayes and Support Vector Machine algorithms in social media sentiment analysis. Sistemasi: Jurnal Sistem Informasi, 14(1). https://sistemasi.ftik.unisi.ac.id/index.php/stmsi/article/view/4799

Setiawan, A., & Suryono, R. R. (2024). Analisis sentimen Ibu Kota Nusantara menggunakan algoritma Support Vector Machine dan Naïve Bayes. Edumatic: Jurnal Pendidikan Informatika, 8(1), 183–192. https://doi.org/10.29408/edumatic.v8i1.25667

Zamani, S., Cahya, A., Oknel, Nuryamin, Y., & Priyatna, A. (2024). Analisis sentimen pengguna TikTok tentang pembangunan IKN menggunakan algoritma Naive Bayes dan Decision Tree. Jurnal Nasional Teknologi Komputer, 5(4), 1112–1123. https://publikasi.hawari.id/index.php/jnastek/article/view/323

Downloads

Published

2026-06-29

How to Cite

Yostira, M. A., & Wibowo, A. P. W. (2026). Sentiment Analysis of TikTok Comments on Free Nutritious Meals Using Naïve Bayes. Brilliance: Research of Artificial Intelligence, 6(2), 283–293. https://doi.org/10.47709/brilliance.v6i2.8854