Multi-label Learning with Missing Values using Combined Facial Action Unit Datasets

Jaspar Pahl, Ines Rieger, Dominik SeussarXiv 2020

Abstract

Training robust deep learning models for Facial Action Unit (AU) detection is hindered by the high cost of expert annotation, leading to small, biased datasets. This paper explores combining multiple diverse datasets to create a large-scale meta-database. However, merging datasets results in a significant "missing label" problem, with nearly 70% of labels unknown. The authors propose a custom F1 macro loss function that masks missing labels during training. This approach achieves competitive performance (F1 macro of 0.58) without the need for complex label imputation, demonstrating that data diversity can outweigh label incompleteness.

Introduction

Facial Action Units (AUs) provide a standardized, objective measure of facial micro-movements, essential for analyzing human emotion and physical states. While deep learning has advanced AU detection, these models require vast amounts of annotated data. Expert annotation is expensive and time-consuming, resulting in individual datasets that are often limited in size and biased toward specific demographics or environments (e.g., controlled lab settings vs. "in-the-wild" scenarios).

To overcome these biases, researchers often combine multiple datasets. However, because different studies annotate different subsets of AUs, merging them creates a massive "missing label" problem. Traditional solutions involve either discarding incomplete data or using probabilistic methods to impute missing labels, which can introduce significant noise. This study investigates whether a model can be trained effectively by simply ignoring missing labels during the optimization process.

Datasets and the Meta-Database

The authors constructed a unified meta-database by standardizing six distinct datasets, encompassing both lab-based posed expressions and natural "in-the-wild" footage.

Summary of the six datasets combined to form the meta-database.

The resulting meta-database contains over 670,000 images. However, the lack of overlap in AU coding across these sources means that 69.07% of the total labels are unknown. Only 3.09% of the labels are positive (displayed), while 27.84% are explicitly negative (not displayed).

Distribution of action units in the merged database, highlighting the high percentage of unknown labels (green).

Methodology: Masking Missing Labels

The core innovation is a training strategy that masks missing labels rather than attempting to infer them. The model is trained and evaluated only on ground-truth annotated labels.

Custom Loss Function

To handle the extreme class imbalance (where most AUs are inactive most of the time), the authors avoid standard cross-entropy loss. Instead, they utilize a differentiable version of the F1 macro score as the loss function: $L = 1 - F1_{macro}$. During training, if a label for a specific AU is "unknown" in the ground truth, that entry is dynamically removed from the loss calculation for that specific image.

Architecture

The model utilizes a VGG16 backbone pre-trained on ImageNet. A multi-label balance optimizer is employed to ensure stable training despite the sparse positive labels. Training was restricted to 14 AUs that appeared with at least 20,000 positive occurrences in the combined dataset to ensure sufficient signal for convergence.

Key Results

The model was evaluated on a test set of 104,545 images. Despite the prevalence of missing labels in the training set, the model achieved an unweighted F1 macro score of 0.58.

This performance is highly competitive with state-of-the-art results from major AU detection challenges. For instance, top entries in the ABAW 2020 and EmotioNet 2020 challenges reported F1 macro scores between 0.31 and 0.55. The success of this approach suggests that the diversity of the combined dataset—covering various lighting conditions, ethnicities, and expression types—provides a stronger foundation for generalization than a smaller, fully-labeled, but biased dataset.

Discussion and Limitations

While effective, the dynamic masking of labels means that the effective batch size for each AU varies, which could theoretically distort the loss landscape. However, empirical results suggest that standard batch training sufficiently smooths these variations.

A current limitation is the exclusion of rarer AUs (those with fewer than 20,000 positive samples), which prevents the model from detecting the full range of the Facial Action Coding System (FACS). Future work will focus on refining the loss function to accommodate smaller effective batch sizes and lowering the threshold for including rare facial movements.

Summary updated

BibTeX
@misc{pahl2020multi,
  author = {Jaspar Pahl and Ines Rieger and Dominik Seuss},
  title = {{Multi-label Learning with Missing Values using Combined Facial Action Unit Datasets}},
  year = {2020},
  eprint = {2008.07234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.07234},
}
Figure