Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FLAME Expression Parameter Analysis for MEAD Dataset

Analysis Report

Dataset: MEAD (Multi-view Emotional Audio-visual Dataset) Extraction Method: SMIRK → FLAME parameters Date: 2026-01-18


1. Dataset Overview

1.1 Data Structure

EMICA_mead_mp_lr_mse_15/
├── M003/                    # Person ID (M=Male, W=Female)
│   └── front/               # Camera view
│       ├── angry/           # Emotion (8 types)
│       │   ├── level_1/     # Intensity (3 levels)
│       │   │   ├── 001/     # Text ID (30 texts)
│       │   │   │   ├── shape_pose_cam.pkl  # FLAME parameters
│       │   │   │   └── ...

1.2 FLAME Parameters

Parameter Dimensions Description
exp 50 Expression coefficients
jaw 3 Jaw pose (rotation)
global_pose 3 Head pose (rotation)
shape 300 Identity shape (not used for emotion analysis)

1.3 Dataset Statistics

  • Total samples: 30,353
  • Unique persons: 46 (27 Male, 19 Female)
  • Emotions: 8 (angry, contempt, disgusted, fear, happy, neutral, sad, surprised)
  • Intensities: 3 (level_1, level_2, level_3)
  • Texts per intensity: 30

2. Emotion Clustering Analysis

2.1 Dimensionality Reduction

We applied PCA, t-SNE, and UMAP to visualize the expression parameter space.

PCA Results:

  • PC1 explains 31.14% of variance
  • PC2 explains 16.18% of variance
  • Total (PC1+PC2): 47.32%

Key Observations:

  • Emotions show overlapping distributions in PCA space
  • t-SNE/UMAP reveal many small clusters rather than 8 large emotion groups
  • Small clusters correspond to person-emotion combinations, not pure emotions
  • This suggests person identity is a confounding factor

2.2 Emotion Classification

Using K-NN (k=5) classifier on expression parameters:

Metric Value
Cross-validation accuracy 97.2%
Main confusions fear ↔ surprised (2%)

Confusion Analysis - Most similar emotion pairs (centroid distance):

  1. fear ↔ surprised: 1.03 (most confused)
  2. angry ↔ disgusted: 2.38
  3. contempt ↔ neutral: 2.66

2.3 Intensity (Radial Structure) Analysis

Hypothesis: Higher intensity → greater distance from neutral centroid

Results: Mixed support for radial structure

Emotion Intensity-Distance Correlation Supports Hypothesis?
disgusted r=0.242 (p<0.001) ✓ Yes
angry r=0.166 (p<0.001) ✓ Yes
contempt r=-0.032 ✗ No
fear r=-0.097 ✗ No (inverse)
happy r=-0.038 ✗ No
sad r=-0.007 ✗ No
surprised r=-0.012 ✗ No

Conclusion: Only angry and disgusted show expected radial patterns. Other emotions may express intensity through configuration changes rather than magnitude.

2.4 Top Sensitive Parameters per Emotion

Parameters with highest effect size (Cohen's d) vs neutral:

Emotion Top Parameters Effect Size
happy exp_0 ↑, exp_47 ↓, exp_9 ↑ d=2.1, 1.7, 1.5
angry exp_7 ↑, exp_8 ↑, exp_23 ↓ d=1.5, 1.4, 1.4
disgusted exp_9 ↓, exp_3 ↑, exp_23 ↓ d=1.8, 1.6, 1.4
fear exp_6 ↓, exp_39 ↑ d=1.5, 1.4
sad exp_14 ↑, exp_28 ↓ d=1.4, 1.2
surprised exp_6 ↓, exp_39 ↑, exp_11 ↑ d=1.5, 1.2, 1.2

Note: fear and surprised share similar parameter patterns, explaining their confusion.


3. SVD-Based Analysis

3.1 Motivation

The original FLAME expression basis was derived from PCA on general 3D scan data, optimized for reconstruction fidelity, not emotional semantics. We performed SVD on our dataset to discover emotion-aligned principal components.

3.2 Variance Explained

Component Individual Variance Cumulative
PC1 42.9% 42.9%
PC2 18.3% 61.2%
PC3 9.9% 71.0%
PC4 6.6% 77.6%
PC5 4.8% 82.4%
... ... ...
PC7 - 89.7%
PC11 - 96.0%

Recommendation: Use 15-20 components for denoising (retains >98% variance).

3.3 Valence-Arousal Correlation

Theoretical Valence-Arousal Model:

  • Valence: negative (-1) to positive (+1)
  • Arousal: calm (low) to excited (high)
Emotion Valence Arousal
happy +0.9 +0.6
surprised +0.2 +0.9
neutral 0.0 0.0
contempt -0.4 +0.2
fear -0.6 +0.9
sad -0.7 -0.5
disgusted -0.7 +0.4
angry -0.8 +0.8

Correlation with SVD Components:

PC Valence Correlation Arousal Correlation
PC2 r=0.78 (p=0.02) r=0.49
PC9 r=0.35 r=0.76

Key Finding: PC2 significantly correlates with Valence (positive vs negative emotion).

3.4 Semantic Interpretation of Principal Components

PC1 (42.9% variance):

  • High: surprised, fear, neutral
  • Low: happy, angry, disgusted
  • Interpretation: Possibly related to mouth opening / jaw movement

PC2 (18.3% variance):

  • High: surprised, fear, happy
  • Low: angry, disgusted, sad
  • Interpretation: Valence (positive vs negative emotion)

PC3 (9.9% variance):

  • High: sad
  • Low: disgusted, contempt, happy
  • Interpretation: Sadness-specific features (inner brow raise)

4. Identity-Expression Decoupling Analysis

4.1 Critical Finding: Severe Identity Leakage

Identity Classification from Expression Parameters:

Classifier Accuracy vs Chance (2.2%)
K-NN (k=1) 99.94% 46.0x
K-NN (k=5) 99.75% 45.9x
Random Forest 99.46% 45.8x
Logistic Regression 99.56% 45.8x

Conclusion: Expression parameters can perfectly identify individuals - they are NOT identity-independent.

4.2 Variance Decomposition

Overall:

Source Variance Percentage
Between-ID (Identity) 38.59 58.3%
Within-ID (Expression) 27.59 41.7%

Per-Emotion Identity Contamination:

Emotion Identity Ratio Expression Ratio
neutral 96.2% 3.8%
surprised 89.0% 11.0%
happy 87.3% 12.7%
fear 87.2% 12.8%
sad 83.5% 16.5%
contempt 82.3% 17.7%
angry 80.1% 19.9%
disgusted 78.7% 21.3%

4.3 Intra-ID vs Inter-ID Variance

Metric Value
Intra-ID variance (emotion variation within person) 18.36 ± 5.42
Inter-ID variance (person variation within emotion) 46.59 ± 7.65
Ratio (Inter/Intra) 2.54x

Conclusion: Person variation is 2.5x larger than emotion variation.

4.4 Per-Parameter Identity Information

Parameters with LEAST identity (most expression-pure):

Parameter η² (ID effect) Recommended for emotion analysis
exp_9 21.7% ✓ Best
exp_8 28.8% ✓
exp_0 29.2% ✓
exp_39 30.7% ✓
exp_3 32.6% ✓

Parameters with MOST identity contamination:

Parameter η² (ID effect) Avoid for cross-person analysis
exp_13 85.1% ✗
exp_31 81.5% ✗
exp_42 79.2% ✗
exp_48 78.9% ✗
exp_30 78.1% ✗

4.5 Identity Normalization Effect

After subtracting per-person mean:

Task Original Normalized
ID Classification 99.9% 96.1%
Emotion Classification 96.7% 95.0%

Note: ID classification still high (96.1%) due to higher-order identity patterns beyond the mean.


5. Summary and Recommendations

5.1 Key Findings

  1. Emotions are distinguishable in FLAME expression space (97% classification accuracy)

  2. Fear and surprised are most confused due to shared parameters (exp_6, exp_39, exp_11)

  3. SVD reveals semantic structure: PC2 correlates with Valence (r=0.78)

  4. Critical Issue: Expression parameters contain severe identity information:

    • 99.9% ID classification accuracy
    • 58% of variance is between-person
    • Person variation 2.5x larger than emotion variation
  5. Intensity analysis: Only angry and disgusted show expected radial patterns

5.2 Recommendations

For Cross-Person Emotion Analysis:

  1. Subtract per-person mean (identity normalization):

    for person in unique_persons:
        mask = person_ids == person
        person_mean = exp[mask].mean(axis=0)
        exp_normalized[mask] = exp[mask] - person_mean
  2. Focus on "clean" parameters: exp_9, exp_8, exp_0, exp_39, exp_3

  3. Avoid high-identity parameters: exp_13, exp_31, exp_42, exp_48, exp_30

  4. Use within-person relative changes rather than absolute values

For Dimensionality Reduction:

  1. Use SVD space (data-driven) instead of original FLAME basis

  2. PC2 captures valence - use for positive/negative emotion analysis

  3. 15-20 components sufficient for denoising while retaining signal

For Visualization:

  1. PCA preferred over t-SNE for interpretability

  2. Color by emotion shows overlap; color by person shows clear clusters

  3. Person trajectories show each person's "island" with similar emotion patterns


6. Generated Files

Analysis Scripts:

  • flame_emotion_analysis.py - Main emotion analysis
  • flame_svd_analysis.py - SVD-based semantic analysis
  • identity_expression_analysis.py - Identity-expression decoupling

Output Directories:

plots/ - Basic emotion analysis

  • emotion_clusters_pca.png - PCA visualization
  • emotion_clusters_tsne.png - t-SNE visualization
  • emotion_clusters_umap.png - UMAP visualization
  • confusion_matrix.png - Emotion classification
  • top_10_sensitive_params.png - Key parameters per emotion
  • radial_mean_distance.png - Intensity analysis
  • mean_heatmap_expression.png - Parameter means
  • emotion_distances.png - Pairwise distances

plots_svd/ - SVD analysis

  • svd_scree_plot.png - Variance explained
  • svd_pc1_pc2_emotions.png - SVD space visualization
  • svd_emotion_ellipses.png - Confidence ellipses
  • svd_valence_arousal_comparison.png - V-A correlation
  • svd_pc_loadings.png - Component loadings
  • svd_3d_visualization.png - 3D view

plots_identity/ - Identity analysis

  • variance_decomposition.png - ID vs expression variance
  • id_classification_accuracy.png - ID classification results
  • per_parameter_identity.png - Parameter-wise ID information
  • pca_identity_vs_emotion.png - Dual coloring comparison
  • person_trajectories.png - Per-person emotion paths
  • identity_normalized_comparison.png - Normalization effect

7. Code Usage

Run all analyses:

# Basic emotion analysis
python flame_emotion_analysis.py

# SVD-based semantic analysis
python flame_svd_analysis.py

# Identity-expression decoupling
python identity_expression_analysis.py

Load data programmatically:

from flame_emotion_analysis import load_flame_data

data_dict, labels = load_flame_data('.', use_mean=True)

exp = data_dict['exp']       # (N, 50) expression parameters
jaw = data_dict['jaw']       # (N, 3) jaw pose
pose = data_dict['global_pose']  # (N, 3) head pose

person_ids = labels['person_id']
emotions = labels['emotion']
intensities = labels['intensity']

Appendix: Theoretical Background

FLAME Model

FLAME (Faces Learned with an Articulated Model and Expressions) decomposes face shape into:

$$\mathbf{M}(\boldsymbol{\beta}, \boldsymbol{\theta}, \boldsymbol{\psi}) = W(T_P(\boldsymbol{\beta}, \boldsymbol{\theta}, \boldsymbol{\psi}), \mathbf{J}(\boldsymbol{\beta}), \boldsymbol{\theta}, \mathcal{W})$$

Where:

  • $\boldsymbol{\beta}$ : Shape parameters (identity)
  • $\boldsymbol{\theta}$ : Pose parameters (jaw, neck, eyeballs)
  • $\boldsymbol{\psi}$ : Expression parameters

Expression Basis

The FLAME expression basis $\mathcal{E} \in \mathbb{R}^{3N \times 50}$ was derived via PCA from:

  • ~4000 registered 3D scans
  • Various facial expressions (not emotion-labeled)

Limitation: Optimized for reconstruction, not emotional semantics.

Valence-Arousal Model

Russell's circumplex model describes emotions in 2D:

  • Valence: Pleasure dimension (negative ↔ positive)
  • Arousal: Activation dimension (calm ↔ excited)

Our SVD analysis found PC2 correlates with this Valence dimension (r=0.78).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages