Harnessing Cognitive Features for Sarcasm Detection

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

Abstract

Sarcasm detection is a complex task in Natural Language Processing (NLP) due to the subtle incongruity between literal and intended meanings. Traditional methods often fail to capture these nuances without explicit markers. This paper proposes a novel approach that incorporates "cognitive features" derived from human eye-movement patterns. By analyzing how readers process sarcastic text—specifically through fixation durations and regressions—the researchers demonstrate a significant improvement in detection accuracy. Experimental results show that augmenting linguistic features with gaze data leads to a 3.7% increase in F-score, highlighting the potential of psycholinguistic signals in unmasking sarcasm.

Introduction

Sarcasm has often been described as the "dark matter" of NLP: it is pervasive and fundamentally alters the sentiment of a sentence, yet it remains difficult to detect using standard computational techniques. While humans utilize vocal tone and facial expressions to identify sarcasm, machines are typically limited to text analysis. This paper, "Harnessing Cognitive Features for Sarcasm Detection," explores whether a machine can identify sarcasm by observing how a human reader processes it.

The Challenge of Incongruity

The primary difficulty in sarcasm detection lies in incongruity. For instance, a movie review stating, "This is the kind of movie you see because the theater has air conditioning," contains neutral or positive terms like "air conditioning" but conveys a negative sentiment. Traditional sentiment analyzers often miss this because sarcasm frequently lacks explicit negative markers. The authors hypothesize that the cognitive load required to resolve such incongruity leaves a measurable trace in human eye movements.

Methodology: The Human as a Sensor

The researchers treated human readers as sophisticated sensors, using an eye-tracker to record the reading patterns of seven participants across 1,000 sentences. Two categories of features were extracted from this data:

  1. Simple Gaze Features: Basic metrics such as fixation duration (time spent on a word), saccades (jumps between words), and skips.
  2. Complex Gaze Features (Saliency Graphs): A novel representation where words are nodes and saccades are edges. Graph-theoretic properties, such as edge density and weighted degree, were used to quantify the complexity of the reading path.
Gaze scanpaths for sarcastic (S1) versus non-sarcastic (S2) sentences across three participants, illustrating the increased cognitive load and regressions associated with sarcasm.

These features were integrated with traditional stylistic features (unigrams, punctuation) and evaluated using various classifiers, including Multi-Instance Logistic Regression (MILR), which accounts for individual variations in reading behavior.

Key Insights: The "Re-reading" Reflex

The study revealed that sarcastic text induces a significantly higher cognitive load. On average, readers spent 1.5 times longer on sarcastic sentences compared to non-sarcastic ones. A critical finding was the role of "regressions"—instances where the reader's eyes dart back to previous words to resolve a "twist" or incongruity. The saliency graphs effectively captured these patterns, proving more predictive than simple total reading time.

Experimental Results

The dataset comprised 1,000 short texts, with 350 sarcastic and 650 non-sarcastic samples. The inclusion of gaze features provided a substantial performance boost. The best-performing MILR model, utilizing both gaze and linguistic sarcasm features, achieved an F-score of 75.7%, representing a 3.7% improvement over text-only baselines.

Evaluation of model performance (F-Score and Kappa) demonstrating the superior accuracy of combining linguistic sarcasm features with gaze data.

Feature importance analysis further underscored the value of cognitive data: 16 of the top 20 most significant features were gaze-based, with "Average Fixation Duration" and "Largest Regression Position" ranking highest.

Conclusion and Future Work

This research demonstrates that human cognitive processes provide a powerful signal for sarcasm detection. While the current requirement for eye-tracking hardware at "test-time" is a limitation, the proliferation of eye-tracking technology in consumer devices suggests a path toward real-world application. Future research may focus on modeling these gaze patterns for longer, more context-dependent texts or developing methods to simulate these cognitive features without direct human measurement.

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