Perbandingan Akurasi BERT dan RNN pada Analisis Sentimen Komentar Hotel
DOI:
https://doi.org/10.61132/prosemnasproit.v2i2.184Keywords:
BERT, hotel reviews, RNN, sentiment analysisAbstract
The increasing volume of online hotel reviews provides valuable insights into customer perceptions but poses challenges for manual analysis due to its unstructured nature. This study aims to compare the performance of Recurrent Neural Network (RNN) and Bidirectional Encoder Representations from Transformers (BERT) in hotel review sentiment analysis. A total of 20,491 TripAdvisor hotel reviews were classified into three sentiment categories: negative, neutral, and positive. The research methodology includes text preprocessing, stratified data splitting, class imbalance handling using Random Over-Sampling, tokenization, and supervised model training. Model performance was evaluated using a confusion matrix and classification metrics. The results indicate that BERT outperforms RNN, achieving an accuracy of 80.54%, while RNN reached 62.21%. BERT demonstrated superior capability in capturing contextual and semantic information in hotel reviews. These findings suggest that transformer-based models are more effective for sentiment analysis of complex textual data in the hospitality domain and can support data-driven service improvement strategies.
References
Amira, S. A. & Irawan, M. I. (2020). Opinion Analysis of Traveler Based on Tourism Site Review Using Sentiment Analysis. IPTEK The Journal for Technology and Science, 31(2), 223. https://doi.org/10.12962/j20882033.v31i2.6338
Apriliani, D., Abidin, T., Sutanta, E., Hamzah, A. & Somantri, O. (2021). Sentihotel: A sentiment analysis application of hotel services using an optimized neural network. Bulletin of Electrical Engineering and Informatics, 10(3), 1536–1543. https://doi.org/10.11591/eei.v10i3.3040
Apriliani, S., Erfina, A. & Warman, C. (2025). Fine-Tuned IndoBERT for Aspect-Based Sentiment Analysis of Indonesian Five-Star Hotel Reviews. Jurnal Sisfokom (Sistem Informasi Dan Komputer), 14(4), 437–445. https://doi.org/10.32736/sisfokom.v14i4.2491
Bello, A., Ng, S. C. & Leung, M. F. (2023). A BERT Framework to Sentiment Analysis of Tweets. Sensors, 23(1). https://doi.org/10.3390/s23010506
Etaiwi, W., Suleiman, D. & Awajan, A. (2021). Deep Learning Based Techniques for Sentiment Analysis: A Survey. In Informatica (Slovenia) (Vol. 45, Issue 7, pp. 89–95). Slovene Society Informatika. https://doi.org/10.31449/inf.v45i7.3674
Gutierrez-Choque, A.-C., Medina-Mamani, V., Castro-Gutierrez, E., Núñez-Pacheco, R. & Aguaded, I. (n.d.). Transformer based Model for Coherence Evaluation of Scientific Abstracts: Second Fine-tuned BERT. In IJACSA) International Journal of Advanced Computer Science and Applications (Vol. 13, Issue 5). www.ijacsa.thesai.org
Hanum, A. R., Zetha, I. A., Fajrina, J. N., Wulandari, R. A., Putri, S. C., Andina, S. P. & Yudistira, N. (2024). ANALISIS KINERJA ALGORITMA KLASIFIKASI TEKS BERT DALAM MENDETEKSI BERITA HOAKS. 11(3), 537–546. https://doi.org/10.25126/jtiik2024118093
Jayanto, R., Kusumaningrum, R. & Wibowo, A. (2022). Aspect-based sentiment analysis for hotel reviews using an improved model of long short-term memory. International Journal of Advances in Intelligent Informatics, 8(3), 391–403. https://doi.org/10.26555/ijain.v8i3.691
Kelvin, K., Sinaga, F. M., Wulan Sri Lestari, Sunaryo Winardi, Hawani Rambe, K. & Purba, R. (2025). ENHANCING SENTIMENT ANALYSIS ACCURACY WITH BERT AND SILHOUETTE METHOD OPTIMIZATION. JITK (Jurnal Ilmu Pengetahuan Dan Teknologi Komputer), 11(1). https://doi.org/10.33480/jitk.v11i1.6392
Laili Yuhana, U., Fatichah, C. & Jati Santoso, B. (2022). EFFECTIVENESS OF DEEP LEARNING APPROACH FOR TEXT CLASSIFICATION IN ADAPTIVE LEARNING. 11(3).
Nengsih, W., Mahrus Zein, M. & Hayati, N. (2021). Coarse-Grained Sentiment Analysis Berbasis Natural Language Processing-Ulasan Hotel (Coarse-Grained Sentiment Analysis Based on Natural Language Processing-Hotel Review). In Jurnal Nasional Teknik Elektro dan Teknologi Informasi | (Vol. 10, Issue 1).
Phan, Q. D., Nguyen, L. P. & Nguyen, H. T. T. (2025). ONLINE REVIEWS CAN TELL US HOW THE EXPERIENCE OF THE GUEST WITH THE VIETNAMESE HOTEL. Geojournal of Tourism and Geosites, 60, 1290–1301. https://doi.org/10.30892/gtg.602spl25-1501
Wen, Y., Liang, Y. & Zhu, X. (2023). Sentiment analysis of hotel online reviews using the BERT model and ERNIE model—Data from China. PLoS ONE, 18(3 March). https://doi.org/10.1371/journal.pone.0275382
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Prosiding Seminar Nasional Ilmu Teknik

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





