Opinion Severity Prediction about Covid-19 Vaccination using Twitter Sentiments Analysis
Public opinion on COVID-19 vaccines strongly affects vaccination uptake. This study analyzes the sentiment of tweets about COVID-19 vaccines. Tweets from December 2021 were collected with the Twitter API, stored in a CSV file, and preprocessed with natural language processing techniques. A Naïve Bayes (NB) classifier was used for supervised classification and reached an accuracy of 90%. The study has three objectives: 1) data extraction and preprocessing, 2) sentiment analysis of people's views, and 3) evaluation of the NB classifier. Of the tweets, 36.82% are positive, 12.97% are negative, and 50.21% are neutral. The large neutral share suggests that many people may still be uncertain about vaccination and points to the need for targeted awareness programs. In addition, k-means clustering was used to determine severity levels, which produced high-positive, low-positive, high-negative, and low-negative clusters. On the same dataset, the NB classifier outperformed SVM, multinomial NB, random forest, and gradient boosting in accuracy. The findings can help authorities and public health initiatives address prevailing doubts and encourage vaccination, and they can support the control and prevention of future pandemics.
Authors
- Inayat Ullah Khan (ORCID: https://orcid.org/0000-0003-0895-9665)
- Maaz Khan (ORCID: https://orcid.org/0009-0005-7858-0548)
Institutions
- Institute of Management Sciences Peshawar (PK)
Publication Details
- Journal
- ICCK Transactions on Advanced Computing and Systems
- Published
- 2026-11-23
- DOI
- https://doi.org/10.62762/tacs.2025.224386
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00