Machine Learning Approaches with Random Forest and XGBoost for Sustainable Tourism Forecasting in Bali Destinations

Authors

  • Nadia Nabila Informatics Engineering, Telkom University Purwokerto, Indonesia
  • Yohani Setiya Rafika Nur Informatics Engineering, Telkom University Purwokerto, Indonesia
  • Maie Istighosah Informatics Engineering, Telkom University Purwokerto, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.4.5612

Keywords:

Bali tourism, Government, Machine Learning, Random Forest, Tourism Industry, XGBoost

Abstract

Bali has experienced rapid tourism growth, reaching more than 6.3 million international visitors in 2024, which has increased the risk of overtourism and created challenges for sustainable destination management. Despite tourism being a major contributor to Bali’s economy, planning practices have not fully adopted data-driven prediction approaches, resulting in uncertainty in infrastructure development, service capacity, and resource allocation. This study aims to compare the performance of Random Forest and XGBoost algorithms in predicting the popularity of tourist destinations in Bali to support evidence-based decision-making. The research utilizes historical tourist visitation data from 2018 to 2023, obtained from the Bali Provincial Tourism Office. Data preprocessing includes data cleaning, normalization, feature encoding, and dimensionality reduction using Principal Component Analysis. Three data split schemes (80:20, 75:25, and 90:10) are evaluated. Model performance is assessed using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE). The results show that XGBoost outperforms Random Forest, achieving the best performance with a MAPE of 5.32% using the 90:10 data split. The selected model is then applied to project tourism demand for 2024–2026, indicating that nature-based and cultural tourism destinations remain dominant, particularly in Badung, Jembrana, and Gianyar Regencies. This study contributes to informatics by providing a machine-learning-based prediction model to support sustainable tourism management.

Downloads

Download data is not yet available.

References

P. E. Wirawan and I. M. T. Semara, The International Institute of Tourism and Business Pengantar Pariwisata. 2021.

I. N. Subadra, “Pariwisata Budaya dan Pandemi Covid-19: Memahami Kebijakan Pemerintah dan Reaksi Masyarakat Bali,” Jurnal Kajian Bali (Journal of Bali Studies), vol. 11, Apr. 2021, doi: 10.24843/JKB.2021.v11.i01.p01.

U. Maranisya and M. F. Sya, “Penerapan Ilmu Kepariwisataan Melalui Edukasi Dan Pemberdayaan Masyarakat Lokal Di Desa Cibuntu Kuningan Jawa Barat,” Jurnal Pengabdian Kepada Masyarakat, vol. 3, no. 1, pp. 1–9, Jan. 2022.

H. Yahya, K. M. WIrawan, I. D. M. A. A. Dwipa, N. P. P. Syanthi, and K. K. Putra, “PERKEMBANGAN TRIWULANAN EKONOMI BALI TRIWULAN III 2021,” BPS Provinsi Bali, Bali, 9101003.51, Dec. 2021.

N. M. P. Ariani and M. S. Utama, “Analisis Pengaruh Sektor Pariwisata dan PDRB Terhadap PAD Kabupaten/Kota di Provinsi Bali,” E-Journal Ekonomi dan Bisnis Universitas Udayanan, vol. 13, no. 03, pp. 531–541, Mar. 2024, doi: https://doi.org/10.24843/EEB.2024.v13.i03.p10.

K. Wiweka and S. P. Chevalier, “Bali Tourism Research Trends: A Systematic Review, 1976-2022,” Jurnal Kajian Bali (Journal of Bali Studies), Oct. 2022, doi: 10.24843/JKB.2022.v12.i02.p14.

M. H. Aufan, M. R. Handayani, A. B. Nurjanna, N. C. H. Wibowo, and K. Umam, “THE PERCEPTIONS OF SEMARANG FIVE STAR HOTEL TOURISTS WITH SUPPORT VECTOR MACHINE ON GOOGLE REVIEWS,” Jurnal Teknik Informatika (Jutif), vol. 5, no. 5, pp. 1241–1247, Oct. 2024, doi: 10.52436/1.jutif.2024.5.5.2025.

R. H. Hirzi, U. Hidayaturrohman, Kertanah, M. H. Amaly, and R. Satriawan, “PREDIKSI JUMLAH WISATAWAN MENGGUNAKAN METODE RANDOM FOREST, SINGLE EXPONENTIAL SMOOTHING DAN DOUBLE EXPONENTIAL SMOOTHING,” JAMBURA JOURNAL OF PROBABILITY AND STATISTICS, vol. 4 (1), May 2023, doi: https://doi.org/10.34312/jjps.v4i1.17088.

A. Prayuda and I. Pratama, “PREDIKSI JUMLAH KEDATANGAN WISATAWAN MANCANEGARA DI INDONESIA BERDASARKAN PINTU MASUK KEDATANGAN UDARA,” Rabit : Jurnal Teknologi dan Sistem Informasi Univrab, vol. 9, no. 2, pp. 232–241, Jul. 2024, doi: 10.36341/rabit.v9i2.4787.

I. F. Rosyid and H. Pramaditya, “Visual Interpretation of Machine Learning Models (Random Forest) for Lung Cancer Risk Classification Using Explainable Artificial Intelligence (SHAP & LIME),” Jurnal Teknik Informatika (Jutif), vol. 6, no. 4, pp. 2187–2206, Aug. 2025, doi: 10.52436/1.jutif.2025.6.4.4925.

C. G. L. Pringandana and K. Kusnawi, “A Comparative Analysis of Hyperparameter-Tuned XGBoost and LightGBM for Multiclass Rainfall Classification in Jakarta,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 4, pp. 2467–2483, Aug. 2025, doi: 10.52436/1.jutif.2025.6.4.4965.

D. A. Rachmawati, N. A. Ibadurrahman, J. Zeniarja, and N. Hendriyanto, “IMPLEMENTATION OF THE RANDOM FOREST ALGORITHM IN CLASSIFYING THE ACCURACY OF GRADUATION TIME FOR COMPUTER ENGINEERING STUDENTS AT DIAN NUSWANTORO UNIVERSITY,” Jurnal Teknik Informatika (Jutif), vol. 4, no. 3, pp. 565–572, Jun. 2023, doi: 10.52436/1.jutif.2023.4.3.920.

M. T. Amali, I. D. A. Tunggal, and A. Rohima, “The Impact of E-WOM, Accessibility, and Attractiveness on Revisit Intention to Wediombo Beach Yogyakarta,” Jurnal Kepariwisataan: Destinasi, Hospitalitas dan Perjalanan, vol. 8, no. 1, pp. 87–98, Jun. 2024, doi: 10.34013/jk.v8i1.1463.

P. W. P. Anggraeni, M. Antara, and N. P. R. S. Sari, “Pengaruh Daya Tarik Wisata dan Citra Destinasi Terhadap Niat Berkunjung Kembali yang Dimediasi oleh Memorable Tourism Experience,” Jurnal Master Pariwisata (JUMPA), Universitas Udayana, vol. 9, no. 1, pp. 179–97, Jul. 2022, doi: https://doi.org/10.24843/JUMPA.2022.v09.i01.p08.

A. T. Damaliana, A. Muhaimin, and D. A. Prasetya, “FORECASTING THE OCCUPANCY RATE OF STAR HOTELS IN BALI USING THE XGBOOST AND SVR METHODS,” JOURNAL OF STATISTICS UNIVERSITY OF MUHAMMADIYAH SEMARANG, vol. 12, no. 1, pp. 24–33, Jun. 2024, doi: https://doi.org/10.26714/jsunimus.12.1.2024.24-33.

A. R. Prasetyo, W. C. F. Mariel, G. Y. Ermawan, and S. Pramana, “Big Data Analytics for Forecasting Tourism Recovery in Bali Island Using Multivariate Time Series,” Jurnal Kepariwisataan Indonesia: Jurnal Penelitian Dan Pengembangan Kepariwisataan Indonesia, vol. 18, no. 2, pp. 331–350, Dec. 2024, doi: https://doi.org/10.47608/jki.v18i22024.331-350.

N. U. Clarissa and W. Sulandari, “Peramalan jumlah kedatangan wisatawan mancanegara ke bali menggunakan metode hibrida SSA-WFTS,” Jurnal Ilmiah Matematika, vol. 8, no. 1, pp. 19–32, Apr. 2021, doi: 10.26555/konvergensi.v8i1.21460.

J.-W. Bi, C. Li, H. Xu, and H. Li, “Forecasting Daily Tourism Demand for Tourist Attractions with Big Data: An Ensemble Deep Learning Method,” J Travel Res, vol. 61, no. 8, pp. 1719–1737, Nov. 2022, doi: 10.1177/00472875211040569.

Q. Ain, E. Utami, and A. Nasiri, “ANALISIS SENTIMEN: PREDIKSI RATING TERHADAP REVIEWS WISATAWAN TANJUNG PUTING PADA TRIPADVISOR MENGGUNAKAN SUPPORT VECTOR MACHINE,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 9, no. 3, pp. 1586–1595, Aug. 2024, doi: 10.29100/jipi.v9i3.5430.

J. Zalukhu and A. H. Lubis, “Tourist Classification Based On Consumer Behavior Using XGBoost Algorithm,” JITE (Journal of Informatics and Telecommunication Engineering), vol. 8, no. 3, May 2025, doi: 10.31289/jite.v8i3Spc.14402.

W. Zheng, L. Huang, and Z. Lin, “Multi-attraction, hourly tourism demand forecasting,” Ann Tour Res, vol. 90, p. 103271, Sep. 2021, doi: 10.1016/j.annals.2021.103271.

C. Li, W. Zheng, and P. Ge, “Tourism demand forecasting with spatiotemporal features,” Ann Tour Res, vol. 94, p. 103384, May 2022, doi: 10.1016/j.annals.2022.103384.

H. Wang, Y. Jiang, and H. Su, “Prediction of tourist flow in scenic spots based on network attention: A case study of SiGuNiang Mountain Scenic Area,” in Proceedings of the 2024 5th International Conference on Computing, Networks and Internet of Things, New York, NY, USA: ACM, May 2024, pp. 192–197. doi: 10.1145/3670105.3670137.

H. Henriques and L. Nobre Pereira, “Hotel demand forecasting models and methods using artificial intelligence: A systematic literature review,” Tourism & Management Studies, vol. 20, no. 3, pp. 39–51, May 2024, doi: 10.18089/tms.20240304.

J. C. S. Núñez, J. A. Gómez‐Pulido, and R. R. Ramírez, “Machine learning applied to tourism: A systematic review,” WIREs Data Mining and Knowledge Discovery, vol. 14, no. 5, Sep. 2024, doi: 10.1002/widm.1549.

J. A. Duro, A. Osorio, A. Perez-Laborda, and M. Fernández-Fernández, “Measuring tourism markets vulnerability across destinations using composite indexes,” Journal of Destination Marketing & Management, vol. 25, p. 100731, Sep. 2022, doi: 10.1016/j.jdmm.2022.100731.

M. Hu, M. Li, Y. Chen, and H. Liu, “Tourism forecasting by mixed-frequency machine learning,” Tour Manag, vol. 106, p. 105004, Feb. 2025, doi: 10.1016/j.tourman.2024.105004.

Dinas Pariwisata Provinsi Bali, “Kunjunga Wisatawan ke Daya Tarik Wisata,” Dinas Pariwisata Provinsi Bali. Accessed: Dec. 26, 2025. [Online]. Available: https://disparda.baliprov.go.id/wp-content/uploads/2024/05/Kunjungan-Wisatawan-ke-Daya-Tarik-Wisata.xlsx

Presiden Republik Indonesia, “PERATURAN PEMERINTAH REPUBLIK INDONESIA NOMOR 50 TAHUN 2011 TENTANG RENCANA INDUK PEMBANGUNAN KEPARIWISATAAN NASIONAL TAHUN 2010 - 2025,” 2011.

R. Oktafiani, A. Hermawan, and D. Avianto, “Pengaruh Komposisi Split data Terhadap Performa Klasifikasi Penyakit Kanker Payudara Menggunakan Algoritma Machine Learning,” Jurnal Sains dan Informatika, pp. 19–28, Jun. 2023, doi: 10.34128/jsi.v9i1.622.

V. Ariyani, P. Putri, A. B. Prasetijo, and D. Eridani, “Perbandingan Kinerja Algoritme Naïve Bayes Dan K-Nearest Neighbor (Knn) Untuk Prediksi Harga Rumah,” JURNAL ILMIAH TEKNIK ELEKTRO, Oct. 2022, doi: 10.14710/transmisi.24.4.162-171.

N. Amalia and Asmunin, “Optimasi Algoritma Random Forest dengan Hyperparameter Tuning Menggunakan GridSearchCV untuk Prediksi Nasabah Churn pada Industri Perbankan,” vol. 13, May 2024, Accessed: Dec. 26, 2025. [Online]. Available: https://ejournal.unesa.ac.id/index.php/jurnal-manajemen-informatika/article/view/60063

Additional Files

Published

2026-08-14

How to Cite

[1]
N. . Nabila, Y. S. Rafika Nur, and M. . Istighosah, “Machine Learning Approaches with Random Forest and XGBoost for Sustainable Tourism Forecasting in Bali Destinations”, J. Tek. Inform. (JUTIF), vol. 7, no. 4, pp. 3182–3213, Aug. 2026.