Learning partially-observed hidden conditional random fields for facial expression recognition

Kai-Yueh Chang, Tyng-Luh Liu, Shang-Hong Lai

Abstract

Facial expression recognition requires understanding the dynamic transitions of facial muscles over time. This paper introduces Partially-Observed Hidden Conditional Random Fields (PO-HCRFs), a graphical model designed to recognize expressions in video sequences by linking hidden states to specific facial Action Units (AUs). By observing these AUs during training—even when labels are sparse—the model develops more physically meaningful internal representations. Evaluated on the Cohn-Kanade dataset, the PO-HCRF achieves a sequence-wise recognition accuracy of 92.86%, outperforming standard latent-variable models and traditional SVM approaches.

Introduction

Recognizing emotions from facial movements involves more than identifying a static pose; it requires capturing the temporal evolution of muscle contractions. The Facial Action Coding System (FACS) provides a framework for this via Action Units (AUs). However, most existing datasets only provide AU labels for the "peak" of an expression, leaving the intermediate frames unannotated.

A sequence of facial expressions transitioning from a neutral state to a peak smile, illustrating the dynamic nature of the recognition task.

Standard Hidden Conditional Random Fields (HCRFs) treat these intermediate states as purely latent, often resulting in hidden configurations that lack physical interpretability. This paper proposes the PO-HCRF to bridge this gap by anchoring specific hidden states to observed AUs during the training phase.

Methodology

The proposed system integrates robust feature extraction with a novel structured learning approach:

  1. Feature Selection: Interest points are detected using SIFT and described with a multi-scale, multi-orientation bank of Gabor filters. AdaBoost is employed to select the most discriminative features, ensuring computational efficiency.
  2. PO-HCRF Architecture: In a standard HCRF, all hidden variables are latent. In the PO-HCRF, the first frame is anchored as "neutral," and the final frame's hidden state is fixed to the known AU labels.
A peak frame of a smiling expression, representing the point where Action Unit (AU) labels are typically provided in datasets.

This partial observation guides the model to learn transitions that correspond to actual facial dynamics.

  1. Optimization: Training with partially observed states leads to an intractable partition function. The authors utilize the Bethe free energy approximation to estimate the likelihood and optimize the model parameters efficiently.
  2. Incremental Inference: To support real-time applications, an online inference method is introduced. A pruning factor ($q$) is used to reset the model's state when a new expression begins, preventing temporal "bleeding" between consecutive emotions.

Experimental Results

The model was validated using the Cohn and Kanade’s DFAT-504 dataset, comprising 486 sequences from 97 subjects. The authors manually refined labels for 392 sequences across six basic emotions and a neutral category.

Model Accuracy
PO-HCRF (9 states) 92.86%
Standard HCRF 86.48%
SVM Baseline 84.69%

The PO-HCRF significantly outperformed the baselines. Furthermore, in incremental tests simulating live video, the model maintained approximately 80% accuracy, demonstrating its robustness for real-world deployment.

Conclusion

The PO-HCRF framework successfully leverages sparse AU labels to improve facial expression recognition. By enforcing physical meaning onto the latent space, the model achieves higher accuracy and better interpretability than fully latent models. Future work will focus on improving the detection of expression boundaries and scaling the state space to accommodate a wider variety of AU combinations.

Summary updated

BibTeX
@inproceedings{chang2009learning,
  author = {Kai-Yueh Chang and Tyng-Luh Liu and Shang-Hong Lai},
  title = {{Learning partially-observed hidden conditional random fields for facial expression recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2009},
  doi = {10.1109/cvpr.2009.5206612},
}
Figure