Deep Transfer Learning for Image Emotion Analysis: Reducing Marginal and Joint Distribution Discrepancies Together

Yuwei He, Guiguang DingNeural Process. Lett 2020

Introduction

Image emotion analysis remains a significant challenge in computer vision. Unlike object recognition, which relies on concrete visual features, emotional perception is subjective and context-dependent. A primary hurdle in this field is "data scarcity": while large-scale datasets exist for general image classification, high-quality labeled emotion datasets are often small due to the expensive and time-consuming nature of human labeling. Furthermore, models frequently suffer from "domain shift," where a classifier trained on one type of imagery (e.g., social media photos) fails to generalize to another (e.g., professional art).

This paper proposes a deep transfer learning framework designed to bridge these gaps by effectively transferring emotional knowledge from a label-rich source domain to a label-poor target domain.

Methodology: Dual Distribution Alignment

The proposed framework utilizes a ResNet50 backbone. The core innovation is the simultaneous minimization of both marginal and joint distribution discrepancies at the top layers of the network. While lower layers of a CNN capture general features like edges and textures, higher layers become increasingly domain-specific.

The proposed deep transfer learning architecture, highlighting the alignment of marginal (MMD) and joint (JMMD) distributions at the fully-connected layers.

The model's loss function integrates three components:

  1. Classification Loss: Standard cross-entropy applied to the labeled source data.
  2. Marginal Distribution Alignment (MMD): Reduces discrepancies between individual fully-connected (FC) layers of the source and target domains.
  3. Joint Distribution Alignment (JMMD): Ensures that the joint relationships between multiple layers (specifically the final FC layer and the softmax output) remain consistent across domains.

By balancing these components, the model preserves the "logic" of emotional classification while adapting to the visual style of the target domain.

Experimental Setup and Datasets

The researchers evaluated the model using three distinct datasets categorized into eight emotional states (Amusement, Anger, Awe, Contentment, Disgust, Excitement, Fear, and Sadness):

  • FI (Flickr/Instagram): A large-scale source dataset (22,700 images).
  • ArtPhoto: 806 professional artistic photographs.
  • IAPS-Subset: 395 images from the International Affective Picture System.

Performance was measured across four cross-domain transfer tasks, such as training on FI and testing on ArtPhoto.

Key Results and Discussion

The combined approach ("Ours") consistently outperformed standard fine-tuning and specialized methods like DAN (marginal alignment only) and JAN (joint alignment only). For instance, in the transfer task from IAPS to ArtPhoto (I → A), the model achieved an accuracy of 39.15%, a significant improvement over the 30.77% baseline.

Accuracy comparison across different emotion categories for various transfer learning methods.

As shown in the per-emotion breakdown, the proposed method achieves particularly strong results in categories like 'disgust' and 'sadness'. The researchers noted that the relationship between marginal and joint alignment follows a bell-shaped curve; finding the optimal trade-off between the two is critical for maximizing transferability.

However, the authors also identified the risk of "negative transfer." In cases where the domain shift is extreme (e.g., certain FI to ArtPhoto tasks), basic fine-tuning occasionally performed better, suggesting that forced alignment can sometimes introduce noise if the domains are too disparate.

Conclusion

By addressing both marginal and joint distribution discrepancies, this deep transfer learning approach provides a robust solution for image emotion analysis in data-constrained environments. Future work aims to incorporate art theory and psychological principles—such as color harmony and composition—to move beyond purely data-driven features and create more human-like emotional classifiers.

Summary updated

BibTeX
@article{he2020deep,
  author = {Yuwei He and Guiguang Ding},
  title = {{Deep Transfer Learning for Image Emotion Analysis: Reducing Marginal and Joint Distribution Discrepancies Together}},
  journal = {Neural Process. Lett.},
  year = {2020},
  doi = {10.1007/s11063-019-10035-7},
}
Figure