Computers (Nov 2023)

Utilizing an Attention-Based LSTM Model for Detecting Sarcasm and Irony in Social Media

  • Deborah Olaniyan,
  • Roseline Oluwaseun Ogundokun,
  • Olorunfemi Paul Bernard,
  • Julius Olaniyan,
  • Rytis Maskeliūnas,
  • Hakeem Babalola Akande

DOI
https://doi.org/10.3390/computers12110231
Journal volume & issue
Vol. 12, no. 11
p. 231

Abstract

Read online

Sarcasm and irony represent intricate linguistic forms in social media communication, demanding nuanced comprehension of context and tone. In this study, we propose an advanced natural language processing methodology utilizing long short-term memory with an attention mechanism (LSTM-AM) to achieve an impressive accuracy of 99.86% in detecting and interpreting sarcasm and irony within social media text. Our approach involves innovating novel deep learning models adept at capturing subtle cues, contextual dependencies, and sentiment shifts inherent in sarcastic or ironic statements. Furthermore, we explore the potential of transfer learning from extensive language models and integrating multimodal information, such as emojis and images, to heighten the precision of sarcasm and irony detection. Rigorous evaluation against benchmark datasets and real-world social media content showcases the efficacy of our proposed models. The outcomes of this research hold paramount significance, offering a substantial advancement in comprehending intricate language nuances in digital communication. These findings carry profound implications for sentiment analysis, opinion mining, and an enhanced understanding of social media dynamics.

Keywords