Local Learning with Deep and Handcrafted Features for Facial Expression Recognition

Mariana-Iuliana Georgescu, Radu Tudor Ionescu, Marius PopescuarXiv 2018 · DOI · arXiv

TL;DR

This paper achieves state-of-the-art results in facial expression recognition by combining the raw power of deep convolutional neural networks (CNNs) with traditional handcrafted features. The "secret sauce" is a local learning strategy: instead of using one global model for everything, the system builds a custom, specialized classifier for every single test image based on its most similar neighbors in the training set.

What Problem Does This Paper Address?

Facial Expression Recognition (FER) is a notoriously difficult computer vision task. Human faces vary wildly across individuals, and the subtle muscle movements that distinguish "fear" from "surprise" can be easily lost in the noise of lighting changes or head poses.

While deep learning has become the dominant tool for FER, the authors argue that two things are being overlooked:

  1. Handcrafted features: Traditional methods like Bag-of-Visual-Words (BOVW) capture structured geometric information that deep networks might sometimes ignore.
  2. Global vs. Local Learning: Most systems train a single "global" classifier to handle every possible face. However, the feature space for emotions is complex and non-linear. A global linear classifier often oversimplifies this space, leading to misclassifications for "hard" examples that sit near the decision boundary.

Methods

The authors propose a hybrid pipeline that fuses deep learning, classical computer vision, and a clever local classification strategy.

1. Feature Extraction

The system extracts two types of features from an input image:

  • Deep Features: They use three different CNN architectures: VGG-face (pre-trained on face recognition), VGG-f (pre-trained on object recognition), and VGG-13 (trained from scratch). To boost performance and prevent overfitting, they utilize Dense-Sparse-Dense (DSD) training, a technique that involves pruning unimportant weights and then re-training them to make the model more robust.
  • Handcrafted Features: They use a Bag-of-Visual-Words (BOVW) model. This involves extracting SIFT descriptors at multiple scales (PHOW) and quantizing them into a "visual vocabulary."

2. The Local Learning Framework

This is the core innovation. Once the deep and handcrafted features are concatenated and normalized, the system doesn't just feed them into a standard pre-trained model. Instead, for every new test image:

  1. Find Neighbors: It uses a $k$-nearest neighbors (k-NN) search to find the 200 most similar images in the training set.
  2. Train a Custom Model: It trains a Support Vector Machine (SVM) on only those 200 neighbors.
  3. Predict: This specialized SVM predicts the emotion for that specific test image and is then discarded.
Figure 3: Our processing pipeline based on automatic features learned by convolutional neural networks (VGG-13, VGG-f and VGG-face) and handcrafted features computed by the bag-of-visual-words model. After feature vector concatenation and L2-normalization, we employ a local learning model. Best viewed in color.

By training a linear SVM on a small, local neighborhood, the system effectively creates a complex, non-linear decision boundary that can handle difficult cases much better than a single global model.

Figure 2: Two classification models are used to solve the same binary classification problem. The two test samples depicted in red are misclassified by a global linear classifier (left-hand side). The local learning framework produces a non-linear decision boundary that fixes this problem (right-hand side). Best viewed in color.

Datasets

The approach was validated on three major benchmarks:

  • FER 2013: A challenging dataset from a 2013 Kaggle competition.
  • FER+: A "cleaned up" version of FER 2013 with more reliable labels and an extra category (contempt).
  • AffectNet: One of the largest FER datasets available, containing images "in the wild." The authors tested on both 7-way and 8-way classification tasks.

Key Insights and Ideas

  • Complementary Strengths: Deep features and handcrafted features are not redundant. The ablation studies showed that combining them consistently outperformed using either one alone.
  • Linear to Non-Linear: The local learning trick is a powerful way to get non-linear performance out of simple linear classifiers. As shown in Figure 2, it allows the model to "wrap" around clusters of similar images.
  • DSD Training Matters: The authors found that the DSD training procedure significantly improved the performance of their CNNs, particularly for the VGG-f model, by making it less sensitive to which layers were pruned.
Figure 1: Validation accuracy rates of the VGG-f network, which is fine-tuned on FER 2013, after pruning the smaller weights on each individual layer using several sparsity rates between 30% and 60%. The baseline represents the accuracy of the fine-tuned model without pruning, i.e. having a sparsity rate of 0%. The layers closer to the input are more sensitive to pruning. Best viewed in color.

Key Results

The proposed method set new state-of-the-art (SOTA) benchmarks across the board, surpassing previous methods by more than 1% on every dataset:

  • FER 2013: Achieved 75.42% accuracy (surpassing the previous SOTA of 73.40%).
  • FER+: Achieved 87.76% accuracy (surpassing the previous SOTA of 84.99%).
  • AffectNet: Achieved 59.58% (8-way) and 63.31% (7-way), both new records.

While local learning is computationally more expensive (taking about 40 seconds to process 3,589 images vs. 24 seconds for a global model), the authors argue the ~2% accuracy boost is a worthwhile trade-off for many applications.

Limitations and Future Work

  • Computational Cost: Training a new SVM for every single test image is slower than a single forward pass through a neural network. This might limit real-time use on low-power mobile devices.
  • Static vs. Dynamic: The current model only looks at static images. The authors suggest that extending this local learning framework to video (to capture how expressions evolve over time) is a promising next step.
  • Deception Detection: A future goal is to see if this high-precision approach can distinguish between "voluntary" (fake/deceptive) and "involuntary" (genuine) facial expressions.

Summary updated

Abstract

We present an approach that combines automatic features learned by convolutional neural networks (CNN) and handcrafted features computed by the bag-of-visual-words (BOVW) model in order to achieve state-of-the-art results in facial expression recognition. To obtain automatic features, we experiment with multiple CNN architectures, pre-trained models and training procedures, e.g. Dense-Sparse-Dense. After fusing the two types of features, we employ a local learning framework to predict the class label for each test image. The local learning framework is based on three steps. First, a k-nearest neighbors model is applied in order to select the nearest training samples for an input test image. Second, a one-versus-all Support Vector Machines (SVM) classifier is trained on the selected training samples. Finally, the SVM classifier is used to predict the class label only for the test image it was trained for. Although we have used local learning in combination with handcrafted features in our previous work, to the best of our knowledge, local learning has never been employed in combination with deep features. The experiments on the 2013 Facial Expression Recognition (FER) Challenge data set, the FER+ data set and the AffectNet data set demonstrate that our approach achieves state-of-the-art results. With a top accuracy of 75.42% on FER 2013, 87.76% on the FER+, 59.58% on AffectNet 8-way classification and 63.31% on AffectNet 7-way classification, we surpass the state-of-the-art methods by more than 1% on all data sets.
BibTeX
@misc{georgescu2018local,
  author = {Mariana-Iuliana Georgescu and Radu Tudor Ionescu and Marius Popescu},
  title = {{Local Learning with Deep and Handcrafted Features for Facial Expression Recognition}},
  year = {2018},
  eprint = {1804.10892},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.10892},
}

Loading related content...

Figure