Twitter Sentiment Analysis Using Machine Learning and Deep Learning Techniques
Safa Khalid Al Sarayrah1, Noor Mahmoud Alkudah2 & Hesham Yousef Al-kharabsheh1 Show affiliations
- Department of Software Engineering, Faculty of Information Technology, The World Islamic Sciences and Education University, Amman, Jordan
- Department of Computer Science, Faculty of Information Technology, The World Islamic Sciences and Education University, Amman, Jordan
Journal of Computer Science, Volume 21, Issue 8, pp. 1785–1794 · doi.org/10.3844/jcssp.2025.1785.1794
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 articleResponses (0)
About 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
