Visual Sentiment Prediction with Deep Convolutional Neural Networks

Can Xu, Suleyman Cetintas, Kuang-Chih Lee, Li-Jia LiarXiv 2014

Abstract

Visual sentiment analysis aims to understand the emotions conveyed by images, a task complicated by the "affective gap" between low-level pixels and high-level emotional concepts. This paper demonstrates that Deep Convolutional Neural Networks (CNNs) trained for object recognition can be effectively repurposed for sentiment prediction. By leveraging transfer learning from models like AlexNet, the authors achieve state-of-the-art results on social media datasets. The findings suggest that high-level visual features are powerful proxies for human emotion, eliminating the need for hand-crafted psychological descriptors.

Introduction: Bridging the Affective Gap

While textual sentiment analysis is a mature field, understanding the emotional weight of images remains a significant challenge. Social media platforms like Tumblr and Instagram are increasingly visual, yet many posts lack descriptive text. Previous attempts to bridge the "affective gap"—the disconnect between image pixels and emotional meaning—relied on "mid-level attributes" (e.g., detecting a "crying baby"). However, these methods require intensive manual labor and domain expertise in psychology or linguistics. This research asks whether deep learning can predict sentiment directly from visual data without manual engineering.

Methodology: Transfer Learning for Sentiment

The authors propose a framework based on Transfer Learning, borrowing the intelligence of a model trained on a massive object recognition task (ImageNet) to solve the sentiment prediction problem.

Architecture of the proposed CNN-based sentiment prediction framework using transfer learning.

The process involves three main steps:

  1. Base Model: Utilizing an AlexNet architecture pre-trained on 1.2 million images across 1,000 object categories.
  2. Feature Extraction: Extracting high-level representations from the network's fully connected layers:
  3. fc7: A 4096-dimensional vector representing a generalized visual "summary."
  4. fc8: A 1000-dimensional vector representing object probability distributions (e.g., "lemon" vs. "zebra").
  5. Classification: Training a simple Logistic Regression model on these extracted features to predict sentiment scores.

Datasets and Social Media Context

The model was evaluated on two distinct social media sources, highlighting the variety in how users express sentiment online.

Examples of images and associated textual metadata from Twitter and Tumblr datasets.
  • Twitter Benchmark: A dataset of 603 images labeled as binary (positive/negative).
  • Tumblr Dataset: A new, more nuanced dataset of 1,179 photo posts using a 5-point scale (Strongly Negative to Strongly Positive). This dataset was curated using a subjectivity clue lexicon and validated by human annotators, showing a 94% agreement rate.

Key Insights and Results

The study yielded several critical insights into how machines "perceive" emotion:

  • Objects as Proxies: Features learned to distinguish objects (like a "dalmatian") are surprisingly effective at distinguishing emotions (like "joy").
  • Composition over Labels: The fc7 layer (general features) consistently outperformed fc8 (specific labels), suggesting sentiment is often conveyed through style and context rather than just the presence of specific objects.
  • Performance: Measured by Area Under the Curve (AUC), the fc7 method significantly outperformed traditional baselines like GIST or HOG. On the Tumblr dataset, the model achieved an overall AUC of 0.704, with particular strength in identifying "Strongly Negative" images (AUC 0.801).

Conclusion and Future Directions

This work proves that deep visual features are robust indicators of sentiment. While the current study kept CNN weights fixed, future work could involve fine-tuning the network specifically for sentiment tasks. Additionally, combining visual features with textual tags (multimodal fusion) and extending the framework to video data represent promising avenues for future research in automated emotional understanding.

Reference: Xu, C., Cetintas, S., Lee, K. C., & Li, L. J. (2014). Visual Sentiment Prediction with Deep Convolutional Neural Networks. arXiv:1411.5731.

Summary updated

BibTeX
@misc{xu2014visual,
  author = {Can Xu and Suleyman Cetintas and Kuang-Chih Lee and Li-Jia Li},
  title = {{Visual Sentiment Prediction with Deep Convolutional Neural Networks}},
  year = {2014},
  eprint = {1411.5731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.5731},
}
Figure