EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

Unpacking Sarcasm: A Contextual and Transformer-Based Approach for Improved Detection

Parul Dubey, Pushkar Dubey, Pitshou N. Bokoro

Computers · 2025-03-06 · 14 (3) · 95

DOI: 10.3390/computers14030095 ↗

At a glance

Journal article in Computers, published online on 2025-03-06. Written by Parul Dubey and 2 co-authors. Cited 23 times so far (Crossref); 30 references. The full text is freely available (open access, CC BY 4.0).

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Sarcasm detection is a crucial task in natural language processing (NLP), particularly in sentiment analysis and opinion mining, where sarcasm can distort sentiment interpretation. Accurately identifying sarcasm remains challenging due to its context-dependent nature and linguistic complexity across informal text sources like social media and conversational dialogues. This study utilizes three benchmark datasets, namely, News Headlines, Mustard, and Reddit (SARC), which contain diverse sarcastic expressions from headlines, scripted dialogues, and online conversations. The proposed methodology leverages transformer-based models (RoBERTa and DistilBERT), integrating context summarization, metadata extraction, and conversational structure preservation to enhance sarcasm detection. The novelty of this research lies in combining contextual summarization with metadata-enhanced embeddings to improve model interpretability and efficiency. Performance evaluation is based on accuracy, F1 score, and the Jaccard coefficient, ensuring a comprehensive assessment. Experimental results demonstrate that RoBERTa achieves 98.5% accuracy with metadata, while DistilBERT offers a 1.74x speedup, highlighting the trade-off between accuracy and computational efficiency for real-world sarcasm detection applications.

Cite

APA

Dubey, P., Dubey, P., & Bokoro, P. N. (2025). Unpacking Sarcasm: A Contextual and Transformer-Based Approach for Improved Detection. Computers, 14(3), 95. https://doi.org/10.3390/computers14030095

Vancouver

Dubey P, Dubey P, Bokoro PN. Unpacking Sarcasm: A Contextual and Transformer-Based Approach for Improved Detection. Computers. 2025;14(3):95. doi:10.3390/computers14030095

BibTeX
@article{Dubey2025,
  author = {Dubey, Parul and Dubey, Pushkar and Bokoro, Pitshou N.},
  title = {Unpacking Sarcasm: A Contextual and Transformer-Based Approach for Improved Detection},
  journal = {Computers},
  year = {2025},
  volume = {14},
  number = {3},
  pages = {95},
  doi = {10.3390/computers14030095}
}
Start for free →