Emotion Classification of Short Social Media Texts Using Classical Machine Learning and TF-IDF Features

This paper presents a machine learning approach to classifying tweets into four distinct emotions: anger, fear, joy, and sadness. Utilizing the WASSA-2017 shared task dataset, the study evaluates classical natural language processing (NLP) approaches that combine bag-of-words and TF-IDF features with various classifiers, including Naive Bayes, Support Vector Machines (SVM), Logistic Regression, Random Forests, and Gradient Boosting.The research provides a transparent, efficient, and reproducible baseline for multi-class emotion detection in short social media texts. It demonstrates the effectiveness of ensemble methods, particularly Gradient Boosting, while discussing the limitations of using default hyperparameters, unigram features, and a restricted four-emotion label set. The paper concludes by outlining future directions, such as incorporating word embeddings, fine-tuned transformer models (e.g., BERT), emoji/hashtag features, and expanding the label set to include additional emotions like surprise, disgust, and love.

Authors

Publication Details

Journal
Figshare
Published
2026-10-28
DOI
https://doi.org/10.6084/m9.figshare.34823226
Primary Topic
Sentiment Analysis and Opinion Mining
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Emotion Classification of Short Social Media Texts Using Classical Machine Learning and TF-IDF Features

Sareena Bilal
1 links
Figshare
Sentiment Analysis and Opinion Mining
preprint

Emotion Classification of Short Social Media Texts Using Classical Machine Learning and TF-IDF Features

Sareena Bilal
preprint en

Abstract

This paper presents a machine learning approach to classifying tweets into four distinct emotions: anger, fear, joy, and sadness. Utilizing the WASSA-2017 shared task dataset, the study evaluates classical natural language processing (NLP) approaches that combine bag-of-words and TF-IDF features with various classifiers, including Naive Bayes, Support Vector Machines (SVM), Logistic Regression, Random Forests, and Gradient Boosting.The research provides a transparent, efficient, and reproducible baseline for multi-class emotion detection in short social media texts. It demonstrates the effectiveness of ensemble methods, particularly Gradient Boosting, while discussing the limitations of using default hyperparameters, unigram features, and a restricted four-emotion label set. The paper concludes by outlining future directions, such as incorporating word embeddings, fine-tuned transformer models (e.g., BERT), emoji/hashtag features, and expanding the label set to include additional emotions like surprise, disgust, and love.

Figshare
Sentiment Analysis and Opinion Mining
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