EmoCLIP: A Vision-Language Method for Zero-Shot Video Facial Expression Recognition

Niki Maria Foteinopoulou, Ioannis Patras

TL;DR

EmoCLIP adapts the powerful CLIP vision-language model for video-based facial expression recognition (FER) by training on descriptive captions rather than simple emotion labels. By incorporating a temporal transformer and leveraging "soft" natural language supervision, it achieves state-of-the-art zero-shot performance on unseen emotions and even matches human expert accuracy in estimating schizophrenia symptoms.

What Problem Does This Paper Address?

Traditional Facial Expression Recognition (FER) systems are largely "closed-world"—they are trained to recognize a small set of basic emotions (usually the "Big 7": happiness, sadness, anger, fear, disgust, surprise, and contempt). However, human affect is far more complex, encompassing hundreds of nuanced or compound states (like "happily surprised").

Existing models struggle to generalize to these "unseen" categories. Furthermore, most FER research focuses on static images, ignoring the temporal dynamics (the way a face moves) that are essential for distinguishing subtle expressions. The authors aim to bridge this gap by moving away from rigid categorical labels toward a flexible, natural language-based understanding of facial movement.

Methods

EmoCLIP builds upon the CLIP (Contrastive Language-Image Pre-training) framework but introduces three key innovations:

  1. Temporal Modeling: Since facial expressions are dynamic, the authors added a two-layer Transformer Encoder on top of the CLIP image backbone. This allows the model to learn temporal relationships between frames, which is critical for identifying macro- and micro-expressions.
  2. Sample-Level Supervision: Instead of training the model to associate a video with a single word like "Anger," they use the MAFW dataset, which provides rich, descriptive captions (e.g., "A woman expresses her joy at receiving a gift. The raised lip corners."). These act as "soft labels" that provide more semantic depth than a one-hot category.
  3. Latent Space Arithmetic for Compound Emotions: To handle complex emotions at inference time, the authors propose a simple yet effective trick: instead of engineering new prompts, they average the latent embeddings of basic emotions. For example, the representation for "contempt & happiness" is created by averaging the vectors for "contempt" and "happiness" in the shared embedding space.

At inference time, the model performs zero-shot classification by comparing the video embedding to text embeddings of emotion descriptions generated by ChatGPT, ensuring the model looks for specific facial features rather than just a label.

Datasets

  • MAFW: The primary training and evaluation set. It is unique because it contains 10k video clips with both categorical labels (11 single, 43 compound) and descriptive captions.
  • AFEW, DFEW, and FERV39K: Popular "in-the-wild" dynamic FER datasets used to test the model's zero-shot generalization capabilities across different domains.
  • NESS: A clinical dataset used for the downstream task of schizophrenia symptom estimation, containing interviews with 69 patients.

Key Insights and Ideas

  • Descriptions > Labels: The "aha moment" is that natural language descriptions are more discriminative than class names. A description of "narrowed eyes and a wrinkled forehead" is more grounded in visual reality than the abstract concept of "Anger," making it easier for a vision-language model to learn.
  • The Necessity of Time: The ablation studies show that "frame ensembling" (averaging static frames) actually hurts performance in FER. Adding a dedicated temporal layer is non-negotiable for capturing the "flow" of an emotion.
  • Zero-Shot Clinical Utility: Perhaps the most striking finding is that a model trained on general movie clips and internet videos can be adapted to clinical psychiatry. By freezing the EmoCLIP video encoder and adding a simple linear layer, the authors estimated schizophrenia symptoms with a 0.85 Pearson correlation, reaching the level of agreement found between human medical experts.

Key Results

  • Zero-Shot Superiority: EmoCLIP outperformed the standard CLIP baseline by over 10% in Weighted Average Recall (WAR) and 5% in Unweighted Average Recall (UAR) across multiple datasets.
  • Compound Emotion Mastery: On the 43 compound emotions in the MAFW dataset, EmoCLIP significantly outperformed both CLIP and FaRL (a face-specific VLM), proving that its latent space arithmetic for combining emotions actually works.
  • State-of-the-Art: In many zero-shot settings, EmoCLIP achieved results comparable to or better than previous methods that were specifically designed for those tasks.

Limitations and Future Work

  • Dataset Scale: While MAFW is a great start, it is relatively small (10k clips) compared to the massive datasets usually used to train VLMs. The authors note that training on even larger captioned FER datasets would likely yield better generalization.
  • LLM Bias: The model relies on ChatGPT to generate class descriptions for inference. While this avoids researcher bias, it introduces the potential biases or "hallucinations" of the LLM regarding what a specific emotion "should" look like.
  • Computational Cost: Adding a temporal transformer increases the computational overhead compared to static image models, though the authors kept it lightweight (2 layers).

Future work could involve exploring more complex ways to fuse multi-modal data (like audio) or refining the prompt generation process to be more robust to different cultural expressions of emotion.

Summary updated

BibTeX
@inproceedings{foteinopoulou2024emoclip,
  author = {Niki Maria Foteinopoulou and Ioannis Patras},
  title = {{EmoCLIP: A Vision-Language Method for Zero-Shot Video Facial Expression Recognition}},
  booktitle = {FG},
  year = {2024},
  doi = {10.1109/fg59268.2024.10581982},
}
Figure