University of Science and Technology of Hanoi (USTH)
December 2024
Problem statement and objectives for emotion classification
Data processing pipeline and model architectures
Performance metrics and comparative analysis
Key findings and future directions
Objective: Classify facial expressions into 7 emotion categories using Convolutional Neural Networks (CNNs) on the Cohn-Kanade (CK+) dataset.

Import dataset images
Using landmarks detection
64×64 pixels
Scale pixel values
70% train / 30% test
Imbalanced dataset causes model to predict majority class. Neutral expressions dominate at 64.2% of the dataset, creating significant bias.
Compute class weights inversely proportional to class frequency using the formula:
Where wi = weight for class i, N = total samples, C = number of classes, ni = samples in class i
Statistical model combining shape and texture analysis with PCA-based dimensionality reduction
Support Vector Machine for final classification decision

Total Parameters: 6,429,577
Optimizer: Adam (learning rate = 0.0005)
97.94%
Excellent learning on training data
92.99%
Strong generalization to unseen data
Follows training closely, indicating proper learning without severe overfitting
For small datasets like CK+ (631 training samples), proper architecture design prevents overfitting and ensures generalization.
Achieved 92.99% test accuracy, comparable to AAM+SVM baseline (93.8%), demonstrating CNN effectiveness.
Key factors include appropriate dropout rates (0.25, 0.5), proper learning rate selection, and regularization techniques.
Classify faces by subject identity (not emotion) - a fundamentally different challenge with unique complexities.
Average samples per subject: 5.2 - significantly limited data per class
Architecture (LeNet-based):
Task Characteristics:
Architecture (Enhanced LeNet):
Task Characteristics:
Top-1 classification performance
Macro average across all classes
Macro average detection rate
Weighted average performance
Key Achievement: The model achieved 95% accuracy on identity recognition and generalizes remarkably well despite limited samples per subject (5.2 average). This demonstrates the effectiveness of the enhanced architecture with three convolutional blocks.
Modified LeNet-5 achieved 92.99% test accuracy on 7-class emotion classification, matching traditional AAM+SVM baseline performance.
Successfully adapted emotion recognition CNN for identity recognition, achieving 95% test accuracy on challenging 123-class problem with limited data.
LeNet-inspired architecture with 3 convolutional blocks proved highly effective. Class weighting and regularization crucial for handling imbalanced, limited data.
Proper architecture design, regularization techniques, and class balancing strategies enable CNNs to excel even with small datasets.
Questions?
Facial Expression Recognition Using Deep Learning