Abstract
Facial Action Unit (AU) recognition in unconstrained environments remains a significant challenge due to environmental complexity, data imbalance, and labeling costs. This paper proposes a two-stage transfer learning framework that leverages hierarchical relationships between facial expressions and AUs. By pre-training a ResNet-50 backbone on expression recognition before fine-tuning for AU detection, the model achieves improved robustness and performance on the Aff-Wild2 dataset.
Introduction
Facial Action Units (AUs), as defined by the Facial Action Coding System (FACS), represent the fundamental components of facial movement. Recognizing these units is essential for affective computing; however, "in-the-wild" recognition faces three primary hurdles:
- Environmental Complexity: Variations in head pose, occlusions, and low resolution in real-world imagery.
- Data Imbalance: Natural occurrences of facial movements are highly skewed, making it difficult to learn rare AUs.
- Labeling Difficulty: The labor-intensive nature of annotating millions of frames for multiple AUs.
This work addresses these challenges using the 3rd Affective Behavior Analysis in-the-wild (ABAW) competition dataset, focusing on bridging the gap between controlled lab settings and real-world reliability.
Methodology
The proposed approach utilizes a two-stage transfer learning framework designed to capture hierarchical facial features.
Stage 1: Expression Pre-training
The framework begins with a ResNet-50 backbone acting as a feature extractor. It is initially trained on a facial expression recognition task using the Multi-PIE dataset. This stage aims to develop "pose-robust" feature representations, teaching the model to identify emotional facial structures across various camera angles and lighting conditions.
Stage 2: AU Fine-tuning
Following pre-training, the backbone is transitioned to the AU recognition task. A Multilayer Perceptron (MLP) with two hidden layers is attached as the AU classifier. The entire network is then fine-tuned using specific AU annotations from the Aff-Wild2 dataset. Both stages employ standard cross-entropy loss for optimization.
Datasets
The study leverages two distinct datasets to facilitate transfer learning:
- Multi-PIE: Employed in Stage 1, this large-scale database provides images of hundreds of participants under diverse poses and illuminations, labeled with facial expressions.
- Aff-Wild2: Used in Stage 2, this dataset contains approximately 2.7 million frames from 547 videos. It is characterized by its "in-the-wild" complexity and significant class imbalance across 12 facial action units.
Results and Discussion
The Stage 1 model achieved an average accuracy of 0.94 on the Multi-PIE dataset, establishing a strong foundation for feature extraction. In Stage 2, the model initially reached an F1 score of 0.460 on the Aff-Wild2 validation set. To address data imbalance, the authors optimized prediction thresholds for individual AUs, which improved the final performance to an F1 score of 0.47.
Key insights from this work include:
- Hierarchical Learning: Validating that models pre-trained on "macro" expressions can more effectively learn "micro" action units.
- Pose-Robustness: Transferring robustness from multi-angle expression datasets significantly aids in-the-wild AU detection.
- Threshold Optimization: Manual tuning of probability thresholds is critical for maximizing performance on imbalanced datasets.
Conclusion and Future Work
While the two-stage approach demonstrates effectiveness, several areas for improvement remain. Future research could explore more advanced architectures like Vision Transformers (ViTs) or incorporate temporal modeling (e.g., LSTMs) to capture the dynamic evolution of AUs in video sequences. Additionally, developing automated, learnable thresholding strategies could further enhance performance on imbalanced real-world data.
Summary updated