Explainable Machine Learning for Predicting Late Payments in Enterprise Accounts Receivable Systems
DOI:
https://doi.org/10.71426/jcdt.v1.i2.pp172-181Keywords:
Payment methods, Dual-task framework, Logistic regression, Random forests, XGBoost.Abstract
Late payment is a routine source of working-capital friction, yet an accounts-receivable model is useful only when its prediction time, feature availability, and explanation are aligned with the work of a collector. This paper develops an explainable dual-task framework for predicting whether an invoice will be paid late and, conditional on the information available at invoice issuance, estimating the number of days late. The intended benchmark is the public IBM Watson accounts-receivable sample, documented as 2,466 simulated invoices with 12 fields. Three post-outcome variables---settlement date, days to settle, and the late-days target---are explicitly blocked from the issuance-time feature set; dispute status is reserved for a later collection-stage sensitivity analysis. Customer-history variables are calculated from preceding invoices only. Logistic regression, random forests, histogram gradient boosting, XGBoost, and a transparent validation-weighted ensemble are compared for classification, while Ridge and three nonlinear regressors are compared for delay estimation. SHAP (Shapley Additive explanations) is used as a model-dependence diagnostic rather than a causal explanation. Because the historical IBM download could not be retrieved in the build environment, the archive does not manufacture IBM performance numbers: it includes an executable real-data mode and a deterministic 2,466-row schema-faithful surrogate used only to verify the pipeline. On that surrogate stress test, post-settlement leakage inflates XGBoost PR-AUC from 0.6949 to 0.9921, illustrating why timing discipline can matter more than algorithm choice. The principal contribution is therefore a reproducible, timing-aware and explanation-aware design that can be rerun unchanged when the original IBM CSV is supplied.
References
[1] Moore WR, van Vuuren JH. A framework for modelling customer invoice payment predictions. Machine Learning with Applications. 2024;17:100578. Available from: https://doi.org/10.1016/j.mlwa.2024.100578
[2] Schoonbee L, Moore WR, van Vuuren JH. A machine-learning approach towards solving the invoice payment prediction problem. South African Journal of Industrial Engineering. 2022;33(4):126–146. Available from: https://doi.org/10.7166/33-4-2726
[3] Appel AP, Malfatti GL, Cunha RL, Lima B, de Paula R. Predicting account receivables with machine learning. arXiv Preprint. 2020;arXiv:2008.07363. Available from: https://doi.org/10.48550/arXiv.2008.07363
[4] Li H. Estimation of customer’s repayment date based on machine learning methods. In: Proceedings of the 4th International Conference on Economic Management and Green Development. Singapore: Springer; 2021. p. 209–221. Available from: https://doi.org/10.1007/978-981-16-5359-9_25
[5] Shah HS. Customer payment prediction in account receivable. International Journal of Science and Research. 2019;8(1):642–644. Available from: https://doi.org/10.21275/ART20194177
[6] Liu B, Zhang Z, Yan J, Zhang N, Zha H, Li G, Li Y, Yu Q. A deep learning approach with feature derivation and selection for overdue repayment forecasting. Applied Sciences. 2020;10(23):8491. Available from: https://doi.org/10.3390/app10238491
[7] Berloco C, De Francisci Morales G, Frassineti D, Greco G, Kumarasinghe H, Lamieri M, Massaro E, Miola A, Yang S. Predicting corporate credit risk: Network contagion via trade credit. PLoS ONE. 2021;16(4):e0250115. Available from: https://doi.org/10.1371/journal.pone.0250115
[8] Breiman L. Random forests. Machine Learning. 2001;45(1):5–32. Available from: https://doi.org/10.1023/A:1010933404324
[9] Friedman JH. Greedy function approximation: A gradient boosting machine. The Annals of Statistics. 2001;29(5):1189–1232. Available from: https://doi.org/10.1214/aos/1013203451
[10] Chen T, Guestrin C. XGBoost: A scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 2016. p. 785–794. Available from: https://doi.org/10.1145/2939672.2939785
[11] Lundberg SM, Erion G, Chen H, DeGrave A, Prutkin JM, Nair B, Katz R, Himmelfarb J, Bansal N, Lee SI. From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence. 2020;2(1):56–67. Available from: https://doi.org/10.1038/s42256-019-0138-9
[12] Ribeiro MT, Singh S, Guestrin C. “Why should I trust you?”: Explaining the predictions of any classifier. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 2016. p. 1135–1144. Available from: https://doi.org/10.1145/2939672.2939778
[13] Niculescu-Mizil A, Caruana R. Predicting good probabilities with supervised learning. In: Proceedings of the 22nd International Conference on Machine Learning. 2005. p. 625–632. Available from: https://doi.org/10.1145/1102351.1102430
[14] Saito T, Rehmsmeier M. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS ONE. 2015;10(3):e0118432. Available from: https://doi.org/10.1371/journal.pone.0118432
[15] Davis J, Goadrich M. The relationship between precision-recall and ROC curves. In: Proceedings of the 23rd International Conference on Machine Learning. 2006. p. 233–240. Available from: https://doi.org/10.1145/1143844.1143874
[16] Bandyopadhyay S. Explainable artificial intelligence for retail price estimation and pricing-risk detection using multivariate product attributes. Journal of Computing and Data Technology. 2025;1(2):19–27. Available from: https://doi.org/10.71426/jcdt.v1.si1.pp19-27
[17] Taghizadeh A, Behzadi A, Fakhri N, Naghipour SA. Comparing machine learning models for stock prediction: LSTM comes out on top. Journal of Modern Technology. 2026;3(1):361–366. Available from: https://doi.org/10.71426/jmt.v3.i1.pp361-366
[18] Penaganti R. Graph neural network-based framework for real-time financial fraud detection in digital payment ecosystems. Journal of Computing and Data Technology. 2025;1(2):91–97. Available from: https://doi.org/10.71426/jcdt.v1.i2.pp91-97
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Saumen Bandyopadhyay (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Authors retain copyright in their published work subject to the journal's publication and licensing arrangements.
Articles published in JMT are distributed under the Creative Commons Attribution–NonCommercial 4.0 International License (CC BY-NC 4.0).
Under this license, readers may share and adapt published material for non-commercial purposes, provided that:
- Appropriate credit is given to the author or authors.
- The original publication source is acknowledged.
- A link to the applicable license is provided.
- Any modifications are clearly indicated.
Commercial reuse is not permitted under CC BY-NC 4.0 without appropriate authorization from the relevant rights holder.
License details are available at:
Creative Commons Attribution–NonCommercial 4.0 International
