DefinePK

DefinePK hosts the largest index of Pakistani journals, research articles, news headlines, and videos. It also offers chapter-level book search.

Covid-19 Sentiment Analysis on X (formerly Twitter) Using Machine Learning Classifiers: Performance Comparison and Key Insights


Article Information

Title: Covid-19 Sentiment Analysis on X (formerly Twitter) Using Machine Learning Classifiers: Performance Comparison and Key Insights

Authors: Muhammad Ali Shaikh , Muhammad Ismail, Pir Bakhsh, Salahudin Jokhio, Muhammad Asif Khan, Khurshed Ali

Journal: VFAST Transactions on Software Engineering

HEC Recognition History
Category From To
Y 2024-10-01 2025-12-31
Y 2023-07-01 2024-09-30
Y 2022-07-01 2023-06-30
Y 2021-07-01 2022-06-30

Publisher: VFAST-Research Platform

Country: Pakistan

Year: 2025

Volume: 13

Issue: 2

Language: en

DOI: 10.21015/vtse.v13i2.2103

Categories

Abstract

The current generation and widely used platforms like X (formerly Twitter) enable the study of public attitudes toward important topics, including the COVID-19 outbreak. In this paper, machine learning approaches (ML) are employed to build a sentiment analysis system for COVID-19 hashtagged tweets. We employed four ML classifiers, namely Naïve Bayes (NB), Support Vector Machine (SVM), Decision Tree (DT), and Random Forest (RF), to classify the tweets into positive, negative, and neutral sentiments. In total, the examined dataset includes 178,240 tweets that are related to COVID-19 and were preprocessed through natural language processing. To assess the performance of the classifiers, we used accuracy, precision and recall, and F1 score. The results show that the DT classifier has the highest accuracy of 94% when compared to other models concerning precision and recall. Undersampling and oversampling were the techniques examined for addressing the issue of class imbalance. Such findings imply that ML, especially the SVM and DTs, can be useful in the next large-scale public sentiment analysis during a pandemic. Among the recommendations for further enhancements of the sentiment analysis approaches and their use in monitoring people’s reactions to social media during the pandemic are included in the paper.


Paper summary is not available for this article yet.

Loading PDF...

Loading Statistics...