Abstract
Temporal Emotion Localization (TEL) is a challenging computer vision task that requires identifying the precise start and end times of human emotions within untrimmed video sequences. Unlike standard action recognition, emotions are often subtle, context-dependent, and vary significantly in duration. This paper presents the Dilated Context Integrated Network (DCIN), a coarse-to-fine architecture designed to capture multi-scale temporal dynamics. To address the scarcity of frame-level annotations, we introduce a Cross-Modal Consensus Learning (CCL) paradigm. CCL leverages subtitles as a weakly-supervised signal, aligning linguistic semantics with visual cues through a Temporal Alignment Relaxation (TAR) mechanism. Experimental results on the MovieGraph dataset demonstrate that DCIN-CCL significantly outperforms existing weakly-supervised baselines, achieving a 28.59% mAP and showing strong transferability to standard action localization tasks.
1. Introduction
While significant progress has been made in recognizing facial expressions in static images and classifying emotions in short, trimmed video clips, the problem of Temporal Emotion Localization (TEL) in untrimmed videos remains largely under-explored. In real-world scenarios, such as feature films, emotions are not merely physical reactions but are deeply intertwined with complex plots and character arcs.
Localizing these emotions presents three primary challenges. First, temporal dynamics vary wildly; an emotion like "surprise" may last a fraction of a second, while "melancholy" might persist for minutes. Second, complex cues necessitate multi-modal reasoning, as visual information alone is often insufficient to distinguish between nuanced emotional states without the context provided by dialogue. Finally, annotation scarcity poses a major bottleneck, as manual frame-by-frame labeling of emotional boundaries is prohibitively expensive and subjective.
2. Proposed Method
To address these hurdles, we propose a framework consisting of the Dilated Context Integrated Network (DCIN) and a Cross-Modal Consensus Learning (CCL) strategy.
2.1 Dilated Context Integrated Network (DCIN)
DCIN utilizes a two-stream architecture to process video at multiple temporal resolutions:
- Coarse Stream: This stream employs 1D dilated convolutions to establish a hierarchy of temporal contexts. By varying the dilation rates, the model can simultaneously perceive short-term emotional bursts and long-term emotional trends.
- Fine Stream: This stream features a Gated Temporal Context Integration module. It uses aligned subtitles to "filter" visual features, effectively determining which surrounding segments are relevant to the current emotional state.
- Context-Sensitive Constraint: To ensure the model effectively utilizes the surrounding "plot," we introduce a novel loss function. This constraint forces the model to produce distinct probability distributions before and after context integration, penalizing the model if the surrounding context does not meaningfully refine the prediction.
2.2 Cross-Modal Consensus Learning (CCL)
To bypass the need for dense temporal labels, we adopt a weakly-supervised approach using subtitles as a proxy. The CCL paradigm is built on the principle that if a video segment is labeled with a specific emotion, the corresponding dialogue should reflect that same sentiment.
- Consensus Loss: The model identifies the most semantically relevant video segments for a given emotion label and ensures the predicted visual emotion matches the emotion derived from the co-occurring subtitle text.
- Temporal Alignment Relaxation (TAR): Recognizing that visual emotional cues and spoken dialogue are often slightly asynchronous (e.g., a character may react visually before speaking), TAR allows the model to dynamically search a local neighborhood of segments to find the optimal semantic match between modalities.
3. Experiments and Results
3.1 Experimental Setup
We primarily evaluated our model on the MovieGraph dataset, which contains 7,637 clips from 51 movies. To facilitate quantitative evaluation, we contributed a new TEL testing set consisting of 3,000 samples with manually annotated precise temporal boundaries. Additionally, we tested the architecture's versatility on THUMOS-14 (action localization) and ActivityNet Captions (temporal sentence grounding).
3.2 Performance Analysis
The DCIN-CCL framework demonstrated superior performance over state-of-the-art weakly-supervised action localization (WSAL) baselines. On the MovieGraph dataset, the model achieved a 28.59% mAP, nearly doubling the performance of adapted baselines such as 3C-Net (11.42%) and ASL (14.85%).
Ablation studies highlighted the necessity of the multi-modal approach. Removing the subtitle component (DCIN w/o subtitle) resulted in a performance drop from 28.59% to 19.96% mAP. Furthermore, the model showed impressive transferability; despite being designed for emotion, the DCIN architecture improved performance on the THUMOS-14 action localization task, suggesting the dilated context mechanism is broadly effective for temporal modeling.
4. Discussion and Conclusion
Our findings suggest that emotions are fundamentally different from actions. Unlike physical movements like "running," emotions such as "disquietment" or "affection" are inherently ambiguous and require broader temporal context to identify. The use of subtitles as a "supervisor" in a weakly-supervised setting proved to be a powerful anchor, with the consensus mechanism effectively leveraging high-level linguistic semantics to guide the visual model.
Future work will address current limitations, such as the inherent class imbalance in emotional datasets and the potential for metaphorical or unrelated dialogue in subtitles to introduce noise. We also aim to explore graph-based reasoning to better model the social dynamics between multiple characters in a scene.
Summary updated