Sentiment Analysis of TikTok Comments on the Koperasi Merah Putih Program Using the Naive Bayes Algorithm
DOI:
https://doi.org/10.65310/ztv1pp98Keywords:
Naïve Bayes, Koperasi Merah Putih, Machine Learning, Sentiment Analysis, Tiktok.Abstract
The Koperasi Merah Putih program is a government policy aimed at strengthening grassroots economic cooperatives at the village level, and its launch has triggered diverse public reactions on social media, particularly TikTok. This study aims to analyze public sentiment toward the program using a machine learning approach and to identify patterns in the distribution of public opinion based on collected comments. This research adopts a quantitative approach using a Naive Bayes-based sentiment analysis method. Data were collected through scraping of 2,299 TikTok comments discussing Koperasi Merah Putih, automatically labeled using a positive and negative keyword dictionary, followed by text preprocessing (cleaning, normalization, and removal of empty entries). Non-neutral labeled data were split into training (70%) and testing (30%) sets using stratified sampling, then transformed using CountVectorizer with unigram and bigram features, and classified using Multinomial Naive Bayes. The test results show that the model achieved an accuracy of 85.92%, with a precision of 0.84 and recall of 1.00 for the negative class, while the positive class achieved a precision of 1.00 but a recall of only 0.50, resulting in a weighted F1-Score of 0.84. The overall sentiment distribution indicates a dominance of neutral comments (89.3%), followed by negative (7.7%) and positive (3.0%) comments, suggesting that most public interactions are informational rather than emotionally charged, while strongly opinionated comments tend to be critical. The study concludes that a dictionary-based Naive Bayes approach is effective for accurately detecting negative sentiment but has limitations in capturing the linguistic diversity of positive expressions, indicating the need for lexicon expansion and larger training data in future research.
Downloads
References
Ananto, F. S., & Hasan, F. N. (2023). Implementasi Algoritma Naïve Bayes Terhadap Analisis Sentimen Ulasan Aplikasi MyPertamina pada Google Play Store. Jurnal ICT: Information Communication & Technology, 23(1), 75-80. https://ejournal.ikmi.ac.id/index.php/jict-ikmi/article/view/94
Ardika, Z., & Wowor, A. D. (2024). Analisis Sentimen Masyarakat Terhadap Program Badan Penyelenggara Jaminan Sosial (Bpjs) Menggunakan Data Twitter. JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), 9(1), 90-99. https://doi.org/10.29100/jipi.v9i1.4272
Erfina, A., & Al-shufi, M. F. (2022). Analisis Sentimen Aplikasi Jasa Kurir Di Play Store Menggunakan Algoritma Naive Bayes. Jurnal Sistem Informasi dan Informatika, 5(2), 103-110. https://doi.org/10.47080/simika.v5i2.1789
Fitriadin, A., & Purnomo, A. S. (2023). Analisis Sentimen Masyarakat Terhadap Pandemi Covid-19 Pada Sosial Media Menggunakan Naïve Bayes Clasifier. INFORMAL, 8(1), 51-57. https://informal.jurnal.unej.ac.id/index.php/INFORMAL/article/view/113
Handayani, H., Luchia, N. T., Auliani, S. N., Azani, N. W., & Adha, R. (2023, August). Analisis Sentimen Pengguna Twitter Terhadap Aplikasi TikTok Menggunakan Metode Algoritma Naïve Bayes Clasifier: Analysis of Twitter User Sentiments for the Aplikasi TikTok Application Using Naïve Bayes Clasifier Algorithm Method. In SENTIMAS: Seminar Nasional Penelitian dan Pengabdian Masyarakat (pp. 100-104). https://journal.irpi.or.id/index.php/sentimas/article/view/584
Harpizon, H. A. R., Kurniawan, R., Iskandar, I., Salambue, R., Budianita, E., & Syafria, F. (2022). Analisis Sentimen Komentar Di YouTube Tentang Ceramah Ustadz Abdul Somad Menggunakan Algoritma Naïve Bayes. Analisis Sentimen Komentar Di YouTube Tentang Ceramah Ustadz Abdul Somad Menggunakan Algoritma Naïve Bayes, 5(1), 131-140. http://ojs.serambimekkah.ac.id/jnkti/article/view/4008
Hasibuan, E., & Heriyanto, E. A. (2022). Analisis Sentimen Pada Ulasan Aplikasi Amazon Shopping Di Google Play Store Menggunakan Naive Bayes Classifier. Jurnal Teknik Dan Science, 1(3), 13-24. https://doi.org/10.56127/jts.v1i3.434
Huwaida, S. F., Kusumawati, R., & Isnaini, B. (2024). Analisis Sentimen Komentar YouTube terhadap Pemindahan Ibu Kota Negara Menggunakan Metode Naï ve Bayes. Jambura Journal of Informatics, 6(1), 26-39. https://doi.org/10.37905/jji.v6i1.24718
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
Insan, M. K. K., Hayati, U., & Nurdiawan, O. (2023). Analisis Sentimen Aplikasi Brimo Pada Ulasan Pengguna Di Google Play Menggunakan Algoritma Naive Bayes. JATI (Jurnal Mahasiswa Teknik Informatika), 7(1), 478-483. https://doi.org/10.36040/jati.v7i1.6373
Maulana, R., Voutama, A., & Ridwan, T. (2023). Analisis Sentimen Ulasan Aplikasi MyPertamina pada Google Play Store menggunakan Algoritma NBC. Jurnal Teknologi Terpadu, 9(1), 42-48. https://doi.org/10.54914/jtt.v9i1.609
McKinney, W. (2022). Data structures for statistical computing in Python. 2010. In Proceedings of the 9th Python in Science Conference (Vol. 555). https://doi.org/10.25080/Majora-92bf1922-00a
Rahayu, A. S., Fauzi, A., & Rahmat, R. (2022). Komparasi algoritma Naive Bayes dan Support Vector Machine (SVM) pada analisis sentimen Spotify. Jurnal Sistem Komputer dan Informatika (JSON), 4(2), 349. https://doi.org/10.30865/json.v4i2.5398
Rajamani, S. K., & Iyer, R. S. (2023). Machine learning-based mobile applications using Python and Scikit-Learn. In Designing and developing innovative mobile applications (pp. 282-306). IGI Global Scientific Publishing. https://doi.org/10.4018/978-1-6684-8582-8.ch016
Safira, A., & Hasan, F. N. (2023). Analisis Sentimen Masyarakat Terhadap Paylater Menggunakan Metode Naive Bayes Classifier. ZONAsi: Jurnal Sistem Informasi, 5(1), 59-70. https://doi.org/10.31849/zn.v5i1.12856
Septian, W., & Sarimole, F. M. (2024). Komparasi Analisis Sentimen Masyarakat Terhadap Isu Penundaan Pemilu 2024 Pada Twitter Dengan Metode Naive Bayes Dan Support Vector Machine. Jurnal Sains dan Teknologi, 5(3), 890-899. https://doi.org/10.55338/saintek.v5i1.2789
Wiguna, D. P., & Ginting, S. E. (2026). Analisis Sentimen E-Commerce di Indonesia dengan Algoritma Naive Bayes (Studi Kasus Pada Platform Shopee, Tokopedia, Bukalapak, dan Lazada). AICOM: Artificial Intelligence and Computing, 1(04), 109-114. http://jurnal.mifandimandiri.com/index.php/aicom/article/view/995
Zamani, S., & Priyatna, A. (2025). 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








