Which Model Feels Better? A Comparison of Computational Approaches to Emotion Detection in Social Media with Imbalanced Data
Emotion detection in social media remains challenging, particularly in polarized public debates where emotional expression is often imbalanced across categories. Addressing this challenge, this study compares the performance of multiple computational approaches using a gold-standard dataset of tweets about an ongoing geopolitical conflict. The dataset reflects the authentic, skewed distribution of emotions observed in real-world online discourse. We evaluated lexicon-based methods, classical machine-learning classifiers, deep-learning architectures, transformer models in both fine-tuned and zero-shot configurations, and a zero-shot large language model to assess their effectiveness in capturing both frequent and less frequently expressed emotions. Across approaches, transformer models, especially those fine-tuned for contextual emotion recognition, demonstrated the strongest overall performance, with emotion-specific fine-tuning offering a particular advantage for detecting rare emotion categories. These findings emphasize the importance of evaluating emotion detection methods under realistic class imbalance and highlight both the comparative strengths and limitations of widely used modeling strategies in applied social media research. This study advances emotion analysis and computational social science by offering practical guidance for selecting appropriate emotion detection methods in complex, imbalanced social media contexts.
Authors
- Anastasia Vishnevskaya (ORCID: https://orcid.org/0000-0001-7507-0159)
- Porismita Borah (ORCID: https://orcid.org/0000-0002-1140-4233)
- Vasileios Pavlopoulos (ORCID: https://orcid.org/0009-0008-9603-2440)
- Jerry Stott (ORCID: https://orcid.org/0000-0001-9722-3144)
Institutions
- Texas Tech University (US)
- University of Utah (US)
- Washington State University (US)
- University of Alabama in Huntsville (US)
Publication Details
- Journal
- Informatics
- Published
- 2026-05-22
- DOI
- https://doi.org/10.3390/informatics13060077
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Texas Tech University