Explainable AI Models for Decoding Emotional Subtexts on Social Media
Dost Muhammad,
Iftikhar Ahmed,
Khwaja Naveed and
Malika Bendechache
Complexity, 2025, vol. 2025, 1-13
Abstract:
Social media platforms, such as X (formerly Twitter), provide users with concise but impactful tools to express their views and feelings. Users present their views and express their feelings in hashtags and emojis on a wide range of topics. The sheer volume of this textual data offers a rich source for analyzing public sentiment and emotions. Numerous machine learning and deep learning approaches have been presented lately for optimal emotion detection and sentiment analysis of these tweets. Given the complexity of processing human language, natural language processing (NLP) techniques face the challenge of explainability in their decision-making process. To bridge this gap, we introduce an explainable NLP-based framework for the recognition of human emotions within textual data. We propose a novel recurrent neural network architecture incorporating a bidirectional long short-term memory layer for emotion prediction and sentiment analysis on English tweets. The performance of the proposed model is evaluated with real-world X data against benchmark techniques. The proposed model achieves accuracy, precision, recall, and an F1-score of over 90%, which is higher than the considered benchmark models. Subsequently, we integrate the explainable artificial intelligence (XAI) approaches, namely, local interpretable model-agnostic explanations (LIME) and SHapely Additive exPlanation (SHAP) to explain the decision-making process behind the proposed model’s prediction. Applying these XAI techniques not only boosts the proposed model’s transparency but also reinforces its reliability in accurately processing and explaining textual data.
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
http://downloads.hindawi.com/journals/complexity/2025/9258956.pdf (application/pdf)
http://downloads.hindawi.com/journals/complexity/2025/9258956.xml (application/xml)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:hin:complx:9258956
DOI: 10.1155/cplx/9258956
Access Statistics for this article
More articles in Complexity from Hindawi
Bibliographic data for series maintained by Mohamed Abdelhakeem ().