IMPLEMENTASI ALGORITMA NAÏVE BAYES PADA SENTIMEN PUBLIK TERHADAP SOLUSI MENGHADAPI RESESI DI INDONESIA
DOI:
https://doi.org/10.31949/infotech.v11i2.16723Abstract
A recession is a condition in which economic activity declines significantly, characterized by a weakening Gross Domestic Product, decreasing household income, and rising unemployment rates. This condition triggers diverse public opinions, prompting this study to analyze public sentiment toward proposed solutions for addressing a potential recession in Indonesia through YouTube comments. A total of 1,204 comments were collected via web scraping and processed through several preprocessing stages, including cleansing, normalization, tokenization, stopword removal, and stemming. The cleaned data were then converted into numerical representation using TF-IDF and classified using the Naïve Bayes algorithm. Evaluation was carried out using accuracy, precision, recall, F1-score, and confusion matrix metrics. The results show that the model performed well, with evaluation scores ranging from 0.81 to 0.82 and a majority of predictions being correct. The sentiment analysis also revealed a dominance of negative comments, approximately 700 comments, while 504 comments were categorized as positive. These findings demonstrate that Naïve Bayes is effective in classifying public opinions related to recession issues and can serve as a foundation for further studies in the field of digital economic analysis.
Keywords:
Analisis sentimen, Naive Bayes, resesi, youtubeDownloads
References
Andriani, A., Sinaga, B. C., Hasana, D. N., Program, M., Sistem, S., Tinggi, S., & Informatika, M. (2024). Penerapan Algoritma K-Means Penjualan Produk Dettol Untuk Mengklasifikasikan. 1(1), 1–8.
Aulia, M. D., & Akbar, Y. (2025). Penerapan Algoritma Naive Bayes dalam Sistem Analisis Sentimen Media Sosial X terhadap Film Agak Laen. Jurnal Indonesia : Manajemen Informatika Dan Komunikasi, 6(3), 1958–1967. https://doi.org/10.63447/jimik.v6i3.1608
Chendra, A., Simanjuntak, K. G., Widjaja, A. E., & Suryasari. (2019). Memfasilitasi Proses Adopsi Anjing Berbasis Web. Jurnal Ilmiah MATRIK, 21(July), 0–10.
Gustini, F. F. F. R. N. F. R. A. E. R. D. R. (2023). Resesi Ekonomi dan Implikasinya pada Masa Pandemi Covid-19. September, 1–17. https://doi.org/10.11111/nusantara.xxxxxxx
Hidayat, T., Cahyana, R., & Julianto, I. T. (2024). Analisis Sentimen Layanan Sistem Informasi Akademik Mahasiswa Menggunakan Algoritma Naive Bayes. Jurnal Algoritma, 21(1), 119–130. https://doi.org/10.33364/algoritma/v.21-1.1514
Juliani, N. K., Iswari, N. M. S., & Utami, N. W. (2014). PENERAPAN DATA MINING UNTUK MENENTUKAN KELAYAKAN KENDARAAN SEPEDA MOTOR BEKAS MENGGUNAKAN ALGORITMA C4.5. 11(2), 1–5.
Alfaridzy, M. A., Haerani, E., Jasril, & Oktavia, L. (2025). KLASIFIKASI SENTIMEN MASYARAKAT TERHADAP EFISIENSI ANGGARAN PEMERINTAH MENGGUNAKAN METODE NAÏVE BAYES CLASSIFIER. 6, 169–182.
Misrun, C. A. (2024). ANALISIS SENTIMEN KOMENTAR YOUTUBE TERHADAP ANIES BASWEDAN SEBAGAI BAKAL CALON PRESIDEN 2024 MENGGUNAKAN METODE NAIVE BAYES CLASSIFIER.
Naraswati, N. P. G., Cindy Rosmilda, D., Desinta, D., Khairi, F., Damaiyanti, R., & Nooraeni, R. (2021). Analisis Sentimen Publik dari Twitter Tentang Kebijakan Penanganan Covid-19 di Indonesia dengan Naive Bayes Classification. Jurnal Sistem Informasi, 10(1), 228–238. http://sistemasi.ftik.unisi.ac.id
Proboningrum, S., & Sidauruk, A. (2021). SISTEM PENDUKUNG KEPUTUSAN PEMILIHAN SUPPLIER KAIN DENGAN METODE MOORA. Jurnal Sistem Informasi, 8(1), 43–48.
Rianda, C. N. (2023). Analisis Dampak Resesi Ekonomi Bagi Masyarakat. AL-IQTISHAD : Jurnal Perbankan Syariah Dan Ekonomi Islam, 1(1), 1–7. https://doi.org/10.47498/iqtishad.v1i1.2211
Riskawati, R., Fatihanursari, F., Iin, I., & Rizki Rinaldi, A. (2024). Penerapan Metode Naïve Bayes Classifier Pada Analisis Sentimen Aplikasi Gopay. JATI (Jurnal Mahasiswa Teknik Informatika), 8(1), 346–353. https://doi.org/10.36040/jati.v8i1.8699
Ritonga, S. W., Yusra, Fikry, M., & Cynthia, E. P. (2020). KLASIFIKASI SENTIMEN MASYARAKAT DI TWITTER TERHADAP GANJAR PRABOEO DENGAN METODE NAIVE BAYES CLASSIFIER. Jurnal Ekonomi Volume 18, Nomor 1 Maret201, 2(1), 41–49.
Sri, L., & Safira, B. (2024). Analisis Sentimen Masyarakat Terhadap Isu Pecat Sri Mulyani Pada Twitter Menggunakan Metode Naive Bayes Dan Support Vector Machine. Jurnal Sains Dan Teknologi, 5(3), 2024. https://doi.org/10.55338/saintek.v5i1.2789
Sriani, Lubis, A. H., & Harahap, Y. F. (2023). Analisis Sentimen Masyarakat Terhadap Resesi Ekonomi Global 2023 Menggunakan Algoritma Naïve Bayes Classifier. Jurnal Ilmiah Elektronika Dan Komputer, 16(2), 442–450. http://journal.stekom.ac.id/index.php/elkompage442
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Nasywa Mutia Efendi, Muhammad Ryan Adam Saputra, Dian Srikandi, Septiana Girsang, Rizky Maulana Dzuhry, Mohamad Andi Budiono

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.





