A TF-IDF and logistic regression baseline for binary sentiment classification of short texts

The rapid growth of social media has created a large amount of short-text data that expresses people's feelings and opinions on many topics; therefore, sentiment classification has become a popular problem to address. This paper focuses on binary sentiment classification using the Sentiment 140 dataset of 1.6 million labeled tweets. A preprocessing pipeline, which includes text normalization, URL removal, and noise cleaning, was applied to the original dataset. Text representation was conducted using term frequency-inverse document frequency with an n-gram model. Logistic Regression algorithm was used for classification. The paper includes experimental evaluations using common metrics, such as accuracy, precision, recall, F1-score, ROC-AUC, the confusion matrix, and the precision-recall graph. Results show that the combination of TF-IDF feature extraction and a Logistic Regression classifier produced consistent results and achieved a computationally inexpensive baseline classifier with 85.2% accuracy, 0.852 F1-score, and 0.93 ROC-AUC when performing the Sentiment140 binary classification task. These results strongly suggest that traditional machine learning algorithms can still provide highly accurate models for such a large-scale classification challenge. Despite this, the current model has limitations in understanding sarcasm and linguistic idioms, suggesting an opportunity for deep learning and transformer-based models to outperform.

Authors

Institutions

Publication Details

Journal
Future Technology
Published
2026-11-08
DOI
https://doi.org/10.55670/fpll.futech.5.4.13
Citations
1
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
1.42
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A TF-IDF and logistic regression baseline for binary sentiment classification of short texts

Salam Abdulkhaleq Noaman, Mustafa Ali Mohsin
1 citations
Future Technology
Sentiment Analysis and Opinion Mining
1.42
article

A TF-IDF and logistic regression baseline for binary sentiment classification of short texts

Salam Abdulkhaleq Noaman, Mustafa Ali Mohsin
article en
1 citations

Abstract

The rapid growth of social media has created a large amount of short-text data that expresses people's feelings and opinions on many topics; therefore, sentiment classification has become a popular problem to address. This paper focuses on binary sentiment classification using the Sentiment 140 dataset of 1.6 million labeled tweets. A preprocessing pipeline, which includes text normalization, URL removal, and noise cleaning, was applied to the original dataset. Text representation was conducted using term frequency-inverse document frequency with an n-gram model. Logistic Regression algorithm was used for classification. The paper includes experimental evaluations using common metrics, such as accuracy, precision, recall, F1-score, ROC-AUC, the confusion matrix, and the precision-recall graph. Results show that the combination of TF-IDF feature extraction and a Logistic Regression classifier produced consistent results and achieved a computationally inexpensive baseline classifier with 85.2% accuracy, 0.852 F1-score, and 0.93 ROC-AUC when performing the Sentiment140 binary classification task. These results strongly suggest that traditional machine learning algorithms can still provide highly accurate models for such a large-scale classification challenge. Despite this, the current model has limitations in understanding sarcasm and linguistic idioms, suggesting an opportunity for deep learning and transformer-based models to outperform.

Future TechnologyVol. 5(4)
University of Diyala (IQ)
Openalex Percentile: Top 19%
Sentiment Analysis and Opinion Mining
1.42
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon