AffectNet: A Database for Facial Expression, Valence, and Arousal Computing in the Wild
Ali MollahosseiniBehzad HasaniMohammad H. Mahoor
Presents AffectNet, a large-scale in-the-wild facial expression database annotated for both categorical emotions and continuous valence-arousal dimensions, establishing deep learning baselines to advance automated affective computing.
Automated facial expression recognition is critical for developing responsive human-machine interfaces, yet existing systems struggle to perform reliably in real-world, uncontrolled environments. Progress has been hindered because available training datasets are relatively small, often captured in artificial laboratory settings, and largely restricted to discrete emotion categories (such as happiness or anger). Crucially, existing datasets lack sufficient coverage of continuous dimensional models—namely valence (how positive or negative an emotion is) and arousal (the level of excitation or calmness)—which are essential for capturing subtle variations and emotional intensity.
The article introduces AffectNet, a massive in-the-wild facial affect database, and demonstrates its utility for training automated systems to recognize both discrete emotion categories and continuous dimensional states.
To build AffectNet, researchers collected over one million facial images from the web using 1,250 emotion-related search queries across six languages. Twelve trained human annotators manually labeled 450,000 images for discrete emotion categories, continuous valence and arousal levels, and facial occlusions, while a subset of 36,000 images was labeled by two independent annotators to assess human agreement. The authors then developed baseline deep convolutional neural networks to classify discrete emotions and predict continuous valence and arousal values, comparing these models against conventional machine learning methods and an established commercial system.
The investigation produced three main findings. First, human agreement on facial affect in uncontrolled settings is moderately low: annotators agreed on discrete emotion categories in only 60.7% of cases and demonstrated higher consistency when rating valence than arousal. Second, among various deep learning strategies used to tackle data imbalance, a weighted-loss approach achieved the highest skew-normalized performance, delivering an overall multi-class accuracy of 0.63 and an F1-score of 0.62, compared to 0.37 accuracy and 0.31 F1-score for conventional support vector machines. Third, the deep learning baseline outperformed both support vector regression and an off-the-shelf commercial tool (Microsoft Cognitive Services Emotion API), which scored an overall accuracy of 0.48 and struggled significantly on under-represented classes like contempt, disgust, and fear.
These findings indicate that large-scale, in-the-wild datasets coupled with deep learning architectures substantially reduce the risk of system failure in unconstrained environments. Because the commercial off-the-shelf system and baseline models struggled on minority and nuanced emotions, organizations relying on facial recognition for human-computer interaction or monitoring must account for performance disparities across different emotional states. The research shows that continuous dimensional modeling effectively captures complex states that discrete categories miss, though automated detection remains inherently more challenging for arousal than valence.
Organizations developing emotion-aware technologies should adopt large-scale in-the-wild benchmarks like AffectNet for model training and benchmarking. Teams should utilize weighted-loss formulations or advanced balancing strategies during training to prevent severe performance drops on minority emotional classes. Furthermore, researchers and practitioners should investigate co-training methods that leverage both categorical and dimensional labels simultaneously within the same corpus to boost overall prediction robustness.
A primary limitation of this work is the intrinsic skew of web-sourced data, which heavily favors positive and neutral expressions over rarer emotions like disgust and contempt. Additionally, the moderate rate of human annotator agreement highlights inherent subjectivity in emotional perception, meaning automated models trained on these labels will carry baseline uncertainty, particularly when predicting emotional arousal.
- Paper: ImageNet: A large-scale hierarchical image database, Jia Deng et al. (2009). ImageNet established the foundational large-scale image dataset collection paradigm and crowdsourced annotation methodology that AffectNet directly adapts for facial expression computing.
- Paper: ImageNet Classification with Deep Convolutional Neural Networks, Alex Krizhevsky et al. (2012). Krizhevsky et al. demonstrated the transformative capability of deep convolutional neural networks on large visual datasets, setting the baseline architecture paradigm evaluated in AffectNet.
- Paper: FaceForensics++: Learning to Detect Manipulated Facial Images, Andreas Rössler et al. (2019). FaceForensics++ builds upon the foundation of large-scale facial image databases to explore advanced forgery detection and manipulation classification in unconstrained settings.
