Face Trees for Expression Recognition

Mojtaba Kolahdouzi, Alireza Sepas-Moghaddam, Ali Etemad

Introduction

Facial Expression Recognition (FER) is a critical component of human-computer interaction, yet accurately capturing the intricate relationships between different facial regions remains a significant challenge. While recent advancements have utilized graph-based neural networks to model these relationships, a consensus on the optimal graph topology is lacking. Most existing methods rely on either a "complete graph," where every landmark connects to every other point, or a fixed, pre-defined layout.

The authors argue that these static approaches fail to capture the most effective connections for specific recognition tasks. Furthermore, the sequence in which facial regions are processed is vital. This paper addresses these gaps by proposing an end-to-end architecture that automatically learns an optimal "face tree"—a specific topology of facial landmarks—to enhance expression recognition performance.

Methodology

The proposed pipeline integrates landmark detection, topology optimization, and a two-stream feature extraction process.

Overview of the proposed FER pipeline, showing the two-stream architecture (structure and texture) and the fusion process.

Tree Topology Learning and Sequence Generation

The core innovation lies in converting facial geometry into a learnable sequence. The process begins by treating detected facial landmarks as nodes in a weighted complete graph. Using a metaheuristic optimization algorithm, the model learns optimal edge weights, which are then used to extract a Minimum Spanning Tree (MST) via Prim’s algorithm.

The process of converting a weighted fully connected graph of landmarks into an optimized tree and subsequently into a sequence for LSTM processing.

By traversing this tree using a Preorder depth-first search, the 2D facial geometry is transformed into a 1D sequence. This allows the model to leverage LSTMs, which are highly effective at modeling dependencies across the facial path.

Two-Stream Feature Extraction

The model employs two parallel streams to capture different aspects of facial expressions:

  1. Structure Stream: Processes the raw coordinates of landmarks in the order determined by the tree traversal. This stream captures the underlying "geometry" of the expression.
  2. Texture Stream: Extracts 17x17 image patches around each landmark. These patches are encoded using a pre-trained ResNet50 and fed into a separate LSTM, following the same tree-traversal sequence. This captures fine-grained details like wrinkles and muscle movements.

Attention and Fusion

Both streams incorporate a soft attention mechanism to prioritize the most informative landmarks, such as the corners of the mouth during a smile. Features from both streams are fused through dense layers and an additional attention step. To address class imbalance common in FER datasets (e.g., the prevalence of "Happy" vs. "Disgust"), the model utilizes Focal Loss.

Experimental Results

The "Face Trees" approach was evaluated on two major "in-the-wild" benchmarks: AffectNet (over 1 million images) and FER2013 (approx. 33,000 images).

The model achieved new state-of-the-art results:

  • AffectNet: 70.02% recognition rate (a 1.52% improvement over BreG-NeXt50).
  • FER2013: 72.66% recognition rate (a 1.13% improvement over previous bests).

Ablation studies highlighted the importance of the learned topology. Replacing the optimized tree with a random structure resulted in a significant performance drop: 5.0% on AffectNet and 7.6% on FER2013.

Discussion and Conclusion

The research demonstrates that topology is a crucial factor in FER; random tree structures lead to significantly varied recognition rates. Interestingly, as training progresses, the learned "face trees" evolve to physically resemble human facial structures, connecting landmarks along the jawline, mouth, and eyes. While the texture stream remains the primary driver of performance, its combination with the optimized structure stream is what enables state-of-the-art results.

A primary limitation is the computational cost of the optimization process, specifically the iterative MST calculation. Future work will explore faster optimization methods, such as policy gradient reinforcement learning, and further refine the model's ability to classify rare expression categories.

Summary updated

BibTeX
@inproceedings{kolahdouzi2021face,
  author = {Mojtaba Kolahdouzi and Alireza Sepas-Moghaddam and Ali Etemad},
  title = {{Face Trees for Expression Recognition}},
  booktitle = {FG},
  year = {2021},
  doi = {10.1109/fg52635.2021.9666986},
}
Figure