Perbandingan Algoritma Naive Bayes dan Logistic Regression untuk Analisis Sentimen Pilgub Jatim 2024
DOI:
https://doi.org/10.29407/5pr0py87Abstract
Media sosial X (Twitter) menjadi sumber utama opini publik untuk peristiwa politik seperti Pilgub Jawa Timur 2024. Penelitian ini penting untuk memahami persepsi publik secara akurat. Metode yang digunakan adalah membandingkan kinerja algoritma Naive Bayes dan Logistic Regression untuk analisis sentimen pada dataset 2080 tweet yang dikumpulkan melalui crawling. Data melalui tahap prapemrosesan sebelum diklasifikasi menjadi sentimen positif, negatif, dan netral. Hasil penelitian menunjukkan Logistic Regression lebih unggul dengan akurasi 87%, dibandingkan Naive Bayes dengan akurasi 85%. Keunggulan ini juga diperkuat oleh F1-Score rata-rata yang lebih tinggi. Temuan ini menegaskan bahwa Logistic Regression lebih efektif untuk analisis sentimen politik lokal, memberikan landasan data yang kuat bagi perumusan strategi kampanye.
Keywords:
Analisis Sentimen, Logistic Regression, Media Sosial, Naive Bayes, Pemilihan Gubernur##plugins.themes.default.displayStats.downloads##
References
[1] D. Khurana, A. Koli, K. Khatter, and S. Singh, “Natural language processing: state of the art, current trends and challenges,” Multimed Tools Appl, vol. 82, no. 3, 2023, doi: 10.1007/s11042-022-13428-4.
[2] A. Perdana, A. Hermawan, and D. Avianto, “Analisis Sentimen Terhadap Isu Penundaan Pemilu di Twitter Menggunakan Naive Bayes Clasifier,” Jurnal Sisfokom (Sistem Informasi dan Komputer), vol. 11, no. 2, 2022, doi: 10.32736/sisfokom.v11i2.1412.
[3] Fathir, M. A. Hariyadi, and Y. Miftachul A, “ANALISIS SENTIMEN ARTIKEL BERITA PEMILU BERBASIS METODE KLASIFIKASI,” Jurnal Indonesia : Manajemen Informatika dan Komunikasi, vol. 4, no. 2, 2023, doi: 10.35870/jimik.v4i2.220.
[4] S. N. Listyarini and D. A. Anggoro, “Analisis Sentimen Pilkada di Tengah Pandemi Covid-19 Menggunakan Convolution Neural Network (CNN),” Jurnal Pendidikan dan Teknologi Indonesia, vol. 1, no. 7, 2021, doi: 10.52436/1.jpti.60.
[5] M. Tegar Lazuardi, T. Suprapti, and Y. Arie Wijaya, “PERANCANGAN MODEL SENTIMEN TWEET TERHADAP PILKADA DKI JAKARTA TAHUN 2017 MENGGUNAKAN ALGORITMA NAÏVE BAYES,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 1, 2023, doi: 10.36040/jati.v7i1.6328.
[6] R. A. Husen, R. Astuti, L. Marlia, R. Rahmaddeni, and L. Efrizoni, “Analisis Sentimen Opini Publik pada Twitter Terhadap Bank BSI Menggunakan Algoritma Machine Learning,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 3, no. 2, 2023, doi: 10.57152/malcom.v3i2.901.
[7] H. Hafizah, T. Tugiono, and A. Azlan, “Sistem Pakar Untuk Pendiagnosaan Karies Gigi Menggunakan Teorema Bayes,” J-SISKO TECH (Jurnal Teknologi Sistem Informasi dan Sistem Komputer TGD), vol. 4, no. 1, 2021, doi: 10.53513/jsk.v4i1.2625.
[8] R. Hayami, Soni, and I. Gunawan, “Klasifikasi Jamur Menggunakan Algoritma Naïve Bayes,” Jurnal CoSciTech (Computer Science and Information Technology), vol. 3, no. 1, 2022, doi: 10.37859/coscitech.v3i1.3685.
[9] Erlin, Yulvia Nora Marlim, Junadhi, Laili Suryati, and Nova Agustina, “Deteksi Dini Penyakit Diabetes Menggunakan Machine Learning dengan Algoritma Logistic Regression,” Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 11, no. 2, 2022, doi: 10.22146/jnteti.v11i2.3586.
[10] F. Marleny, Muhammad Fitriansyah, Sa’adah, Winda Astria Nuansa Saputri, Rudy Ansari, and Mambang, “Segmentasi Citra Keretakan Dinding Beton Menggunakan Teknik Perbandingan Evaluasi Metrik,” TEMATIK, vol. 10, no. 1, 2023, doi: 10.38204/tematik.v10i1.1261.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Fajar Wahyuardha Putra, Ahmad Bagus Setiawan, Danang Wahyu Widodo

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution 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.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License