Skip to main content
QUICK REVIEW

[Paper Review] Multi-label Transformer for Action Unit Detection

Gauthier Tallec, Edouard Yvinec|arXiv (Cornell University)|Mar 23, 2022
Emotion and Mood RecognitionPsychology6 citations
TL;DR

This paper proposes a multi-label Transformer architecture for Action Unit (AU) detection that leverages self-attention on facial patches and cross-attention between learned AU tokens and image features to localize relevant facial regions per AU. The method achieves a test mean F1 score of 53.8 on the ABAW3 challenge, demonstrating improved performance through attention-based feature selection and handling of class imbalance via frequency weighting and Dice loss.

ABSTRACT

Action Unit (AU) Detection is the branch of affective computing that aims at recognizing unitary facial muscular movements. It is key to unlock unbiased computational face representations and has therefore aroused great interest in the past few years. One of the main obstacles toward building efficient deep learning based AU detection system is the lack of wide facial image databases annotated by AU experts. In that extent the ABAW challenge paves the way toward better AU detection as it involves a 2M frames AU annotated dataset. In this paper, we present our submission to the ABAW3 challenge. In a nutshell, we applied a multi-label detection transformer that leverage multi-head attention to learn which part of the face image is the most relevant to predict each AU.

Motivation & Objective

  • To address the challenge of multi-label Action Unit detection in facial images, which involves localized muscular movements and high inter-AU dependencies.
  • To improve AU detection by learning which facial regions are most relevant for predicting each AU through attention mechanisms.
  • To mitigate class imbalance in AU detection, where most frames show no AU activation, using frequency-based loss weighting and Dice loss.
  • To enhance performance through pretraining on related datasets (DISFA, BP4D) with masked AU annotations and data augmentation.
  • To validate the effectiveness of the proposed architecture in the ABAW3 challenge, a large-scale, real-world AU detection benchmark.

Proposed method

  • The model uses a Vision Transformer-based architecture with image patch embeddings and positional encoding to process facial images.
  • Self-attention is applied over image patches to learn local, context-aware features across the face.
  • Learned AU tokens attend to image features via cross-attention, allowing the model to dynamically select relevant facial regions for each AU.
  • The architecture integrates multi-head attention, layer normalization, and feedforward networks in a stack of transformer blocks.
  • A final projection head with sigmoid activation outputs per-AU probabilities, and predictions are smoothed over 20-frame windows to model segment-level AU events.
  • Training uses a hybrid loss combining binary cross-entropy with frequency-based class weights and Dice loss to address long-tail class distribution.

Experimental results

Research questions

  • RQ1Can a multi-label Transformer with cross-attention between AU tokens and image features improve localization of relevant facial regions for individual AUs?
  • RQ2How effective is attention-based feature selection in capturing the highly localized and transient nature of Action Unit activations?
  • RQ3To what extent can pretraining on related AU datasets (DISFA, BP4D) with masked annotations improve performance on the ABAW3 benchmark?
  • RQ4Does combining frequency-based loss weighting and Dice loss significantly improve F1 performance on imbalanced AU detection?
  • RQ5Can frame-level predictions be effectively smoothed into segment-level AU detections using temporal averaging?

Key findings

  • The model achieved a test mean F1 score of 53.8 on the ABAW3 challenge, representing the best-performing submission among the reported configurations.
  • Using a moving average of 20 frames to smooth predictions significantly improved temporal consistency and performance.
  • Pretraining on DISFA and BP4D datasets with masked AU annotations led to a performance boost, though the exact gain is not quantified in the table.
  • The combination of frequency-based loss weighting and Dice loss contributed to better handling of long-tail AU distributions, improving F1 scores.
  • Data augmentation techniques, including mixup and geometric/color transformations, improved generalization and robustness.
  • The ablation study showed that removing the moving average or frequency weighting led to lower performance (e.g., 52.7% and 50.3% respectively), confirming their importance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.