Using Deep Learning Methods for Sentiment Extraction from Image-Encoded Text

Singh, Harpreet (2026) Using Deep Learning Methods for Sentiment Extraction from Image-Encoded Text. Doctoral thesis, University of Hertfordshire.
Copy

The exponential growth of user-generated content on social media platforms has necessitated robust, automated methods for sentiment analysis to understand public opinion, identify potentially harmful content such as hate speech, and support the enforcement of community standards. While traditional text processing has evolved significantly, the potential for leveraging advanced computer vision techniques to analyse textual data remains underexplored. To the author’s knowledge, this is the first work to treat two-dimensional text representations seriously as images and to evaluate this idea extensively across multiple architectures, datasets and experimental conditions. This allows deep Convolutional Neural Networks (DCNNs) to analyse the spatial structure of text representations. The research bridges Natural Language Processing (NLP) and Computer Vision by developing and evaluating hybrid architectures that combine sequential text modelling with networks previously trained to recognise visual patterns. To address this aim, the thesis follows a staged experimental programme. It first establishes whether sequential text representations can be transformed into discriminative images and classified by purpose-built vision architectures. It then enriches these images with contextualised language representations, evaluates transfer learning from networks previously trained to recognise visual patterns, and finally combines visual, lexical and topic-based signals in an ensemble framework. The first stage proposes BLSTM-ResNet, which replaces the shallow convolutional layers of the BLSTM-2DCNN baseline with deeper residual blocks. On Sentiment140, performance improved with network depth before saturating at four residual blocks. The resulting BLSTM-ResNet-12 achieved 78.80% accuracy on the 80,000-sample subset, outperforming the baseline and validating the Textual Image representation. The second stage incorporates contextualised embeddings from a fine-tuned BERT model. BERT-BLSTM-ResNet outperformed standalone BERT on Sentiment140 subsets below 40,000 samples, whereas the performance gap diminished above 200,000 samples. Experiments on the IMDB dataset further showed that longer token sequences improved contextualised Textual Image classification. Across the evaluated configurations, direct BERT-ResNet integration retained the accuracy benefits of the hybrid approach while avoiding the additional sequential-processing stage, thereby providing a more computationally efficient architecture that is better suited to GPU-parallel training. Furthermore, the thesis addresses sustainability in machine learning by exploring the transferability of networks previously trained to recognise visual patterns. The research confirms that fine-tuning publicly available image classifiers (e.g., ResNet50, EfficientNet, ViT) on synthetic Textual Images is a resource-efficient alternative to training custom vision models from scratch. The study identifies EfficientNet-B5 as achieving the highest individual accuracy (93.37% on the IMDB dataset) under a three-epoch, hardware-constrained setting. Nearest Neighbour interpolation was also identified as the preferred image-resizing method because of its computational efficiency without loss of accuracy. Finally, the research demonstrates the complementarity of visual, lexical and topic signals. An ensemble strategy combining the Textual Image Classifier (BERT-ResNet) with a lexically enhanced BERT model (BERT-SWC) and a traditional topic-modelling (LSA, LDA) classifier achieved a best accuracy of 94.32% on the IMDB dataset using an XGBoost meta-learner. This thesis successfully establishes Textual Image Classification as a robust, high-performance, and sustainable methodology for sentiment analysis, providing a comprehensive framework for future multimodal text analysis research.


picture_as_pdf
SINGH Harpreet Phd Final version.pdf
Available under Creative Commons: BY 4.0

View Download

EndNote BibTeX Reference Manager Refer Atom Dublin Core OpenURL ContextObject ASCII Citation MODS Data Cite XML MPEG-21 DIDL OpenURL ContextObject in Span HTML Citation METS RIOXX2 XML OPENAIRE
Export

Downloads