FaceTopoNet: Facial Expression Recognition using Face Topology Learning

Mojtaba Kolahdouzi, Alireza Sepas-Moghaddam, Ali Etemad

Abstract

Prior work has shown that the order in which different components of the face are learned using a sequential learner can play an important role in the performance of facial expression recognition systems. We propose FaceTopoNet, an end-to-end deep model for facial expression recognition, which is capable of learning an effective tree topology of the face. Our model then traverses the learned tree to generate a sequence, which is then used to form an embedding to feed a sequential learner. The devised model adopts one stream for learning structure and one stream for learning texture. The structure stream focuses on the positions of the facial landmarks, while the main focus of the texture stream is on the patches around the landmarks to learn textural information. We then fuse the outputs of the two streams by utilizing an effective attention-based fusion strategy. We perform extensive experiments on four large-scale in-the-wild facial expression datasets—namely AffectNet, FER2013, ExpW, and RAF-DB—and one lab-controlled dataset (CK+) to evaluate our approach. FaceTopoNet achieves state-of-the-art performance on three of the five datasets and obtains competitive results on the other two datasets. We also perform rigorous ablation and sensitivity experiments to evaluate the impact of different components and parameters in our model. Lastly, we perform robustness experiments and demonstrate that FaceTopoNet is more robust against occlusions in comparison to other leading methods in the area.

Introduction

Facial Expression Recognition (FER) has evolved from holistic "whole face" analysis to part-based approaches, acknowledging that specific regions like the eyes or mouth carry varying emotional weight. Graph-based methods have become popular for modeling these spatial relationships. However, most existing methods rely on fixed topologies—either computationally expensive fully connected graphs or rigid, hand-crafted trees. FaceTopoNet addresses this limitation by proposing that the order in which a sequential learner processes facial regions is a critical, optimizable factor. By learning the most effective facial structure automatically, the model captures the "logic" of facial expressions more effectively than human-designed heuristics.

Methodology

The FaceTopoNet architecture is an end-to-end framework consisting of two primary components: a Tree Topology Learning module and a dual-stream processing pipeline.

The FaceTopoNet architecture, featuring the Tree Topology Learning module and the dual Structure and Texture streams.

Tree Topology Learning

The model first extracts 50 facial landmarks. It then initializes a fully connected graph where edge weights are optimized using the CCPSO2 (Cooperatively Coevolving Particle Swarms) evolutionary algorithm. From this optimized graph, a Minimum Spanning Tree (MST) is extracted via Prim’s algorithm. This tree is traversed using a preorder depth-first search to generate a specific sequence of facial nodes, which dictates the order of processing for subsequent stages.

Dual-Stream Processing and Fusion

  1. Structure Stream: This stream processes the $(x, y)$ coordinates of the landmarks according to the learned sequence.
  2. Texture Stream: Image patches are extracted around each landmark, encoded using a pre-trained ResNet-50, and processed in the same sequence.

Both streams utilize LSTMs with soft attention mechanisms to highlight the most salient nodes in the sequence. Finally, an attention-based fusion strategy merges the structural and textural embeddings for final expression classification.

Experimental Results and Discussion

FaceTopoNet was evaluated on five major datasets, including four "in-the-wild" datasets (AffectNet, FER2013, ExpW, RAF-DB) and one lab-controlled dataset (CK+). To handle class imbalance common in these datasets, the authors employed a Focal Loss function.

The Impact of Topology

A key finding of the study is that the specific tree structure used for traversal significantly impacts performance. Experiments showed up to a 3.7% variance in accuracy based solely on the topology. The learned trees consistently outperformed human-designed structures by 4-5%, often discovering non-intuitive connections between distant landmarks that are statistically significant for emotion recognition.

Comparison of different facial tree topologies (a-d) and their corresponding recognition accuracies, demonstrating how the learned structure affects performance.

Performance and Robustness

FaceTopoNet achieved state-of-the-art (SOTA) results on AffectNet (70.02%), FER2013 (72.66%), and ExpW (71.91%), while remaining highly competitive on RAF-DB and CK+. Ablation studies indicated that while both streams contribute, the Texture Stream is the primary driver of performance. Furthermore, the model demonstrated superior robustness to facial occlusions compared to other leading methods, likely due to the flexibility of the learned tree structure in representing facial information even when parts of the face are missing.

Conclusion

FaceTopoNet introduces a novel paradigm for FER by treating facial topology as a learnable parameter. By optimizing the sequence of facial landmarks, the model achieves superior accuracy and robustness. While the current implementation involves some computational overhead due to the MST calculation and evolutionary optimization, future work focusing on faster algorithms or reinforcement learning-based topology discovery could further enhance the efficiency of this "facial logic" approach.

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},
}
Figure