Skip to content
Open access

A Hybrid Framework for Large-Scale Tweet Sentiment Analysis Using Classical Machine Learning, Transformer Models, and Uncertainty Estimation

2026 · International Research Journal of Multidisciplinary Scope · 0 citations · 33 references

TL;DR

The work provides a reproducible, explainable, operationally applicable model of sentiment analysis in operationally sensitive, high-stakes Twitter sentiment analysis, and validate the hypothesis that hybrid stacking is an effective method for leveraging the complementary nature of lexical and contextual representations.

Abstract

The article suggests a hybrid framework to analyse Twitter sentiment at scale by combining traditional machine learning methods with deep learning using transformers in a multi-layer stacking configuration. The system is evaluated using a dataset of 74,921 tweets, each labelled with one of three sentiment labels: negative, neutral, or positive. The architecture is 3-tier. Tier A is based on classical classifiers: Logistic Regression, Calibrated Linear SVM and Multinomial Naive Bayes, using TF-IDF features (unigrams to trigrams), with character-level n-grams added. Tier B is a response to a narrow-focused DistilBERT encoder to learn rich contextual embeddings. Tier C fuses out-of-fold predictions from tiers A and B with a stacked meta-learner that combines lexical accuracy and context depth. Removal of noise, normalisation to kenisation and stopword filtering enable complete text preprocessing, ensuring data quality and consistency throughout the pipeline. The experimental results show that the stacked Meta Logistic Regression achieves an accuracy and macro-F1 of 0.9705, which are much better than those of all the standalone classical and transformer baselines. The model has a near-perfect discriminative performance (macro-AUC = 0.994) and a very good calibration (ECE = 0.0043). Aspect and time analyses are also useful to comprehend the dynamics of sentiment and evolving attitudes towards airline services. These findings validate the hypothesis that hybrid stacking is an effective method for leveraging the complementary nature of lexical and contextual representations, thereby improving generalisation and achieving superior performance. The work provides a reproducible, explainable, operationally applicable model of sentiment analysis in operationally sensitive, high-stakes

Read PDF

Similar papers

Open access 2026

Harnessing Ensemble and Transformers for Sentiment Analysis and Emotion Detection in Hausa Text

This research establishes a rigorous benchmark for Hausa NLP, highlighting the indispensable role of subword tokenization, contextual embeddings, and threshold calibration in handling the morphological richness and multi-label complexities of low-resource languages.

Taiwo Kolajo, Kabir Garba · 0 citations
Jul 2026

Application-Oriented intelligent sentiment analysis: Classical vs deep models with multi-embedding strategies

Experimental results show that BERT-LSTM's superior performance stems from its ability to capture bidirectional contextual dependencies, improving contextual modelling of complex linguistic constructs, however, sarcasm and negation remain important sources of error.

Mohd. Danish, Saifullah Khalid · 0 citations
Open access Jul 2026

Beyond Classification: A Multilingual mBERT Framework for Sentiment Analysis, Zero-Shot Categorization, and Severity Assessment on social media

The fine-tuned model is applied for sentiment analysis of tweets from the preprocessed TweetEval dataset, and it is shown that cross-language transfer learning without any preliminary training on multilingual sentiment datasets provides quite satisfactory performance.

S. Nahar, P. P. Agnihotri · 0 citations
Review Open access Jul 2026

Transformer-Based Topic Modeling and Sentiment Analysis for Multilingual Text Data

An integrated framework based on transformer architecture for topic modeling and sentiment analysis for Hindi and Italian social-media discourse, customer reviews and news corpus is introduced and it is suggested that there is clear benefit for morphologically complex text and mixed script text for using contextual emb...

Sunita Basalingayya, T. J. Peter · 0 citations
Review Open access Jul 2026

Enhanced Sentiment Analysis Using RoBERTa and BiLSTM: A Context-Aware Hybrid Deep Learning Approach

This paper presents a context-aware hybrid deep learning approach by integrating the Robustly Optimized BERT Pretraining Approach (RoBERTa) with Bidirectional Long Short-Term Memory (BiLSTM) networks to generate rich contextual word embeddings.

V. Gayatri, Rajani Rajalingam · 0 citations
Open access 2026

Comparative Analysis of Language Models for Sentiment Classification

Comparing and analysing the performance of several machine learning algorithms on fine-grained sentiment classification problems to examine their suitability and shortcomings for use as models in sentiment analysis suggests large language models perform significantly worse on the 28-class classification task in zero-sh...

Shangjiafeng Guo · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.