Facial expression recognition in controlled and in-the-wild settings: a comparative study of EfficientNet-B2 and ResNet50 on various low-resolution image datasets
Background Facial expression recognition (FER) is challenged by variable image quality, resolution, and acquisition conditions, and it remains unclear how well controlled, studio-based training transfers to in-the-wild deployment. Methods This paper presents a comparative study of two deep learning pipelines, an EfficientNet-B2 backbone with two-phase progressive fine-tuning and a ResNet50 backbone with single-phase training incorporating mixup and test-time augmentation (TTA), evaluated on the controlled, balanced KDEF dataset and the imbalanced, in-the-wild RAF-DB dataset. In addition to the headline accuracy, we also conducted a resolution sensitivity analysis. Also, we tried the training with multiple seeds and split KDEF once again so that no subject would be in two partitions. This was followed by a test of transferring between the two datasets. Results On KDEF, EfficientNet-B2 reached 92.86% validation accuracy and ResNet50 reached 95.00% validation and 90.41% TTA test accuracy; on RAF-DB, EfficientNet-B2 reached 90.91% validation accuracy and ResNet50 reached 91.85% TTA test accuracy, though the two pipelines follow different evaluation protocols and are not directly comparable. Happy was the most reliably recognised class on both datasets; Angry was hardest on KDEF, while Fear and Disgust were hardest on RAF-DB due to underrepresentation. Additional analyses show RAF-DB accuracy is markedly more resolution-robust than KDEF (declining 1.4–5.4 points vs. up to 24.4 points from 224px to 64px) and ResNet50's TTA accuracy is stable across seeds (under 1.5-point variation). Discussion These results show that strong within-dataset performance does not imply cross-domain robustness and should be read as benchmarks of how acquisition conditions shape FER model behaviour. The findings highlight the importance of dataset-aware evaluation, subject-disjoint splitting, and cross-domain testing for FER systems intended for real-world deployment.
Authors
- Syamasudha Veeragandham (ORCID: https://orcid.org/0000-0001-7741-3143)
- Piyush Kothari
- SAANVI GOEL
Institutions
- Vellore Institute of Technology University (IN)
Publication Details
- Journal
- Frontiers in Artificial Intelligence
- Published
- 2026-12-01
- DOI
- https://doi.org/10.3389/frai.2026.1962956
- Primary Topic
- Emotion and Mood Recognition
- Type
- article
- Field-Weighted Citation Impact
- 0.00