TSRB: Transformer-Based Semantic Refinement Block for Sentiment Analysis Using Scene Text Images
- 14 September 2026
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in International Journal of Pattern Recognition and Artificial Intelligence
Abstract
Sentiment analysis is essential for several real-world applications, such as opinion mining and predicting a person’s intent and personality. Most existing work aims to address challenges of sentiment analysis using normal text and images uploaded on social media. This work aims to use scene text images for sentiment analysis to assist in understanding the intentions of captured scenes. We present the Transformer-based Semantic Refinement Block (TSRB), which comprises a multimodal approach and semantic gating. The proposed method constructs hierarchically fused image and text representations and then routes them through a TSRB and a learned three-way Semantic Gating module. The image branch encodes both the full meme image and text image extracted from the input image through a convolutional network with spatial attention; the text branch encodes OCR text, raw tweet text, and image captions via three independent DistilBERT[Formula: see text]CNN encoders and hierarchically fuses them. The resulting visual and textual embeddings are jointly refined by three stacked Transformer encoder layers within the proposed TSRB and then selectively blended by a softmax-weighted Semantic Gate that dynamically arbitrates among the post-attention, visual, and textual streams. Experiments are conducted on two standard datasets (MVSA-Single and Memotion) and compared with state-of-the-art models to demonstrate the effectiveness of the proposed method.Keywords
This publication has 15 references indexed in Scilit:
- A New Contrastive Learning-Based Vision Transformer for Sentiment Analysis Using Scene Text ImagesInternational Journal of Pattern Recognition and Artificial Intelligence, 2024
- Squeeze-and-Excitation Networks2018
- Multimodal Machine Learning: A Survey and TaxonomyIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Deep Residual Learning for Image Recognition2016
- Building a Large Scale Dataset for Image Emotion Recognition: The Fine Print and The BenchmarkProceedings of the AAAI Conference on Artificial Intelligence, 2016
- Sentiment Analysis on Multi-View Social Data2016
- Show and tell: A neural image caption generator2015
- Deep learning and the information bottleneck principle2015
- Opinion Mining and Sentiment AnalysisFoundations and Trends® in Information Retrieval, 2008
- Long Short-Term MemoryNeural Computation, 1997