A comparative study on optical flow for facial expression analysis

Benjamin Allaert, Isaac Ronald Ward, Ioan Marius Bilasco, Chabane Djeraba, Mohammed Bennamoun · DOI

TL;DR

This paper provides a comprehensive comparative study of various optical flow techniques for facial expression analysis. It reveals that traditional methods like Farnebäck and TV-L1 often outperform newer, complex deep learning approaches on facial expression datasets, highlighting the importance of how motion discontinuities are handled. The study also introduces a data augmentation strategy using multiple optical flow methods to improve performance, particularly on smaller datasets.

What Problem Does This Paper Address?

Automatically recognizing human emotions from facial expressions is a growing area with applications in security, healthcare, and human-computer interaction. While optical flow techniques are excellent at estimating motion in general, their effectiveness in the specific domain of facial expression recognition (FER) has been less clear. Many recent, sophisticated optical flow methods perform well on general scene analysis benchmarks like MPI-Sintel, but surprisingly, simpler methods often yield better results for FER. This paradox suggests that the specific challenges of facial motion (e.g., subtle movements, motion discontinuities like wrinkles) require different handling than general scene motion. The paper aims to understand which optical flow approaches are best suited for FER and to provide a consistent evaluation framework.

Methods

The authors conducted a multi-faceted evaluation of optical flow techniques. Their approach involved:

  • Optical Flow Estimation: They selected nine prominent optical flow algorithms, spanning traditional methods (Farnebäck, TV-L1, LDOF) to more recent deep learning-based ones (EpicFlow, FlowFields, PWC-net, RAFT, GMA, NCUP).
  • Feature Extraction & Classification: They evaluated these optical flows using three main strategies:
  • Raw Flow Data: Directly feeding the raw optical flow vectors (direction and magnitude) into a linear SVM classifier.
  • Handcrafted Descriptors: Using established motion descriptors (HOF, HOOF, LMP) on segmented facial regions to create motion vectors, then classifying these.
  • Deep Learning Architectures: Employing Convolutional Neural Networks (CNNs) for static frames and Recurrent Neural Networks (RNNs) for temporal sequences, using the optical flow as input.
  • Temporal Standardization: To handle varying sequence lengths, they introduced two methods: TIM2 (first vs. last frame) for high-amplitude expressions and TIM10 (sampling 10 frames) for analyzing progressive activation.
  • Data Augmentation: They proposed and evaluated a method to artificially augment training data by combining multiple optical flow approaches, aiming to improve robustness and performance, especially on limited datasets.

Datasets

The study utilized several publicly available facial expression datasets:

  • CK+ (Extended Cohn-Kanade): A widely used dataset for action unit and emotion recognition.
  • Oulu-CASIA: Features expressions under varying lighting conditions.
  • MMI: Captures more spontaneous expressions in less controlled conditions.
  • ADFES (Amsterdam Dynamic Facial Expression Set): Includes diverse participants and emotional states.
  • SNaP-2DFe: Records synchronized image sequences with and without head movements.

For evaluation, subsets were standardized (cropped, normalized, resized) and specific sequences were selected based on temporal criteria (TIM2, TIM10).

Key Insights and Ideas

  • Traditional Methods Shine for FER: Surprisingly, older, simpler optical flow methods like Farnebäck and TV-L1 often outperform newer, complex deep learning approaches on facial expression datasets, even when those newer methods excel on general scene benchmarks like MPI-Sintel.
  • Motion Discontinuities are Key (and Tricky): The way optical flow algorithms handle motion discontinuities (e.g., wrinkles, sudden movements) is critical for FER. Approaches that treat these as noise (e.g., by aggressive smoothing or simple motion approximation) tend to perform poorly, whereas methods that can leverage these discontinuities are more successful.
  • MPI-Sintel is Not a Perfect Proxy for FER: The success of optical flow methods on MPI-Sintel (a synthetic dataset) doesn't directly translate to facial expression analysis. The specific challenges of facial motion, like subtle expressions and the informative nature of discontinuities, require different algorithmic considerations.
  • Data Augmentation Boosts Performance: Artificially augmenting training data by combining multiple optical flow approaches can significantly improve classification accuracy, especially for datasets with limited training samples. This suggests a hybrid approach where fast optical flow is used for real-time analysis, while slower, more robust methods are used offline for augmentation.

Key Results

  • Top Performers: Farnebäck and FlowField consistently ranked among the top performers across various evaluation scenarios (raw data, handcrafted descriptors, deep learning). NCUP also showed strong potential, particularly in deep learning contexts.
  • Underperformers: EpicFlow and PWC-net generally showed weaker performance, attributed to their motion approximation strategies that may treat informative facial movements as noise.
  • Data Augmentation Gains: The proposed data augmentation method showed significant improvements, ranging from 2% to 33% depending on the dataset and configuration. Gains were particularly pronounced on datasets like MMI and ADFES, which have smaller training sets.
  • TIM10 vs. TIM2: Incorporating temporal information (TIM10) generally led to better characterization of facial expressions compared to just using the first and last frames (TIM2), suggesting the importance of capturing the progressive activation of expressions.

Limitations and Future Work

  • Limitations:
    • The study acknowledges that SVMs, while useful for comparison, might not yield the absolute highest classification accuracy.
  • The performance of some recent deep learning approaches might be limited by the size of the training data available in certain datasets.
  • The MPI-Sintel benchmark, while useful for general optical flow, is not fully representative of the challenges in facial expression analysis.
  • Future Work:
    • Encoding Physical Constraints: Future work should explore incorporating plausible facial physical constraints into optical flow extraction.
  • Temporal Architectures: Developing temporal architectures specifically designed to model the temporal activation of facial expressions is recommended.
  • Intra- and Inter-Optical Flow Augmentation: Further research into advanced techniques for augmenting data using optical flow is suggested.
  • New Datasets: The creation and release of new, specialized datasets that better capture facial motion characteristics and expression-related challenges are crucial for advancing the field.

Summary updated

BibTeX
@article{allaert2022comparative,
  author = {Benjamin Allaert and Isaac Ronald Ward and Ioan Marius Bilasco and Chabane Djeraba and Mohammed Bennamoun},
  title = {{A comparative study on optical flow for facial expression analysis}},
  journal = {Neurocomputing},
  year = {2022},
  doi = {10.1016/j.neucom.2022.05.077},
}
Figure