Melola Discovery

← Melola Discovery

Open access Journal No SINTA rank

Performance Comparison of SVM, Naïve Bayes, and KNN Algorithms for Analysis of Public Opinion Sentiment Against COVID-19 Vaccination on Twitter

Journal of Advances in Information Systems and Technology · Vol. 4 No. 2 (2023) · pp. 113–125

DOI
10.15294/jaist.v4i2.59493
ISSN
2715-999X, 2714-9714
Published
2023-03-10
Publisher
Department of Computer Science, Faculty of Mathematics and Natural Sciences, Universitas Negeri Semarang
Language
eng
License
creativecommons.org/licenses/by-sa/4.0

Abstract

The emergence of the COVID-19 virus in 2020 has created a new breakthrough in the form of a vaccine as a solution to slow the spread of the virus. However, the COVID-19 vaccine is considered controversial and invites many people to express their views on various media, one of which is social media Twitter. Using Twitter data on the COVID-19 vaccine, sentiment analysis can be performed. Sentiment analysis aims to evaluate whether the tweet contains a positive sentence or sentiment. In this study, the analysis of sentiments on the COVID-19 vaccine on social media Twitter was carried out using the Support Vector Machine (SVM), Naïve Bayes, and k-Nearest Neighbor (KNN) algorithms. SVM has the advantage of being able to identify hyperplanes that maximize the margins between different sentiments. Meanwhile Naïve Bayes is an algorithm that is simple, fast and produces maximum accuracy with training. The KNN algorithm was chosen because it is superior to noise. The performance of the three classification algorithms will be compared, so that it can be seen which algorithm is better in classifying text mining. Sentiment classification results in this study consist of positive sentiment and sentiment classes. The resulting accuracy value will be a benchmark for finding the best test model in the case of sentiment classification. Based on ten tests, the final result of accuracy and best performance using the SVM algorithm with an accuracy value of 96.3% is obtained. Meanwhile, the Naïve Bayes and KNN algorithms have an accuracy of 94% and 91%, respectively. The high accuracy results are supported by the feature extraction TF-IDF the TextBlob library.

Collaboration network of the authors

13 authors · 25 co-authorship links · 17 across different organisations

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Universitas Islam Negeri Raden Intan Lampung
  • Diponegoro University
  • State University of Semarang
  • Universitas Islam Negeri Sulthan Thaha Saifuddin Jambi
  • Universitas Muhammadiyah Prof Dr Hamka
  • Universitas Ma'arif Lampung
  • Affiliation unknown
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Akhmad RidhoState University of Semarang1
Gebyar Bintang TaufikurohmanAffiliation unknown1
Bunyamin BunyaminUniversitas Muhammadiyah Prof Dr Hamka1
Yuliatin YuliatinUniversitas Islam Negeri Sulthan Thaha Saifuddin Jambi1
Linda FirdawatyUniversitas Islam Negeri Raden Intan Lampung1
Habib Shulton AsnawiUniversitas Ma'arif Lampung1
Siti MahmudahUniversitas Islam Negeri Raden Intan Lampung1
Illy YantiUniversitas Islam Negeri Sulthan Thaha Saifuddin Jambi1
Kismartini KismartiniDiponegoro University1
Yuwanto YuwantoDiponegoro University1
Sri SuwitriDiponegoro University1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/sju/index.php/jaist/oai, first harvested 6 Nov 2026, last seen 8 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en-US">Performance Comparison of SVM, Naïve Bayes, and KNN Algorithms for Analysis of Public Opinion Sentiment Against COVID-19 Vaccination on Twitter</dc:title>
	<dc:creator>Munawaroh, Khafifah</dc:creator>
	<dc:creator>Alamsyah, Alamsyah</dc:creator>
	<dc:description xml:lang="en-US">



The emergence of the COVID-19 virus in 2020 has created a new breakthrough in the form of a vaccine as a solution to slow the spread of the virus. However, the COVID-19 vaccine is considered controversial and invites many people to express their views on various media, one of which is social media Twitter. Using Twitter data on the COVID-19 vaccine, sentiment analysis can be performed. Sentiment analysis aims to evaluate whether the tweet contains a positive sentence or sentiment. In this study, the analysis of sentiments on the COVID-19 vaccine on social media Twitter was carried out using the Support Vector Machine (SVM), Naïve Bayes, and k-Nearest Neighbor (KNN) algorithms. SVM has the advantage of being able to identify hyperplanes that maximize the margins between different sentiments. Meanwhile Naïve Bayes is an algorithm that is simple, fast and produces maximum accuracy with training. The KNN algorithm was chosen because it is superior to noise. The performance of the three classification algorithms will be compared, so that it can be seen which algorithm is better in classifying text mining. Sentiment classification results in this study consist of positive sentiment and sentiment classes. The resulting accuracy value will be a benchmark for finding the best test model in the case of sentiment classification. Based on ten tests, the final result of accuracy and best performance using the SVM algorithm with an accuracy value of 96.3% is obtained. Meanwhile, the Naïve Bayes and KNN algorithms have an accuracy of 94% and 91%, respectively. The high accuracy results are supported by the feature extraction TF-IDF the TextBlob library.



</dc:description>
	<dc:publisher xml:lang="en-US">Department of Computer Science, Faculty of Mathematics and Natural Sciences, Universitas Negeri Semarang</dc:publisher>
	<dc:date>2023-03-10</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en-US">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/sju/jaist/article/view/59493</dc:identifier>
	<dc:identifier>10.15294/jaist.v4i2.59493</dc:identifier>
	<dc:source xml:lang="en-US">Journal of Advances in Information Systems and Technology; Vol 4 No 2 (2022): October; 113-125</dc:source>
	<dc:source>2715-999X</dc:source>
	<dc:source>2714-9714</dc:source>
	<dc:source>10.15294/jaist.v4i2</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/sju/jaist/article/view/59493/23880</dc:relation>
	<dc:rights xml:lang="en-US">Copyright (c) 2022 Journal of Advances in Information Systems and Technology</dc:rights>
	<dc:rights xml:lang="en-US">http://creativecommons.org/licenses/by-sa/4.0</dc:rights>
</oai_dc:dc>