Development of Machine Learning Models for Predicting Trip Cancellation in Ride-Hailing Platforms.

Authors

Annunciata Nduku Kyalo

Institute of Computing and Informatics, Technical University of Mombasa, Mombasa, Kenya (Kenya)

Dr. Mvurya Mgala

Institute of Computing and Informatics, Technical University of Mombasa, Mombasa, Kenya (Kenya)

Dr. Kennedy Hadullo

Institute of Computing and Informatics, Technical University of Mombasa, Mombasa, Kenya (Kenya)

Article Information

DOI: 10.51584/IJRIAS.2026.11080062

Subject Category: Machine Learning

Volume/Issue: 11/8 | Page No: 798-808

Publication Timeline

Submitted: 2026-08-19

Accepted: 2026-08-24

Published: 2026-09-05

Abstract

Trip cancellations remain a significant operational challenge in ride-hailing platforms, affecting service reliability, driver utilization, customer experience, and platform efficiency. The objective of this study was to develop multiple machine learning models for predicting trip cancellation outcomes in ride-hailing platforms. The study adopted the Obtain, Scrub, Explore, Model, and iNterpret (OSEMN) framework and used 103,024 historical Ola and Uber booking records. Data preparation involved cleaning, handling missing values, feature engineering, encoding, and feature selection. Nine predictor variables were retained for model development: Vehicle Turn Around Time, Customer Turn Around Time, Customer Cancellation Reason, Driver Cancellation Reason, Ride Status, Payment Method, Ride Distance, Driver Ratings, and Customer Rating. The dataset was partitioned using an 80:20 stratified split, resulting in 82,419 training and 20,605 testing records. Class weighting was applied during model training to reduce bias towards the majority class. Four supervised machine learning models; Logistic Regression, Decision Tree, Gradient Boosting, and Extreme Gradient Boosting (XGBoost), were developed and evaluated using accuracy, precision, recall, F1-score, and confusion matrix. The models achieved training accuracies of 85.20%, 87.72%, 90.03%, and 92.52%, respectively. On the testing dataset, the corresponding accuracies were 84.00%, 86.02%, 89.06%, and 91.62%. XGBoost achieved the strongest testing performance, with 91.62% accuracy, 87.12% precision, 91.41% recall, and 89.12% F1-score. The relatively small differences between training and testing performance indicate that the developed models generalized well to unseen data. The study concludes that supervised machine learning can effectively predict trip cancellation outcomes, with XGBoost demonstrating the strongest predictive capability among the four developed models.

Keywords

Machine Learning, Trip Cancellation, Ride-Hailing, XGBoost, Predictive Model

Downloads

References

1. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324 [Google Scholar] [Crossref]

2. Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. 785–794. [Google Scholar] [Crossref]

3. Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5), 1189–1232. https://doi.org/10.1214/aos/1013203451 [Google Scholar] [Crossref]

4. Gupta, A., Pipaliya, A., Jacob, L., & Balagangadhar, K. (2024). Predictive modeling for Uber ride cancellation and price estimation: An integrated approach. 1–8. [Google Scholar] [Crossref]

5. He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. [Google Scholar] [Crossref]

6. Hosmer Jr, D. W., Lemeshow, S., & Sturdivant, R. X. (2013). Applied logistic regression. John Wiley & Sons. [Google Scholar] [Crossref]

7. Krishnaveni, S., & JayaTharunigha, M. (2022). Predict the cancellation of trips using classifiers and time series modeling. JETIR, 9(6). [Google Scholar] [Crossref]

8. Kumari, K., Bhardwaj, M., & Sharma, S. (2020). OSEMN approach for real time data analysis. International Journal of Engineering and Management Research, 10(2), 107–110. [Google Scholar] [Crossref]

9. Li, X., Pan, G., Wu, Z., Qi, G., Li, S., & Zhang, D. (2012). Prediction of urban human mobility using large-scale taxi traces and its applications. Frontiers of Computer Science, 6(1), 111–121. [Google Scholar] [Crossref]

10. Liu, Y., Yang, H., & Qin, X. (2024). An incentive strategy for the retention of impatient passengers in ride-sourcing markets. Transportation Research Part E: Logistics and Transportation Review, 189, 103645. [Google Scholar] [Crossref]

11. Mengar, H. (2025). Ola & Uber: Ride booking & cancellation data [Dataset]. Kaggle. https://www.kaggle.com/datasets/hetmengar/ola-and-uber-ride-booking-and-cancellation-data [Google Scholar] [Crossref]

12. Ngo, H. H., & Mishra, S. (2023). Dynamic carpooling and repositioning for ridehailing services with mixed strategies. [Google Scholar] [Crossref]

13. Nuzzolo, A., Comi, A., Papa, E., & Polimeni, A. (2018). Understanding taxi travel demand patterns through floating car data. 445–452. [Google Scholar] [Crossref]

14. Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. [Google Scholar] [Crossref]

15. Sun, H., Lv, Z., Li, J., Xu, Z., & Sheng, Z. (2022). Prediction of cancellation probability of online car-hailing orders based on multi-source heterogeneous data fusion. 168–180. [Google Scholar] [Crossref]

16. Sun, H., Lv, Z., Li, J., Xu, Z., & Sheng, Z. (2023). Will the order be canceled? Order cancellation probability prediction based on deep residual model. Transportation Research Record, 2677(6), 142–160. [Google Scholar] [Crossref]

17. Wang, X., Liu, W., Yang, H., Wang, D., & Ye, J. (2019). Customer behavioural modelling of order cancellation in coupled ride-sourcing and taxi markets. Transportation Research Procedia, 853–873. [Google Scholar] [Crossref]

18. Wen, D., Li, Y., & Lau, F. C. (2024). A survey of machine learning-based ride-hailing planning. IEEE Transactions on Intelligent Transportation Systems. [Google Scholar] [Crossref]

19. Xu, M., Yue, P., Yu, F., Yang, C., Zhang, M., Li, S., & Li, H. (2023). Multi-agent reinforcement learning to unify order-matching and vehicle-repositioning in ride-hailing services. International Journal of Geographical Information Science, 37(2), 380–402. [Google Scholar] [Crossref]

20. Zhang, W., & Fan, Y. (2020). Spatiotemporal characteristics and self-organization of urban taxi dispatch. Complexity, 1–11. [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles