Analisis Perbandingan Algoritma Naïve Bayes dan Support Vector Machine dalam Klasifikasi Opini dan Fakta pada Berita Banjir Sumatera
DOI:
https://doi.org/10.35870/jtik.v11i1.7526Keywords:
Text Mining, Naïve Bayes, Support Vector Machine, TF-IDF, News ClassificationAbstract
The rapid growth of online media has accelerated the dissemination of information related to flood disasters, creating the need for an automatic method to classify news into factual and opinion categories. This study aims to compare the performance of the Naïve Bayes and Support Vector Machine (SVM) algorithms in classifying factual and opinion-based news on flood events in Sumatra using Term Frequency–Inverse Document Frequency (TF-IDF) weighting. The research employed several text preprocessing stages, including cleaning, case folding, tokenization, stopword removal, and stemming, followed by TF-IDF weighting, classification, and model evaluation using accuracy, precision, recall, and F1-score. The experimental results showed that the Naïve Bayes algorithm achieved an accuracy of 92.34%, outperforming the Support Vector Machine algorithm, which achieved an accuracy of 91.88%. In addition, Naïve Bayes obtained higher precision, recall, and F1-score values for the opinion class. These findings indicate that Naïve Bayes is more effective than Support Vector Machine in classifying factual and opinion-based news related to flood events in Sumatra.
Downloads
References
Agustin, Y. H., Mulyani, N. C., & Prasetya, W. S. (2025). Analisis sentimen opini publik menggunakan algoritma Naïve Bayes dan TF-IDF. Jurnal Algoritma, 22(2), 1373–1384.
Bangun, E. P., Koagouw, F. V. I. A., & Kalangi, J. S. (2019). Analisis isi unsur kelengkapan berita pada media online ManadoPostOnline.com. Jurnal Ilmiah, 1(1), 1–13.
Darwis, D., Siskawati, N., & Abidin, Z. (2021). Penerapan algoritma Naïve Bayes untuk analisis sentimen review data Twitter BMKG Nasional. Jurnal Tekno Kompak, 15(1), 131–145.
Deolika, A., Kusrini, & Luthfi, E. T. (2019). Analisis pembobotan kata pada klasifikasi text mining. Jurnal Teknologi Informasi, 3(2), 179–184.
Habib, S. M., Haerani, E., Gusti, S. K., & Ramadhani, S. (2022). Klasifikasi berita menggunakan metode Naïve Bayes classifier. Jurnal Nasional Komputasi dan Teknologi Informasi, 5(2), 248–258.
Hermawan, L., & Ismiati, M. B. (2020). Pembelajaran text preprocessing berbasis simulator untuk mata kuliah information retrieval. TRANSFORMATIKA, 17(2), 188–199.
Khairunnisa, S., Adiwijaya, A., & Al Faraby, S. (2021). Pengaruh text preprocessing terhadap analisis sentimen komentar masyarakat pada media sosial Twitter (studi kasus pandemi COVID-19). Jurnal Media Informatika Budidarma, 5(2), 406–414.
Kowsari, K., Meimandi, K. J., Heidarysafa, M., Mendu, S., Barnes, L. E., & Brown, D. E. (2019). Text classification algorithms: A survey. Information, 10(4), Article 150. https://doi.org/10.3390/info10040150.
Krisnandi, D., Ambarwati, R. N., Asih, A. Y., Ardiansyah, A., & Pardede, H. F. (2023). Analisis komentar cyberbullying terhadap kata yang mengandung toksisitas dan agresi menggunakan bag of words dan TF-IDF dengan klasifikasi SVM. Jurnal Linguistik Komputasional, 6(2), 36–41.
Lestari, R., Sudiyana, B., & Wahyuni, T. (2019). Fakta dan opini dalam teks tajuk rencana pada surat kabar Kompas. KLITIKA: Jurnal Ilmiah Pendidikan Bahasa dan Sastra Indonesia, 1(1), 1–10.
Mettler, M., & Mondak, J. J. (2024). Fact-opinion differentiation. Harvard Kennedy School Misinformation Review, 5(2). https://doi.org/10.37016/mr-2020-136.
Nanda, R., Haerani, E., Gusti, S. K., & Ramadhani, S. (2022). Klasifikasi berita menggunakan metode support vector machine. Jurnal Nasional Komputasi dan Teknologi Informasi, 5(2), 269–278.
Putri, A. K., & Nur, D. I. (2023). Penggunaan bahasa Python untuk analisis dan visualisasi data penduduk di Desa Sumberjo, Nganjuk. KARYA: Jurnal Pengabdian kepada Masyarakat, 3(3), 206–217.
Rahmatika, N., & Prisanto, G. F. (2022). Pengaruh berita clickbait terhadap kepercayaan pada media di era attention economy. Avant Garde, 10(2), 190–200.
Shidiq, M. F. A., & Alita, D. (2025). Analisis sentimen masyarakat terhadap kasus judi online menggunakan data dari media sosial X pendekatan Naïve Bayes dan SVM. Jurnal Sistem Informasi dan Informatika (SIMIKA), 8(1), 24–35.
Downloads
Published
Issue
Section
License
Copyright (c) 2027 Dessy Natalia Reba, Lilis Indrayani, Christian Dwi Suhendra

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.
