Integrating Visual and Textual Cues for Sentiment Analysis: Multi-modal Approach
Abstract
With the steady growth of social media and online platforms, sentiment analysis has become a critical task to understand public opinion, customer feedback, and social trends. This study investigates multi-modal sentiment analysis by exploring state-of-the-art models such as Bidirectional encoder representations from transformers (BERT), Bootstrapping Language-Image Pretraining (BLIP), Generative Image-to-text Transformer (GIT), and Contrastive Language-Image Pretraining (CLIP) for sentiment classification tasks using both image and text data. The effectiveness of these models on sentiment analysis tasks is evaluated under different configurations such as text-only BERT, image-to-text augmented BERT, and CLIP-based classification. The results show that while BERT achieves 76% accuracy on text-only sentiment analysis, combining text with image-generated descriptions does not significantly improve performance, with accuracy remaining around 74%. On the other hand, CLIP achieves a moderate 62% accuracy using image-text embeddings. While CLIP performs well on multi-modal mapping, it demonstrates challenges in deep semantic understanding compared to BERT’s 0.76 F1 score on the text-only task. These findings highlight the challenges of effectively merging different modalities and point out future directions for improving sentiment analysis in multi-modal settings, enhancing the ability of models to fully understand the semantic content in both images and text.
References
- Bello, A., Ng, S.C., & Leung, M.-F. (2023). A BERT Framework to Sentiment Analysis of Tweets. Sensors, 23(1), 506.
- Mickel, H.A., Bihorac, O.A. and Rouces, J. (2019) Aspect-Based Sentiment Analysis Using BERT. Proceedings of the 22nd Nordic Conference on Computational Linguistics, 187–196.
- Zhao, A.P. and Yu, Y. (2021) Knowledge-Enabled BERT for Aspect-Based Sentiment Analysis. Knowledge-Based Systems, 227, 107220.
- Li, J., Li, D., Xiong, C. and Hoi, S. (2022) BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation. Proceedings of the 39th International Conference on Machine Learning, Proceedings of Machine Learning Research, 162, 12888-12900.
- Li, J., Li, D., Savarese, S. and Hoi, S. (2023) BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, 202, 19730-19742.
- Srinivas, P. (2023) BLIP-NLP Model for Sentiment Analysis. 2023 2nd International Conference on Edge Computing and Applications (ICECAA), Namakkal, India, pp. 468-475. doi: 10.1109/ICECAA58104.2023.10212253.
- Wang, J., Yang, Z., Hu, X., Li, L., Lin, K., Gan, Z., Liu, Z., Liu, C. and Wang, L. (2022) GIT: A Generative Image-to-Text Transformer for Vision and Language. arXiv.
- Bustos, C., Civit, C., Du, B., Solé-Ribalta, A. and Lapedriza, A. (2023) On the Use of Vision-Language Models for Visual Sentiment Analysis: A Study on CLIP. 2023 11th International Conference on Affective Computing and Intelligent Interaction (ACII), Cambridge, MA, USA, pp. 1-8. doi: 10.1109/ACII59096.2023.10388075.
- Sun, Z., Fang, Y., Wu, T., Zhang, P., Zang, Y., Kong, S., Xiong, Y., Lin, D. and Wang, J. (2023) Alpha-CLIP: A CLIP Model Focusing on Wherever You Want. arXiv.
- Mohammed, D.J. and Aleqabie, H.J. (2022) The Enrichment of MVSA Twitter Data via Caption-Generated Label Using Sentiment Analysis. 2022 Iraqi International Conference on Communication and Information Technologies (IICCIT), Basrah, Iraq, pp. 322-327. doi: 10.1109/IICCIT55816.2022.10010435.
- Niu, T., Zhu, S.A., Pang, L. and El Saddik, A. (2016) Sentiment Analysis on Multi-View Social Data. MultiMedia Modeling (MMM), 15-27..