Classification of Tourist Attractions in Yogyakarta Based on Price and Rating Using the Random Forest Algorithm
DOI:
https://doi.org/10.22303/csrid-.18.2.2026.192-204Keywords:
Classification, Tourist Destination, Yogyakarta, Random Forest, Machine LearningAbstract
Yogyakarta is one of the leading tourist destinations in Indonesia, offering various attractions with diverse
entrance ticket prices and user ratings. However, unstructured information often makes it difficult for tourists
to identify destinations that align with their travel budget and experience preferences. Therefore, this study aims
to classify tourist attractions in Yogyakarta based on price and rating using the Random Forest algorithm. The
dataset used includes entrance ticket prices, user ratings, visit duration, and geographical distance from the city
center of Yogyakarta, allowing a more comprehensive analysis of the relationship between economic value and
visitor satisfaction. Prior to model training, data preprocessing and class balancing were performed using the
SMOTE technique. The model was evaluated using an 80:20 train-test split and 5-fold cross-validation to obtain
more robust and stable performance results. The findings indicate that the features of Price and Rating have the
greatest influence on classification outcomes, while geographical distance also plays a meaningful role. The
proposed model achieves good classification performance and can serve as a foundation for future development
of tourism recommendation systems based on pricing and satisfaction aspects. This research provides a novel
contribution to the application of machine learning in the tourism sector, particularly through the integration
of geographical factors in tourist attraction price classification.
References
M. A. Sari and A. Anggrismono, ‘Implikasi Pengembangan Sektor Pariwisata Terhadap Peningkatan Ekonomi Di Provinsi Daerah Istimewa Yogyakarta’, vol. 6, no. 3, pp. 1364–1374, 2025.
E. Marlina, W. Wirasmoyo, and ..., ‘Tourist Visit Motivation as Cultural Tourism Activities Factor’, Proc. 8th ITSA …, pp. 264–278, 2020, [Online]. Available: http://eprints.uty.ac.id/9420/
B. J. Yosandri and N. Eviana, ‘Peningkatan Keputusan Berkunjung Wisatawan Melalui Pengembangan Citra Destinasi dan Aksesibilitas di Lembah Tepus Bogor Tambahkan’, Int. J. Tour. Educ., vol. 7, no. 1, pp. 1–23, 2022, [Online]. Available: https://ejournal.asaindo.ac.id/index.php/eduturisma/article/download/1269/783
A. Jamatia, U. Baidya, S. Paul, S. DebBarma, and S. Dey, ‘Rating Prediction of Tourist Destinations Based on Supervised Machine Learning Algorithms’, Adv. Intell. Syst. Comput., vol. 990, pp. 115–125, 2020, doi: 10.1007/978-981-13-8676-3_11.
H. A. Salman, A. Kalakech, and A. Steiti, ‘Random Forest Algorithm Overview’, Babylonian J. Mach. Learn., vol. 2024, pp. 69–79, 2024, doi: 10.58496/bjml/2024/007.
T. C. Au, ‘Random forests, decision trees, and categorical predictors: The “absent levels” problem’, J. Mach. Learn. Res., vol. 19, pp. 1–30, 2018.
C. Yulianto, ‘Model Penilaian Tanah Massal Berbasis Parcel-Based Mass Valuation Using Random Forest in Surakarta City’, pp. 26–39, 2024.
B. Talekar, ‘A Detailed Review on Decision Tree and Random Forest’, Biosci. Biotechnol. Res. Commun., vol. 13, no. 14, pp. 245–248, 2020, doi: 10.21786/bbrc/13.14/57.
Y. Li and X. Gou, ‘Research and Application of Random Forest Algorithm in the Evaluation Index System of Tourism’, pp. 2976–2983, 2024.
R. R. A. Widaningsih, R. B. Santoso, E. Kartika, and K. E. Trimiati, ‘Analisis Faktor Yang Mempengaruhi Kepuasan Pengunjung Dan Motivasi Berkunjung Kembali Ke Kawasan Kota Lama Semarang’, J. Ind. Pariwisata, vol. 6, no. 1, pp. 27–40, 2023, doi: 10.36441/pariwisata.v6i1.1217.
S. Tasari, F. Fatimah, and J. Rahayu, ‘Analisis Pengaruh Daya Tarik , Aksesbilitas , Harga , dan Fasilitas Terhadap Kepuasan Wisatawan Pada Pulau Merah Kabupaten Banyuwangi’, no. 3, pp. 1–15, 2025.
C. Prakoso and A. Hermawan, ‘Perbandingan Model Machine Learning dalam Analisis Sentimen Ulasan Pengunjung Keraton Yogyakarta pada Google Maps’, Kaji. Ilm. Inform. dan Komput., vol. 4, no. 3, pp. 1292–1302, 2023, doi: 10.30865/klik.v4i3.1419.
A. H. Wijaya, A. Vandaningtyas, and K. Hapsari, ‘Penentuan Destinasi Wisata Favorit di Yogyakarta dengan Menggunakan Algoritma Decision Tree’, vol. 4, no. 2, pp. 102–110, 2023, doi: 10.31284/j.kernel.2023.v4i2.7473.
M. K-means, ‘Prediksi Harga Masuk dan Rating Wisata di Pulau Jawa dengan’, vol. 4, pp. 667–673, 2025.
S. Sobari, A. I. Purnamasari, A. Bahtiar, and T. Informatika, ‘MENINGKATKAN MODEL PREDIKSI KELULUSAN SANTRI TAHFIDZ DI PONDOK PESANTREN AL-’, vol. 13, no. 1, 2025.
M. Fadli and R. A. Saputra, ‘Klasifikasi Dan Evaluasi Performa Model Random Forest Untuk Prediksi Stroke’, JT J. Tek., vol. 12, no. 02, pp. 72–80, 2023, [Online]. Available: http://jurnal.umt.ac.id/index.php/jt/index
M. Yasir, ‘Visualisasi Data Destinasi Wisata di DKI Jakarta Menggunakan Pyhton Google Collab’, J. Soc. Sci. Res. , vol. 3, no. 5, pp. 9006–9014, 2023, [Online]. Available: https://j-innovative.org/index.php/Innovative









