Leveraging Transformer with Self-Attention for Multi-Label Emotion Classification in Crisis Tweets
Social media platforms have become a widely used medium for individuals to express complex and multifaceted emotions. Traditional single-label emotion classification methods fall short in accurately capturing the simultaneous presence of multiple emotions within these texts. To address this limitation, we propose a classification model that enhances the pre-trained Cardiff NLP transformer by integrating additional self-attention layers. Experimental results show our approach achieves a micro-F1 score of 0.7208, a macro-F1 score of 0.6192, and an average Jaccard index of 0.6066, which is an overall improvement of approximately 3.00% compared to the baseline. We apply this model to a real-world dataset of tweets related to the 2011 Christchurch earthquakes as a case study to demonstrate its ability to capture multi-category emotional expressions and detect co-occurring emotions that single-label approaches would miss. Our analysis revealed distinct emotional patterns aligned with key seismic events, including overlapping positive and negative emotions, and temporal dynamics of emotional response. This work contributes a robust method for fine-grained emotion analysis which can aid disaster response, mental health monitoring and social research.
Authors
- Jing Zhou (ORCID: https://orcid.org/0000-0003-1867-7178)
- Patricia Anthony (ORCID: https://orcid.org/0000-0002-4991-3340)
Institutions
- Lincoln University (NZ)
- Communication University of China (CN)
Publication Details
- Journal
- Informatics
- Published
- 2025-10-22
- DOI
- https://doi.org/10.3390/informatics12040114
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00