AI News HubLIVE
Original source2 min read

Unveiling Public Opinion: A Study of Sentiment Analysis Using LSTM and Traditional Models

This paper compares LSTM with traditional machine learning models for Twitter sentiment analysis. The LSTM model achieved 90.98% training accuracy, 80% testing accuracy, and a ROC-AUC score of 0.92, outperforming other methods.

SourcearXiv Computational LinguisticsAuthor: Atiq Ur Rehman

-->

[Submitted on 8 Jul 2026]

Title:Unveiling Public Opinion: A Study of Sentiment Analysis Using LSTM and Traditional Models

View a PDF of the paper titled Unveiling Public Opinion: A Study of Sentiment Analysis Using LSTM and Traditional Models, by Atiq Ur Rehman

View PDF

Abstract:In this age of social media, sites like Twitter have become meeting places for people to share their views and feelings on a wide range of issues and current events as they unfold in real time. Sentiment analysis, a critical application of NLP, has become indispensable due to the massive influx of user-generated content, enabling the extraction of meaningful insights from the opinions and emotions expressed in textual data. Sentiment analysis on Twitter employs sophisticated computational techniques to categorize tweets into positive, negative, or neutral sentiments. This method not only examines individual expressions but also analyzes vast databases related to specific subjects or events. By spotting these emotions, machine learning models help improve public opinion interpretation and trend forecasting. This paper examines the effectiveness of various machine learning and deep learning approaches. Designed for this use, the system evaluates logistic regression, random forest, naïve bayes, gradient boosting, and LSTM networks, among other algorithms applied in sentiment classification. This work identifies the optimal sentiment analysis model using a Kaggle Twitter dataset that has been preprocessed through tokenization, lemmatization, and stopword elimination. Emphasizing the better performance of the LSTM approach, the model attained a training accuracy of 90.98%, a testing accuracy of 80.00%, and a micro-average ROC- AUC score of 0.92. These results show that the model outperforms conventional machine learning techniques in capturing contextual and sequential textual aspects.

Comments: 6 pages, 5 figures. Published in the Proceedings of the 2025 IEEE Conference on Computing, Communication, and Data Engineering (C-CODE 2025)

Subjects:

Computation and Language (cs.CL)

Cite as: arXiv:2607.07772 [cs.CL]

(or arXiv:2607.07772v1 [cs.CL] for this version)

https://doi.org/10.48550/arXiv.2607.07772

arXiv-issued DOI via DataCite (pending registration)

Journal reference: Proceedings of the 2025 IEEE International Conference on Computing, Communication and Data Engineering (C-CODE), 2025

Related DOI:

https://doi.org/10.1109/C-CODE67372.2025.11204093

DOI(s) linking to related resources

Submission history

From: Atiq Ur Rehman [view email] [v1] Wed, 8 Jul 2026 16:32:39 UTC (437 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Unveiling Public Opinion: A Study of Sentiment Analysis Using LSTM and Traditional Models, by Atiq Ur Rehman

View PDF

view license

Current browse context:

cs.CL

new | recent | 2026-07

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)