Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 1 September 2025

Twitter Sentiment Analysis Using Machine Learning and Deep Learning Techniques

Safa Khalid Al Sarayrah1, Noor Mahmoud Alkudah2 & Hesham Yousef Al-kharabsheh1

Journal of Computer Science, Volume 21, Issue 8, pp. 1785–1794 · doi.org/10.3844/jcssp.2025.1785.1794

6,813 accesses1,740 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

This research investigates the use of Machine Learning (ML) and Deep Learning, including BiLSTM approaches, for Sentiment Analysis (SA) of consumer reviews on social media sites. Businesses are increasingly depending on online reviews to determine customer satisfaction due to social media's explosive growth. We used three classification models, the assessment of these attitudes uses Naive Bayes (NB), Support Vector Machine (SVM), and a BiLSTM model. Customer reviews categorized as neutral, negative, or positive feelings made up the dataset used for this study, implying that positive reviews are related to satisfied customers. Text cleaning, tokenization, Bert, and TF-IDF feature extraction were among the preprocessing procedures. Our results show that MNB and CNB had accuracy rates of 80.21 and 81.44%, respectively, whereas linear and RBF SVM had slightly higher accuracy rates of 84.28 and 88.64%, respectively. Also, BiLSTM achieves 87.72%. Besides, this research sheds light on unbalanced dataset issues. Therefore, we apply random oversampling to the research dataset. The evaluated outcomes show that sentiment classification and knowledge extraction through machine learning models and deep learning methods yield beneficial insights that enable businesses to understand their customers better.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Al Sarayrah, S. K., Alkudah, N. M. & Al-kharabsheh, H. Y. (2025). Twitter Sentiment Analysis Using Machine Learning and Deep Learning Techniques. Journal of Computer Science, 21(8), 1785–1794. https://doi.org/10.3844/jcssp.2025.1785.1794

Licence
CC BY 4.0
Issue
Volume 21, Issue 8
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Twitter Sentiment Analysis Using Machine Learning and Deep Learning TechniquesJournal of Computer Science · Volume 21, Issue 8 · pp. 1785–1794 · CC BY 4.0Download