Harnessing Cognitive Features for Sarcasm Detection

Abhijit Mishra, Diptesh Kanojia, Seema Nagar, Kuntal Dey, Pushpak Bhattacharyya

Abstract

Sarcasm presents a significant challenge for natural language processing (NLP) due to the inherent incongruity between literal and intended meanings. This paper investigates the use of cognitive features derived from eye-tracking data to enhance sarcasm detection. By analyzing eye-movement patterns such as fixation duration and regressions, we demonstrate that sarcastic text elicits distinct reading behaviors. Our proposed model, which integrates these gaze features with traditional linguistic data using Multi-Instance Logistic Regression (MILR), achieves a 3.7% improvement in F-score over state-of-the-art textual systems, highlighting the potential of cognitive-augmented NLP.

Introduction

Sarcasm is a linguistic "wild card" that can invert the sentiment of a sentence, often misleading traditional sentiment analyzers. While humans rely on prosody, body language, and context, machines are typically limited to surface-level text. This research proposes using eye-tracking as a proxy for the cognitive "re-analysis" that occurs when a reader encounters sarcasm. The core challenge is identifying the mismatch between literal words and intended messages—a process that manifests physically in how our eyes move across a page.

Methodology

The study utilized a dataset of 1,000 short texts (350 sarcastic, 650 non-sarcastic) sourced from movie reviews and social media. Seven participants read these texts while their eye movements were recorded using an SR-Research Eyelink-1000 tracker. Two categories of features were extracted:

  1. Simple Gaze Features: Basic statistics including fixation duration (how long the eye stays on a word), saccades (jumps between words), and word skips.
  2. Complex Saliency Graphs: A novel approach where words are treated as nodes and eye movements between them as edges. Graph-theoretic properties, such as edge density and weighted degrees, were calculated to quantify the complexity of the reader's "scanpath."

These features were combined with traditional linguistic markers (unigrams, punctuation) and fed into classifiers, with MILR proving particularly effective at handling individual variations in reading styles.

Cognitive Insights from Eye-Tracking

Analysis revealed that sarcasm significantly alters reading behavior. Sarcastic sentences resulted in average fixation durations at least 1.5 times higher than literal ones. Furthermore, readers often performed "double takes"—long regressions back to earlier parts of the sentence upon encountering a sarcastic clue that contradicted the initial context.

Comparison of scanpaths for sarcastic (S1) and literal (S2) sentences across three participants. Sarcastic text (top) triggers more frequent regressions and complex eye movements compared to the linear progression of literal text (bottom).

Experimental Results

The integration of gaze features provided a statistically significant performance boost. Feature importance analysis identified Average Fixation Duration and Largest Regression Position as the most significant predictors of sarcasm.

Performance metrics (Avg. F-Score and Avg. Kappa) across varying training data percentages. The "Sarcasm+Gaze" model consistently outperforms models relying solely on textual or gaze features.

As shown in the results, the combined model achieved a 3.7% improvement in F-score (p = 0.02) over the previous state-of-the-art system. This confirms that eye-tracking data provides cognitive information that text alone cannot capture.

Conclusion

This work demonstrates that eye-tracking data provides a valuable signal for detecting sarcasm by capturing the reader's cognitive load and re-analysis patterns. While currently limited by specialized hardware requirements, the increasing availability of webcam-based eye-tracking suggests a path toward non-intrusive, large-scale cognitive-augmented NLP. Future research will explore individual reading signatures and apply these methods to other complex tasks like irony or metaphor detection.

Summary updated

BibTeX
@inproceedings{mishra2016harnessing,
  author = {Abhijit Mishra and Diptesh Kanojia and Seema Nagar and Kuntal Dey and Pushpak Bhattacharyya},
  title = {{Harnessing Cognitive Features for Sarcasm Detection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1104},
}
Figure