Sentiment Analysis on Twitter Social Media towards Najwa Shihab Using Naïve Bayes Algorithm and Support Vector Machine (SVM)

Authors

  • Fahruzi Sirait Information Systems, Faculty of Computer Science, Ika Bina Institute of Technology and Health
  • Desi Irpan Information Technology, Faculty of Computer Science, Ika Bina Institute of Technology and Health
  • Riszki Fadillah Information Technology, Faculty of Computer Science, Ika Bina Institute of Technology and Health
  • Rizalina Rizalina Information Systems, Faculty of Computer Science, UPI YPTK Padang
  • Riswan Syahputra Damanik Information Systems, Faculty of Computer Science, Ika Bina Institute of Technology and Health

DOI:

https://doi.org/10.55227/ijhet.v3i1.280

Keywords:

Sentiment analysis, Naïve Bayes, Support Vector Machine (SVM), public opinion, Twitter.

Abstract

With the rapid growth of digital technology, social media has become a key platform for sharing information and opinions. Twitter, one of the most popular platforms in Indonesia, enables users to interact directly with public figures such as Najwa Shihab. This study aims to analyze public sentiment toward Najwa Shihab on Twitter using sentiment analysis, specifically employing the Naïve Bayes and Support Vector Machine (SVM) algorithms. Sentiment analysis is essential to understanding public opinion, as it classifies text into categories like positive, negative, or neutral, providing valuable insights into societal perspectives on public figures. In this study, 10,000 tweets related to Najwa Shihab were collected from January 1, 2023, to January 31, 2023. Data preprocessing steps such as data cleaning, tokenization, stopwords removal, and filtering were conducted to ensure high-quality data for analysis. The Naïve Bayes and SVM algorithms were applied using RapidMiner to classify the sentiment of the tweets. The performance of both algorithms was evaluated based on accuracy, precision, recall, and F1-score.The results revealed that SVM outperformed Naïve Bayes in all metrics, demonstrating its superior ability to classify sentiments correctly. The sentiment distribution indicated a majority of positive opinions toward Najwa Shihab, with fluctuations in negative sentiment during specific events. This study provides insights into public sentiment analysis and contributes to understanding social media opinions on public figures.

Downloads

Download data is not yet available.

References

Blei, D. M., Ng, A. Y., & Lafferty, J. D. (2003). Latent Dirichlet Allocation. Journal of Machine Learning Research, 3, 993–1022.Cover, T., & Hart, P. (1967). Nearest Neighbor Pattern Classification. IEEE Transactions on Information Theory, 13(1), 21–27.

Joachims, T. (1998). Text Categorization with Support Vector Machines: Learning with Many Relevant Features. Proceedings of the 10th European Conference on Machine Learning, 137-142Liu, B. (2012). Sentiment Analysis and Opinion Mining. Synthesis Lectures on Human Language Technologies, 5(1), 1–167.

Manning, C. D., Raghavan, P., & Schütze, H. (2008). Introduction to Information Retrieval. Cambridge University Press.

Mohammad, S. M., Kiritchenko, S., & Zhu, X. (2013). Sentiment Analysis of Twitter Data. Proceedings of the 2013 IEEE International Conference on Social Computing, 80-88Riyanto, A. (2022). Perkembangan Pngguna Media Sosial di Indonesia. We Are School Survey.

Pang, B., & Lee, L. (2008). Opinion Mining and Sentiment Analysis. Foundations and Trends in Information Retrieval, 2(1-2), 1–135.

Prasetyo, D. (2019). Pengaruh Opini Publik di Media Sosial Terhadap Penerimaan Program Pemerintah. Jurnal Ilmu Komunikasi, 12(1), 5–19.

Rish, I. (2001). An Empirical Study of the Naive Bayes Classifier. Proceedings of the 19th International Conference on Machine Learning, 4.

Quinlan, J. R. (1993). C4.5: Programs for Machine Learning. Morgan Kaufmann Publishers.

Senthilkumar, T., & Srinivasan, S. (2020). Comparison of Naive Bayes and SVM for Sentiment Analysis on Social Media. International Journal of Computer Science and Information Security, 18(12), 15–23.

Sugianto, A., & Maulana, R. (2019). Perbandingan Algoritma Data Mining pada Klasifikasi Penerima Bantuan Sosial. Jurnal Teknik Informatika, 10(1), 23–30.

Yang, Y., & Liu, X. (1999). A Re-examination of Text Categorization Methods. Proceedings of the 22nd Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 42–49.

Turney, P. D., & Littman, M. L. (2003). Measuring Praise and Criticism: Inference of Semantic Orientation from Association. ACM Transactions on Information Systems, 21(4), 315–346.

Downloads

Published

2025-05-20

How to Cite

Fahruzi Sirait, Desi Irpan, Riszki Fadillah, Rizalina Rizalina, & Riswan Syahputra Damanik. (2025). Sentiment Analysis on Twitter Social Media towards Najwa Shihab Using Naïve Bayes Algorithm and Support Vector Machine (SVM). International Journal of Health Engineering and Technology, 3(1). https://doi.org/10.55227/ijhet.v3i1.280

Issue

Section

Technology