Comparative analysis of machine learning algorithms for sentiment classification in social media text

<p>In the era of social media, sentiment analysis has become crucial for understanding public opinion. This study presents a comparative analysis of five machine learning algorithms for sentiment classification in social media text: Logistic Regression, Support Vector Machines (SVM), Random Forest, Naive Bayes, and Gradient Boosting. Using a dataset of 100,000 tweets collected over three months, we evaluated these algorithm's performance in classifying sentiments as positive, negative, or neutral. The data underwent extensive preprocessing, including cleaning, normalization, and addressing class imbalance using SMOTE. Our results show that Logistic Regression and SVM achieved the highest overall accuracy at 86.22%, demonstrating balanced performance across all sentiment classes. Random Forest followed closely with 82.59% accuracy, while Naive Bayes and Gradient Boosting showed lower but still noteworthy performance at 70.45% and 69.96% respectively. All models exhibited challenges in classifying negative sentiments, suggesting potential areas for improvement. The study provides insights into each algorithm's strengths and weaknesses, offering guidance for practitioners in selecting appropriate methods for sentiment analysis tasks. Our findings contribute to the ongoing research in applying machine learning to the complex task of sentiment analysis in the rapidly evolving landscape of social media communication.</p>

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-09-30
DOI
https://doi.org/10.5281/zenodo.14974830
Primary Topic
Adipose Tissue and Metabolism
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative analysis of machine learning algorithms for sentiment classification in social media text

Zenodo (CERN European Organization for Nuclear Research)
Adipose Tissue and Metabolism
article

Comparative analysis of machine learning algorithms for sentiment classification in social media text

article en

Abstract

<p>In the era of social media, sentiment analysis has become crucial for understanding public opinion. This study presents a comparative analysis of five machine learning algorithms for sentiment classification in social media text: Logistic Regression, Support Vector Machines (SVM), Random Forest, Naive Bayes, and Gradient Boosting. Using a dataset of 100,000 tweets collected over three months, we evaluated these algorithm's performance in classifying sentiments as positive, negative, or neutral. The data underwent extensive preprocessing, including cleaning, normalization, and addressing class imbalance using SMOTE. Our results show that Logistic Regression and SVM achieved the highest overall accuracy at 86.22%, demonstrating balanced performance across all sentiment classes. Random Forest followed closely with 82.59% accuracy, while Naive Bayes and Gradient Boosting showed lower but still noteworthy performance at 70.45% and 69.96% respectively. All models exhibited challenges in classifying negative sentiments, suggesting potential areas for improvement. The study provides insights into each algorithm's strengths and weaknesses, offering guidance for practitioners in selecting appropriate methods for sentiment analysis tasks. Our findings contribute to the ongoing research in applying machine learning to the complex task of sentiment analysis in the rapidly evolving landscape of social media communication.</p>

Zenodo (CERN European Organization for Nuclear Research)
Sustainable cities and communities
Openalex Percentile: Top 54%
Adipose Tissue and Metabolism
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.

Comparative analysis of machine learning algorithms for sentiment classification in social media text · Zenodo (CERN European Organization for Nuclear Research) (2024) | TGRS Research Map | TGRS