Optimizing Sentiment Analysis on Imbalanced Hotel Review Data Using SMOTE and Ensemble Machine Learning Techniques
Abstract
This research addresses the challenge of imbalanced sentiment classes in hotel review datasets obtained from Traveloka by integrating SMOTE (Synthetic Minority Oversampling Technique) with ensemble machine learning methods. The study aimed to enhance the classification of Positive, Negative, and Neutral sentiments in customer reviews. Data preprocessing techniques, including tokenization, stemming, and stopword removal, prepared the textual data for analysis. Various machine learning models—CART, KNN, Naive Bayes, and Random Forest—were evaluated individually and in ensemble configurations such as Bagging, Stacking, Soft Voting, and Hard Voting. The Stacking ensemble approach, utilizing Logistic Regression as a meta-classifier, demonstrated superior performance with an accuracy, precision, recall, and F1-score of 88%, outperforming Bagging (86%), Hard Voting (84%), and Soft Voting (81%). The findings highlight the effectiveness of SMOTE in balancing sentiment classes, particularly improving the classification of underrepresented Neutral and Negative categories. The novelty of this study lies in the comprehensive use of ensemble techniques combined with SMOTE, which significantly enhanced prediction stability and accuracy compared to previous approaches. These results provide valuable insights into leveraging advanced machine learning techniques for sentiment analysis, offering practical implications for improving customer experience and service quality in the hospitality industry.
Keywords
Full Text:
PDFReferences
F. Achmad and I. I. Wiratmadja, “Strategic advancements in tourism development in Indonesia: Assessing the impact of facilities and services using the PLS-SEM approach,” Journal Industrial Servicess, vol. 10, no. 1, pp. 49–62, Apr. 2024, doi: 10.62870/jiss.v10i1.24494.
M. Taufik, M. Akmal Ibrahim, B. Ahmad, M. Suni, and M. Nur, “Collaborative Government in Tourism Sector Development,” in KnE Social Sciences, Knowledge E DMCC, Oct. 2023, pp. 530–547. doi: 10.18502/kss.v8i17.14148.
M. S. Antonio and M. M. Uula, “Measuring the Productivity of Tourism Sector in Indonesia,” Halal Tourism and Pilgrimage, vol. 2, no. 2, pp. 1–11, Dec. 2022, doi: 10.58968/htp.v2i2.179.
P. Candra Susanto, M. Rizky Mahaputra, and M. Ridho Mahaputra, “Service Quality and Customer Satisfaction Have an Impact on Increasing Hotel Room Occupancy Ratio: Literature Review Study,” Greenation International Journal of Tourism and Management, vol. 1, no. 4, pp. 400–412, Jan. 2024, doi: 10.38035/gijtm.v1i4.127.
H. J. Christanto and Y. A. Singgalen, “Sentiment Analysis of Customer Feedback Reviews Towards Hotel’s Products and Services in Labuan Bajo,” Journal of Information Systems and Informatics, vol. 4, no. 4, pp. 805–822, Dec. 2022, doi: 10.51519/journalisi.v4i4.294.
K. Puh and M. Bagić Babac, “Predicting sentiment and rating of tourist reviews using machine learning,” Journal of Hospitality and Tourism Insights, vol. 6, no. 3, pp. 1188–1204, Jun. 2023, doi: 10.1108/JHTI-02-2022-0078.
P. Rita, R. Ramos, M. T. Borges-Tiago, and D. Rodrigues, “Impact of the rating system on sentiment and tone of voice: A Booking.com and TripAdvisor comparison study,” Int J Hosp Manag, vol. 104, no. 1, pp. 1–12, Jul. 2022, doi: 10.1016/j.ijhm.2022.103245.
H. Sharma, S. Pangaonkar, R. Gunjan, and P. Rokade, “Sentimental Analysis of Movie Reviews Using Machine Learning,” in International Conference on Data Science and Intelligent Applications, Gujarat: EDP Sciences, Apr. 2023, pp. 1–9. doi: 10.1051/itmconf/20235302006.
R. Kusumaningrum, I. Z. Nisa, R. P. Nawangsari, and A. Wibowo, “Sentiment analysis of Indonesian hotel reviews: from classical machine learning to deep learning,” International Journal of Advances in Intelligent Informatics, vol. 7, no. 3, pp. 292–303, Nov. 2021, doi: 10.26555/ijain.v7i3.737.
N. Novia Hidayati, “Aspect-Based Sentiment Analysis for Hotel Reviews with Latent Dirichlet Allocation and Machine Learning Algorithms,” Register, vol. 9, no. 2, pp. 144–159, Jul. 2023, doi: 10.26594/register.v9n2.3441.
M. K. Anam, M. B. Firdaus, F. Suandi, Lathifah, T. Nasution, and S. Fadly, “Performance Improvement of Machine Learning Algorithm Using Ensemble Method on Text Mining,” in ICFTSS 2024 - International Conference on Future Technologies for Smart Society, Kuala Lumpur: Institute of Electrical and Electronics Engineers Inc., Sep. 2024, pp. 90–95. doi: 10.1109/ICFTSS61109.2024.10691363.
M. K. Anam, S. Defit, Haviluddin, L. Efrizoni, and M. B. Firdaus, “Early Stopping on CNN-LSTM Development to Improve Classification Performance,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1175–1188, 2024, doi: 10.47738/jads.v5i3.312.
J. R. Jim, M. A. R. Talukder, P. Malakar, M. M. Kabir, K. Nur, and M. F. Mridha, “Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review,” Natural Language Processing Journal, vol. 6, no. 1, pp. 1–30, Mar. 2024, doi: 10.1016/j.nlp.2024.100059.
K. Ghosh, C. Bellinger, R. Corizzo, P. Branco, B. Krawczyk, and N. Japkowicz, “The class imbalance problem in deep learning,” Mach Learn, Jul. 2022, doi: 10.1007/s10994-022-06268-8.
Herianto, B. Kurniawan, Z. H. Hartomi, Y. Irawan, and M. K. Anam, “Machine Learning Algorithm Optimization using Stacking Technique for Graduation Prediction,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1272–1285, Sep. 2024, doi: 10.47738/jads.v5i3.316.
M. B. Ressan and R. F. Hassan, “Naïve-Bayes family for sentiment analysis during COVID-19 pandemic and classification tweets,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 28, no. 1, pp. 375–383, Oct. 2022, doi: 10.11591/ijeecs.v28.i1.pp375-383.
N. W. Susanto and H. Suparwito, “SVM-PSO Algorithm for Tweet Sentiment Analysis #BesokSenin,” Indonesian Journal of Information Systems (IJIS), vol. 6, no. 1, pp. 36–47, 2023, doi: 10.24002/ijis.v6i1.7551.
F. P. Arifianti and A. Salam, “XGBoost and Random Forest Optimization using SMOTE to Classify Air Quality,” Advance Sustainable Science, Engineering and Technology, vol. 6, no. 1, pp. 1–8, Nov. 2024, doi: 10.26877/asset.v6i1.18136.
S. A. H. Bahtiar, C. K. Dewa, and A. Luthfi, “Comparison of Naïve Bayes and Logistic Regression in Sentiment Analysis on Marketplace Reviews Using Rating-Based Labeling,” Journal of Information Systems and Informatics, vol. 5, no. 3, pp. 915–927, Aug. 2023, doi: 10.51519/journalisi.v5i3.539.
Y. Q. Song, X. Yao, Z. Liu, X. Shen, and J. Mao, “An Improved C4.5 Algorthm in Bagging Integration Model,” IEEE Access, vol. 8, pp. 206866–206875, 2020, doi: 10.1109/ACCESS.2020.3032291.
B. L. V. S. R. Krishna, V. Mahalakshmi, and G. K. M. Nukala, “A Stacking Model for Outlier Prediction using Learning Approaches,” International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 2s, pp. 629–638, 2023, [Online]. Available: https://www.kaggle.com/datasets/johnsmith88/heart-
S. Hadhri, M. Hadiji, and W. Labidi, “A voting ensemble classifier for stress detection,” Journal of Information and Telecommunication, 2024, doi: 10.1080/24751839.2024.2306786.
R. Budiyanto, I. Purnamasari, and D. D. Saputra, “Text Mining for Customer Sentiment Using Naive Bayes and SMOTE Methods on TokopediaCare Twitter,” International Journal of Information System & Technology Akreditasi, vol. 6, no. 1, pp. 134–144, 2022, doi: 10.30645/ijistech.v6i1.221.
Y. A. Mustofa and I. S. K. Idris, “Ensemble Approach to Sentiment Analysis of Google Play Store App Reviews,” Journal of Electrical and Electronics Engineering, vol. 6, no. 2, pp. 181–188, 2024, doi: 10.37905/jjeee.v6i2.25184.
A. R. Susanti and E. N. Ilahi, “Sentiment Analysis of User Reviews of E-commerce Applications: Case Study on the Shoppe Platform,” Journal of Social Science, vol. 5, no. 4, pp. 983–988, 2024, doi: 10.46799/jss.v5i4.885.
N. S. Sediatmoko, Y. Nataliani, and I. Suryady, “Sentiment Analysis of Customer Review Using Classification Algorithms and SMOTE for Handling Imbalanced Class,” Indonesian Journal of Information Systems, vol. 7, no. 1, pp. 38–52, 2024, doi: 10.24002/ijis.v7i1.8879.
A. I. Gufroni, I. Hoeronis, N. Fajar, A. Rachman, C. M. S. Ramdani, and H. Sulastri, “Implementation of Ensemble Machine Learning Classifier and Synthetic Minority Oversampling Technique for Sentiment Analysis of Sustainable Development Goals in Indonesia,” International Journal on Informatics Visualization, vol. 8, no. 2, pp. 678–685, 2024, doi: 10.62527/joiv.8.2.1949.
A. K. Abbas, A. K. Salih, H. A. Hussein, Q. M. Hussein, and S. A. Abdulwahhab, “Twitter Sentiment Analysis Using an Ensemble Majority Vote Classifier,” Journal of Southwest Jiaotong University, vol. 55, no. 1, 2020, doi: 10.35741/issn.0258-2724.55.1.9.
M. Ibrahim, “Evolution of Random Forest from Decision Tree and Bagging: A Bias-Variance Perspective,” Dhaka University Journal of Applied Science and Engineering, vol. 7, no. 1, pp. 66–71, Feb. 2023, doi: 10.3329/dujase.v7i1.62888.
D. Hardiansyah, R. A. Aziz, and M. S. Hasibuan, “The Classification Method is Used for Sentiment Analysis in My Telkomsel,” International Journal of Artificial Intelligence Research, vol. 8, no. 2, pp. 1–11, Dec. 2024, doi: 10.29099/ijair.v8i2.1229.
R. Jayapermana, A. Aradea, and N. I. Kurniati, “Implementation of Stacking Ensemble Classifier for Multi-class Classification of COVID-19 Vaccines Topics on Twitter,” Scientific Journal of Informatics, vol. 9, no. 1, pp. 8–15, May 2022, doi: 10.15294/sji.v9i1.31648.
A. Munna and E. Zuliarso, “Interpretation of Stacking Ensemble model for sentiment analysis of online loan application reviews using LIME,” AITI, vol. 21, no. 2, pp. 183–196, 2024, doi: 10.24246/aiti.v21i2.183-196.
DOI: https://doi.org/10.47738/jads.v6i2.618
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)