Sentiment Analysis of Indonesian National Team in 2024 AFF Using Naive Bayes and KNN

Authors

  • Rahmad Adrian Universitas Jambi, Indonesia
  • Reni Aryani Universitas Jambi, Indonesia
  • Zainil Abidin Universitas Jambi, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v5i2.7111

Keywords:

AFF Cup 2024, Indonesian National Team, K-Nearest Neighbors, Naive Bayes, Sentiment Analysis, SMOTE, TF-IDF

Abstract

Social media platforms like Twitter (now X) serve as key channels for public opinion on major events, including sports tournaments such as the AFF Cup, where sentiments reflect nationalism, criticism, and support. Prior studies have highlighted varying accuracies in sentiment classification for Indonesian football contexts, prompting comparisons of algorithms like Naive Bayes and K-Nearest Neighbors (KNN). This research aims to analyze public sentiment directions towards the Indonesian National Team during the 2024 AFF Cup and compare the performance of Naive Bayes and KNN algorithms. Data comprised 1,918 tweets collected from December 8, 2024, to January 8, 2025, reduced to 1,598 unique entries after preprocessing (cleaning, case folding, tokenizing, filtering, stemming). Sentiments were labeled as positive, negative, or neutral by linguistic experts. TF-IDF vectorized features, and SMOTE addressed class imbalance. Models were trained on 90:10 data splits and evaluated using accuracy, precision, recall, and F1-score, with visualizations including frequency diagrams and word clouds. Neutral sentiments dominated at 49.6%, followed by negative (27.3%) and positive (23.2%). Naive Bayes with SMOTE achieved 79.38% accuracy, outperforming KNN (50-53%). Word clouds revealed supportive terms in positives ("garuda", "semangat"), critical in negatives ("kalah", "pecat"), and factual in neutrals ("indonesia", "piala"). Naive Bayes proves more effective for this dataset, offering insights for team management. Future work should explore advanced models like SVM or BERT and expand data sources for broader generalization.

References

Adharani, S. K., Kacung, S., & Vitianingsih, A. V. (2025). Sentiment analysis on Indonesian national football team naturalization using KNN and SVM. Edumatic: Jurnal Pendidikan Informatika, 9(1), 189-197. https://doi.org/10.29408/edumatic.v9i1.29653

Fadila, M. I., & Hartanto, A. D. (2023). Sentiment analysis of the Indonesian national team in the 2020 AFF Cup using Naïve Bayes and K-Nearest Neighbor algorithms. Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi, 8(1), 1-6.

Firdaus, S., Fadillah, U., & Ramadhani, A. (2023). Tiktok sebagai media sosial dalam melakukan kritik terhadap pembangunan di Lampung. Indonesian Journal of Social Development, 1(2), 13-13.

Ismail, A., Munsi, H., & Purwanto, S. A. (2025). Constructing national identity: Media narratives on the naturalization of football players in Indonesia. Frontiers in Sports and Active Living, 7, Article 1595501. https://doi.org/10.3389/fspor.2025.1595501

Jaya, D. R. P., & Lestari, S. (2024). Analisis sentimen naturalisasi tim nasional Indonesia U-23 di era Shin Tae-yong menggunakan algoritma Naïve Bayes dan K-Nearest Neighbors. Jurnal Indonesia: Manajemen Informatika dan Komunikasi, 5(3), 3262-3277.

Lubis, F. Z., & Kurniawan, R. (2025). Sentiment analysis towards naturalization of Indonesian National Team Players on social media x using the Naive Bayes method. Jurnal Mandiri IT, 14(1), 208-218. https://doi.org/10.35335/mandiri.v14i1.412

Mubaroq, F., & Widodo, A. (2022). Analisis faktor keterampilan bermain sepak bola tim nasional Indonesia pada pertandingan final AFF Suzuki Cup 2020. Jurnal Kesehatan Olahraga, 10(4), 63-72.

Oktaviani, S. T., & Baturohmah, H. (2023). Sentimen analisis pengguna Twitter Indonesia terhadap Piala Dunia 2022 menggunakan metode Naïve Bayes Classifier. Prosiding Seminar Nasional Sistem Informasi dan Manajemen Informatika Universitas Nusa Putra, 3, 45-52.

Panggabean, S., Siregar, M. F., & Lubis, A. R. (2024). Perubahan sentimen publik terhadap calon gubernur Sumatera Utara tahun 2024 berdasarkan data Twitter: Pendekatan Naive Bayes. MAJAMATH: Jurnal Matematika dan Pendidikan Matematika, 7(2), 115-128.

Polito, R. R. (2024). Dampak strategi kampanye digital Prabowo Subianto terhadap penentuan pemilihan oleh mahasiswa UIN Suska Riau pada Pemilu 2024. Jurnal Penelitian Ilmu Humaniora, 7(12), 1-15.

Pratama, A. E., Ariesta, A., & Gata, G. (2022). Analisis sentimen masyarakat terhadap tim nasional Indonesia pada Piala AFF 2020 menggunakan algoritma K-Nearest Neighbors. Jurnal TICOM: Technology of Information and Communication, 10(3), 187-196. https://doi.org/10.47709/ticom.v10i3.9012

Puteri Ramadhani. (2023). Analisis Sentimen dan Topic Modelling Terhadap Tim Nasional Indonesia di Kejuaraan AFF Suzuki Cup 2020 Berdasarkan Opini Pengguna Twitter. Jurnal Ilmiah Sistem Informasi dan Sains, 2(2), 1-10.

Saputra, R. (2023). Sentiment analysis of Indonesian football on Twitter by using K-Nearest Neighbors and Random Forest. Jurnal Universitas Mercu Buana, 4(1), 45-56.

Supriyanto, J., Alita, D., & Isnain, A. R. (2023). Penerapan algoritma K-Nearest Neighbor (K-NN) untuk analisis sentimen publik terhadap pembelajaran daring. Jurnal Informatika dan Rekayasa Perangkat Lunak, 4(1), 74-80. https://doi.org/10.33365/jatika.v4i1.2468

Swarsih, I., Sofian, S., Handoko, J. T., & Hasibuan, M. (2023). Analisis sentimen tingkat kepuasan pelanggan terhadap layanan kurir J & T Express menggunakan algoritma Support Vector Machine (SVM) berdasarkan ulasan pengguna di Google Playstore. Konferensi Nasional Komputer, 3.

Yudisthira, T. R., & Hasugian, A. H. (2025). Analysis of public sentiment towards naturalized players in the Indonesian national team using the Naïve Bayes method. Jurnal Riset Informatika, 7(4), 299-306. https://doi.org/10.34288/jri.v7i4.398

Yulita, W., Nugroho, E. D., & Algifari, M. H. (2021). Analisis sentimen terhadap opini masyarakat tentang vaksin covid-19 menggunakan algoritma naïve bayes classifier. Jurnal Data Mining dan Sistem Informasi, 2(2), 1-9.

Downloads

Published

2025-10-31

How to Cite

Adrian, R., Aryani, R., & Abidin, Z. (2025). Sentiment Analysis of Indonesian National Team in 2024 AFF Using Naive Bayes and KNN. Brilliance: Research of Artificial Intelligence, 5(2), 981–986. https://doi.org/10.47709/brilliance.v5i2.7111

Similar Articles

<< < 11 12 13 14 15 16 17 18 19 20 > >> 

You may also start an advanced similarity search for this article.