PREDICTING RIDE-HAILING CUSTOMER LOYALTY USING RANDOM FOREST AND PRINCIPAL COMPONENT ANALYSIS

Authors

  • Viola Viola Institut Bisnis dan Teknologi Pelita Indonesia
  • Dewi Nasien Institut Bisnis dan Teknologi Pelita Indonesia
  • M. Hasmil Adiya Institut Bisnis dan Teknologi Pelita Indonesia

DOI:

https://doi.org/10.35145/joisie.v10i1.5998

Keywords:

Customer Loyalty, Ride-Hailing, Random Forest, Principal Component Analysis, Service Quality

Abstract

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

Download data is not yet available.

References

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

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

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

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

2026-06-30

Issue

Section

Articles