Dual-Encoder Incongruity Transformer for Context-Aware Sarcasm Detection with Data Augmentation
DOI:
https://doi.org/10.24113/njp2nr34Keywords:
Sarcasm Detection, Context-Aware Classification, Transformer Models, Semantic Incongruity, Data Augmentation.Abstract
Sarcasm is hard for NLP systems because people rarely announce it directly—its meaning usually comes from how a sentence fits (or clashes) with what was said before. Many existing sarcasm detectors still rely on surface cues such as sentiment words, punctuation, or handcrafted lexical statistics, which often miss this “context vs. utterance” mismatch that drives sarcasm. In this paper, we introduce a Dual-Encoder Incongruity Transformer (DEIT) that treats sarcasm as an incongruity problem: the context and the target utterance are encoded separately using a shared Transformer, and their relationship is modeled using simple but effective interaction signals such as the absolute difference and element-wise product of their embeddings. Because sarcasm datasets are typically small, we also enlarge the training set to about 2000 samples through a hybrid augmentation strategy that mixes lightweight lexical edits with masked language model substitutions while keeping the class distribution balanced. On the evaluated dataset, DEIT achieves 98.33% accuracy, 98.33% F1-score, and an MCC of 0.9667, showing that explicitly modeling context–utterance incongruity leads to more reliable sarcasm detection.
Downloads
References
1. Senthilkumar, K. K., et al. "Twitter Sarcasm Detection using Natural Language Processing and Deep Learning Techniques." 2024 Global Conference on Communications and Information Technologies (GCCIT). IEEE, 2024.
2. Pawar, Neha, and Sukhada Bhingarkar. "Machine learning based sarcasm detection on Twitter data." 2020 5th international conference on communication and electronics systems (ICCES). IEEE, 2020.
3. Sarsam, Samer Muthana, et al. "Sarcasm detection using machine learning algorithms in Twitter: A systematic review." International Journal of Market Research 62.5 (2020): 578-598.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Arti Verma , Rakesh Shivhare

This work is licensed under a Creative Commons Attribution 4.0 International License.
IJOSCIENCE follows an Open Journal Access policy. Authors retain the copyright of the original work and grant the rights of publication to the publisher with the work simultaneously licensed under a Creative Commons CC BY License that allows others to distribute, remix, adapt, and build upon your work, even commercially, as long as they credit you for the original creation. Authors are permitted to post their work in institutional repositories, social media or other platforms.
Under the following terms:
-
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.