aub logo
  • AUB Admission is ongoing for Spring - 2026 (January to April)  | To Apply Click Here
  • AUB International Conference on Higher Education and Sustainable Development (30 - 31 January 2026) | For details - Click Here
  • To verify your document please email us at verification@aub.ac.bd 
  •  *** www.aub.ac.bd is our only website. All other websites in the name of AUB are fake. So everyone is warned not to be deceived. 
aub logo white
AUBIC-2026 কুইজ প্রতিযোগিতা

Contact us

+8801678664413-19

aub_admin July 01, 2021 39 Views

Sentiment analysis on twitter tweets about COVID-19 vaccines using NLP and supervised KNN classification algorithm

F. M. Javed Mehedi Shamrat, Sovon Chakraborty, M. M. Imran, Jannatun Naeem Muna, Md. Masum Billah, Protiva Das, Md. Obaidur Rahman*

* Associate Professor & Chairman, Dept. of CSE, Asian University of Bangladesh, Dhaka, Bangladesh.
Collaborating Authors: City University, Manarat International University, Daffodil International University, and European University of Bangladesh.

Published: July 2021 | Volume 23, Issue 1

Indonesian Journal of Electrical Engineering and Computer Science 23(1): 463-470

Abstract

The pandemic has taken the world by storm. Almost the entire world went into lockdown to save the people from the deadly COVID-19. Scientists around the around have come up with several vaccines for the virus. Amongthem, Pfizer, Moderna, and AstraZeneca have become quite famous. General people however have been expressing their feelings about the safety and effectiveness of the vaccines on social media like Twitter. In this study, such tweets are being extracted from Twitter using a Twitter API authentication token. The raw tweets are stored and processed using NLP. The processed data is then classified using a supervised KNN classification algorithm. The algorithm classifies the data into three classes, positive, negative, and neutral. These classes refer to the sentiment of the general people whose Tweets are extracted for analysis. From the analysis it is seen that Pfizer shows 47.29%positive, 37.5% negative and 15.21% neutral, Moderna shows 46.16%positive, 40.71% negative, and 13.13% neutral, AstraZeneca shows 40.08%positive, 40.06% negative and 13.86% neutral sentiment.
Pfizer Positivity
47.29%
Moderna Positivity
46.16%
AstraZeneca Positivity
40.08%