Comparison and Optimization of Social Media Text Sentiment Analysis Models Based on Machine Learning

In this paper, a hybrid sentiment analysis framework combining lexical rules and machine learning is proposed, aiming to improve the performance of sentiment classification for English social media texts. The study first preprocesses the raw data through a multi-stage text cleaning process (including denoising, stemming extraction, and deactivated word filtering) and generates preliminary sentiment labels by calculating text sentiment scores with the VADER sentiment lexicon; further, the text is vectorized using the TF-IDF method to construct the feature space, and the passive-aggressive classifiers, logistic regression, random forests, support vector machines, and 14 models such as Simple Bayes for the classification task. In order to optimize the model performance, the study tunes the key hyperparameters by random search cross-validation, and finally compares the accuracy, precision, recall and F1 value of each model on the test set.

Institutions

Publication Details

Published
2025-06-06
DOI
https://doi.org/10.1145/3760023.3760053
Primary Topic
French Historical and Cultural Studies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparison and Optimization of Social Media Text Sentiment Analysis Models Based on Machine Learning

French Historical and Cultural Studies
article

Comparison and Optimization of Social Media Text Sentiment Analysis Models Based on Machine Learning

article en

Abstract

In this paper, a hybrid sentiment analysis framework combining lexical rules and machine learning is proposed, aiming to improve the performance of sentiment classification for English social media texts. The study first preprocesses the raw data through a multi-stage text cleaning process (including denoising, stemming extraction, and deactivated word filtering) and generates preliminary sentiment labels by calculating text sentiment scores with the VADER sentiment lexicon; further, the text is vectorized using the TF-IDF method to construct the feature space, and the passive-aggressive classifiers, logistic regression, random forests, support vector machines, and 14 models such as Simple Bayes for the classification task. In order to optimize the model performance, the study tunes the key hyperparameters by random search cross-validation, and finally compares the accuracy, precision, recall and F1 value of each model on the test set.

Jilin International Studies University (CN)
People's Government of Jilin Province
Reduced inequalities
Openalex Percentile: Top 43%
French Historical and Cultural Studies
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.

Comparison and Optimization of Social Media Text Sentiment Analysis Models Based on Machine Learning · (2025) | TGRS Research Map | TGRS