A Computational Sentiment Analysis for Emotion Classification in Occasion-Related English Language Tweets

Authors

  • Suhaira Talib Islamia University of Bahawalpur, Bahawalnagar Campus, Pakistan. https://orcid.org/0009-0000-8500-7524
  • Bushra Shoukat Islamia University of Bahawalpur, Bahawalnagar Campus, Pakistan.

DOI:

https://doi.org/10.52131/pjhss.2025.v13i4.3039

Keywords:

Sentiment Analysis, Natural Language Processing, Emotion Extraction, MNB, RF, LR

Abstract

In the age of digital communication, social media platforms like Twitter have become essential spaces for individuals to express emotions, particularly during significant national and religious events. This study investigates how well machine learning classifiers identify emotions in tweets that are posted on particular occasions. The research aims to determine the impact of sentiment classification accuracy and assess the performance of different classification models in identifying emotions in tweets shared during major events. The seven main emotions—joy, sadness, anger, fear, disgust, surprise, and neutral were represented in a dataset that was carefully gathered from twelve distinct events. To categorize emotions, three popular machine learning classifiers Multinomial Naïve Bayes (MNB), Random Forest (RF), and Logistic Regression (LR) were utilized, and their results were assessed using four important metrics: accuracy, precision, recall, and F1-score. The results demonstrated that Logistic Regression (LR) outperformed other classifiers, achieving the highest accuracy of 92%. Random Forest (RF) followed closely, with an accuracy of 91%, maintaining robust results in all emotional categories. Multinomial Naïve Bayes (MNB), with an accuracy of 89%, proved effective in cases where emotions had strong keyword associations. Logistic Regression emerged as the most effective classifier for sentiment analysis of occasional tweets, Random Forest provided a strong alternative, and Multinomial Naïve Bayes remained useful for keyword-driven sentiment detection.

Downloads

Download data is not yet available.

Author Biographies

Suhaira Talib, Islamia University of Bahawalpur, Bahawalnagar Campus, Pakistan.

M.Phil. Scholar, Department of English Linguistics

Bushra Shoukat, Islamia University of Bahawalpur, Bahawalnagar Campus, Pakistan.

Assistant Professor, Department of English

Downloads

Published

2025-12-26

How to Cite

Talib, S., & Shoukat, B. (2025). A Computational Sentiment Analysis for Emotion Classification in Occasion-Related English Language Tweets. Pakistan Journal of Humanities and Social Sciences, 13(4), 67–77. https://doi.org/10.52131/pjhss.2025.v13i4.3039