End-to-End Facial Expression Detection in Long Videos
Yini Fang, Alec Diallo, Yiqi Shi, Frederic Jumelle, Bertram Shi
TL;DR
The paper tackles the problem of end-to-end facial expression detection in long videos by jointly optimizing spotting (onset/offset) and recognition (emotion category) within a single network, FEDN. FEDN employs an attention-driven backbone (segment and sliding window attention), a temporal feature pyramid (neck), and decoupled task heads to simultaneously locate expressions and classify them, while using a 1D Distance IoU loss and binary cross-entropy for training. Empirical results on CASME$^2$ and CASME$^3$ show state-of-the-art performance in both spotting and detection, with notable gains over cascaded or single-task baselines, validating the benefits of joint optimization and facial-specific feature learning. The work reduces error propagation from sequential pipelines, lowers computational cost by eschewing optical flow, and provides a robust framework for robust expression detection in long videos with practical implications for psychology, neuroscience, and human-computer interaction.
Abstract
Facial expression detection involves two interrelated tasks: spotting, which identifies the onset and offset of expressions, and recognition, which classifies them into emotional categories. Most existing methods treat these tasks separately using a two-step training pipelines. A spotting model first detects expression intervals. A recognition model then classifies the detected segments. However, this sequential approach leads to error propagation, inefficient feature learning, and suboptimal performance due to the lack of joint optimization of the two tasks. We propose FEDN, an end-to-end Facial Expression Detection Network that jointly optimizes spotting and recognition. Our model introduces a novel attention-based feature extraction module, incorporating segment attention and sliding window attention to improve facial feature learning. By unifying two tasks within a single network, we greatly reduce error propagation and enhance overall performance. Experiments on CASME}^2 and CASME^3 demonstrate state-of-the-art accuracy for both spotting and detection, underscoring the benefits of joint optimization for robust facial expression detection in long videos.
