Micro-expression detection in long videos using optical flow and recurrent neural networks

Michiel Verburg, Vlado Menkovski

Abstract

Facial micro-expressions are subtle and involuntary expressions that can reveal concealed emotions. Micro-expressions are an invaluable source of information in application domains such as lie detection, mental health, sentiment analysis and more. One of the biggest challenges in this field of research is the small amount of available spontaneous micro-expression data. However, spontaneous data collection is burdened by time-consuming and expensive annotation. Hence, methods are needed which can reduce the amount of data that annotators have to review. This paper presents a novel micro-expression spotting method using a recurrent neural network (RNN) on optical flow features. We extract Histogram of Oriented Optical Flow (HOOF) features to encode the temporal changes in selected face regions. Finally, the RNN spots short intervals which are likely to contain occurrences of relevant facial micro-movements. The proposed method is evaluated on the SAMM database. Any chance of subject bias is eliminated by training the RNN using Leave-One-Subject-Out cross-validation. Comparing the spotted intervals with the labeled data shows that the method produced 1569 false positives while obtaining a recall of 0.4654. The initial results show that the proposed method would reduce the video length by a factor of 3.5, while still retaining almost half of the relevant micro-movements. Lastly, as the model gets more data, it becomes better at detecting intervals, which makes the proposed method suitable for supporting the annotation process.

Introduction

Facial micro-expressions are involuntary, fleeting movements (lasting less than 0.5 seconds) that often betray a person's true emotions, even when they are trying to hide them. While they are goldmines for fields like clinical psychology and security, they are notoriously difficult to study.

The bottleneck isn't just the subtlety of the expressions; it’s the data. To build a dataset, experts must manually review hours of video to find a handful of frames. Even for trained humans, the accuracy of spotting these is only around 47%. There is a desperate need for "spotting" methods—automated filters that can flag suspicious intervals in long videos so that human experts only have to review the most likely candidates.

The spotting task: mapping short micro-expression intervals (Onset-Apex-Offset) within long video sequences.

Methodology

The authors propose a three-stage pipeline to automate this spotting process:

Preprocessing & ROI Extraction

The system detects and aligns the face so the eyes are always horizontal. Crucially, the researchers extract specific Regions of Interest (ROIs)—the mouth corners and eyebrows—while intentionally excluding the eyes (to avoid noise from blinking) and the nose (which is too rigid to provide useful data).

Feature Extraction (HOOF)

Instead of feeding raw pixels into a deep network—which often fails with the small datasets available in this field—the team uses Histogram of Oriented Optical Flow (HOOF). This method calculates the direction and velocity of pixel movement between frames. They use "soft binning" (linear interpolation) to ensure that movements falling on the boundary between two directions are recorded accurately.

The Spotting Engine (LSTM)

These motion features are fed into a Recurrent Neural Network (RNN) composed of Long Short-Term Memory (LSTM) units. LSTMs are specifically designed to learn temporal dependencies, making them ideal for recognizing the "onset-apex-offset" pattern of a micro-expression over a 0.5-second window.

Datasets

The study primarily uses the SAMM (Spontaneous Micro-facial Movement) database.

  • SAMM: Contains 79 long videos with 159 labeled micro-movements. It is one of the few datasets that provides long, unedited sequences rather than just pre-clipped snippets.
  • The authors also mention CAS(ME)² as a comparable dataset, though SAMM was the focus for this evaluation.

Key Insights

  • Handcrafted vs. Learned Features: In an era of "End-to-End" Deep Learning, the authors argue for handcrafted features (HOOF). Because micro-expression data is so sparse, a standard Convolutional Neural Network (CNN) often struggles to find a signal in the noise. HOOF provides a higher signal-to-noise ratio for motion.
  • The "Blink" Problem: One of the most common "false positives" in facial analysis is the eye blink. By simply excluding the eye regions from their ROIs, the authors significantly cleaned up their data stream.
  • Annotation Support as a Metric: The goal isn't 100% autonomous detection. Instead, the goal is workload reduction. If a model can reduce the amount of video an expert has to watch by a factor of 3.5, it is a massive success for the research community, even if the precision isn't perfect.

Results and Evaluation

The model was evaluated using Leave-One-Subject-Out cross-validation to ensure it wasn't just "memorizing" specific faces.

  • Recall: 0.4654 (It caught roughly 47% of all micro-expressions).
  • Efficiency: The system produced 1,569 false positives across the entire dataset. While that sounds high, it actually means a human annotator would only need to review about 28% of the original footage to find nearly half of the expressions.
  • Data Scaling: The authors noted that as the model was exposed to more data, its performance improved, suggesting it is a viable "loop" tool: the model spots intervals, a human verifies them, and that verified data is fed back to make the model even better.

Conclusion and Future Work

The biggest hurdle remains global head movement. If a subject tilts or turns their head while a micro-expression occurs, the "global" motion of the head overwhelms the "local" motion of the facial muscle. The current HOOF-based approach loses this distinction, making it hard for the LSTM to distinguish a micro-expression from a simple head adjustment.

Future work will likely focus on stabilizing the ROIs even further to cancel out global head rotation, as well as exploring more complex post-processing to refine the exact start and end frames (onset and offset) of the detected expressions.

Summary updated

BibTeX
@inproceedings{verburg2019micro,
  author = {Michiel Verburg and Vlado Menkovski},
  title = {{Micro-expression detection in long videos using optical flow and recurrent neural networks}},
  booktitle = {FG},
  year = {2019},
  url = {https://openreview.net/forum?id=VugNKEHjCE3},
}
Figure