Facial Expression Recognition Based on Dual-Channel Fusion with Edge Features

Xiaoyu Tang, Sirui Liu, Qiuchi Xiang, Jintao Cheng, Huifang He, Bohuan XueSymmetry 2022

TL;DR

This paper introduces a novel dual-channel deep learning approach for facial expression recognition (FER) that fuses features from the original image with those extracted from edge maps. By leveraging the Canny edge detector, the model effectively captures essential facial contours and textures, leading to improved recognition accuracy and robustness across multiple benchmark datasets.

What Problem Does This Paper Address?

Accurate facial expression recognition (FER) is crucial for enhancing human-computer interaction, with applications ranging from intelligent tutoring systems to security monitoring. While deep learning models have shown promise, they often struggle with retaining subtle, low-level facial features like edges, which are vital for distinguishing nuanced expressions. These edges, representing facial muscle textures and wrinkles, can be lost during the feature extraction process of standard convolutional neural networks (CNNs), leading to a loss of critical information and potential misclassifications. Existing handcrafted feature methods, while good at capturing low-level details, often lack robustness and require significant computational effort. This paper aims to bridge this gap by proposing a method that effectively combines the strengths of deep learning for high-level semantic features with edge-based features for enhanced detail preservation.

Methods

The core of this paper's contribution lies in its dual-channel network architecture. This architecture comprises two parallel branches:

  • OI-Net (Original Image Network): This branch processes the raw facial image using a VGGNet-inspired architecture with 12 convolutional layers. It's designed to capture the high-level semantic features of the expressions.
  • EI-Net (Edge Image Network): This branch focuses on extracting edge features. It utilizes the Canny edge detection algorithm to generate edge maps from the input images. The EI-Net itself is a shallower network with 8 convolutional layers, designed to efficiently process these edge maps and highlight critical contours.

The features extracted from both channels are then fused using a weighted fusion mechanism. This fusion is controlled by two learnable parameters, $\alpha$ and $\beta$, which determine the contribution of the OI-Net and EI-Net features, respectively. The final fused feature vector is then passed through a Softmax classifier for expression prediction. The paper also discusses the importance of edge detection steps, including Gaussian filtering for noise reduction, gradient calculation, non-maximum suppression, and dual thresholding for edge connection.

Datasets

The proposed method was evaluated on three widely used facial expression recognition datasets:

  • CK+ (Extended Cohn-Kanade): A laboratory-controlled dataset with 593 video sequences from 123 subjects, labeled with seven basic expression categories.
  • Fer2013: A large-scale dataset containing 28,709 training images, 3589 validation images, and 3589 test images, each with a pixel size of 48x48, featuring seven expression categories.
  • RafDb (Real-world Affective Faces Database): A dataset with 30,000 facial expression images, annotated by human annotators. For their experiments, the authors used 12,271 images for training and 3068 for testing, covering seven basic expressions.

Key Insights and Ideas

  • Edge features are crucial supplements, not replacements: The experiments clearly demonstrate that while edge features (extracted by EI-Net) significantly improve recognition accuracy, they are most effective when used in conjunction with original image features (from OI-Net). Relying solely on edge features leads to lower performance, highlighting that the primary characterization information still resides in the original image.
  • Canny edge detection is effective for FER: The paper validates the use of the Canny edge detector for generating edge maps, showing its ability to preserve critical facial contours and textures that are beneficial for distinguishing expressions.
  • Weighted fusion offers flexibility: The introduction of tunable parameters $\alpha$ and $\beta$ allows for a flexible fusion of features from the two channels. Ablation studies helped determine optimal ranges for these parameters, indicating that a higher weight for the original image features ($\alpha$ close to 1) with a smaller but non-zero weight for edge features ($\beta$ around 0.1-0.2) yields the best results.
  • Simplified architecture: By focusing on edge features with a shallower network (EI-Net) and fusing them with a standard deep network (OI-Net), the proposed method avoids adding overly complex or redundant network layers, potentially leading to more efficient training and inference.

Key Results

The proposed dual-channel fusion method achieved competitive results across the tested datasets:

  • RafDb: Achieved an accuracy of 87.58%.
  • Fer2013: Achieved an accuracy of 73.36%.
  • CK+: Achieved an impressive accuracy of 98.68%.

Qualitatively, the addition of edge features led to significant improvements in recognizing challenging expressions like fear and disgust on RafDb (an increase of 4%), anger on Fer2013 (an increase of 3%), and anger, sadness, and contempt on CK+ (with contempt showing a notable 15% improvement).

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while edge features are important, they are not the sole determinant of FER. The primary characterization information still comes from the original image features.
  • The current fusion parameters ($\alpha$ and $\beta$) are determined through ablation studies and are fixed.
  • Future Work:
    • The authors plan to explore the importance of other low-level features beyond edges.
  • They aim to develop methods for achieving adaptive fusion parameters, allowing the model to dynamically adjust the contribution of each channel based on the input image or expression.

Summary updated

Abstract

In the era of artificial intelligence, accomplishing emotion recognition in human–computer interaction is a key work. Expressions contain plentiful information about human emotion. We found that the canny edge detector can significantly help improve facial expression recognition performance. A canny edge detector based dual-channel network using the OI-network and EI-Net is proposed, which does not add an additional redundant network layer and training. We discussed the fusion parameters of α and β using ablation experiments. The method was verified in CK+, Fer2013, and RafDb datasets and achieved a good result.
BibTeX
@inproceedings{tang2022facial,
  author = {Xiaoyu Tang and Sirui Liu and Qiuchi Xiang and Jintao Cheng and Huifang He and Bohuan XUE},
  title = {{Facial Expression Recognition Based on Dual-Channel Fusion with Edge Features}},
  booktitle = {Symmetry},
  year = {2022},
  url = {https://openreview.net/forum?id=pfoYakcCfw},
}
Figure