Abstract
Sentiments expressed in user-generated short text and sentences are nuanced by subtleties at lexical, syntactic, semantic and pragmatic levels. To address this, we propose to augment traditional features used for sentiment analysis and sarcasm detection with cognitive features derived from the eye-movement patterns of readers. Statistical classification using our enhanced feature set improves the performance (F-score) of polarity detection by a maximum of 3.7% and 9.3% on two datasets, over the systems that use only traditional features. We perform feature significance analysis and experiment on a held-out dataset, showing that cognitive features indeed empower sentiment analyzers to handle complex constructs.
Introduction
Sentiment Analysis (SA) is the automated process of determining whether a piece of text is positive or negative. While simple sentences are easily processed by machines, "user-generated content"—such as tweets or reviews—is a minefield of linguistic nuances. Traditional Natural Language Processing (NLP) tools often struggle with lexical challenges (domain-specific meanings), syntactic complexity, and pragmatic hurdles like sarcasm and irony. These "boss level" challenges require a deeper understanding of context and world knowledge that humans use instinctively.
This research demonstrates that sentiment analysis can be significantly improved by looking at how humans actually read. By augmenting traditional text-based features with "cognitive features" derived from eye-tracking data, we can capture the "surprisal" effect humans experience when encountering complex linguistic constructs like irony.
Methodology: Integrating Cognitive Signals
The proposed hybrid approach combines standard linguistic features with cognitive features derived from human eye-movement patterns.
The Feature Set
- Traditional Features: Includes unigrams, subjective word counts (using the MPQA lexicon), and part-of-speech ratios.
- Sarcasm-Specific Features: Focuses on detecting "implicit incongruity"—where a positive phrase is followed by a negative situational phrase—and analyzing punctuation patterns.
- Cognitive Features: These are derived from gaze metrics such as fixation duration (how long a reader pauses on a word), skip counts, and regressions (how often eyes jump back to previous words).
Additionally, the study introduces Gaze-Saliency Graphs, which treat words as nodes and eye movements between them as edges. Metrics like edge density and weighted degrees represent how a reader's brain maps the relationships between words, capturing the structural difficulty of a sentence.
Experimental Results
The study utilized two datasets: Dataset 1 (D1), containing 994 snippets with a high concentration of sarcasm, and Dataset 2 (D2), containing 1059 snippets from movie reviews and tweets. Three classifiers were tested: Naive Bayes, Support Vector Machines (SVM), and Multi-layer Neural Networks.
As shown in the results table, the augmented feature set (Text + Gaze) outperformed text-only systems across the board. Specifically, for the SVM classifier, the F-score improved by 3.7% on Dataset 1 and 9.3% on Dataset 2 when comparing sentiment-only features (Sn) to the full augmented set (Sn+Sr+Gz).
A chi-squared analysis further validated these results, revealing that 10 of the top 20 most important features for Dataset 1 were gaze-based, proving that cognitive data is highly predictive of sentiment and sarcasm.
Discussion and Conclusion
The "surprisal" effect observed in eye-tracking data acts as a powerful proxy for linguistic complexity. When humans encounter irony, they often perform "long regressions"—jumping back to the beginning of a sentence to re-evaluate context. These physical signals provide machines with the pragmatic context they otherwise lack.
While current eye-tracking hardware is a limitation for widespread deployment, the rise of inexpensive, camera-based eye-trackers in mobile devices offers a path toward real-world feasibility. Future work will explore deep learning architectures to automatically learn complex gaze representations, moving beyond hand-crafted features to further refine sentiment detection in nuanced human communication.
Summary updated