Credit Risk Prediction Using LightGBM with Time-Aware Validation and Shap Interpretation
Keywords: credit scoring, machine learning, lightgbm, model explainability, out-of-time validation
Abstract
Accurate credit scoring is critical for financial stability, yet modern machine learning models often operate as "black boxes," creating a significant challenge for regulatory compliance and business trust. This research addresses this problem by developing a comprehensive, transparent, and robust framework for credit risk prediction. The primary objective was to build a high-performance model that is not only accurate but also fully interpretable and stable over time. The research method involved using a public loan dataset (2007-2014) with 466,285 loan records to train a Light Gradient Boosting Machine (LightGBM). To ensure real-world applicability and prevent temporal data leakage, a rigorous time-aware validation strategy was employed, splitting the data into a historical training set (2007-2013) and a future out-of-time (OOT) test set (2014). The SHapley Additive exPlanations (SHAP) framework was integrated to provide clear explanations for every prediction. The main research results demonstrate the model's strong predictive capability, achieving an AUC-ROC of 0.711 and a KS-statistic of 0.309 on the OOT dataset. The model's stability was confirmed with a low Population Stability Index (0.0685). Furthermore, SHAP analysis revealed that predictions were driven by financially intuitive factors like interest rate and annual income. The study concludes by presenting a complete workflow that successfully bridges the gap between high-performance modeling and the practical need for transparent, business-aligned risk management tools.
Downloads
References
Addo, P. C., Guegan, D., & Hassani, B. (2018). "Credit risk analysis using machine and deep learning models", Risks, vol. 6, no. 2, p. 38.
Bhattacharya, S., et al. (2023). "A Comparative Analysis of Machine Learning Techniques for Credit Risk Assessment", Journal of Financial Data Science, vol. 5, no. 2, pp. 45-62.
Chen, R., et al. (2022). "A Comprehensive Explainable Approach for Imbalanced Financial Distress Prediction", Journal of Risk Model Validation, vol. 19, no. 3.
De Roux, D., Trascuch, M., & Guest, P. (2024). "Credit scoring with boosted decision trees", The Quarterly Review of Economics and Finance, vol. 93, pp. 1-13.
Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., ... & Liu, T. Y. (2017). "Lightgbm: A highly efficient gradient boosting decision tree", Advances in neural information processing systems, vol. 30.
Leo, M., Sharma, S., & Maddulety, K. (2019). "Machine learning in banking risk management: A literature review", Risks, vol. 7, no. 1, p. 29.
Lessmann, S., Baesens, B., Seow, H. V., & Thomas, L. C. (2015). "Benchmarking state-of-the-art classification algorithms for credit scoring: An update of research", European Journal of Operational Research, vol. 247, no. 1, pp. 124-136.
Lundberg, S. M., & Lee, S. I. (2017). "A unified approach to interpreting model predictions", Advances in neural information processing systems, vol. 30.
Martins, F. D., et al. (2024). "Explainable AI in Finance: A Review of Current Methods and Applications", IEEE Access, vol. 12, pp. 10345-10361.
Noriega-Rivera, D., et al. (2021). "Machine Learning for Credit Risk Prediction: A Systematic Literature Review", European Journal of Theoretical and Applied Sciences, vol. 3, no. 1, pp. 89-105.
Office of the Comptroller of the Currency (OCC). (2021). Model Risk Management, Comptroller's Handbook, U.S. Department of the Treasury.
Papouskova, M., & Hajek, P. (2019). "Two-stage credit scoring modelling using local and global explanation methods", Neural Computing and Applications, vol. 31, pp. 1-16.
Siddiqi, N. (2017). Intelligent credit scoring: Building and implementing better credit risk scorecards, John Wiley & Sons.
Thomas, L. C., Oliver, R. W., & Hand, D. J. (2017). "A survey of the validation of credit scoring models", Journal of the Operational Research Society, vol. 68, no. 10, pp. 1123-1135.
Wang, D., Li, L., & Zhao, D. (2022). "Corporate Finance Risk Prediction based on LightGBM", Information Sciences, vol. 602, pp. 259-268.
Copyright (c) 2026 Jurnal Matematika Sains dan Teknologi

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