Emotion Classification with Data Augmentation Using Generative Adversarial Networks

Xinyue Zhu, Yifan Liu, Jiahong Li, Tao Wan, Zengchang QinPAKDD 2018

TL;DR

This paper tackles the challenge of imbalanced datasets in emotion classification by proposing a novel data augmentation technique using Generative Adversarial Networks (GANs), specifically CycleGAN. By generating synthetic images for underrepresented emotion classes, they significantly improve classification accuracy, demonstrating the power of GANs in completing data manifolds and enhancing model performance.

What Problem Does This Paper Address?

Classifying emotions from images, particularly facial expressions, is a challenging task. A major hurdle is the inherent imbalance in available datasets, where some emotions (like "disgusted") are far less frequent than others (like "happy" or "sad"). This imbalance leads to biased classifiers that perform poorly on minority classes. Traditional data augmentation methods often only perform simple image transformations, failing to capture the underlying data distribution effectively. The paper aims to address this by generating more realistic and diverse synthetic data for underrepresented classes, thereby improving the overall integrity and margin clarity of the data manifold.

Methods

The core of the proposed method is a data augmentation framework leveraging Generative Adversarial Networks (GANs), specifically the CycleGAN architecture.

  • CycleGAN for Image-to-Image Translation: CycleGAN is chosen for its ability to translate images between two unpaired domains. In this context, it's used to generate images of a "target" emotion class (e.g., "disgust") from images of a "reference" class (e.g., "neutral"). This allows for the creation of synthetic images for minority classes by learning mappings from more abundant classes.
  • Least-Squared Loss (LSGAN): To mitigate the gradient vanishing problem often encountered in GAN training, the authors incorporate the least-squared loss from LSGAN into the CycleGAN framework. This helps stabilize training and improve convergence.
  • Framework Integration: The generated synthetic images are then added to the original training dataset. A standard Convolutional Neural Network (CNN) classifier is trained on this augmented dataset. The process involves training the CycleGAN to generate supplementary data, which is then used to train or fine-tune the CNN classifier.

Datasets

The paper evaluates its approach on three benchmark datasets for facial expression recognition:

  • FER2013 (Facial Expression Recognition Database): This is the primary dataset used for extensive experimentation and validation.
  • SFEW (Static Facial Expressions in the Wild): A smaller dataset used for evaluation.
  • JAFFE (Japanese Female Facial Expression) Database: Another smaller dataset used for evaluation.

All these datasets contain 7 types of facial emotions. The paper notes that the distribution within these datasets is imbalanced.

Key Insights and Ideas

  • GANs as Data Manifold Completers: The paper highlights that GANs, particularly CycleGAN, can go beyond simple image transformations to effectively "complete" the data manifold. By generating realistic synthetic data, they help fill gaps in the distribution, leading to a more robust representation of all classes.
  • Improving Margin Clarity: The generated data not only increases the sample size of minority classes but also helps in establishing clearer decision boundaries (margins) between different emotion classes. This is crucial for accurate classification, especially when classes are visually similar.
  • Cross-Class Improvement: Interestingly, augmenting data for minority classes not only boosts their own accuracy but also positively impacts the accuracy of other classes, including the reference class. This suggests a holistic improvement of the data distribution and classifier's understanding.
  • CycleGAN's Suitability for Unpaired Domains: The choice of CycleGAN is justified by its ability to learn mappings between domains without requiring paired examples, which is common in real-world imbalanced datasets.

Key Results

  • Significant Accuracy Increase: The proposed GAN-based data augmentation technique resulted in a 5% to 10% increase in classification accuracy across the benchmark datasets.
  • Target Class Improvement: For minority classes like "disgust" and "sad" in FER2013, the accuracy saw a substantial rise, with some classes reaching over 90% accuracy after augmentation, compared to much lower baseline accuracies (e.g., 73.91% for disgust).
  • Overall Accuracy Boost: The overall test accuracy also improved, demonstrating the effectiveness of the augmentation strategy. For FER2013, the overall accuracy increased from 91.04% (baseline) to 94.25% (with disgust augmentation) and 94.65% (with sad augmentation).
  • Validation on Smaller Datasets: The technique also showed improvements on smaller datasets like SFEW and JAFFE, indicating its generalizability.

Limitations and Future Work

  • Limited Dataset Scope: The current work focuses on emotion classification and uses only CycleGAN.
  • Future Directions: The authors suggest extending their model to general image classification problems and exploring other GAN architectures to further validate and enhance the data augmentation method. They also plan to investigate applying their model with stronger references.

Summary updated

BibTeX
@inproceedings{zhu2018emotion,
  author = {Xinyue Zhu and Yifan Liu and Jiahong Li and Tao Wan and Zengchang Qin},
  title = {{Emotion Classification with Data Augmentation Using Generative Adversarial Networks}},
  booktitle = {PAKDD},
  year = {2018},
  url = {https://openreview.net/forum?id=0dRIDDbx-_6},
}
Figure