BERT+BiLSTM: Boosting Performance in Movie Review Sentiment Classification
Abstract
The demand for movie reviews sentiment analysis is growing rapidly nowadays. This study focuses on the development of advanced text classifiers to address complex classification tasks and proposes three models. The first model utilizes 6 encoder layers to capture information from texts and the second analyzes data using pretrained parameters of bidirectional encoder representations from transformers (BERT) with 12 encoder layers. The third one combines contextual embeddings of BERT with bi-directional long short-term memory’s (BiLSTM) sequential modeling capabilities. Specifically, it leverages BERT to extract deep contextual features, which are then fed into a BiLSTM layer followed by a classification head for prediction. Experiments are conducted on a Kaggle Internet Movie Database (IMDB) and the analysis displays a trade-off between classification accuracy and total training time as well as memory consumption. The BERT+BiLSTM model ends up with an accuracy of around 65% but the longest training time per epoch and high memory usage. These results show the model’s ability to effectively capture contextual and sequential patterns in text, making it highly suitable for real-world textual sentiment analysis applications.
References
- Dang, C.N., Moreno-García, M.N., & Prieta, F.D.L. (2021). An approach to integrating sentiment analysis into recommender systems. Sensors, 21(16), 5666.
- Nkhata, G., Anjum, U., & Zhan, J. (2025). Sentiment analysis of movie reviews using bert. arXiv preprint 2502.18841.
- Yessenov, K., & Misailovic, S. (2009). Sentiment analysis of movie review comments. Methodology, 17(17), 1-7.
- Wiebe, J., Wilson, T., & Bell, M. (2001). Identifying collocations for recognizing opinions. In Proceedings of the ACL-01 Workshop on Collocation: Computational Extraction, Analysis, and Exploitation, 24-31.
- Pang, B., Lee, L., & Vaithyanathan, S. (2002). Thumbs up? Sentiment classification using machine learning techniques. arXiv preprint, 0205070.
- Turney, P. D. (2002). Thumbs up or thumbs down? Semantic orientation applied to unsupervised classification of reviews. arXiv preprint, 0212032.
- Pang, B., & Lee, L. (2004). A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. arXiv preprint, 0409058.
- Wilson, T., Wiebe, J., & Hoffmann, P. (2005). Recognizing contextual polarity in phrase-level sentiment analysis. In Proceedings of human language technology conference and conference on empirical methods in natural language processing, 347-354.
- Socher, R., Perelygin, A., Wu, J., Chuang, J., Manning, C. D., Ng, A. Y., & Potts, C. (2013). Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, 1631-1642.
- Mikolov, T., Chen, K., Corrado, G., & Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv preprint, 1301.3781.
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.
- Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, 1, 4171-4186.
- Lu, G., Li, J., & Wei, J. (2022). Aspect sentiment analysis with heterogeneous graph neural networks. Information Processing & Management, 59(4), 102953.
- Nguyen, T. (2024). IMDB Movie Reviews for Sentiment Analysis. Retrieved from https://www.kaggle.com/datasets/tuannguyen8531/imdb-movie-reviews-for-sentiment-analysis.