Detecting subtle facial muscle movements, known as Action Units (AUs), is a cornerstone of affective computing. However, in-the-wild video analysis remains difficult due to lighting variations, occlusions, and the inherent imbalance of AU data. In this paper, researchers from Shenzhen University and the University of Leicester present a novel spatio-temporal graph learning framework that secured 4th place in the AU detection track of the 5th Affective Behavior Analysis in-the-wild (ABAW) Competition.
TL;DR
The authors propose a framework that combines self-supervised facial pre-training with a hybrid graph-based model to capture both the spatial relationships between facial muscles and their temporal dynamics over time. By leveraging a massive unlabeled face dataset and a Spatio-Temporal Graph Learning (STGL) module, their approach significantly outperforms standard baselines in detecting 12 distinct facial action units.
What Problem Does This Paper Address?
Facial AU detection is a multi-label classification challenge where the goal is to identify which specific muscles are active in a face. Two major hurdles persist:
- Data Imbalance: Some AUs (like AU25, lips parting) appear frequently, while others (like AU24, lip pressor) are rare. This often leads to biased models that struggle with infrequent movements.
- Complex Relationships: AUs are not independent. Spatially, certain AUs often co-occur (e.g., a smile involves both the cheeks and mouth corners). Temporally, facial movements are smooth and continuous, meaning information from adjacent video frames is crucial for accurate detection.
Existing methods often fail to jointly address these spatial and temporal dependencies while simultaneously overcoming data scarcity.
Methods
The proposed pipeline consists of three main stages:
- Facial Representation Encoder (FRE): To combat data imbalance, the authors first pre-train a Masked Autoencoder (MAE) on nearly 2 million unlabeled face images. By learning to reconstruct masked parts of a face, the model develops a robust "understanding" of facial geometry and features before it ever sees a manual AU label.
- AU-specific Feature Generator (AFG): This module takes the global facial representation and branches out to learn unique features for each of the $N$ target AUs.
- Spatio-Temporal Graph Learning (STGL): This is the core innovation. It consists of two sub-modules:
- Spatial GCN Module: It treats AUs as nodes in a graph. Instead of a fixed structure, it calculates similarity between AU features to build a dynamic topology for every frame, allowing the model to learn how different muscles interact spatially.
- Temporal Transformer Module: It treats the sequence of features for a single AU across time as a series of tokens. A Transformer then models the long- and short-range temporal dependencies, ensuring the detection is consistent with the physical reality of muscle movement.
Datasets
- Pre-training: A massive hybrid dataset of approximately 1,920,000 face images compiled from CASIA-WebFace, AffectNet, IMDB-WIKI, and CelebA.
- AU Detection (Competition): The Aff-Wild2 dataset, containing 541 video sequences manually or automatically annotated for 12 AUs (AU1, 2, 4, 6, 7, 10, 12, 15, 23, 24, 25, and 26).
Key Insights and Ideas
- Domain-Specific Pre-training Matters: The authors found that a model pre-trained on generic objects (ImageNet) performed worse than the baseline. However, switching to a large-scale facial dataset for self-supervised pre-training provided a massive performance boost, proving that bridging the domain gap is essential for fine-grained tasks like AU detection.
- Dynamic vs. Static Graphs: Rather than assuming muscles always interact the same way, the Spatial GCN builds a new graph for every frame based on feature similarity. This allows the model to adapt to different expressions and identities more effectively.
- Asymmetric Loss: To handle the fact that most AUs are "off" most of the time, the authors used an asymmetric loss function. This forces the training process to focus more on "hard" samples—both active AUs and inactive AUs that are easily confused.
Key Results
The framework achieved an average F1-score of 54.3% on the validation set, a significant jump from the 39.0% competition baseline. In the final test set evaluation, the model reached an F1-score of 51.3%, placing it 4th overall.
Ablation studies (shown in the table below) confirmed that both the spatial and temporal components were vital. Removing the temporal transformer, for instance, dropped the average F1-score from 54.3% to 52.7%.
Limitations and Future Work
While the model performed exceptionally well using only visual data, the top-ranked teams in the competition often utilized multi-modal features, such as audio. The authors acknowledge that facial expressions are frequently accompanied by vocal cues, and integrating audio information could further improve detection accuracy. Additionally, future work could explore multi-task learning, jointly predicting AUs alongside broader categories like basic emotions or valence/arousal levels.
Summary updated