Perbandingan Algoritma NBC, SVM, Logistic Regression untuk Analisis Sentimen Terhadap Wacana KaburAjaDulu di Media Sosial X
Abstract
This research aims to analyze sentiment towards KaburAjaDulu discourse on X social media by utilizing Logistic Regression, Support Vector Machine (SVM), and Naive Bayes algorithms. Data was collected through a crawling process and resulted in 3,011 tweet data. Pre-processing stages include data cleaning, conversion of letters to lowercase, normalization, tokenization, stopword removal, and stemming. After preprocessing, the data was divided into two sentiment categories, namely positive and negative using a lexicon approach. The dataset is divided using an 80:20 scheme for training and test data, with feature representation utilizing the TF-IDF method. The modeling process is performed utilizing the three algorithms to be evaluated using accuracy, precision, recall, and f1-score metrics. As a solution to class inequality, the oversampling technique SMOTE (Synthetic Minority Over-sampling Technique) is applied. Based on the evaluation, it shows that before the application of SMOTE, Naive Bayes algorithm obtained 78.18% accuracy, 81.80% precision, 77.06% recall, and 77.35% f1-score; SVM obtained 85.63% accuracy, 86.49% precision, 85.68% recall, and 85.94% f1-score; while Logistic Regression obtained 83.05% accuracy, 85.31% precision, 82.47% recall, and 82.95% f1-score. After applying SMOTE, Naive Bayes improved to 81.90% accuracy, 82.27% precision, 81.67% recall, and 81.87% f1-score; SVM obtained 85.63% accuracy, 87.59% precision, 86.89% recall, and 87.13% f1-score; and Logistic Regression obtained 83.33% accuracy, 84.46% precision, 83.62% recall, and 83.88% f1-score. These findings prove that SVM has the most consistent and superior sentiment classification performance on this dataset, making an important contribution to the development of methods for analyzing people's views on social media platforms.
Downloads
References
P. I. Purnama and R. R. Suryono, “Analisis Sentimen Acara Clash of Champions dengan Algoritma Naïve Bayes dan Support Vector Machine,” BITS, vol. 6, no. 4, pp. 2277–2287, 2025, doi: 10.47065/bits.v6i4.6575.
N. Abelia, K. J. Farah, D. Wibisono, and I. Mahmud, “Dampak Framing Tagar # Kaburajadulu Terhadap Opini Publik dan Kebijakan Sosial di Indonesia,” Filosofi, vol. 2, no. 2, pp. 71–77, 2025, doi: https://doi.org/10.62383/filosofi.v2i2.577.
M. Siahaan, Elisa; Sinulingga, Sania; Damanik, Bea; Ritonga, “Analisis Wacana Kritis Norman Fairclough Terhadap Tagar#Kaburajadulu Dalam Berita Media Daring Kompas.Com Dandetik.Com,” Inov. Pendidik. Nusant., vol. 6, no. 2, pp. 517–531, 2025.
P. Sari, M. Julianty, D. Mirza, N. Nafilah, and S. Zulfachrinal, “Menghadapi Ancaman Nasionalisme Disintegrasi Bangsa di Tengah Trend Kabur Aja Dulu,” JUBPI, vol. 3, no. 2, pp. 193–199, 2025, doi: https://doi.org/10.55606/jubpi.v3i2.3821.
A. M. Rani and N. Hendrastuty, “Perbandingan Algoritma NBC Dan SVM Untuk Melakukan Analisis Sentimen Terhadap PP NO . 82 Tahun 2021,” BITS, vol. 6, no. 4, pp. 2139–2151, 2025, doi: 10.47065/bits.v6i4.6496.
J. S. Hutagalung and Rasiban, “Analisis Sentimen Keuangan (Data Fiqa and Financial Phrasebank) Menggunakan Algoritma Logistic Regression Dan Support Vector Machine,” J. Indones. Manaj. Inform. dan Komun., vol. 4, no. 3, pp. 1654–1669, 2023, doi: 10.35870/jimik.v4i3.404.
R. I. Saputri, S. Khomsah, and N. A. Prasetyo, “Perbandingan Metode Naïve Bayes Classifier Dan Support Vector Machine Untuk Klasifikasi Cyber Harassment Pada Twitter,” Algoritm. J. Ilmu Komput. dan Inform., vol. 8, no. 1, pp. 10–21, 2024, doi: 10.30829/algoritma.v8i1.16601.
G. Natalianus, V. Kurniawan, and N. R. Feta, “Perbandingan Akurasi Algoritma Naïve Bayes Dan Support Vector Machine Dalam Analisis Sentimen Pengguna Twitter Terhadap Aplikasi Sirekap Abstrak,” Fountain Informatics J., vol. 9, no. 2, pp. 11–17, 2024, doi: http://dx.doi.org/10.21111/fij.v9i2.
B. Ramadhani and R. R. Suryono, “Komparasi Algoritma Naïve Bayes dan Logistic Regression Untuk Analisis Sentimen Metaverse,” J. Media Inform. Budidarma, vol. 8, no. 2, pp. 714–725, 2024, doi: 10.30865/mib.v8i2.7458.
A. S. Muliana et al., “Analisis Sentimen Publik terhadap Hasil Pemilu dengan Naïve Bayes pada Media Sosial X Analysis of Public Sentiment on Election Results using Naïve Bayes in Social Media X,” J. Sist. Sist. Inf., vol. 13, no. 6, pp. 2467–2478, 2024, doi: https://doi.org/10.32520/stmsi.v13i6.4592.
R. B. Dahlian and D. Sitanggang, “Sentiment Analysis of Digital Television Migration on Twitter Using Naïve Bayes Multinomial Comparison, Support Vector Machines, and Logistic Regression Algorithms,” J. Sisfokom (Sistem Inf. dan Komputer), vol. 12, no. 2, pp. 280–288, 2023, doi: 10.32736/sisfokom.v12i2.1668.
A. Hagi and D. B. Rarasati, “Sentiment Analysis of Sirekap Application Review Using Logistic Regression Algorithm,” J. Inform., vol. 11, no. 2, pp. 55–64, 2024, doi: 10.31294/inf.v11i2.22066.
V. Agresia, R. R. Suryono, U. T. Indonesia, L. Ratu, and K. B. Lampung, “Comparison Of Svm , Naïve Bayes , And Logistic Regression Algorithms For Sentiment Analysis Of Fraud And Bots In Purchasing Concert Ticket Komparasi Algoritma Svm , Naïve Bayes , Dan Logistic Regression Untuk Analisis Sentimen,” J. INOVTEK Polbeng, vol. 10, no. 2, pp. 591–602, 2025, doi: https://doi.org/10.35314/npyfdh47.
N. Hadi and D. Sugiarto, “Analisis Sentimen Pembangunan IKN pada Media Sosial X Menggunakan Algoritma SVM , Logistic Regression dan Naïve Bayes,” JPIT, vol. 10, no. 1, pp. 37–49, 2025, doi: 10.30591/jpit.v10i1.7106.
Tommy Suhendra, B. Intan, and A. T. Martadinata, “Analisis Sentimen Pengguna Aplikasi Netflix Pada Ulasan Google Playstore Menggunakan Metode Naïve Bayes,” ESCAF 3rd, vol. 2, no. 2, pp. 1011–1022, 2024, doi: 10.47065/bits.v6i2.5528.
E. Triningsih, M. Afdal, I. Permana, and N. E. Rozanda, “Analisis Sentimen Terhadap Program Makan Bergizi Gratis Menggunakan Algoritma Machine Learning Pada Sosial Media X,” BITS, vol. 6, no. 4, pp. 2240–2250, 2025, doi: 10.47065/bits.v6i4.6534.
L. Kencono and D. Darwis, “Perbandingan Algoritma NBC , SVM dan Random Forest untuk Analisis Sentimen Implementasi Starlink pada Media Sosial X,” BITS, vol. 6, no. 4, pp. 2288–2300, 2025, doi: 10.47065/bits.v6i4.6813.
A. R. Ismail and Raden Bagus Fajriya Hakim, “Implementasi Lexicon Based Untuk Analisis Sentimen Dalam Menentukan Rekomendasi Pantai Di DI Yogyakarta Berdasarkan Data Twitter,” Emerg. Stat. Data Sci. J., vol. 1, no. 1, pp. 37–46, 2023, doi: 10.20885/esds.vol1.iss.1.art5.
F. Nurwanda and J. R. Rizkiani, “Perbandingan Metode Naive Bayes Classifier dan Support Vector Machine pada Analisis Sentimen Twitter Topik Lifestyle,” J. Ilm. Wahana Pendidik., vol. 9, no. 21, pp. 314–323, 2023, [Online]. Available: https://doi.org/10.5281/zenodo.10077023
T. A. Dewi and E. Mailoa, “Perbandingan Implementasi Metode Smote Pada Algoritma Support Vector Machine (Svm) Dalam Analisis Sentimen Opini Masyarakat Tentang Mixue,” J. Indones. Manaj. Inform. dan Komun., vol. 4, no. 3, pp. 849–855, 2023, doi: 10.35870/jimik.v4i3.289.
N. Wijaya and E. S. Panjaitan, “Analisis Sentimen Ulasan Aplikasi Instagram di Google Play Store : Pendekatan Multinomial Naive Bayes dan Berbasis Leksikon,” BITS, vol. 6, no. 2, pp. 921–929, 2024, doi: 10.47065/bits.v6i2.5615.
S. Agustian and A. Nazir, “Klasifikasi Sentimen Terhadap Pengangkatan Kaesang Sebagai Ketua Umum Partai PSI Menggunakan Metode Support Vector Machine,” Technol. Sci., vol. 6, no. 1, pp. 216–225, 2024, doi: 10.47065/bits.v6i1.5340.
S. D. Simamora, F. Irwiensyah, and F. N. Hasan, “Analisis Sentimen Terkait Konflik Palestina-Israel Pada Media Sosial X Menggunakan Algoritma Naïve Bayes Classifier,” Build. Informatics, Technol. Sci. Vol. 6, vol. 6, no. 1, pp. 146–157, 2024, doi: 10.47065/bits.v6i1.5344.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Perbandingan Algoritma NBC, SVM, Logistic Regression untuk Analisis Sentimen Terhadap Wacana KaburAjaDulu di Media Sosial X
Pages: 169-178
Copyright (c) 2025 Adib Annur Rohman, Gustina Alfa Trisnapradika

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).





















