An Explainable Machine Learning Model for Credit Risk Prediction: Evidence from Commercial Banks in Bangladesh
- 1 Department of Business Administration, East West University, Dhaka, Bangladesh
Abstract
With the increasing complexity of financial data, accurate credit risk prediction has become essential for effective lending decisions and financial stability in commercial banking. This study proposes an explainable machine learning framework for credit risk prediction in the context of commercial banks in Bangladesh. A synthetic borrower-level dataset consisting of 5000 records was developed to simulate plausible demographic, financial, loan-related, and repayment-behavior characteristics commonly associated with commercial banking practice in Bangladesh. Four machine learning models, namely Logistic Regression, Random Forest, Support Vector Machine, and XGBoost, were implemented and compared using accuracy, precision, recall, F1-score, and AUC-ROC. The results show that ensemble-based models outperform the baseline Logistic Regression model. XGBoost achieved the strongest overall classification performance, with an accuracy of 96%, precision of 0.95, recall of 0.94, and F1-score of 0.95, while Random Forest achieved the highest AUC-ROC value of 0.94. To improve transparency, SHAP and LIME were applied to provide global and local explanations of model predictions. The findings indicate that debt-to-income ratio, monthly income, loan amount, previous default history, and late payment behavior are the major drivers of predicted credit risk. Since the dataset is synthetic, the results should be interpreted as simulation-based evidence rather than direct empirical evidence from confidential commercial bank records. The proposed framework demonstrates the potential value of explainable machine learning for transparent and data-driven credit risk assessment in the Bangladeshi banking context.
- Arrieta, A. B., Díaz-Rodríguez, N., Del Ser, J., Bennetot, A., Tabik, S., Barbado, A., García, S., Gil-López, S., Molina, D., Benjamins, R., Chatila, R., & Herrera, F. (2020). Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI. Information Fusion, 58, 82-115. https://doi.org/10.1016/j.inffus.2019.12.012
- Bhatt, U., Andrus, M., Weller, A., & Xiang, A. (2020). Machine Learning Explain-Ability for External Stakeholders. P roc eedings of the AAAI Conference on Artificial Intelligence, 34, 13589-13590.
- Bussmann, N., Giudici, P., Marinelli, D., & Papenbrock, J. (2021). Explainable Machine Learning in Credit Risk Management. Computational Economics, 57, 203-216. https://doi.org/10.1007/s10614-020-10042-0
- Chen, T., & Guestrin, C. (2016). XGBoost: A Scalable Tree Boosting System. In P roc eedings of the 22nd ACM SIGKDD Inter national Conference on Knowledge Discovery and Data Mining (pp. 785-794). ACM. https://doi.org/10.1145/2939672.2939785
- Doshi-Velez, F., & Kim, B. (2017). Towards a Rigorous Science of Interpretable Machine Learning . arXiv:1702.08608. https://arxiv.org/abs/1702.08608
- Kumar, D. (2025). Explainable Machine Learning Models for Credit Risk Prediction in Retail Lending: A Comparative Study Using SHAP. SSRN Electronic Journal, 13 p. https://doi.org/10.2139/ssrn.5341125
- 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, 247, 124-136. https://doi.org/10.1016/j.ejor.2015.05.030
- Lin, L., & Wang, Y. (2025). SHAP Stability in Credit Risk Management: A Case Study in Credit Card Default Model . arXiv:2508.01851
- Lundberg, S. M., & Lee, S.-I. (2017). A Unified Approach to Interpreting Model Predictions. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Ed.), Advances in Neural Information Processing Systems (Vol. 30, pp. 4765-4774). Curran Associates, Inc. https://arxiv.org/abs/1705.07874
- Molnar, C. (2022). Interpretable Machine Learning: A Guide for Making Black Box Models Explainable (2nd ed.). Self-Published. https://christophm.github.io/interpretable-ml-book/
- Nallakaruppan, M. K., Kumar, S., Kiran, P. V., & Karthikeyan, S. (2024). Credit Risk Assessment and Financial Decision Support Using Explainable Artificial Intelligence. Risks, 12, Article 164. https://doi.org/10.3390/risks12100164