Abstract
Facial expression recognition (FER) in real-world scenarios remains a significant challenge due to lighting variations, occlusions, and class imbalance. This study proposes a robust ensemble learning framework that combines heterogeneous neural network architectures—ResNet50, EfficientNet-b0, and InceptionNet-v1—with a multi-fold cross-validation fusion strategy. Evaluated on the AffWild2 dataset for the ABAW2022 Challenge, the approach leverages multi-class focal loss and weighted averaging to enhance generalization. Results indicate that the ensemble consistently surpasses individual model performance, providing a more reliable solution for "in-the-wild" affect analysis.
Introduction
Most facial expression recognition (FER) systems are developed using datasets captured in controlled laboratory environments. However, real-world ("in-the-wild") human affect is significantly more complex. Challenges include inconspicuous facial features, varying lighting conditions, non-frontal head poses, and subtle expressions that blur the boundaries between categories.
The authors address these issues within the context of the ABAW2022 (Affective Behavior Analysis in-the-wild) Challenge, utilizing the AffWild2 dataset. The primary goal is to develop a system capable of handling the inherent noise and imbalanced class distributions typical of public video data.
Methodology
The proposed framework employs a two-tiered ensemble strategy to capitalize on the complementary strengths of different neural architectures.
Heterogeneous Fusion (Within the Fold)
For each data subset, three distinct architectures are trained: ResNet50, EfficientNet-b0, and InceptionNet-v1. These models represent different structural paradigms—residual learning, optimized scaling, and multi-scale feature extraction—allowing them to capture a diverse range of facial features. Their outputs are combined via weighted averaging to form a "Fusion Block."
Homogeneous Fusion (Across Folds)
To prevent overfitting and ensure robust generalization, a 5-fold cross-validation approach is implemented. The ensemble is trained on five different data splits, and the final prediction is derived by fusing the outputs across these five versions.
Multi-class Focal Loss
To mitigate the impact of class imbalance (e.g., the prevalence of "Happiness" vs. the rarity of "Fear"), the authors utilized Multi-class Focal Loss. This loss function dynamically down-weights easy, frequent examples, forcing the model to prioritize hard-to-classify, rare expression categories.
Dataset and Pre-training
The study utilizes the AffWild2 dataset, a comprehensive benchmark for in-the-wild affect analysis.
- Scale: Over 2.6 million frames from 548 videos.
- Subjects: 431 individuals with diverse demographic backgrounds.
- Labels: 8 categories, including the six basic emotions, neutral, and "others."
To improve performance, ResNet and InceptionNet models were pre-trained on the VGGFace2 dataset. This provided the models with a foundational understanding of human facial features across various poses and ethnicities before fine-tuning on the target dataset.
Results and Discussion
Performance was evaluated using the F1-score to account for the imbalanced nature of the data.
Performance Gains through Fusion
Individual models achieved F1-scores between 0.22 and 0.31. The ensemble approach demonstrated a clear advantage; for instance, "Fusion 1" (using a simple 1:1:1 ratio) reached an F1-score of 0.331 in the best-performing fold.
Key Insights
- Architectural Diversity: No single model architecture is universally superior for all facial types. Combining models with different "philosophies" effectively covers individual blind spots.
- Stability: The multi-fold ensemble acts as a stabilizer, reducing prediction variance when visual evidence is ambiguous or "blurry."
- Consistency: The ensemble consistently outperformed the best individual model in every fold, validating the reliability of the multi-model approach.
Conclusion and Future Work
The multi-model ensemble provides a significant performance boost for real-world facial expression recognition. However, the peak F1-scores (approximately 0.33) underscore the ongoing difficulty of "in-the-wild" analysis. Future research may explore temporal modeling to capture the dynamics of expressions over time, rather than treating frames in isolation. Additionally, automated methods for optimizing model weights within the ensemble could further refine accuracy.
Summary updated