Penerapan Naive Bayes untuk Klasifikasi Opini Fans Manchester United pada Media Sosial
Abstract
This study examines the application of the Naïve Bayes algorithm to classify the opinions of Manchester United fans in Indonesian-language comments on YouTube. The diverse linguistic forms found in the comments such as slang, abbreviations, jokes, and sarcasm make manual analysis inefficient and potentially subjective. Data was collected from eight YouTube videos using the YouTube Data API v3 and stored in a MySQL database. Of the 4,886 comments obtained, 1,962 were identified as being in Indonesian. A total of 1,000 comments were used as ground truth, consisting of 400 positive, 300 negative, and 300 neutral comments. The data was divided into 80% training data and 20% test data using a stratified split. The processing stages included text preprocessing, TF-IDF weighting, Naïve Bayes classification, and evaluation using a confusion matrix, accuracy, precision, recall, and F1-score. The test results yielded an accuracy of 92.50%, a macro precision of 92.81%, a macro recall of 92.36%, and a macro F1-score of 92.57%. Of the 1,944 comments successfully classified, positive sentiment dominated at 47.58%, followed by negative at 28.34% and neutral at 24.07%. The web-based system, built using Laravel, PHP, and MySQL, is capable of integrating the processes of data extraction, labeling, classification, evaluation, and result visualization.
Downloads
References
Adhianti, P. D., Solikhin, Riyanto, E., Lutfi, S., & Purwanto, A. (2025). Public Sentiment Analysis of the Indonesian National Football Team on Instagram Using Naive Bayes. Jurnal Teknologi Informasi Dan Komunikasi, 16(2), 192–201. https://doi.org/10.51903/jtikp.v16i2.1539
Agustiranti, T., Kurdiana, A. K. I., Al Ghiffari, B., Juniar, E. D., & Purnama, D. G. (2024). Penerapan Naive Bayes terhadap sentimen analisis media sosial Twitter pengguna Kereta Cepat Jakarta–Bandung (Whoosh). Jurnal Ilmu Komputer Dan Sistem Informasi (JIKOMSI), 7(1), 297–305. https://ejournal.sisfokomtek.org/index.php/jikom
Aprilia, N. W. A. S., & Isnain, A. R. (2024). Analisis sentimen terhadap media sosial Twitter dengan kasus kampanye anti-korupsi di Indonesia menggunakan Naive Bayes. Jurnal Media Informatika Budidarma, 8(2), 695–703. https://doi.org/10.30865/mib.v8i2.7582
Fathonah, F., & Herliana, A. (2021). Penerapan Text Mining analisis sentimen mengenai vaksin COVID-19 menggunakan metode Naïve Bayes. Jurnal Sains Dan Informatika, 7(2), 155–162. https://doi.org/10.34128/jsi.v7i2.331
Ghozali, M. I., Sugiharto, W. H., & Iskandar, A. F. (2023). Analisis sentimen pinjaman online di media sosial Twitter menggunakan metode Naive Bayes. KLIK: Kajian Ilmiah Informatika Dan Komputer, 3(6), 1340–1348. https://doi.org/10.30865/klik.v3i6.936
Hartati, E. (2022). Sistem Informasi Transaksi Gudang Berbasis Website Pada Cv. Asyura. Klik - Jurnal Ilmu Komputer, 3(1), 12–18. https://doi.org/10.56869/klik.v3i1.323
Hasibuan, M. S., Lubis, A. H., & Sari, M. N. (2024). Perbandingan algoritma clustering DBSCAN dan K-Means dalam pengelompokan siswa terbaik. INFOTECH: Jurnal Informatika & Teknologi, 5(2), 301–309. http://jurnal.sttmcileungsi.ac.id/index.php/infotech
Hendra, H., & Riti, Y. F. (2023). Perancangan Dan Implementasi Website Dengan Konsep Ui/Ux Untuk Mengoptimalkan Marketing Perusahaan. Jurnal Informatika Dan Teknik Elektro Terapan, 11(3s1). https://doi.org/10.23960/jitet.v11i3s1.3430
Juniardi, T., & Sugianto, C. A. (2024). Analisis sentimen tim nasional sepak bola Indonesia di turnamen Piala Dunia U-17 Indonesia pada Twitter (X) menggunakan algoritma Naïve Bayes. Jurnal Informatika Dan Teknik Elektro Terapan (JITET), 12(3S1), 3715–3722. https://doi.org/10.23960/jitet.v12i3S1.5188
Kadim, A. A., Hadjariate, L., & Muthia, M. (2023). Implementasi Framework Laravel Dalam Pembuatan Sistem Pencatatan Notula Berbasis Website. Jurnal Sistem Informasi Bisnis, 13(1), 45–51. https://doi.org/10.21456/vol13iss1pp45-51
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
Mauliza, R. N., & Sipayung, Y. R. (2024). Penerapan Text Mining dalam menganalisis pendapat masyarakat terhadap Pemilu 2024 pada media sosial X menggunakan metode Naive Bayes. Technomedia Journal (TMJ), 9(1). https://doi.org/10.33050/tmj.v9i1.2212
Muludi, K., Humam, M. N., Shofiana, D. A., & Syarif, A. (2023). Perbandingan kinerja CNN dan Naïve Bayes pada analisis sentimen performa Manchester United di Twitter. Journal Information Engineering and Educational Technology (JIEET), 7(2), 83–90.
Narulita, S., Nugroho, A., & Abdillah, M. Z. (2024). Diagram Unified Modelling Language (UML) untuk Perancangan Sistem Informasi Manajemen Penelitian dan Pengabdian Masyarakat (SIMLITABMAS). Jurnal Publikasi Sistem Informasi Dan Telekomunikasi, 3, 244–256.
Ni’mah, K., & Archaniga, R. A. (2026). Handling Class Imbalance in Fan Sentiment Analysis: Naïve Bayes with TF-IDF on Instagram and Twitter. Jurnal Teknik Informatika, 19(1), 22–37. https://doi.org/10.15408/jti.v19i1.46733
Normawati, D., & Prayogi, S. A. (2021). Implementasi Naïve Bayes Classifier dan Confusion Matrix pada analisis sentimen berbasis teks pada Twitter. Jurnal Sains Komputer Dan Informatika (J-SAKTI), 5(2), 697–711. https://tunasbangsa.ac.id/ejurnal/index.php/jsakti
Prasetyo, V. P. (2025). Analisis Sentimen Platform YouTube Mengenai Pro Kontra terhadap Naturalisasi Pemain Sepakbola Timnas Indonesia Menggunakan Metode Naïve Bayes. Jurnal Informatika Dan Teknik Elektro Terapan, 13(3), 2225–2232. https://doi.org/10.23960/jitet.v13i3.7235
Sinlae, F., Irwanda, E., Maulana, Z., & Syahputra, V. E. (2024). Penggunaan Framework Laravel dalam Membangun Aplikasi Website Berbasis PHP. Jurnal Siber Multi Disiplin (JSMD), 2(2), 119–132. https://creativecommons.org/licenses/by/4.0/
Siregar, D., Ladayya, F., Albaqi, N. Z., & Wardana, B. M. (2023). Penerapan metode Support Vector Machines (SVM) dan metode Naïve Bayes Classifier (NBC) dalam analisis sentimen publik terhadap konsep child-free di media sosial Twitter. Jurnal Statistika Dan Aplikasinya, 7(1), 93–100. https://doi.org/10.31284/j.jsa.2023.7.1
Yunus, M., Husni, M., & Mufadhdhal, M. M. (2021). Klasifikasi sentimen terhadap Badan Penyelenggara Jaminan Sosial (BPJS) pada media sosial Twitter menggunakan Naive Bayes. SMATIKA: STIKI Informatika Jurnal, 11(2), 81–91. https://doi.org/10.32664/smatika.v11i02.577
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Penerapan Naive Bayes untuk Klasifikasi Opini Fans Manchester United pada Media Sosial
Pages: 1242-1251
Copyright (c) 2026 Muhammad Luthfi Lubis, Aidil Halim Lubis

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













