Visual and textual sentiment analysis using deep fusion convolutional neural networks

Xingyue Chen, Yunhong Wang, Qingjie Liu

Abstract

Researchers from Beihang University have developed an end-to-end "Deep Fusion" Convolutional Neural Network (CNN) that analyzes sentiment by processing images and text simultaneously. By fusing visual and textual features into a single model, the system addresses the "modality isolation" and "affective gap" common in traditional sentiment analysis. Experimental results on large-scale Flickr datasets demonstrate that the proposed model outperforms state-of-the-art methods, achieving 84.7% accuracy on the Visual Sentiment Ontology (VSO) dataset.

Introduction

Sentiment analysis—the task of determining whether content is positive or negative—is essential for recommendation engines and market research. However, most existing tools suffer from modality isolation. Text-only models often miss the context provided by an image (e.g., a sarcastic caption), while image-only models struggle with the "affective gap"—the difficulty of mapping low-level pixels to high-level emotions. This paper addresses the challenge of multimodal fusion: mathematically combining the visual "vibe" of a photo with the semantic meaning of a sentence to reach a more accurate conclusion.

Methodology

The authors propose a dual-stream architecture that processes text and images in parallel before merging them into a unified representation.

The Visual Stream

A CNN similar to AlexNet, consisting of five convolutional layers, processes 244x244 RGB images. Instead of simple object detection, this stream focuses on high-level abstractions that represent visual sentiment.

The Textual Stream

This stream utilizes pre-trained Word2Vec embeddings to convert words into 200-dimensional vectors. A CNN with varying filter sizes (sliding over 3, 4, or 5 words) captures local context. A key innovation is the use of triple pooling, which concatenates the max, min, and average values from the filters to create a robust textual representation.

Deep Fusion

The outputs from both streams are reshaped into one-dimensional vectors and concatenated in a fusion layer. This combined "super-vector" is fed through three fully-connected layers and a final softmax layer to predict sentiment polarity (Positive vs. Negative).

Architecture of the Deep Fusion CNN model showing parallel visual and textual processing streams.

Experimental Setup

The model was evaluated on two massive datasets crawled from Flickr:

  • Visual Sentiment Ontology (VSO): 346,139 pairs with descriptions between 5 and 150 words.
  • Multilingual VSO (MVSO-EN): A larger, noisier dataset containing 613,955 image-text pairs.

Both datasets use Adjective-Noun Pairs (ANPs) like "beautiful girl" or "evil robot" to derive ground-truth sentiment scores.

Examples of multimodal image-text pairs from the datasets used for training and evaluation.

Results and Discussion

The Deep Fusion model set a new performance benchmark on the VSO dataset:

  • Superior Accuracy: The model achieved 84.7% accuracy, outperforming the previous state-of-the-art T-LSTM (83.3%) and significantly beating single-modality baselines (Text-only: 69.5%; Image-only: 63.1%).
  • Robustness to Noise: On the noisier MVSO-EN dataset, the model achieved 73.7% accuracy, marking a significant milestone for this subset.
  • Complementary Semantic Information: In every test, the fused model outperformed single-modality versions, confirming that visual and textual data provide complementary signals.

Key insights include the effectiveness of triple pooling and the importance of global image context over local region-based analysis for overall sentiment.

Conclusion

While the Deep Fusion model demonstrates the power of multimodal analysis, challenges remain regarding dataset noise and computational intensity. Future work will focus on better filtering techniques for weakly labeled web data and extending the model to handle fine-grained emotional categories beyond binary polarity.

Summary updated

BibTeX
@inproceedings{chen2017visual,
  author = {Xingyue Chen and Yunhong Wang and Qingjie Liu},
  title = {{Visual and textual sentiment analysis using deep fusion convolutional neural networks}},
  booktitle = {ICIP},
  year = {2017},
  doi = {10.1109/icip.2017.8296543},
}
Figure