Abstract
Facial Expression Recognition (FER) systems often falter when transitioning from controlled laboratory environments to "in-the-wild" scenarios characterized by varying image resolutions and environmental noise. This paper introduces a robust training strategy that utilizes a ResNet-50 architecture enhanced with Squeeze-and-Excitation blocks. By implementing a multi-resolution training procedure—ranging from 8 to 256 pixels—the proposed model achieves over 90% accuracy on the challenging Affect-in-the-Wild 2 (Aff-Wild2) dataset. The findings suggest that simple random resolution sampling is sufficient to build resolution-agnostic models without the need for complex curriculum learning or teacher-student frameworks.
Introduction: The Challenge of Real-World FER
Facial Expression Recognition is a critical component of modern human-machine interaction. However, a significant performance gap exists between models trained on high-quality, laboratory-curated datasets and those deployed in real-world settings. In the wild, facial images are rarely perfect; factors such as camera quality, distance, and poor lighting often result in low-resolution or blurry inputs.
Standard deep learning models typically experience a sharp decline in performance when processing these degraded inputs. This work addresses this limitation by proposing a training regime that explicitly accounts for heterogeneous image sources, ensuring model reliability across a spectrum of resolutions.
Methodology
The authors employ a ResNet-50 backbone, augmented with Squeeze-and-Excitation (SE) blocks. These blocks facilitate "feature recalibration," allowing the network to prioritize informative facial regions—such as the eyes or mouth—essential for emotional classification.
Multi-resolution Training
The core innovation lies in the multi-resolution training procedure. Unlike traditional approaches that use fixed-size inputs, this method utilizes a "double random extraction" technique. During training, images are randomly resized to resolutions between 8x8 and 256x256 pixels.
Notably, the authors found that complex strategies like curriculum learning (gradually increasing difficulty) or teacher-supervised signals were unnecessary. Simple random sampling proved robust enough for high performance. To address class imbalance (e.g., the prevalence of "Neutral" vs. "Fear"), a balanced cross-entropy loss was implemented, assigning higher weights to underrepresented expressions.
Datasets and Experimental Setup
The study utilizes the Affect-in-the-Wild 2 (Aff-Wild2) dataset, which comprises approximately 2.6 million frames from 547 YouTube videos. This dataset is particularly challenging due to its "in-the-wild" nature, featuring diverse poses, lighting conditions, and backgrounds.
The model was trained to recognize seven basic expressions: Neutral, Anger, Disgust, Fear, Happiness, Sadness, and Surprise.
Key Results and Insights
Due to the private nature of the Aff-Wild2 test set, performance was evaluated on the validation set:
- Overall Accuracy: 97.0%
- Macro-average F1-Score: 0.964
- Challenge Score: 0.966
The model demonstrated remarkable stability, with per-class F1-scores ranging from 0.937 (Surprise) to 0.987 (Sadness). This consistency across classes, including those with minimal training data (Fear and Disgust), validates the effectiveness of the weighted loss function.
Insights
- Resolution Agnosticism: Treating resolution as a fundamental data property rather than noise makes models more viable for practical applications like mobile robotics or surveillance.
- Architectural Robustness: Modern architectures like ResNet-50 can handle multi-resolution data through simple augmentation, bypassing the need for more complex training schedules.
Conclusion and Future Work
This discussion paper demonstrates that a multi-resolution training strategy can significantly enhance the robustness of FER models in real-world conditions. While the results on Aff-Wild2 are promising, future work will focus on generalizing these findings across other benchmark datasets such as FER2013 and RAF-DB. Additionally, the authors intend to investigate the computational efficiency of this approach for deployment on edge devices.
Summary updated