Opinion Severity Prediction about Covid-19 Vaccination using Twitter Sentiments Analysis
Year: 2026
Type: article
Abstract: 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: Maaz Khan, Inayat Khan
Institution: Institute of Management Sciences Peshawar
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: hybrid
OpenAlex ID: W7238870827
