Abstract
Context-Aware Emotion Recognition (CAER) leverages environmental information to improve emotion detection. However, models often fall prey to context bias, learning spurious correlations between specific backgrounds and emotions. This paper proposes the Contextual Causal Intervention Module (CCIM), a plug-and-play component that utilizes causal inference to de-confound training. By applying backdoor adjustment through a learned confounder dictionary, CCIM forces models to focus on genuine emotional cues rather than statistical shortcuts. Experimental results across EMOTIC, CAER-S, and GroupWalk datasets demonstrate consistent performance improvements and state-of-the-art results.
Introduction
Identifying human emotions requires a holistic understanding of both the individual and their environment. While Context-Aware Emotion Recognition (CAER) aims to achieve this, it faces a significant hurdle: context bias. Datasets often contain skewed distributions where certain environments (e.g., a sunny beach) are predominantly associated with specific emotions (e.g., happiness). Standard deep learning models tend to exploit these statistical correlations, leading to poor generalization when the context does not match the expected emotion.
This phenomenon is a result of confounding variables—hidden factors that influence both the input context and the predicted emotion. To address this, the authors move beyond simple likelihood estimation $P(Y|X)$ toward causal intervention $P(Y|do(X))$, ensuring the model learns the true causal relationship between the subject's state and the perceived emotion.
Methodology: The Contextual Causal Intervention Module (CCIM)
The core of the proposed solution is the Contextual Causal Intervention Module (CCIM). The approach involves three main steps:
- Causal Graph Construction: The CAER task is modeled as a causal graph where context bias acts as a confounder ($Z$) that influences both the input and the final prediction.
- Confounder Dictionary: To represent the unobserved variety of global contexts, the authors create a "dictionary" of context prototypes. This is achieved by masking subjects in training images to isolate backgrounds, extracting features via a ResNet-152 backbone, and clustering these features using K-Means++.
- Backdoor Adjustment: During training, the CCIM module implements the $do$-operator using backdoor adjustment theory. It uses an attention mechanism to compare the current image's features against the Confounder Dictionary, effectively marginalizing the effect of the context.
To maintain computational efficiency, the Normalized Weighted Geometric Mean (NWGM) is used to approximate the causal effect at the feature level, allowing CCIM to be easily integrated into existing architectures as a "plug-and-play" module.
Experimental Evaluation
The CCIM module was evaluated on three major benchmarks: EMOTIC, CAER-S, and GroupWalk.
- EMOTIC: Integration of CCIM led to an mAP (mean Average Precision) increase of 2.66% to 3.85% across various baselines. Notably, performance on rare categories like "Aversion" and "Sympathy" saw significant boosts, indicating better handling of long-tail distributions.
- CAER-S: The module helped achieve a new state-of-the-art accuracy of 91.17% when paired with the EmotiCon baseline.
- Robustness: Qualitative analysis indicates that de-confounded models focus more on the subject's facial expressions and body language rather than relying on background cues, even in ambiguous scenarios.
Conclusion
The Contextual Causal Intervention Module (CCIM) provides a robust, plug-and-play solution for mitigating context bias in emotion recognition. By shifting from correlation-based learning to causal intervention, the model becomes more resilient to dataset-specific biases. Future work will explore extending this causal framework to temporal data in video sequences and applying similar de-confounding strategies to other computer vision tasks like salient object detection.
Summary updated