Predicting Cash-on-Delivery Delivery Failures on an Indonesian Marketplace: A Leakage-Aware, Cost-Sensitive Machine Learning Evaluation

  • Qurrotul Aini (Corresponding Author) UIN Syarif Hidayatullah Jakarta
  • Mohammad Al Habsie UIN Syarif Hidayatullah Jakarta
  • Muhammad Rafi Habibie UIN Syarif Hidayatullah Jakarta
  • Nia Kumaladewi UIN Syarif Hidayatullah Jakarta
Keywords: cash on delivery, delivery failure prediction, class imbalance, cost-sensitive learning, data leakage, e-commerce logistics, decision support

Abstract

Cash on delivery (COD) remains a leading payment option in Indonesian e-commerce, but it moves the cost of a failed sale to the post-dispatch stage. This study analyses delivery failure among 11,538 COD orders of one Shopee store (December 2023–November 2025) and asks whether a risk score available at checkout can support seller decisions. The design is leakage-aware: payment and shipping-fee fields that are zero for every cancelled order were excluded, 172 orders without a final status were removed, and months missing from order timestamps were recovered from file names. Logistic regression, random forest and LightGBM were tuned only on December 2023–April 2025 and evaluated on May–November 2025; class weighting was compared with SMOTENC. Delivery failure was 4.9% outside Java versus 1.1% in Java (odds ratio 4.65, 95% CI 3.59–6.04). On the time-based test set (74 failures in 3,917 orders), PR-AUC was 0.040–0.046 against a 1.9% prevalence and 0.027 for an “outside Java” rule; differences among the three models were within bootstrap uncertainty, and calibrated Brier scores matched, but did not beat, a constant-rate forecast. Random cross-validation was optimistic relative to the time-based split. In a cost analysis that treats the shipping-cost estimate as the loss and states intervention costs as explicit assumptions, model-guided confirmation was profitable only when contact cost was very low. Risk scores are therefore best used as a low-cost screening layer on a decision dashboard rather than as an automatic rule.

References

B. Purwandari, S. A. Suriazdin, A. N. Hidayanto, S. Setiawan, K. Phusavat, and M. Maulida, “Factors affecting switching intention from cash on delivery to e-payment services in C2C e-commerce transactions: COVID-19, transaction, and technology perspectives,” Emerg. Sci. J., vol. 6, Special Issue, pp. 136–150, 2022, doi: 10.28991/esj-2022-SPER-010.

V. S. Vandiny, R. Listiawati, T. Rimenda, and J. Marbun, “The reasons of why customers choose COD as their payment method when shopping online,” in Proc. Int. Conf. Appl. Sci. Technol. Soc. Sci. (iCAST-SS 2022), Adv. Soc. Sci., Educ. Humanit. Res., vol. 719, 2022, pp. 535–540, doi: 10.2991/978-2-494069-83-1_95.

Maisyura, C. Sukmawati, R. Dewi, and Arinanda, “Analysis of cash on delivery (COD) payment methods in online shopping transactions in Indonesia,” in Proc. 2nd Int. Conf. Soc. Sci., Political Sci., Humanit. (ICoSPOLHUM 2021), Adv. Soc. Sci., Educ. Humanit. Res., vol. 648, 2022, pp. 269–274, doi: 10.2991/assehr.k.220302.040.

R. Maulidia and W. Yustanti, “Implementation of the support vector machine (SVM) algorithm in predicting transaction cancellations at Shopee e-commerce,” J. Emerg. Inf. Syst. Bus. Intell. (JEISBI), vol. 6, no. 1, pp. 49–62, 2025, doi: 10.26740/jeisbi.v6i1.64414.

A. Zhafira and F. Yunita, “Analisis prediksi pembatalan pesanan e-commerce menggunakan algoritma Random Forest dan XGBoost untuk mitigasi kerugian finansial,” Indones. J. Multidiscip. Soc. Technol., vol. 4, no. 3, pp. 3143–3152, 2026, doi: 10.69693/ijmst.v4i3.12964.

F. X. A. P. Jampur and V. Christmantara, “Analisis dampak metode pembayaran dan opsi pengiriman terhadap cancel order pada merchant toko mainan edukasi anak di Shopee,” J. Sist. Inf., vol. 17, no. 1, pp. 70–81, 2025, doi: 10.18495/jsi.v17i1.233.

Z. S. Sarı, H. H. Yurdagül, B. Taşkapı, G. Dağdaş, and M. F. Akay, “Multi-class machine learning models for predicting order cancellations and returns in e-commerce,” in Proc. 9th Int. Symp. Innov. Approaches Smart Technol. (ISAS), 2025, doi: 10.1109/ISAS66241.2025.11101817.

T. Irmak, “Analysis of order cancellation rates and feature weighting with machine learning: An e-commerce case study,” in Intelligent and Fuzzy Systems (INFUS 2025), vol. 1531, 2025, pp. 763–770, doi: 10.1007/978-3-031-98304-7_82.

S. F. W. T. Lim, Q. Wang, and S. Webster, “Do it right the first time: Vehicle routing with home delivery attempt predictors,” Prod. Oper. Manag., vol. 32, no. 4, pp. 1262–1284, 2023, doi: 10.1111/poms.13926.

M. Sharma, T. Glatard, É. Gelinas, M. Tagmouti, and B. Jaumard, “Data models for service failure prediction in supply-chain networks,” arXiv preprint arXiv:1810.09944, 2018, doi: 10.48550/arXiv.1810.09944.

S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: 10.1016/j.patter.2023.100804.

G. Ke et al., “LightGBM: A highly efficient gradient boosting decision tree,” in Adv. Neural Inf. Process. Syst. 30 (NIPS 2017), 2017, pp. 3146–3154. [Online]. Available: https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision-tree.pdf

N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic minority over-sampling technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.

R. van den Goorbergh, M. van Smeden, D. Timmerman, and B. Van Calster, “The harm of class imbalance corrections for risk prediction models: illustration and simulation using logistic regression,” J. Am. Med. Inform. Assoc., vol. 29, no. 9, pp. 1525–1534, 2022, doi: 10.1093/jamia/ocac093.

T. Saito and M. Rehmsmeier, “The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets,” PLoS ONE, vol. 10, no. 3, p. e0118432, 2015, doi: 10.1371/journal.pone.0118432.

S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Adv. Neural Inf. Process. Syst. 30 (NIPS 2017), 2017, pp. 4765–4774, doi: 10.48550/arXiv.1705.07874.

B. Van Calster, D. J. McLernon, M. van Smeden, L. Wynants, and E. W. Steyerberg, “Calibration: the Achilles heel of predictive analytics,” BMC Med., vol. 17, Art. no. 230, 2019, doi: 10.1186/s12916-019-1466-7.

J. Gama, I. Žliobaitė, A. Bifet, M. Pechenizkiy, and A. Bouchachia, “A survey on concept drift adaptation,” ACM Comput. Surv., vol. 46, no. 4, Art. no. 44, 2014, doi: 10.1145/2523813.

L. J. Tashman, “Out-of-sample tests of forecasting accuracy: an analysis and review,” Int. J. Forecast., vol. 16, no. 4, pp. 437–450, 2000, doi: 10.1016/S0169-2070(00)00065-0.

Published
2027-01-03
How to Cite
Aini, Q., Al Habsie, M., Rafi Habibie, M., & Kumaladewi, N. (2027). Predicting Cash-on-Delivery Delivery Failures on an Indonesian Marketplace: A Leakage-Aware, Cost-Sensitive Machine Learning Evaluation. Journal of Information Technology, Software Engineering and Computer Science (ITSECS), 5(1), 210-228. https://doi.org/10.58602/itsecs.v5i1.505