Sentiment Analysis of Cigarette Use Based on Opinions from X Using Naive Bayes and SVM
Original Full-Text Article
Download published version for reading and archivingAbstract
The research employs Naive Bayes and Support Vector Machine (SVM) classification techniques to analyze attitudes toward cigarette consumption based on Twitter user opinions. Twitter, being one of the most popular social media platforms, serves as an excellent source for gauging public sentiment on various issues, including cigarette smoking, referred to here as "X." The diverse array of opinions poses a challenge for accurate sentiment classification. This study evaluates the effectiveness of the Naive Bayes and SVM algorithms in categorizing sentiment as positive, negative, or neutral. Data is collected through web scraping, and preprocessing steps such as text cleaning, tokenization, and stemming are implemented. The performance of the classification is assessed using metrics like accuracy, precision, recall, and F1-score. The results indicate that SVM outperforms Naive Bayes in sentiment analysis related to cigarette use. These findings provide new insights into public opinion and aim to assist policymakers in developing effective tobacco control strategies.
Keywords:
Author Biographies
Program Studi Teknik Informatika, Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta, Indonesia.
Program Studi Teknik Informatika, Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta, Indonesia.
Program Studi Teknik Informatika, Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta, Indonesia.
Program Studi Teknik Informatika, Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta, Indonesia.
How to Cite
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License .
- Share: You are free to copy, distribute, and transmit the work in any medium or format.
- Adapt: You are free to remix, transform, and build upon the work for any purpose, even commercially.
- Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
References
Total: 12 References- Guia, M., Silva, R. R., & Bernardino, J. (2019). Comparison of Naïve Bayes, Support Vector Machine, Decision Trees and Random Forest on Sentiment Analysis. KDIR, 1, 525-531.
- Husen, R. A., Astuti, R., Marlia, L., Rahmaddeni, R., & Efrizoni, L. (2023). Analisis Sentimen Opini Publik pada Twitter Terhadap Bank BSI Menggunakan Algoritma Machine Learning: Sentiment Analysis of Public Opinion on Twitter Toward BSI Bank Using Machine Learning Algorithms. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 3(2), 211-218. DOI: https://doi.org/10.57152/malcom.v3i2.901.
- Iskandar, J. W., & Nataliani, Y. (2021). Perbandingan Naïve Bayes, SVM, dan k-NN untuk Analisis Sentimen Gadget Berbasis Aspek. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 5(6), 1120-1126.
- Millennianita, F., Athiyah, U., & Muhammad, A. W. (2024). Comparison of Naïve Bayes Classifier and Support Vector Machine Methods for Sentiment Classification of Responses to Bullying Cases on Twitter. Journal of Mechatronics and Artificial Intelligence, 1(1), 11-26.
- Normawati, D., & Prayogi, S. A. (2021). Implementation of Naive Bayes Classifier and Confusion Matrix in Text-Based Sentiment Analysis on Twitter. J-SAKTI (Jurnal Sains Komput. Dan Inform., 5(2), 697-711.
Similar Articles
Articles sharing related keywords and machine learning classifications:
Most read articles by the same author(s)
Other papers published by author(s) in this journal: