Comparing Naïve Bayes and SVM for Public Sentiment on Online Gambling Policies

Siti Qomariah, Widya Noviana Noor, Nazwa Risanti

Abstract


Online gambling has become a major digital and social issue in Indonesia, prompting the government to implement various enforcement policies such as website blocking, account suspension, and advertisement filtering. However, illegal gambling content continues to circulate widely on social media platforms, generating diverse public reactions. This study aims to analyze public sentiment toward online gambling policies in Indonesia using Natural Language Processing (NLP) techniques and compare the performance of Naïve Bayes and Support Vector Machine (SVM) algorithms. Data were collected from Twitter (X), Facebook, and Instagram, resulting in 1,110 social media posts. The dataset was processed through text preprocessing, stemming, stopword removal, and TF-IDF feature extraction. To address class imbalance, the Synthetic Minority Oversampling Technique (SMOTE) was applied before model training. The experimental results show that SVM achieved better performance with an accuracy of 91.84%, while Naive Bayes achieved 86.39%. WordCloud and confusion matrix analyses indicate that negative sentiment is dominated by dissatisfaction with slow enforcement and persistent gambling advertisements, whereas positive sentiment reflects public support for stricter regulation. These findings demonstrate that SVM is more effective for Indonesian-language sentiment classification and can support data-driven evaluation of digital governance policies.

Keywords


Sentiment Analysis; Naïve Bayes;Support Vector Machine; Online Gambling; Natural Language Processing

Full Text:

PDF

References


Ahyani, H., Harahap, A. M., Solehudin, E., Adnan, N. I. M., Mutmainah, N., Siripipatthanakul, S., Lousada, S. A. N., Putra, H. M., & Novita, D. (2024). Effectiveness of Law Enforcement Against Online Gambling Practices in Indonesia in Supporting the Achievement of SDGs. Journal of Lifestyle and SDGs Review, 5(1), e03686. https://doi.org/10.47172/2965-730X.SDGsReview.v5.n01.pe03686

Antonius, R., Zulkarnain, A. R., & Irsyad, H. (2024). Pendekatan TF-IDF, SMOTE, dan SVM dalam Klasifikasi Sentimen Masyarakat terhadap Pemblokiran Judi Online. Buletin Ilmiah Informatika Teknologi, 2(3), 115–122.

br Sihotang, P., br Sitanggang, F. D., Azriansyah, N., & Indra, E. (2023). PENERAPAN NATURAL LANGUAGE PROCESSING UNTUK ANALISIS SENTIMEN TERHADAP APLIKASI STREAMING: Bahasa Indonesia. Jurnal Ilmiah Betrik, 14(02 AGUSTUS), 273–282.

Fahrudin, A., Satispi, E., Subardhini, M., Rinda Andayani, R. H., Jayaputra, A., Yuniarti, L., Wijayanti, F., & Suryani, S. (2024). Online gambling addiction: Problems and solutions for policymakers and stakeholders in Indonesia. Journal of Infrastructure, Policy and Development, 8(11), 9077. https://doi.org/10.24294/jipd.v8i11.9077

Feldman, R., & Sanger, J. (n.d.). The Text Mining Handbook: Advanced Approaches to Analyzing Unstructured Data.

Kowalczyk, A. (2017). Support vector machines succinctly. Syncfusion Inc, 317.

Liu, B. (2012). Sentiment Analysis and Opinion Mining. Synthesis Lectures on Human Language Technologies, 5(1), 1–167. https://doi.org/10.2200/S00416ED1V01Y201204HLT016

Medhat, W., Hassan, A., & Korashy, H. (2014). Sentiment analysis algorithms and applications: A survey. Ain Shams Engineering Journal, 5(4), 1093–1113. https://doi.org/10.1016/j.asej.2014.04.011

Miranda, E., Elias, R. A., Kibtiah, T. M., & Permana, A. (2021). Indonesia China Trade Relations, Social Media and Sentiment Analysis: Insight from Text Mining Technique. 2021 1st International Conference on Computer Science and Artificial Intelligence (ICCSAI), 334–339. https://doi.org/10.1109/ICCSAI53272.2021.9609735

Muflih, H. N., Putra, W. H. N., & Arwani, I. (2021). Analisis Sentimen pada Media Sosial Twitter terhadap AturanPemberlakuan Pembatasan Kegiatan Masyarakat Kota Malang denganMetode K-Nearest Neighbor. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 5(10), 4486–4493. http://j-ptiik.ub.ac.id

Pangestu, A. D., & Harahap, L. S. (2024). Analisis Sentimen Terkait Judi Online di Media Sosial Instagram Menggunankan Naïve Bayes. Indonesian Journal of Education and Development Research, 3(1), 556–561.

Putra, Z. D. W. (2022). The Sentiments of Indonesian Urban Citizens Regarding the Lockdown-Like Policy During the COVID-19 Pandemic. International Journal of E-Planning Research, 11(1), 1–20. https://doi.org/10.4018/IJEPR.297515

Sholihat, A., Bei, F., Ainaya, R., Sembiring, F., & Lattu, A. (2022). Twitter Tweet: Sentiment Analysis on Illegal Investment using Naive Bayes Algorithm. 2022 IEEE 8th International Conference on Computing, Engineering and Design (ICCED), 1–5. https://doi.org/10.1109/ICCED56140.2022.10010383

Siregar, R. A., Sari, Y. A., & Indriati, I. (2023). Analisis Sentimen Kebijakan New Normal dengan Menggunakan Automated Lexicon Senti N-Gram. Jurnal Teknologi Informasi Dan Ilmu Komputer, 10(1), 29–34.

Susilowati, E., Sabariah, M. K., & Gozali, A. A. (2015). Implementasi Metode Support Vector Machine untuk Melakukan Klasifikasi Kemacetan Lalu Lintas Pada Twitter. E-Proceeding of Engineering, 2(1), 1478–1484.

Taruk, M., Septiarini, A., & Al Akbar, F. A. (2023). Analisis Sentimen Terhadap Kebijakan Pemerintah Terkait Pandemi Covid-19 Pada Twitter. Jurnal Rekayasa Teknologi Informasi (JURTI), 7(1), 104–112.




DOI: https://doi.org/10.55311/aiocsit.v7i1.381

Refbacks

  • There are currently no refbacks.