Skip to content

Latest commit

 

History

History
344 lines (262 loc) · 13.7 KB

README_plot.md

File metadata and controls

344 lines (262 loc) · 13.7 KB

FLAME Expression Parameter Analysis - Plot Documentation

This document provides detailed descriptions and visualizations of all plots generated by the three analysis scripts, explaining what data features each plot illustrates and the methodology used.

Overview

The plots are organized into three categories corresponding to the three main analysis perspectives:

  1. Basic Emotion Analysis (plots/) - Direct emotion-expression relationships
  2. SVD Semantic Analysis (plots_svd/) - Data-driven emotion-aligned components
  3. Identity-Expression Analysis (plots_identity/) - Identity contamination investigation

1. Basic Emotion Analysis (plots/)

Dimensionality Reduction Visualizations

emotion_clusters_pca.png (2.27 MB)

Purpose: Visualize emotion clusters using Principal Component Analysis Data Features Shown:

  • First two principal components capturing 47.32% of variance (PC1: 31.14%, PC2: 16.18%)
  • 8 emotions color-coded with distinct colors
  • Each point represents one FLAME parameter sample (expression + jaw + pose)
  • Key Insight: Shows overlapping emotion distributions, indicating complex relationships

emotion_clusters_pca

emotion_clusters_tsne.png (590 KB)

Purpose: Non-linear visualization using t-SNE for local structure preservation Data Features Shown:

  • t-SNE embedding with perplexity=30
  • Preserves local neighborhoods in high-dimensional space
  • Key Insight: Reveals many small clusters rather than 8 large emotion groups
  • Critical Finding: Small clusters correspond to person-emotion combinations

emotion_clusters_tsne

emotion_clusters_umap.png (314 KB)

Purpose: Uniform Manifold Approximation and Projection Data Features Shown:

  • UMAP embedding with n_neighbors=15, min_dist=0.1
  • Better global structure preservation than t-SNE
  • Key Insight: Similar pattern to t-SNE - person identity creates stronger clustering than emotion

emotion_clusters_umap

emotion_clusters_intensity_pca.png (2.24 MB)

Purpose: PCA visualization with intensity overlay Data Features Shown:

  • Same PCA space as emotion_clusters_pca.png
  • Intensity levels marked with different symbols (○ level_1, □ level_2, △ level_3)
  • Key Insight: Tests radial intensity hypothesis - higher intensity should be farther from neutral

emotion_clusters_intensity_pca

Emotion Classification & Separability

confusion_matrix.png (78 KB)

Purpose: Evaluate emotion classification performance Methodology: K-NN classifier (k=5) with 5-fold cross-validation Data Features Shown:

  • Normalized confusion matrix (rows= true, columns= predicted)
  • Overall accuracy: 97.2%
  • Key Finding: Fear ↔ surprised most confused (2% error rate)
  • Visual Pattern: Diagonal dominance shows good separability

confusion_matrix

emotion_distances.png (114 KB)

Purpose: Pairwise emotion similarity analysis Methodology: Euclidean distance between emotion centroids Data Features Shown:

  • Distance matrix heatmap
  • Lower values = more similar emotions
  • Key Finding: Fear-surprised distance = 1.03 (most similar)
  • Second most similar: angry-disgusted (2.38)

emotion_distances

Parameter Analysis

mean_heatmap_expression.png (141 KB)

Purpose: Expression parameter differences from neutral by emotion Methodology: Mean parameter values minus neutral means Data Features Shown:

  • 8 emotions × 50 expression parameters heatmap
  • RdBu colormap (red = increase, blue = decrease from neutral)
  • Key Pattern: Each emotion has distinctive parameter signatures
  • Example: Happy shows exp_0↑, exp_47↓ pattern

mean_heatmap_expression

variance_heatmap_expression.png (138 KB)

Purpose: Expression parameter variance by emotion Methodology: Variance of each parameter across samples per emotion Data Features Shown:

  • 8 emotions × 50 expression parameters heatmap
  • YlOrRd colormap (higher variance = darker red)
  • Key Insight: Some parameters vary more in certain emotions

variance_heatmap_expression

top_10_sensitive_params.png (117 KB)

Purpose: Identify parameters most sensitive to each emotion Methodology: Cohen's d effect size vs neutral emotion Data Features Shown:

  • Horizontal bar charts for each emotion
  • Top 3 parameters shown with effect sizes
  • Color coding: red = decrease, blue = increase from neutral
  • Key Finding: Fear and surprised share sensitive parameters (exp_6↓, exp_39↑)

top_10_sensitive_params

top_variance_params.png (271 KB)

Purpose: Parameters with highest variance across emotions Methodology: Variance ratio (variance across emotions) / (variance within emotion) Data Features Shown:

  • Bar chart of top 20 parameters
  • Key Finding: exp_13, exp_31, exp_42 show highest between-emotion variance
  • Implication: These parameters good for emotion discrimination

top_variance_params

Intensity Analysis

radial_mean_distance.png (56 KB)

Purpose: Test radial intensity hypothesis Methodology: Distance from neutral centroid vs intensity level Data Features Shown:

  • Scatter plot with intensity markers
  • Trend line and correlation coefficient
  • Key Finding: Only angry (r=0.166) and disgusted (r=0.242) support radial pattern
  • Conclusion: Other emotions use configuration changes for intensity

radial_mean_distance

radial_distance_distribution.png (108 KB)

Purpose: Distribution of distances from neutral Methodology: Euclidean distance from neutral centroid for each sample Data Features Shown:

  • Histogram of distances by emotion
  • Key Pattern: Some emotions show multimodal distributions

radial_distance_distribution


2. SVD Semantic Analysis (plots_svd/)

SVD Structure & Variance

svd_scree_plot.png (77 KB)

Purpose: SVD variance explained analysis Methodology: Singular Value Decomposition on expression parameters Data Features Shown:

  • Individual variance per component (bar chart)
  • Cumulative variance (line chart)
  • Key Finding: PC1 = 42.9%, PC2 = 18.3%, PC3 = 9.9%
  • Recommendation: 15-20 components retain >98% variance

svd_scree_plot

svd_reconstruction_error.png (51 KB)

Purpose: Denoising analysis via truncated SVD Methodology: Reconstruction error vs number of components Data Features Shown:

  • Reconstruction error (MSE) vs components kept
  • Key Insight: Sharp error reduction with first 15 components

svd_reconstruction_error

SVD Space Visualization

svd_pc1_pc2_emotions.png (2.40 MB)

Purpose: Emotion distribution in SVD space Methodology: PC1 vs PC2 projection with emotion coloring Data Features Shown:

  • PC1 (42.9% variance) vs PC2 (18.3% variance)
  • 8 emotions with distinct colors
  • Key Pattern: Clearer separation than original FLAME space
  • Critical Insight: PC2 aligns with valence dimension

svd_pc1_pc2_emotions

svd_emotion_ellipses.png (2.09 MB)

Purpose: Emotion confidence regions in SVD space Methodology: Centroids with 2σ confidence ellipses Data Features Shown:

  • Emotion centroids with error ellipses
  • Ellipse size = confidence area
  • Key Insight: Overlap patterns show emotion confusion

svd_emotion_ellipses

svd_3d_visualization.png (1.11 MB)

Purpose: 3D visualization of SVD space Methodology: PC1-PC2-PC3 3D scatter plot Data Features Shown:

  • Three principal components in 3D
  • Interactive-like static visualization
  • Key Pattern: Structure visible in 3D space

svd_3d_visualization

SVD Component Analysis

svd_pc_loadings.png (105 KB)

Purpose: Original parameter contributions to SVD components Methodology: Loading vectors (correlation between original params and PCs) Data Features Shown:

  • Bar charts of top 10 loadings for PC1, PC2, PC3
  • Key Finding:
    • PC1: Mouth opening related parameters
    • PC2: Valence-related (positive vs negative)
    • PC3: Sadness-specific (inner brow raise)

svd_pc_loadings

Theoretical Validation

svd_valence_arousal_comparison.png (123 KB)

Purpose: Validate SVD components against psychological theory Methodology: Correlation with Russell's circumplex model Data Features Shown:

  • Theoretical V-A space (x-axis = valence, y-axis = arousal)
  • SVD space (PC1 vs PC2)
  • Critical Finding: PC2 correlates with valence (r=0.78, p=0.02)

svd_valence_arousal_comparison

svd_intensity_analysis.png (2.36 MB)

Purpose: Intensity patterns in SVD space Methodology: SVD projection with intensity markers Data Features Shown:

  • PC1 vs PC2 with intensity symbols (○ □ △)
  • Key Insight: Tests if intensity follows radial pattern in semantic space

svd_intensity_analysis


3. Identity-Expression Analysis (plots_identity/)

Variance Decomposition

variance_decomposition.png (85 KB)

Purpose: Decompose total variance into identity vs expression Methodology: Between-ID vs Within-ID variance analysis Data Features Shown:

  • Bar chart: Between-ID (58.3%) vs Within-ID (41.7%) variance
  • Critical Finding: Identity dominates expression variance
  • Implication: Raw parameters not suitable for cross-person emotion analysis

variance_decomposition

intra_inter_variance.png (66 KB)

Purpose: Compare intra-person vs inter-person variance Methodology: Variance ratio analysis by emotion Data Features Shown:

  • Bar charts comparing intra-ID vs inter-ID variance
  • Key Finding: Person variation 2.5× larger than emotion variation

intra_inter_variance

Identity Classification

id_classification_accuracy.png (54 KB)

Purpose: Test if expression parameters contain identity information Methodology: Multiple classifiers on expression parameters Data Features Shown:

  • Classification accuracy vs chance level (2.2%)
  • Stunning Result: 99.9% ID classification accuracy (46× chance)
  • Implication: Severe identity contamination in expression parameters

id_classification_accuracy

per_parameter_identity.png (100 KB)

Purpose: Measure identity information per expression parameter Methodology: ANOVA F-statistic and eta-squared effect size Data Features Shown:

  • Bar chart of eta-squared values for each parameter
  • Clean Parameters: exp_9 (21.7%), exp_8 (28.8%), exp_0 (29.2%)
  • Contaminated Parameters: exp_13 (85.1%), exp_31 (81.5%), exp_42 (79.2%)

per_parameter_identity

Identity Visualization

pca_identity_vs_emotion.png (2.08 MB)

Purpose: Compare emotion vs identity clustering in PCA space Methodology: PCA with dual coloring Data Features Shown:

  • Left: Colored by emotion (overlapping clusters)
  • Right: Colored by person ID (clear clusters)
  • Critical Insight: Identity creates stronger structure than emotion

pca_identity_vs_emotion

person_trajectories.png (326 KB)

Purpose: Show each person's emotion expression patterns Methodology: PCA projection with person trajectories Data Features Shown:

  • Lines connecting same person's different emotion samples
  • Key Pattern: Each person has their own "emotion island"
  • Implication: Person-specific expression patterns

person_trajectories

Identity Normalization

identity_normalized_comparison.png (1.16 MB)

Purpose: Effect of identity normalization Methodology: Before/after comparison (subtract per-person mean) Data Features Shown:

  • Left: Raw expression parameters
  • Right: Identity-normalized parameters
  • Result: ID classification drops from 99.9% to 96.1%
  • Key Insight: Identity persists beyond mean normalization

identity_normalized_comparison


4. Plot Interpretation Guide

Color Coding

  • Emotions: Consistent across all plots (angry=red, happy=yellow, etc.)
  • Intensities: ○ level_1, □ level_2, △ level_3
  • Effect Sizes: Blue = increase from neutral, Red = decrease from neutral

Key Patterns to Look For

  1. Identity Clustering: Person identity often creates stronger clusters than emotion
  2. Emotion Overlap: Fear/surprised confusion is consistently visible
  3. Radial Patterns: Only some emotions show intensity-distance correlation
  4. SVD Alignment: PC2 alignment with valence is a key theoretical validation

Methodology Summary

  • Dimensionality Reduction: PCA (linear), t-SNE/UMAP (non-linear)
  • Statistical Tests: ANOVA, t-tests, Cohen's d, correlation analysis
  • Classification: K-NN, Random Forest, Logistic Regression
  • Effect Sizes: eta-squared, point-biserial correlation

These plots collectively reveal that FLAME expression parameters contain severe identity contamination, requiring careful normalization for cross-person emotion analysis. The SVD approach provides more emotion-aligned components than the original FLAME basis.