A contextual-based approach for sarcasm detection

Helal, Nivin A; Hassan, Ahmed; Badr, Nagwa; Afify, Yasmine M.;

Abstract


Sarcasm is a perplexing form of human expression that presents distinct challenges in understanding. The problem of sarcasm detection has centered around analyzing individual utterances in isolation which may not provide a comprehensive understanding of the speaker's sarcastic intent. Our work addresses this problem by exploring and understanding the specific contextual cues that contribute to sarcasm. In this paper, we propose an enhanced approach for sarcasm detection using contextual features. Our methodology involves employing pre-trained transformer models, RoBERTa and DistilBERT, and fine-tuning them on two datasets: the News Headlines and the Mustard datasets. Incorporating contextual information, the proposed approach yielded the best performance, achieving an impressive F1 score of 99% on News Headlines dataset and 90% on Mustard dataset. Moreover, we experimented summarizing the context into a concise short sentence. This enhancement reduced training time by 35.5% of the original time. We further validated the model trained on the News headlines dataset against the Reddit dataset, which resulted in 49% F1 score without context data. However, with the inclusion of context data, the F1 score surged to 75%. Proposed approach enhances the understanding of sarcasm in different contextual settings, enabling more accurate sentiment analysis and better decision-making in various applications.


Other data

Title A contextual-based approach for sarcasm detection
Authors Helal, Nivin A; Hassan, Ahmed; Badr, Nagwa ; Afify, Yasmine M. 
Issue Date 4-Jul-2024
Journal Scientific Reports 
ISSN 2045-2322
DOI 10.1038/s41598-024-65217-8
PubMed ID 38965307
Scopus ID 2-s2.0-85197519455

Recommend this item

Similar Items from Core Recommender Database

Google ScholarTM

Check



Items in Ain Shams Scholar are protected by copyright, with all rights reserved, unless otherwise indicated.