Analisis Sentimen Opini Masyarakat Terhadap Vaksinasi Booster COVID-19 Dengan Perbandingan Metode Naive Bayes, Decision Tree dan SVM

  • Rima Tamara Aldisa * Mail Universitas Nasional, Jakarta, Indonesia
  • Pandu Maulana Universitas Indonesia, Depok, Indonesia
  • (*) Corresponding Author
Keywords: Pandemic; Booster; Sentiment Analysis; Naive Bayes; Twitter


The impact of the COVID-19 pandemic is very broad, especially in Indonesia. In early 2022, Indonesia entered the early stages of recovering conditions caused by the pandemic. The government has an option for the community to carry out a third dose of vaccination (booster). However, there are a number of pros and cons in the community regarding the booster vaccine. This study aims to conduct sentiment analysis related to public opinion on the COVID-19 booster vaccination in Indonesia with Naive Bayes model. The data source used comes from Twitter. The workflow of this research includes data crawling, labeling, preprocessing, dataset sharing, and model testing and comparison with other models, namely Decision Tree and SVM. The results of this study indicate that the largest AUC score falls to the SVM model (75.40%), but for more accurate precision falls to the Naive Bayes model (83.81%). In addition, there is a confusion matrix which shows that the Naive Bayes model trial is running well.


Download data is not yet available.


D. F. Murad, R. Hassan, Y. Heryadi, B. D. Wijanarko, and Titan, “The Impact of the COVID-19 Pandemic in Indonesia (Face to face versus Online Learning),” Proceeding - 2020 3rd Int. Conf. Vocat. Educ. Electr. Eng. Strength. Framew. Soc. 5.0 through Innov. Educ. Electr. Eng. Informatics Eng. ICVEE 2020, pp. 4–7, 2020, doi: 10.1109/ICVEE50212.2020.9243202.

N. A. Heartman, Y. Thahira, R. R. Ovelin and A. Helen, "Comparison of Adolescent Vaccination Data Accuracy by Urban Village in DKI Jakarta Province in July 2021 Using Several Data Mining Methods," 2021 International Conference on Artificial Intelligence and Big Data Analytics, 2021, pp. 82-87, doi: 10.1109/ICAIBDA53487.2021.9689724.

Kementerian Kesehatan Republik Indonesia, “Vaksinasi COVID-19 Nasional,”, 2022. [Online]. Available: [Accessed: 9-April-2021].

A. Budiyanto, M. Anggraini and A. N. Hidayanto, "Predictive Analytics Comparison of Achieving Herd Immunity from COVID-19 in Indonesia and India Based on Fully Vaccinated People," 2021 International Seminar on Machine Learning, Optimization, and Data Science (ISMODE), 2022, pp. 289-294, doi: 10.1109/ISMODE53584.2022.9742823.

R. R. K. Winahyu, M. Somantri and O. D. Nurhayati, "Predicting Creditworthiness of Smartphone Users in Indonesia during the COVID-19 pandemic using Machine Learning," 2021 International Seminar on Machine Learning, Optimization, and Data Science (ISMODE), 2022, pp. 223-227, doi: 10.1109/ISMODE53584.2022.9742831.

W. Yue and L. Li, “Sentiment analysis using word2vec-cnn-bilstm classification,” 2020 7th Int. Conf. Soc. Netw. Anal. Manag. Secur. SNAMS 2020, pp. 3–7, 2020, doi: 10.1109/SNAMS52053.2020.9336549.

Kusrini and M. Mashuri, “Sentiment analysis in twitter using lexicon based and polarity multiplication,” Proceeding - 2019 Int. Conf. Artif. Intell. Inf. Technol. ICAIIT 2019, pp. 365–368, 2019, doi: 10.1109/ICAIIT.2019.8834477.

E. A. Sukma, A. N. Hidayanto, A. I. Pandesenda, A. N. Yahya, P. Widharto, and U. Rahardja, “Sentiment Analysis of the New Indonesian Government Policy (Omnibus Law) on Social Media Twitter”, Proc. - 2nd Int. Conf. Informatics, Multimedia, Cyber, Inf. Syst. ICIMCIS 2020, pp. 153–158, 2020, doi: 10.1109/ICIMCIS51567.2020.9354287

S. Lestari dan S.Saepudin, “Analisis sentimen vaksin sinovac pada twitter menggunakan algoritma naïve bayes”, 2021, SISMATIK (Seminar Nasional Sistem Informasi dan Manajemen Informatika) Universitas Nusa Putra, 7 Agustus 2021

Z. Firmansyah, N.F. Puspitasari, “Analisis sentimen masyarakat terhadap vaksinasi covid 19 berdasarkan opini twitter menggunakan algoritma naïve bayes” 2021, Jurnal Teknik Informatika Vol. 14 No. 2, Oktober 2021 ISSN: p-ISSN 1979-9160 (Print)| e-ISSN 2549-7901 (Online) doi:

A.Harun, D.P Ananda, “Analisa Sentimen Opini Publik Tentang Vaksinasi Covid-19 di Indonesia Menggunakan Naïve bayes dan Decission Tree” 2021, Indonesian Journal of Machine Learning and Computer Science, Vol. 1 No. 1 (2021): MALCOM April 2021 .

F. A. Wenando, R. Hayami, Bakaruddin, and A. Y. Novermahakim, “Tweet Sentiment Analysis for 2019 Indonesia Presidential Election Results using Various Classification Algorithms,” Proceeding - 1st Int. Conf. Inf. Technol. Adv. Mech. Electr. Eng. ICITAMEE 2020, pp. 279– 282, 2020, doi: 10.1109/ICITAMEE50454.2020.9398513.

Z. Ferdous, I. Asad, and S. R. Deeba, “Analyzing the Factors Contributing to Graduate Unemployment,” 2019 IEEE Glob. Humanit. Technol. Conf. GHTC 2019, pp. 1–4, 2019, doi: 10.1109/GHTC46095.2019.9033029.

R. Mulaudzi and R. Ajoodha, “An Exploration of Machine Learning Models to Forecast the Unemployment Rate of South Africa: A Univariate Approach,” 2020 2nd Int. Multidiscip. Inf. Technol. Eng. Conf. IMITEC 2020, 2020, doi: 10.1109/IMITEC50163.2020.9334090.

S. H. Lee, Y. W. Cho, E. T. Im, and G. Y. Gim, “A Study on Customer Satisfaction Analysis of Public Institutions using Social Textmining,” Proc. - 20th IEEE/ACIS Int. Conf. Softw. Eng. Artif. Intell. Netw. Parallel/Distributed Comput. SNPD 2019, pp. 385–394, 2019, doi: 10.1109/SNPD.2019.8935791.

N. Tabassum and M. I. Khan, “Design an Empirical Framework for Sentiment Analysis from Bangla Text using Machine Learning,” 2nd Int. Conf. Electr. Comput. Commun. Eng. ECCE 2019, pp. 1–5, 2019, doi: 10.1109/ECACE.2019.8679347.

H. Parveen and S. Pandey, “Sentiment analysis on Twitter Data-set using Naive Bayes algorithm,” Proc. 2016 2nd Int. Conf. Appl. Theor. Comput. Commun. Technol. iCATccT 2016, pp. 416–419, 2017, doi: 10.1109/ICATCCT.2016.7912034.

G. Singh, B. Kumar, L. Gaur, and A. Tyagi, “Comparison between Multinomial and Bernoulli Naïve Bayes for Text Classification,” 2019 Int. Conf. Autom. Comput. Technol. Manag. ICACTM 2019, pp. 593– 596, 2019, doi: 10.1109/ICACTM.2019.8776800.

Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Analisis Sentimen Opini Masyarakat Terhadap Vaksinasi Booster COVID-19 Dengan Perbandingan Metode Naive Bayes, Decision Tree dan SVM

Dimensions Badge
Article History
Submitted: 2022-05-11
Published: 2022-06-29
Abstract View: 185 times
PDF Download: 126 times
How to Cite
Aldisa, R., & Maulana, P. (2022). Analisis Sentimen Opini Masyarakat Terhadap Vaksinasi Booster COVID-19 Dengan Perbandingan Metode Naive Bayes, Decision Tree dan SVM. Building of Informatics, Technology and Science (BITS), 4(1), 106-109.

Most read articles by the same author(s)