Learning Visual Emotion Representations From Web Data

Zijun Wei, Jianming Zhang, Zhe Lin, Joon-Young Lee, Niranjan Balasubramanian, Minh Hoai, Dimitris Samaras

Introduction

While computer vision has made significant strides in object recognition, identifying the emotional content of an image remains a formidable challenge. Unlike objects, which have concrete physical boundaries, emotions are subjective, abstract, and context-dependent. A model might easily identify a "person" or a "room," but struggle to capture the underlying "vibe"—such as loneliness or pensiveness.

An image conveying a sense of loneliness or pensiveness, illustrating the subjective nature of visual emotion.

The primary bottleneck in visual emotion recognition (VER) has been the lack of large-scale, high-quality datasets. Existing datasets are often small and restricted to a few basic categories like "happy" or "sad," failing to capture the nuanced spectrum of human feelings. This research introduces EmotionNet, a feature extractor trained on a massive new dataset designed to serve as a foundational "VGG16 for emotions."

The StockEmotion Dataset

To overcome the data scarcity issue, the authors curated the StockEmotion dataset, consisting of 1.17 million images from Adobe Stock. Rather than relying on expensive manual labeling, they utilized 690 emotion-related web tags (e.g., pensive, celebrate, nightmare) as "weak" labels.

A visual representation of joy, one of the many fine-grained tags used to train EmotionNet.

This approach provides a much richer vocabulary than traditional datasets. To handle the inherent noise in web tags, the researchers also developed a manually cleaned subset, SE30K8, containing 33,000 images for rigorous verification and benchmarking.

EmotionNet Architecture

EmotionNet utilizes a ResNet50 backbone and incorporates two key innovations to handle noisy web data:

  1. Text Distillation: A "TextCNN" module analyzes non-emotion tags (e.g., "outdoor," "sunset") to predict missing or implicit emotion tags. This process "smooths" the labels, compensating for incomplete metadata provided by users.
  2. Joint Embedding Loss: The model aligns visual features with text embeddings in a shared mathematical space. By forcing the image representation to be close to the semantic vector of its tags, the model learns a more robust "emotion space" that generalizes well to unseen categories.

Results and Benchmarks

EmotionNet demonstrates superior performance across multiple standard benchmarks, setting new state-of-the-art (SOTA) records:

  • UnBiasedEmotion (UBE): Accuracy increased from 74.30% to 81.45%.
  • DeepEmotion (DE): Accuracy improved from 61.13% to 65.81%.
  • EMOTIC: The model achieved highly competitive results (29.24 mAP) in a zero-shot capacity, identifying emotions it was never explicitly trained on by leveraging its joint vision-language embedding.

A key finding of the study is that Objects ≠ Emotions. Models pretrained on ImageNet (focused on objects) perform significantly worse on emotion tasks. EmotionNet succeeds by capturing the broader context and subtle visual cues that define a "mood" rather than just identifying the items within the frame.

Conclusion

EmotionNet represents a significant step toward AI that can perceive the emotional nuances of the human world. By leveraging large-scale web data and joint embeddings, the researchers have created a powerful tool for downstream tasks such as emotional image search, automated captioning, and conditional content generation. While challenges like label noise and the inherent subjectivity of emotion remain, this work provides a scalable framework for future developments in affective computing.

Reference: Wei, Z., et al. (2020). Learning Visual Emotion Representations From Web Data. CVPR.

Summary updated

BibTeX
@inproceedings{wei2020learning,
  author = {Zijun Wei and Jianming Zhang and Zhe Lin and Joon-Young Lee and Niranjan Balasubramanian and Minh Hoai and Dimitris Samaras},
  title = {{Learning Visual Emotion Representations From Web Data}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01312},
}
Figure