IDEAS home Printed from https://ideas.repec.org/a/wly/complx/v2025y2025i1n9258956.html

Explainable AI Models for Decoding Emotional Subtexts on Social Media

Author

Listed:
  • Dost Muhammad
  • Iftikhar Ahmed
  • Khwaja Naveed
  • Malika Bendechache

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.

Suggested Citation

  • Dost Muhammad & Iftikhar Ahmed & Khwaja Naveed & Malika Bendechache, 2025. "Explainable AI Models for Decoding Emotional Subtexts on Social Media," Complexity, John Wiley & Sons, vol. 2025(1).
  • Handle: RePEc:wly:complx:v:2025:y:2025:i:1:n:9258956
    DOI: 10.1155/cplx/9258956
    as

    Download full text from publisher

    File URL: https://doi.org/10.1155/cplx/9258956
    Download Restriction: no

    File URL: https://libkey.io/10.1155/cplx/9258956?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Iftikhar Ahmad & Muhammad Yousaf & Suhail Yousaf & Muhammad Ovais Ahmad, 2020. "Fake News Detection Using Machine Learning Ensemble Methods," Complexity, Hindawi, vol. 2020, pages 1-11, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ayyoob Sharifi & Amir Reza Khavarian-Garmsir & Rama Krishna Reddy Kummitha, 2021. "Contributions of Smart City Solutions and Technologies to Resilience against the COVID-19 Pandemic: A Literature Review," Sustainability, MDPI, vol. 13(14), pages 1-28, July.
    2. Muhammad Shahzaib Toor & Hooria Shahbaz & Muddasar Yasin & Armughan Ali & Norma Latif Fitriyani & Changgyun Kim & Muhammad Syafrudin, 2025. "An Optimized Weighted-Voting-Based Ensemble Learning Approach for Fake News Classification," Mathematics, MDPI, vol. 13(3), pages 1-23, January.
    3. Andreea Nistor & Eduard Zadobrischi, 2022. "The Influence of Fake News on Social Media: Analysis and Verification of Web Content during the COVID-19 Pandemic by Advanced Machine Learning Methods and Natural Language Processing," Sustainability, MDPI, vol. 14(17), pages 1-24, August.
    4. Syed Muhammad Hamza, 2024. "Performance Evaluation of Fake News Detection Using Artificial Intelligence Techniques," International Journal of Innovations in Science & Technology, 50sea, vol. 6(2), pages 739-753, June.
    5. Mohammed N. Alenezi & Zainab M. Alqenaei, 2021. "Machine Learning in Detecting COVID-19 Misinformation on Twitter," Future Internet, MDPI, vol. 13(10), pages 1-20, September.
    6. Jiadi Liu & Zhuodong Liu & Qiaoqi Li & Weihao Kong & Xiangyu Li, 2025. "Multi-Domain Controversial Text Detection Based on a Machine Learning and Deep Learning Stacked Ensemble," Mathematics, MDPI, vol. 13(9), pages 1-25, May.
    7. Nadejda Komendantova & Dmitry Erokhin, 2025. "Artificial Intelligence Tools in Misinformation Management during Natural Disasters," Public Organization Review, Springer, vol. 25(1), pages 81-105, March.
    8. Amit Neil Ramkissoon & Wayne Goodridge, 2022. "Enhancing the Predictive Performance of Credibility-Based Fake News Detection Using Ensemble Learning," The Review of Socionetwork Strategies, Springer, vol. 16(2), pages 259-289, October.
    9. Lara Aslan & Michal Ptaszynski & Jukka Jauhiainen, 2024. "Are Strong Baselines Enough? False News Detection with Machine Learning," Future Internet, MDPI, vol. 16(9), pages 1-32, September.
    10. Tony Mathew Abraham & Tao Wen & Ting Wu & Yu-wang Chen, 2025. "Leveraging data analytics for detection and impact evaluation of fake news and deepfakes in social networks," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 12(1), pages 1-13, December.
    11. Gabriela CHIRIAC & Ada Maria CATINA, 2025. "Detection of Fake News Using Deep Learning and Machine Learning," Database Systems Journal, Academy of Economic Studies - Bucharest, Romania, vol. 16(1), pages 65-81.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wly:complx:v:2025:y:2025:i:1:n:9258956. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://onlinelibrary.wiley.com/journal/8503 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.