FaceTopoNet: Facial Expression Recognition Using Face Topology Learning

Mojtaba Kolahdouzi, Alireza Sepas-Moghaddam, Ali Etemad · DOI

TL;DR

FaceTopoNet is an end-to-end deep learning framework that automatically learns the optimal "tree topology" of facial landmarks to improve expression recognition. By optimizing how facial regions are connected and sequenced, the model achieves state-of-the-art performance across major datasets and demonstrates remarkable robustness against facial occlusions.

What Problem Does This Paper Address?

Facial Expression Recognition (FER) has shifted from looking at the "whole face" to "part-based" approaches, recognizing that regions like the mouth or eyes contribute differently to different emotions. Many researchers now use graph-based methods to model these relationships.

However, there is a major catch: the topology (the way nodes are connected) is usually fixed. Researchers typically use either a fully connected graph (which is computationally heavy and prone to overfitting) or a human-designed "hand-crafted" tree. The authors of this paper argue that the order in which a sequential learner (like an LSTM) processes facial regions significantly impacts performance. FaceTopoNet addresses the lack of a systematic way to learn the most effective facial structure for machine learning.

Methods

The core innovation of FaceTopoNet is its Tree Topology Learning module. The process follows these steps:

  1. Landmark Detection: The model extracts 50 facial landmarks.
  2. Topology Optimization: It starts with a fully connected graph where edges have weights. These weights are optimized using an evolutionary algorithm called CCPSO2 (Cooperatively Coevolving Particle Swarms).
  3. MST Extraction: From the optimized graph, it extracts a Minimum Spanning Tree (MST) using Prim’s algorithm.
  4. Sequence Generation: The tree is traversed (preorder depth-first) to create a specific sequence of facial nodes.
  5. Dual-Stream Processing:
    • Structure Stream: Processes the $(x, y)$ coordinates of the landmarks in the learned sequence.
  6. Texture Stream: Extracts image patches around each landmark, encodes them using a pre-trained ResNet-50, and processes them in the same sequence.
  7. Attention & Fusion: Both streams use LSTMs with soft attention to focus on the most salient parts of the sequence. Finally, an attention-based fusion strategy merges the two streams for the final classification.

Datasets

The authors evaluated FaceTopoNet on five diverse datasets:

  • In-the-wild (Real-world conditions): AffectNet, FER2013, ExpW, and RAF-DB.
  • Lab-controlled: CK+.
  • Significance: These datasets are notoriously difficult due to "class imbalance" (e.g., many more "happy" faces than "disgust" faces), which the authors addressed using a Focal Loss function.

Key Insights and Ideas

  • The "Ordering" Matters: The authors showed that simply changing the tree structure used to traverse the face could lead to a 3.7% variance in accuracy. This confirms that the sequence in which a model "reads" the face is a hyperparameter worth optimizing.
  • Machines Outperform Human Intuition: The learned trees consistently outperformed human-designed facial trees by roughly 4-5%. The model often finds non-obvious connections between distant facial landmarks that are statistically significant for emotion.
  • Texture vs. Structure: Ablation studies revealed that the Texture Stream is more critical than the Structure Stream. While landmark positions (structure) help, the fine-grained details in the skin patches (texture) carry the bulk of the emotional information.
  • Robustness to Occlusion: Because the model learns a flexible tree structure, it is significantly more resilient when parts of the face (like the mouth or eyes) are hidden, outperforming other state-of-the-art models in "missing data" scenarios.

Key Results

  • State-of-the-Art (SOTA): FaceTopoNet set new benchmarks on AffectNet (70.02%), FER2013 (72.66%), and ExpW (71.91%).
  • Competitive Performance: It achieved the second-best results on RAF-DB and CK+, remaining within a fraction of a percent of the top models.
  • Generalization: Trees learned on one dataset (like AffectNet) performed surprisingly well when transferred to another (like FER2013), suggesting the model learns a "universal" facial logic.

Limitations and Future Work

  • Computational Overhead: The inference time is slightly higher than some simpler models (33ms per image) because of the MST calculation and dual-stream architecture. The authors suggest that faster MST algorithms could mitigate this.
  • Optimization Complexity: The CCPSO2 evolutionary algorithm is stochastic and can be computationally expensive during the training phase.
  • Future Directions: The authors propose exploring Reinforcement Learning to further optimize the tree structure and applying these learned topologies to Graph Convolutional Networks (GCNs) for even more sophisticated spatial modeling.

Summary updated

BibTeX
@article{kolahdouzi2023facetoponet,
  author = {Mojtaba Kolahdouzi and Alireza Sepas-Moghaddam and Ali Etemad},
  title = {{FaceTopoNet: Facial Expression Recognition Using Face Topology Learning}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2023},
  doi = {10.1109/tai.2022.3207450},
}

Loading related content...

Figure