Skip to content
Review Open access

Traditional Machine Learning andDistilBERTfor Sentiment Analysis

Jul 2026 · Applied and Computational Engineering · Vol 231, pp. 125-132 · 0 citations

TL;DR

Three approaches for binary sentiment classification on the Internet Movie Database (IMDb) movie review dataset are compared and the findings indicate that model selection should jointly consider effectiveness, efficiency, data scale, and error characteristics.

Abstract

Sentiment analysis identifies opinion polarity in textual data and supports decision-making in review-rich digital environments. This study compares three approaches for binary sentiment classification on the Internet Movie Database (IMDb) movie review dataset, namely Term Frequency-Inverse Document Frequency (TF-IDF)+Naive Bayes, TF-IDF+Logistic Regression, and DistilBERT, a distilled version of Bidirectional Encoder Representations from Transformers (BERT). The comparison focuses on the performance-efficiency trade-off rather than accuracy alone. Models are evaluated by accuracy, precision, recall, F1 score, training time, and inference time under 20%, 50%, and 100% training-data settings. A representative rule-based error analysis is also conducted. Under the full training-data setting, DistilBERT achieves the highest F1 score of 0.914496, ahead of Logistic Regression at 0.883284 and Naive Bayes at 0.846688. However, relative to Logistic Regression, DistilBERT is approximately 175.69 times slower in training and 51.05 times slower in inference. DistilBERT trained with only 20% of the training data still exceeds the full-data F1 scores of both traditional baselines. The findings indicate that model selection should jointly consider effectiveness, efficiency, data scale, and error characteristics.

Read PDF

Similar papers

#small language model Open access Sep 2026

An Empirical Benchmarking of Traditional Machine Learning and DistilBERT-Based Zero-Shot Hierarchical Sentiment Analysis on Large-Scale Twitter Data

A zero-shot classification pipeline that uses Natural Language Inference for classification of 1,000 tweets into a two-layer taxonomy of 30 parent topics and 330 subtopics has been created without any human-labeled samples.

Bhumit Peshavariya, S. Nahar · 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
Review Open access Sep 2026

Improving Sentiment Classification Performance Using Pseudo-Labeling with Naive Bayes and Random Forest

Overall, TF-IDF outperformed Count Vectorizer, and larger threshold values yielded more consistent performance improvements across datasets, though lower values offered greater potential for gains on large, diverse datasets, which suggest pseudo-labeling is a viable method for incorporating unlabeled data.

Arvidion Havas Oktavian, A. Aribowo · 0 citations
Review Open access Aug 2026

EXPERIMENTAL COMPARISON OF TEXT VECTORIZATION METHODS FOR SENTIMENT ANALYSIS TASK

Recommendations are given for choosing a vectorization method depending on the data volume and system performance requirements in real time, and classical methods with linear models demonstrate competitive quality with significantly lower computational costs on small datasets.

O. I. Zakharova, S. Bednyak, Yaroslav Dmitrievich Kanunnikov · 0 citations
Review Open access Sep 2026

Automated Sentiment Analysis of Hindi Text using Machine Learning Techniques: A Lightweight and Scalable Framework for Regional Language NLP

This proposed work addresses the persistent challenges of data sparsity, linguistic diversity, and limited annotated resources that hinder sentiment analysis in regional Indian languages by proposing a lightweight yet effective machine learning-based framework for automated sentiment classification of Hindi textual dat...

Satyapal Singh, Jarnail Singh, D. S · 0 citations
Review Open access 2026

Ensemble Learning for Multi-Source Multi-Domain Sentiment Analysis

Findings show that ensembling does not guarantee improvement over an already-strong individual classifier, and that domain-aware evaluation is essential in multi-source sentiment analysis, and that domain-aware evaluation is essential in multi-source sentiment analysis.

Aamir Siraj, M Asif Chishti · 0 citations

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