Equipping AI with an "Economic Sensor": Enabling Loan Prediction Models to Perceive Macroeconomic Changes
Abstract
Traditional credit risk models, focusing primarily on borrower-specific features, often fail to capture the impact of macroeconomic fluctuations, leading to systemic misjudgment during downturns. This paper proposes enhancing loan prediction models by integrating an "economic sensor" – a module incorporating key macroeconomic indicators (GDP growth, unemployment rate, interest rate, Housing Price Index, Industry Index) processed via a temporal sliding window mechanism. We develop an economic shock simulator for stress testing. Using a synthetically collected 5-year data set of loan applications and macroeconomic conditions, we train Random Forest models. Results show the enhanced model (individual and macro features) outperforms the baseline (individual features only), with accuracy increasing from 83.13% to 85.21% and AUC from 0.8993 to 0.9217. The model demonstrates heightened sensitivity to economic shocks, evidenced by a rightward shift in the predicted default probability distribution and an increase in the mean predicted default rate from 21.5% to 31.8% post a simulated 20% housing price crash. Crucially, it provides early warnings, identifying 2,873 clients (75% SMEs) with significantly increased risk 3-6 months post-shock. This approach enables more robust, economically-aware credit risk assessment.
References
- Altman, E.I. (1968) Financial ratios, discriminant analysis and the prediction of corporate bankruptcy. The Journal of Finance, 23(4), 589-609.
- Hand, D.J., and Henley, W.E. (1997) Statistical classification methods in consumer credit scoring: a review. Journal of the Royal Statistical Society: Series A (Statistics in Society), 160(3), 523-541.
- Daniele, F., et al. (2022) The myopia of machine learning models in finance: A case for macroeconomic integration. Journal of Financial Data Science, 4(2), 45-62.
- Jiménez, G., and Mencia, J. (2009) Modelling the distribution of credit losses with observable and latent factors. Journal of Empirical Finance, 16(2), 235-253.
- Rajan, R.G. (2005) Has financial development made the world riskier? NBER Working Paper No. 11728.
- Brunnermeier, M.K. (2009) Deciphering the liquidity and credit crunch 2007-2008. Journal of Economic Perspectives, 23(1), 77-100.
- Gourinchas, P.O., et al. (2021) COVID-19 and SME failures. American Economic Review: Insights, 3(4), 465-482.
- Hastie, T., Tibshirani, R., and Friedman, J. (2009) The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Springer-Verlag, New York.
- Figini, S., and Fantazzini, D. (2019) Macroeconomic credit risk: A Bayesian model averaging approach. Journal of Banking & Finance, 106, 367-378.
- Breeden, J.L. (2007) Reinventing retail credit modelling: The emergence of scenario-based modelling. Journal of Risk Model Validation, 1(3), 1-26.
- Koopman, S.J., and Lucas, A. (2005) Business and default cycles for credit risk. Journal of Applied Econometrics, 20(2), 311-323.
- Breiman, L. (2001) Random forests. Machine Learning, 45(1), 5-32.
- Bergmeir, C., and Benítez, J.M. (2012) On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192-213.
- Niculescu-Mizil, A., and Caruana, R. (2005) Predicting good probabilities with supervised learning. Proceedings of the 22nd International Conference on Machine Learning (ICML '05), 625-632.
- Fawcett, T. (2006) An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861-874.
- Basel Committee on Banking Supervision (2019) Stress testing principles. Bank for International Settlements.
- Merton, R.C. (1974) On the pricing of corporate debt: The risk structure of interest rates. The Journal of Finance, 29(2), 449-470.
- Beck, T., Demirgüç-Kunt, A., and Levine, R. (2005) SMEs, growth, and poverty: Cross-country evidence. Journal of Economic Growth, 10(3), 199-229.