Skip to content
Back to skills

Dfme Eval

ASecurity

Evaluates automatic dynamic facial micro-expression recognition (MER) models on a large-scale spontaneous micro-expression dataset. It probes the model's ability to classify subtle, high-frame-rate facial movements across seven emotion categories while handling class imbalance and variable video lengths. Use when the user wants to benchmark on DFME, or asks about evaluating this task. Reports Accuracy (ACC).

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongoexpressperformance

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill dfme-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dfme Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dfme Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-dfme-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-dfme-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dfme-eval
description: Evaluates automatic dynamic facial micro-expression recognition (MER) models on a large-scale spontaneous micro-expression dataset. It probes the model's ability to classify subtle, high-frame-rate facial movements across seven emotion categories while handling class imbalance and variable video lengths. Use when the user wants to benchmark on DFME, or asks about evaluating this task. Reports Accuracy (ACC).
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2301.00985
  bibtex_key: zhao2023dfme
  confidence: high
---

# dfme-eval

> DFME: A New Benchmark for Dynamic Facial Micro-expression Recognition — Sirui Zhao et al. (2023) (arXiv:2301.00985, 2023)

## What this evaluates

Evaluates automatic dynamic facial micro-expression recognition (MER) models on a large-scale spontaneous micro-expression dataset. It probes the model's ability to classify subtle, high-frame-rate facial movements across seven emotion categories while handling class imbalance and variable video lengths.

## Datasets

- **DFME** — total 7275; splits: train (-1), test (-1)

## Metrics

- `Accuracy (ACC)` **(primary)** — range: [0, 1]
  - Average per-class accuracy: ACC = (1/K) * Σ(TP_i / N_i). (Note: Paper writes sum in Eq. 8, but results table shows values in [0,1], indicating averaging over K=7 classes).
- `Unweighted F1-Score (UF1)` — range: [0, 1]
  - Macro-averaged F1: UF1 = (1/K) * Σ(2*TP_i / (2*TP_i + FP_i + FN_i)) across K=7 classes.
- `Unweighted Average Recall (UAR)` — range: [0, 1]
  - Macro-averaged recall: UAR = (1/K) * Σ(TP_i / N_i) across K=7 classes.

## Input / output format

**Input**: 16-frame video clips of cropped and aligned facial regions. Frames are sampled using a temporal adaptive strategy based on annotated onset, apex, and offset frames. Input resolution varies by backbone (e.g., 224×224 for R3D/I3D/D3D, 160×160 for P3D).

**Output**: Single-class classification prediction from 7 emotion categories: disgust, surprise, happiness, fear, sadness, anger, contempt.

## Scoring recipe

```python
# 10-fold cross-validation: average results over 10 runs
acc_sum, uf1_sum, uar_sum = 0, 0, 0
for fold in range(10):
    preds, gold = get_fold_data(fold)
    tp, fp, fn = compute_tp_fp_fn(preds, gold, classes=7)
    N = [count(gold == c) for c in classes]
    acc_sum += sum(tp[i] / N[i] for i in range(7)) / 7
    uf1_sum += sum(2*tp[i] / (2*tp[i] + fp[i] + fn[i]) for i in range(7)) / 7
    uar_sum += sum(tp[i] / N[i] for i in range(7)) / 7
final_acc = acc_sum / 10
final_uf1 = uf1_sum / 10
final_uar = uar_sum / 10
```

## Common pitfalls

- Class imbalance heavily biases Accuracy (ACC) towards the majority class (disgust), making UF1 and UAR more reliable indicators of true performance.
- Temporal sampling strategy significantly impacts results; uniform sampling is too coarse for micro-expressions, so adaptive sampling around onset/apex/offset frames is required.
- Preprocessing must use only the onset frame for alignment and cropping to avoid landmark errors introduced by subtle movements in other frames.

## Evidence (verbatim from paper)

> In addition, three commonly used MEs classification indicators, namely Accuracy, Unweighted F1-Score and Unweighted Average Recall, were used to evaluate the MER performance. Specifically, before calculating them, we need to obtain the True Positive (TP_i), False Positive (FP_i), and False Negative (FN_i) for each class i (K classes in total, and K=7 in DFME). In the end, we took the average results of ten experiments as the final result.

## Citation

```bibtex
@misc{zhao2023dfme,
  title={DFME: A New Benchmark for Dynamic Facial Micro-expression Recognition},
  author={Sirui Zhao et al. (2023)},
  year={2023},
  note={arXiv:2301.00985}
}
```

- arXiv: 2301.00985

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.