PREDICTING RIDE-HAILING CUSTOMER LOYALTY USING RANDOM FOREST AND PRINCIPAL COMPONENT ANALYSIS
DOI:
https://doi.org/10.35145/joisie.v10i1.5998Keywords:
Customer Loyalty, Ride-Hailing, Random Forest, Principal Component Analysis, Service QualityAbstract
Customer loyalty is important for ride-hailing companies because users can easily change from one platform to another. This study applied Random Forest to classify the loyalty of ride-hailing users in Pekanbaru, Indonesia, and examined whether Principal Component Analysis (PCA) improved the result. The original dataset contained 200 questionnaire records covering demographic characteristics, trust, innovation, service quality, customer satisfaction, and customer loyalty. After seven duplicate records were removed, 193 records were divided into 154 training records and 39 test records. The baseline model achieved 0.67 accuracy and a weighted F1-score of 0.67. The best PCA model retained 80% of the variance, used seven trees, and achieved 0.69 accuracy with a weighted F1-score of 0.68. Service quality, customer satisfaction, trust, and innovation were the most important predictors. The model performed best for the Loyal class, while the smaller classes were harder to identify. One loyalty category was absent from the test set; therefore, the findings should be treated as an initial result rather than a model ready for operational use.
Downloads
References
AL-Najjar, D., Al-Rousan, N., & AL-Najjar, H. (2022). Machine learning to develop credit card customer churn prediction. Journal of Theoretical and Applied Electronic Commerce Research, 17(4), 1529–1542. https://doi.org/10.3390/jtaer17040077
Breiman, L. (2001). Random forests. Machine Learning, 45, 5–32. https://doi.org/10.1023/A:1010933404324
Chang, V., Hall, K., Xu, Q. A., Amao, F. O., Ganatra, M. A., & Benson, V. (2024). Prediction of customer churn behavior in the telecommunication industry using machine learning models. Algorithms, 17(6), 231. https://doi.org/10.3390/a17060231
Hamdan, I. Z. P., & Othman, M. (2022). Predicting customer loyalty using machine learning for hotel industry. Journal of Soft Computing and Data Mining, 3(2), 31–42. https://doi.org/10.30880/jscdm.2022.03.02.004
Imani, M., Joudaki, M., Beikmohammadi, A., & Arabnia, H. R. (2025). Customer churn prediction: A systematic review of recent advances, trends, and challenges in machine learning and deep learning. Machine Learning and Knowledge Extraction, 7(3), 105. https://doi.org/10.3390/make7030105
Jolliffe, I. T., & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A, 374, 20150202. https://doi.org/10.1098/rsta.2015.0202
Lalwani, P., Mishra, M. K., Chadha, J. S., & Sethi, P. (2022). Customer churn prediction system: A machine learning approach. Computing, 104(2), 271–294. https://doi.org/10.1007/s00607-021-00908-y
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
Pratondo, K., & Zaid, Z. (2021). Customer loyalty during pandemic: Understanding loyalty through the lens of online ride hailing service quality. International Journal of Social Science and Business, 5(1), 69–75. https://doi.org/10.23887/ijssb.v5i1.30933
Putri, D. A., Farida, N., & Listyorini, S. (2024). Pengaruh e-service quality dan e-trust terhadap loyalitas pelanggan melalui e-satisfaction sebagai variabel intervening: Studi pada pengguna aplikasi transportasi online. Jurnal Ilmu Administrasi Bisnis, 13(4), 971–983. https://doi.org/10.14710/jiab.2024.43738
Safarah, K. A., Inan, D. I., Juita, R., & Sirait, V. A. L. (2024). Analysing service quality using sentiment analysis and topic modeling: A case study of the Livin Mandiri application. JOISIE (Journal of Information Systems and Informatics Engineering), 8(2), 209–220. https://doi.org/10.35145/joisie.v8i2.4517
Sari, A., Arifin, M., & Darmanto, E. (2025). Prediksi kebutuhan stok barang menggunakan algoritma Random Forest untuk meningkatkan efisiensi penjualan. JOISIE (Journal of Information Systems and Informatics Engineering), 9(2), 339–351. https://doi.org/10.35145/joisie.v9i2.5154
Suh, Y. (2023). Machine learning based customer churn prediction in home appliance rental business. Journal of Big Data, 10, 41. https://doi.org/10.1186/s40537-023-00721-8
Thaithatkul, P., Anuchitchanchai, O., Srisurin, P., Sanghatawatana, P., & Chalermpong, S. (2021). Ride-hailing applications in Bangkok: Determining service quality, passenger satisfaction, and loyalty. International Journal of Technology, 12(5), 903–913. https://doi.org/10.14716/ijtech.v12i5.5247
Usman-Hamza, F. E., Rashid, T. A., Hassan, B. A., & Mirjalili, S. (2022). Intelligent decision forest models for customer churn prediction. Applied Sciences, 12(16), 8270. https://doi.org/10.3390/app12168270
Wu, Z., Jing, L., Wu, B., & Jin, L. (2022). A PCA-AdaBoost model for e-commerce customer churn prediction. Annals of Operations Research. https://doi.org/10.1007/s10479-022-04526-5
Downloads
Published
Issue
Section
License
Copyright (c) 2026 JOISIE (Journal Of Information Systems And Informatics Engineering)

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










