Research & Papers

EB-CaP: Energy-based cache improves video emotion recognition at test time

New method personalizes facial expression recognition without updating model parameters.

Deep Dive

Facial expression recognition (FER) in videos remains challenging because models must capture subtle, temporally evolving affective states that vary significantly between individuals. While vision-language models like CLIP offer transferable visual-semantic representations, they still degrade under subject-specific distribution shifts during inference. Existing test-time adaptation (TTA) approaches typically update model parameters on the fly, which increases latency and computational cost. Cache-based alternatives avoid parameter updates but need many target samples to form reliable class prototypes—a problem early in adaptation and for rare classes.

To address this, Masoumeh Sharafi and colleagues at ÉTS Montréal introduced EB-CaP (Energy-Based Cache Personalization), a subject-based online TTA method for video FER. EB-CaP leverages a lightweight energy-based model to sample class-specific prototypes directly from the current unlabeled target video, populating a personalized cache without storing diverse source prototypes or accumulating large amounts of target data. Its energy function uses only pretrained CLIP, computing similarities between target video embeddings and class text embeddings. The method also maintains positive and negative caches for reliable and uncertain embeddings, gated by an adaptive entropy gate and a diversity gate to prevent redundancy. Final predictions combine cache-derived scores with CLIP scores. Experiments on BioVid, StressID, and BAH benchmarks show EB-CaP outperforms state-of-the-art TTA methods while keeping computational and memory overhead low, making it practical for real-time video analysis.

Key Points
  • EB-CaP uses a lightweight energy-based model with CLIP to generate personalized prototypes per target video, no parameter updates.
  • Adaptive entropy gate and diversity gate control cache updates, reducing redundancy and improving early adaptation.
  • Outperforms state-of-the-art TTA methods on BioVid, StressID, and BAH datasets with low latency and memory footprint.

Why It Matters

This enables real-time, personalized emotion recognition in videos without costly retraining, useful for healthcare, driver monitoring, and human-computer interaction.

📬 Get the top 10 AI stories daily