Implementation of BERT-BiLSTM Model for Sentiment Classification of Movie Reviews on Rotten Tomatoes
DOI:
https://doi.org/10.34148/teknika.v15i1.1431Keywords:
BERT, BiLSTM, Deep Learning, Film Reviews, Sentimen AnalisysAbstract
This study aims to analyze movie review sentiment using a Bidirectional Encoder Representations from Transformers-Bidirectional Long Short-Term Memory (BERT-BiLSTM) hybrid model designed to capture global contextual information and local sequential dependencies in complex texts. The dataset is obtained from Rotten Tomatoes Critic Reviews, consisting of 1,048,576 entries, of which 10,000 samples are randomly selected due to computational limitations. The research methodology includes text preprocessing, tokenization with the BERT tokenizer, model training, and performance evaluation using accuracy, precision, recall, and F1-score. The implementation uses the AdamW optimizer with a learning rate of 2×10⁻⁵ for three epochs on an AMD Ryzen 3 5300U CPU. For comparison, the hybrid model is evaluated alongside a single BERT model and a single BiLSTM model. Experimental results show that the BERT-BiLSTM model achieves the highest performance, obtaining an accuracy, precision, recall, and F1-score of 84%. In contrast, the single BERT model achieved 66% accuracy and an F1 score of 57%, while the single BiLSTM model achieved 63% accuracy and an F1 score of 48%. These results indicate that combining transformer-based contextual representation with bidirectional sequence modeling improves the effectiveness of sentiment classification compared to the single-model approach. Therefore, the BERT-BiLSTM hybrid method proves effective for analyzing complex textual sentiment and has potential applications across various review domains that require deep contextual understanding.
Downloads
References
[1] K. Chakraborty, S. Bhattacharyya, and R. Bag, “A Survey of Sentiment Analysis: Approaches, Datasets, and Trends,” IEEE Trans. Comput. Soc. Syst., vol. 7, no. 2, pp. 450-464, 2020, [Online]. Available: https://ieeexplore.ieee.org/
[2] F. Aftab and et al., “A Comprehensive Survey on Sentiment Analysis Techniques,” International Journal of Technology (IJTech), 2022, [Online]. Available: https://ijtech.eng.ui.ac.id
[3] S. Jain, “Sentiment Analysis,” in Proceedings of the ACL Workshop, 2017. [Online]. Available: https://aclanthology.org
[4] “Review of Static vs Contextual Word Embeddings in NLP,” HighTech Journal, 2020, [Online]. Available: https://hightechjournal.org
[5] “BERT in Sentiment Analysis: A Review,” HighTech Journal, 2021, [Online]. Available: https://hightechjournal.org
[6] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” in NAACL-HLT, 2019. [Online]. Available: https://arxiv.org/abs/1810.04805
[7] J. Joseph, “A Survey on Deep Learning Based Sentiment Analysis,” ScienceDirect, 2022, [Online]. Available: https://www.sciencedirect.com
[8] S. Alaparthi and M. Mishra, “BERT: A Review of Applications in Sentiment Analysis,” arXiv Preprint, 2020, [Online]. Available: https://www.researchgate.net/
[9] “Polarity of Yelp Reviews: A BERT-LSTM Comparative Study,” MDPI, 2024, [Online]. Available: https://www.mdpi.com
[10] “BERT- and BiLSTM-Based Sentiment Analysis of Online Chinese Reviews,” MDPI, 2022, [Online]. Available: https://www.mdpi.com
[11] A. S. Talaat and et al., “Sentiment Analysis Classification System Using Hybrid BERT Models,” J. Big Data, 2023, [Online]. Available: https://journalofbigdata.springeropen.com
[12] “LSTM and BiLSTM in Sequential Text Processing: Concepts and Applications,” in Proceedings of ACL Workshop on Deep Learning for NLP, 2019. [Online]. Available: https://aclanthology.org
[13] N. Sikana, S. Winardi, G. -, G. F. Situmorang, and R. Lubis, “Analisis Sentimen untuk Ulasan Produk E-Commerce Shopee Menggunakan BERT,” Jurnal Sifo Mikroskil, vol. 26, no. 2, Oct. 2025, doi: 10.55601/jsm.v26i2.1796.
[14] D. G. Mandhasiya, H. Murfi, and A. Bustamam, “The hybrid of BERT and deep learning models for Indonesian sentiment analysis,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 33, no. 1, pp. 591-602, Jan. 2024, doi: 10.11591/ijeecs.v33.i1.pp591-602.
[15] W. Widayat, “Analisis Sentimen Movie Review menggunakan Word2Vec dan metode LSTM Deep Learning,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 5, no. 3, p. 1018, Jul. 2021, doi: 10.30865/mib.v5i3.3111.
[16] “Sentiment Analysis Using FastText and LSTM: A Comparative Study,” ResearchGate Preprint, 2020, [Online]. Available: https://www.researchgate.net
[17] “BERT for Sentiment Analysis on Rotten Tomatoes Reviews,” ResearchGate, 2021, [Online]. Available: https://www.researchgate.net
[18] “Hybrid BERT + LSTM and BERT + CNN Models for Sentiment Analysis on Social Platforms,” UAD Repository, 2022, [Online]. Available: https://eprints.uad.ac.id
[19] “Fine-Tuning and Compression Strategies for Practical BERT Deployment,” arXiv Preprint, 2022, [Online]. Available: https://arxiv.org
[20] “Lightweight BERT Models for CPU-Only Environments,” SpringerOpen Journal, 2023, [Online]. Available: https://www.springeropen.com
[21] “Comprehensive Review on BERT-based Sentiment Analysis Techniques,” arXiv Preprint, 2021, [Online]. Available: https://arxiv.org
[22] “Film Review Datasets and Their Characteristics for Sentiment Analysis,” Science Gate Journal, 2020, [Online]. Available: https://science-gate.com
[23] “Static vs Contextual Embeddings: A Comparative Study for Word Representation,” HighTech Journal, 2021, [Online]. Available: https://hightechjournal.org
[24] “Comparative Deep Learning Models for Film Review Sentiment Analysis,” Science Gate Journal, 2021, [Online]. Available: https://science-gate.com
[25] F. Koto, A. Rahimi, J. H. Lau, and T. Baldwin, “IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP,” Online. [Online]. Available: https://huggingface.co/
[26] K. L. Tan, C. P. Lee, K. M. Lim, and K. S. M. Anbananthen, “Sentiment Analysis With Ensemble Hybrid Deep Learning Model,” IEEE Access, vol. 10, pp. 103694-103704, 2022, doi: 10.1109/ACCESS.2022.3210182.
[27] A. Chowanda and Y. Muliono, “Indonesian Sentiment Analysis Model from Social Media by Stacking BERT and BI-LSTM,” in 2022 3rd International Conference on Artificial Intelligence and Data Sciences (AiDAS), IEEE, Sep. 2022, pp. 278-282. doi: 10.1109/AiDAS56890.2022.9918717.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Teknika

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.















