Comparison of K-Nearest Neighbor and Support Vector Machine for Sentiment Analysis of the Second COVID-19 Booster Vaccination

Authors

  • Salma Fadhila Sari Universitas Brawijaya
  • Imelda Salsabila Universitas Brawijaya

DOI:

https://doi.org/10.21776/ub.jasds.2024.001.01.6

Keywords:

K-Nearest Neighbor, Sentiment Analysis, Support Vector Machine, The Second Covid-19 Booster Vaccination

Abstract

K-Nearest Neighbor (K-NN) and Support Vector Machine (SVM) are classification methods commonly used in sentiment analysis. Sentiment analysis can be applied to analyze the opinion of social media specially on platforms like Twitter about a specific topic. The purpose of this research is to determine and compare the classification accuracy of the K-NN and SVM One Against One algorithm in classifying the sentiments of the public regarding the implementation of the second Covid-19 booster vaccination on Twitter. The data used in this research consists of tweet from July 29th 2022 to February 15th 2023 that contain aspects of adverse events following immunization and perception of vaccination effectiveness. The result of this study obtained that there were 1,576 tweets containing positive sentiments, 169 containing neutral sentiments, and 424 containing negative sentiments. The data is divided into training data and testing data with a ratio of 80%:20%. The classification accuracy obtained for K-NN with k=17 is accuracy of 85.48%, precision of 78.64%, and recall of 85.48%, while for SVM, the accuracy is 84.33%, precision of 78.34%, and recall of 84.33%. Based on the classification obtained by K-NN with k=17, it is better at classifying sentiment regarding the second Covid-19 booster vaccination.

Keywords: K-Nearest Neighbor, Sentiment Analysis, Support Vector Machine, The Second Covid-19 Booster Vaccination

References

Alasadi, S. A., & Bhaya, W. S. (2017). Review of Data Preprocessing Techniques in Data Mining. Journal of Engineering and Applied Sciences, 12(16), 4102-4107.

Alfianur, A. (2021). Pengetahuan Tentang Covid 19 dan Sikap Tentang Vaksin Covid 19. Journal of Borneo Holistic Health, 4(2), 147-154.

Alita, D. (2018). Analisis Pengaruh Emoticon dan Sarkasme Pada Analisis Sentimen Berbahasa Indonesia di Twitter (Doctoral dissertation, Universitas Gadjah Mada).

Buntoro, G. A. (2017). Analisis Sentimen Calon Gubernur DKI Jakarta 2017 Di Twitter. INTEGER: Journal of Information Technology, 2(1).

Gorunescu, F. (2011). Data Mining: Concepts, Model, and Techniques. Berlin: Springer.

Han, J., Pei, J., & Tong, H. (2022). Data Mining: Concepts and Techniques. Morgan kaufmann.

Hotho, A., Nurnberger, A. dan Paass, G. (2005). A Brief Survey of Text Mining. Kassel: University of Kassel.

Hsu, C.W., Chang, C.C., and Lin, C.J. (2003). “A Practical Guide to Support Vector Classification”, Department of Computer Scinece an Information Engineering, National Taiwan University.

Lischner, R. (2013). Case-Folding. Dalam Exploring C++ 11. Apress, 111-113. Retrieved from https://doi.org/10.1007/978-1-4302-6194-0_19

Liu, B. (2020). Sentiment Analysis. New York: Cambridge University Press.

Manning, C. D., Raghayan, P., & Schutze, H. (2009). Introduction to Information Retrieval. Cambridge University Press.

Octaviani, P. A., Wilandari, Y., & Ispriyanti, D. (2014). Penerapan Metode Klasifikasi Support Vector Machine (SVM) pada Data Akreditasi Sekolah Dasar (SD) di Kabupaten Magelang. Jurnal Gaussian, 3(4), 811-820.

Prasetyo, Eko. (2012). Data Mining: Konsep dan Aplikasi Menggunakan Matlab. Yogyakarta: Penerbit Andi.

Rozi, I. F., Pramono, S. H., dan Dahlan, E. A. (2013). Implementasi Opinion Mining (Analisis Sentimen) untuk Ekstraksi Data Opini Publik pada Perguruan Tinggi. Jurnal EECCIS, 6(1), 37-43.

Sa’adah, U., Rochayani, M. Y., Lestari, D. W., dan Lusia, D. A. (2021). Kupas Tuntas Algoritma Data Mining dan Implementasinya Menggunakan R. Universitas Brawijaya Press.

Sari, A. R., Rahman, F., Wulandari, A., Pujianti, N., Laily, N., Anhar, V. Y., Anggraini, L., Azmiyannoor, M., Ridwan, A. M., dan Muddin, F. I. (2020). Perilaku pencegahan Covid-19 ditinjau dari karakteristik individu dan sikap masyarakat. Jurnal Penelitian Dan Pengembangan Kesehatan Masyarakat Indonesia, 1(1).

Tamara, T. (2021). Gambaran Vaksinasi COVID-19 di Indonesia pada Juli 2021. Medical Profession Journal of Lampung, 11(1): 180-183.

Vijayarani, S., Ilamathi, M. J., & Nithya, M. (2015). Preprocessing techniques for text mining-an overview. International Journal of Computer Science & Communication Networks, 5(1), 7-16.

Downloads

Published

2024-03-28

How to Cite

Fadhila Sari, S., & Salsabila, I. (2024). Comparison of K-Nearest Neighbor and Support Vector Machine for Sentiment Analysis of the Second COVID-19 Booster Vaccination. Journal of Applied Statistics and Data Science, 1(1), 58–70. https://doi.org/10.21776/ub.jasds.2024.001.01.6