Expression, Affect, Action Unit Recognition: Aff-Wild2, Multi-Task Learning and ArcFace

Dimitrios Kollias, Stefanos Zafeiriou

TL;DR

Aff-Wild2 is the first large-scale "in-the-wild" audiovisual database providing joint annotations for valence-arousal, action units, and basic expressions. By leveraging multi-task learning and adapting the ArcFace loss function for emotion recognition, the authors achieve state-of-the-art results across ten major affective computing benchmarks.

What Problem Does This Paper Address?

Teaching computers to recognize human emotion (affective computing) is fundamentally a data problem. While deep learning has revolutionized the field, models are often limited by the datasets they are trained on. Existing databases frequently suffer from several drawbacks: they are recorded in controlled lab settings that don't reflect real-world ("in-the-wild") complexity, they lack audio components, or they only focus on a single type of emotional representation.

In affective computing, there are three main ways to describe behavior:

  1. Valence-Arousal (VA): Continuous dimensions representing how positive/negative and how intense an emotion is.
  2. Action Units (AUs): Specific muscle movements (e.g., "brow lowerer").
  3. Basic Expressions (Expr): Categorical labels like "Happy," "Sad," or "Surprise."

Until this paper, no large-scale "in-the-wild" database provided annotations for all three simultaneously, preventing researchers from studying the relationships between these different behavioral states.

Methods

The authors propose a multi-pronged approach to improve emotion recognition:

  • Multi-Task Learning (MTL): Instead of training separate models for VA, AU, and Expr, they develop architectures that learn all three tasks at once. This allows the model to learn a shared, more robust feature representation.
  • CNN-RNN Architectures: To capture the temporal dynamics of emotion in video, they stack Gated Recurrent Units (GRUs) on top of powerful CNN backbones (like VGGFace and Inception-ResNet).
  • Multimodal Fusion: They introduce a model that processes both visual frames and audio spectrograms, fusing these features to improve predictions, particularly for emotional intensity (arousal).
  • ArcFace Adaptation: They adapt the ArcFace loss function—originally designed for high-accuracy face recognition—to the context of emotion classification. By adding an additive angular margin, they force the model to learn more distinct boundaries between different emotional categories.
Figure 3: 2D VA Histogram of the new data added to Aff-Wild (left); Histogram of the seven basic expressions in Aff-Wild2 (right)

Datasets

The core contribution is Aff-Wild2, an extension of the original Aff-Wild database.

  • Aff-Wild2: Contains 558 YouTube videos (~2.8 million frames) featuring 458 subjects. It includes a diverse range of ethnicities, ages, head poses, and lighting conditions.
  • Annotations: It provides manual annotations for Valence-Arousal, 8 Action Units, and 7 basic expressions.
Aff-Wild2 captures a wide variety of subjects, ethnicities, and environmental conditions "in-the-wild."

The models were also evaluated on 10 other public databases to prove their generalization capability, including AffectNet, RAF-DB, FER2013, AFEW-VA, and BP4D+.

Key Insights and Ideas

  • The Power of Joint Learning: Training on all three tasks (VA, AU, Expr) simultaneously doesn't just save computation; it improves performance. The tasks are inherently related, and the model benefits from these cross-task correlations.
  • Audio as "Thematic Constancy": The authors found that audio is a powerful signal for arousal. While visual expressions might change rapidly, the background music or tone of voice in a video often provides a steadier indicator of the overall emotional intensity.
  • Angular Margins for Emotions: Adapting ArcFace proved highly effective. Because many human expressions are subtle and overlap in feature space, the angular margin helps the network "push" different emotion classes apart, leading to better classification accuracy.
  • Dataset Richness: The sheer diversity of Aff-Wild2 (shown in Figure 1) makes it an excellent "prior" for pre-training. Models pre-trained on Aff-Wild2 and then fine-tuned on smaller datasets consistently outperformed models trained from scratch.
Figure 2: The 2D Emotion Wheel (left); the AUs annotated in Aff-Wild2 (right)

Key Results

  • State-of-the-Art (SOTA): The proposed multi-task models (MT-VGG and MT-VGG-RNN) outperformed existing SOTA methods on nearly all tested databases for VA and AU detection.
  • Multimodal Gains: The A/V-MT-VGG-RNN model achieved a Concordance Correlation Coefficient (CCC) of 0.42 for valence and 0.38 for arousal on Aff-Wild2, significantly beating visual-only baselines.
  • ArcFace Success: Networks trained with ArcFace (MT-ArcRes and MT-ArcVGG) set new performance records for expression recognition on AffectNet (0.63 F1), RAF-DB (0.76 accuracy), and FER2013 (0.80 accuracy).
Figure 4: A/V-MT-VGG-RNN: the Multi-Modal and Multi-Task developed model

Limitations and Future Work

  • Annotation Consensus: The authors noted that expert annotators do not always agree on emotional labels. They chose to keep only the annotations where all experts agreed, which may exclude more ambiguous (but still real) emotional states.
  • Sub-set Sizes: While the overall dataset is massive, the specific subsets for AUs (~398K frames) and Expressions (~404K frames) are smaller than the full VA set (~2.8M frames).
  • Future Extensions: The authors suggest that the Expression set could be further extended to include AU annotations, creating an even more densely labeled resource for the community.

The database and source code are available at http://ibug.doc.ic.ac.uk/resources/aff-wild2.

Summary updated

BibTeX
@inproceedings{kollias2019expression,
  author = {Dimitrios Kollias and Stefanos Zafeiriou},
  title = {{Expression, Affect, Action Unit Recognition: Aff-Wild2, Multi-Task Learning and ArcFace}},
  booktitle = {BMVC},
  year = {2019},
}
Figure