Sentiment Analysis of the Indonesian National Team in the 2026 World Cup Qualification on Social Media X Using Naive Bayes
Keywords:
Data Mining, Classification, Naïve Bayes, Sentiment Analysis, IndonesiaAbstract
The increasing public attention toward the Indonesian national football team during the 2026 FIFA World Cup qualification has generated diverse opinions on social media X. This study analyzes public sentiment expressed in X posts concerning the Indonesian national team's performance during the qualification period using a Naive Bayes classifier. A total of 1,600 tweets were initially collected using the Tweet Harvest tool with the keyword “Indonesia World Cup 2026 qualification.” After data cleaning, duplicate and missing-value removal, and sentiment labeling using an Indonesian sentiment lexicon, 750 final labeled tweets were used for classification into positive and negative sentiment classes. The data were processed through tokenization, case folding, Indonesian stopword removal, token filtering, and TF-IDF weighting. The Naive Bayes model was evaluated using a 90:10 training-test split and a confusion matrix. On the test set of 75 tweets, the model achieved an accuracy of 68.00%, with a precision of 50.00% and recall of 62.50% for the positive class. The results indicate moderate classification performance rather than consistently high predictive performance. The contribution of this study is to provide an event-specific empirical analysis of sentiment toward the Indonesian national team during the 2026 World Cup qualification and to establish a baseline for sentiment classification using Naive Bayes on Indonesian-language X data. The findings may provide contextual information about sentiments expressed by the analyzed X users, although they should not be interpreted as representing the sentiment of the Indonesian population as a whole.
References
K. Khairunnisa, S. K. Dewi, D. D. Rahmawati, and A. P. Sari, “Analisis Sentimen Komentar Pada Postingan Instagram Akun ‘Standwithus’ Menggunakan Klasifikasi Naive Bayes,” Jurnal Ilmiah Informatika, vol. 12, no. 02, pp. 191–199, Sep. 2024, doi: 10.33884/jif.v12i02.9263.
Rios, Syafriandi Syafriandi, Dony Permana, and Dina Fitria, “Sentiment Analysis about Anti-LGBT Campaign using the Naïve Bayes Classifier,” UNP Journal of Statistics and Data Science, vol. 2, no. 1, pp. 40–47, Feb. 2024, doi: 10.24036/ujsds/vol2-iss1/146.
E. L. Rara and E. Mailoa, “Implementasi Algoritma Naive Bayes Terhadap Analisis Sentimen Perubahan Piala Dunia U-20,” Progresif: Jurnal Ilmiah Komputer, vol. 20, no. 1, p. 259, Feb. 2024, doi: 10.35889/progresif.v20i1.1550.
A. Syafrianto, “Perbandingan Algoritma Naïve Bayes dan Decision Tree Pada Sentimen Analisis,” The Indonesian Journal of Computer Science Research, vol. 1, no. 2, Jul. 2022, doi: 10.59095/ijcsr.v1i2.11.
M. Zainuddin Siregar, A. Marwan Elhanafi, and D. Irwan, “Analisis Sentimen Terhadap Ulasan Aplikasi Media Sosial Di Google Play Menggunakan Algoritma Naive Bayes,” Jati (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 2, pp. 3373–3381, Apr. 2025, doi: 10.36040/jati.v9i2.12841.
T. Y. Pahtoni and H. Jati, “Analisis Sentimen Data Twitter Terkait Chatgpt Menggunakan Orange Data Mining,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 2, pp. 329–336, Apr. 2024, doi: 10.25126/jtiik.20241127276.
H. Vazli and R. R. Suryono, “Komparasi Model Svm, Naïve Bayes, Dan Random Forest Dalam Analisis Sentimen Terhadap Percakapan Publik Tentang Pertamina,” Jipi (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 11, no. 1, pp. 92–105, Feb. 2026, doi: 10.29100/jipi.v11i1.7699.
R. Vetriselvi and R. S. Babu, “Prediction of air quality in smart cities using machine learning algorithms – a review,” 2026, p. 040011. doi: 10.1063/5.0327202.
T. Dwi Wahyuni, W. Lestari, and H. Permatasari, “Analisis Sentimen Ulasan Aplikasi Gofood Di Google Play Store Menggunakan Algoritma Naïve Bayes Classifier Berbasis Term Frequency-Inverse Document Frequency,” Jati (Jurnal Mahasiswa Teknik Informatika), vol. 10, no. 5, pp. 8592–8599, Oct. 2026, doi: 10.36040/jati.v10i5.19423.
M. Kholilullah, M. Martanto, and U. Hayati, “Analisis Sentimen Pengguna Twitter(X) Tentang Piala Dunia Usia 17 Menggunakan Metode Naive Bayes,” Jati (Jurnal Mahasiswa Teknik Informatika), vol. 8, no. 1, pp. 392–398, Feb. 2024, doi: 10.36040/jati.v8i1.8378.
A. Aliyudin and Rianto, “Analisis Sentimen Terhadap Piala Dunia U-20 Yang Batal Diselenggarakan Di Indonesia Pada Media Youtube Dengan Menggunakan Metode Naïve Bayes,” Informasi Interaktif : Jurnal Informatika dan Teknologi Informasi, vol. 8, no. 2, Jun. 2023, doi: 10.37159/jii.v8i2.28.
E. L. Rara and E. Mailoa, “Implementasi Algoritma Naive Bayes Terhadap Analisis Sentimen Perubahan Piala Dunia U-20,” Progresif: Jurnal Ilmiah Komputer, vol. 20, no. 1, p. 259, Feb. 2024, doi: 10.35889/progresif.v20i1.1550.
M. I. Abidin and E. W. Pamungkas, “Analisis Sentimen Terhadap Timnas Indonesia Di Piala Asia 2023 Dengan Model Transformer Berbahasa Indonesia,” Rabit : Jurnal Teknologi dan Sistem Informasi Univrab, vol. 10, no. 2, pp. 482–496, Jul. 2025, doi: 10.36341/rabit.v10i2.6142.
A. Supian, B. Tri Revaldo, N. Marhadi, L. Efrizoni, and R. Rahmaddeni, “Perbandingan Kinerja Naïve Bayes Dan Svm Pada Analisis Sentimen Twitter Ibukota Nusantara,” Jurnal Ilmiah Informatika, vol. 12, no. 01, pp. 15–21, Mar. 2024, doi: 10.33884/jif.v12i01.8721.
D. C. Nugroho, A. D. Agustina, B. Maulana, F. Darussalam, M. Asyraf, and B. O. Lubis, “Penerapan Metode Support Vector Machine Untuk Analisis Sentimen Publik Pada Program Makan Bergizi Gratis,” Infotech journal, vol. 11, no. 2, pp. 474–479, Dec. 2025, doi: 10.31949/infotech.v11i2.16781.
Dede Prabowo Wiguna, Lisda Juliana pangaribuan, and Sakaria Efrata Ginting, “Aplikasi Google Colab Berbasis Python dalam Menerapkan Teori Pohon dengan Algoritma Random Forest Classifier,” Journal of Engineering and Applied Technology, vol. 1, no. 2, pp. 261–270, Dec. 2025, doi: 10.65310/ybbpgv52.
R. Wati, S. Ernawati, and H. Rachmi, “Pembobotan TF-IDF Menggunakan Naïve Bayes pada Sentimen Masyarakat Mengenai Isu Kenaikan BIPIH,” Jurnal Manajemen Informatika (JAMIKA), vol. 13, no. 1, pp. 84–93, Apr. 2023, doi: 10.34010/jamika.v13i1.9424.
I. T. Julianto, “Analisis Sentimen Terhadap Sistem Informasi Akademik Institut Teknologi Garut,” Jurnal Algoritma, vol. 19, no. 1, pp. 449–456, Jul. 2022, doi: 10.33364/algoritma/v.19-1.1112.
M. A. Kurniawan, A. S. Yuniarti, and S. Makin, “Analisis Sentimen AFC U23 Asian Cup 2024 menggunakan Algoritma Naïve Bayes,” Insan Pembangunan Sistem Informasi dan Komputer (IPSIKOM), vol. 12, no. 1, pp. 25–28, Jun. 2024, doi: 10.58217/ipsikom.v12i1.275.
Pramesti Melinea Berlianti and Erwin Yudi Hidayat, “Implementasi Naïve Bayes Classifier untuk Sentimen Produk Kecantikan Berdasarkan Ulasan Female Daily,” The Indonesian Journal of Computer Science, vol. 13, no. 6, Dec. 2024, doi: 10.33022/ijcs.v13i6.4499.
M. K. Khoirul Insan, U. Hayati, and O. Nurdiawan, “Analisis Sentimen Aplikasi Brimo Pada Ulasan Pengguna Di Google Play Menggunakan Algoritma Naive Bayes,” Jati (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 1, pp. 478–483, Mar. 2023, doi: 10.36040/jati.v7i1.6373.
D. Telaumbanua and I. Kurniawati, “Penerapan Algoritma C4.5 Untuk Klasifikasi Kepuasan Pelanggan Pada Jasa Layanan Pengiriman,” JoMMiT : Jurnal Multi Media dan IT, vol. 6, no. 1, Jul. 2022, doi: 10.46961/jommit.v6i1.524.
N. W. Wardani, P. G. S. C. Nugraha, and G. S. Mahendra, “Implementasi Naïve Bayes Pada Data Mining Untuk Mengklasifikasikan Penjualan Barang Terlaris Pada Perusahaan Ritel,” JST (Jurnal Sains dan Teknologi), vol. 12, no. 3, Jan. 2024, doi: 10.23887/jstundiksha.v12i3.38605.





