Sentiment analysis is a fundamental task in natural language processing with wide-ranging applications, from customer feedback monitoring to healthcare and social media analytics. While recent research has mainly emphasized predictive accuracy, computational efficiency has remained largely overlooked, despite its importance for large-scale and real-time deployment. This study addresses this gap by conducting a comparative evaluation of classical machine learning algorithms (Logistic Regression, Naïve Bayes, Random Forest) and deep learning architectures [Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM)]. Experiments were carried out on two benchmark datasets, IMDB and Yelp Polarity, with evaluation based on accuracy, precision, recall, F1-score, training time, and a novel Efficiency Score. Results on IMDB show that Logistic Regression and LSTM both achieved 88% accuracy, but with radically different costs: Logistic Regression trained in 0.25 seconds, whereas LSTM required more than 2600 seconds. On Yelp Polarity, Logistic Regression improved to 91.6% accuracy, outperforming LSTM (86.2%) while remaining over 300 times faster. By integrating both predictive metrics and efficiency measures, the Efficiency Score highlighted the practical advantages of Logistic Regression and Naïve Bayes in resource-constrained environments. This dual evaluation framework demonstrates that classical models remain highly competitive when both accuracy and efficiency are considered, providing a practical alternative to computationally expensive neural architectures and offering practitioners clear guidelines for model selection under real-world constraints.
Walji, K., Erraissi, A., ZAKRANI, A., & Banane, M. (2025). Sentiment Analysis Revisited: A Multi-Metric Comparative Study. International Journal of Advanced Computer Science and Applications, 16(9). https://doi.org/10.14569/IJACSA.2025.0160965
Walji, Kamal, et al.. "Sentiment Analysis Revisited: A Multi-Metric Comparative Study." International Journal of Advanced Computer Science and Applications, vol. 16, no. 9, 2025, https://doi.org/10.14569/IJACSA.2025.0160965.
@article{Walji2025,
title = {Sentiment Analysis Revisited: A Multi-Metric Comparative Study},
journal = {International Journal of Advanced Computer Science and Applications},
volume = {16},
number = {9},
year = {2025},
publisher = {The Science and Information Organization},
author = {Kamal Walji and Allae Erraissi and Abdelali ZAKRANI and Mouad Banane},
doi = {10.14569/IJACSA.2025.0160965},
url = {https://doi.org/10.14569/IJACSA.2025.0160965}
}
Open Access — licensed under a
Creative Commons Attribution 4.0 International License.
Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.