IDEAS home Printed from https://ideas.repec.org/a/gam/jdataj/v10y2025i5p63-d1644662.html
   My bibliography  Save this article

From Crisis to Algorithm: Credit Delinquency Prediction in Peru Under Critical External Factors Using Machine Learning

Author

Listed:
  • Jomark Noriega

    (Facultad de Ingeniería de Sistemas e Informática, Escuela de Posgrado, Universidad Nacional Mayor de San Marcos, Campus Ciudad Universitaria, Calle Germán Amézaga 375, Lima 15801, Peru
    Financiera QAPAQ, Lima 150120, Peru
    These authors contributed equally to this work.)

  • Luis Rivera

    (Facultad de Ingeniería de Sistemas e Informática, Escuela de Posgrado, Universidad Nacional Mayor de San Marcos, Campus Ciudad Universitaria, Calle Germán Amézaga 375, Lima 15801, Peru
    Center of Sciences and Technology (CCT), Laboratory of Mathematical Sciences (LCMAT), State University of North Fluminense Darcy Ribeiro (UENF), Campos dos Goytacazes, Rio de Janeiro 28015-602, Brazil)

  • Jorge Castañeda

    (Facultad de Ingeniería, Escuela de Ingeniería Informática, Universidad San Ignacio de Loyola, Campus 2 La Molina, Av. Fontana 550, La Molina 15026, Peru
    These authors contributed equally to this work.)

  • José Herrera

    (Facultad de Ingeniería de Sistemas e Informática, Escuela de Posgrado, Universidad Nacional Mayor de San Marcos, Campus Ciudad Universitaria, Calle Germán Amézaga 375, Lima 15801, Peru
    Facultad de Ciencias Informáticas, Departamento de Lenguajes y Programación, Escuela de Postgrado, Universidad Pablo de Olavide, Campus Carretera de Utrera km 1, Andalucía, 41013 Sevilla, Spain)

Abstract

Robust credit risk prediction in emerging economies increasingly demands the integration of external factors (EFs) beyond borrowers’ control. This study introduces a scenario-based methodology to incorporate EF—namely COVID-19 severity (mortality and confirmed cases), climate anomalies (temperature deviations, weather-induced road blockages), and social unrest—into machine learning (ML) models for credit delinquency prediction. The approach is grounded in a CRISP-DM framework, combining stationarity testing (Dickey–Fuller), causality analysis (Granger), and post hoc explainability (SHAP, LIME), along with performance evaluation via AUC, ACC, KS, and F1 metrics. The empirical analysis uses nearly 8.2 million records compiled from multiple sources, including 367,000 credit operations granted to individuals and microbusiness owners by a regulated Peruvian financial institution (FMOD) between January 2020 and September 2023. These data also include time series of delinquency by economic activity, external factor indicators (e.g., mortality, climate disruptions, and protest events), and their dynamic interactions assessed through Granger causality to evaluate both the intensity and propagation of external shocks. The results confirm that EF inclusion significantly enhances model performance and robustness. Time-lagged mortality (COVID MOV) emerges as the most powerful single predictor of delinquency, while compound crises (climate and unrest) further intensify default risk—particularly in portfolios without public support. Among the evaluated models, CNN and XGB consistently demonstrate superior adaptability, defined as their ability to maintain strong predictive performance across diverse stress scenarios—including pandemic, climate, and unrest contexts—and to dynamically adjust to varying input distributions and portfolio conditions. Post hoc analyses reveal that EF effects dynamically interact with borrower income, indebtedness, and behavioral traits. This study provides a scalable, explainable framework for integrating systemic shocks into credit risk modeling. The findings contribute to more informed, adaptive, and transparent lending decisions in volatile economic contexts, relevant to financial institutions, regulators, and risk practitioners in emerging markets.

Suggested Citation

  • Jomark Noriega & Luis Rivera & Jorge Castañeda & José Herrera, 2025. "From Crisis to Algorithm: Credit Delinquency Prediction in Peru Under Critical External Factors Using Machine Learning," Data, MDPI, vol. 10(5), pages 1-53, April.
  • Handle: RePEc:gam:jdataj:v:10:y:2025:i:5:p:63-:d:1644662
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2306-5729/10/5/63/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2306-5729/10/5/63/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Gianfranco Lombardo & Mattia Pellegrino & George Adosoglou & Stefano Cagnoni & Panos M. Pardalos & Agostino Poggi, 2022. "Machine Learning for Bankruptcy Prediction in the American Stock Market: Dataset and Benchmarks," Future Internet, MDPI, vol. 14(8), pages 1-23, August.
    2. Jomark Pablo Noriega & Luis Antonio Rivera & José Alfredo Herrera, 2023. "Machine Learning for Credit Risk Prediction: A Systematic Literature Review," Data, MDPI, vol. 8(11), pages 1-17, November.
    3. M. K. Nallakaruppan & Himakshi Chaturvedi & Veena Grover & Balamurugan Balusamy & Praveen Jaraut & Jitendra Bahadur & V. P. Meena & Ibrahim A. Hameed, 2024. "Credit Risk Assessment and Financial Decision Support Using Explainable Artificial Intelligence," Risks, MDPI, vol. 12(10), pages 1-18, October.
    4. Dong-Her Shih & Ting-Wei Wu & Po-Yuan Shih & Nai-An Lu & Ming-Hung Shih, 2022. "A Framework of Global Credit-Scoring Modeling Using Outlier Detection and Machine Learning in a P2P Lending Platform," Mathematics, MDPI, vol. 10(13), pages 1-13, June.
    5. Dumitrescu, Elena & Hué, Sullivan & Hurlin, Christophe & Tokpavi, Sessi, 2022. "Machine learning for credit scoring: Improving logistic regression with non-linear decision-tree effects," European Journal of Operational Research, Elsevier, vol. 297(3), pages 1178-1192.
    6. Dendramis, Y. & Tzavalis, E. & Adraktas, G., 2018. "Credit risk modelling under recessionary and financially distressed conditions," Journal of Banking & Finance, Elsevier, vol. 91(C), pages 160-175.
    7. Maria J. Nieto, 2019. "Banks, climate risk and financial stability," Journal of Financial Regulation and Compliance, Emerald Group Publishing Limited, vol. 27(2), pages 243-262, May.
    8. Luis Alberto Geraldo-Campos & Juan J. Soria & Tamara Pando-Ezcurra, 2022. "Machine Learning for Credit Risk in the Reactive Peru Program: A Comparison of the Lasso and Ridge Regression Models," Economies, MDPI, vol. 10(8), pages 1-21, July.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Reinders, Henk Jan & Schoenmaker, Dirk & van Dijk, Mathijs, 2023. "A finance approach to climate stress testing," Journal of International Money and Finance, Elsevier, vol. 131(C).
    2. Birindelli, Giuliana & Dell’Atti, Stefano & Di Tommaso, Caterina & Iannuzzi, Antonia Patrizia & Pacelli, Vincenzo, 2024. "The impact of banks’ climate engagement on systemic risk. Does committing a little or a lot make a difference?," Research in International Business and Finance, Elsevier, vol. 70(PB).
    3. Helena Redondo & Elisa Aracil, 2024. "Climate‐related credit risk: Rethinking the credit risk framework," Global Policy, London School of Economics and Political Science, vol. 15(S1), pages 21-33, March.
    4. Jiaji Wang & Qianting Ma & Chao Wang & Tianxiang Sheng, 2024. "Climate change and credit risk in rural financial institutions: A study based on transition risk," Managerial and Decision Economics, John Wiley & Sons, Ltd., vol. 45(6), pages 4208-4226, September.
    5. Chan, Ying Tung & Punzi, Maria Teresa & Zhao, Hong, 2024. "Green transition and financial stability: The role of green monetary and macroprudential policies and vouchers," Energy Economics, Elsevier, vol. 132(C).
    6. Odongo, Maureen & Misati, Roseline Nyakerario & Kageha, Caren & Wamalwa, Peter Simiyu, 2023. "Sustainable financing, climate change risks and bank stability in Kenya," KBA Centre for Research on Financial Markets and Policy Working Paper Series 71, Kenya Bankers Association (KBA).
    7. Lingke Wu & Dehong Liu & Tiantian Lin, 2023. "The Impact of Climate Change on Financial Stability," Sustainability, MDPI, vol. 15(15), pages 1-18, July.
    8. Chalabi-Jabado, Fatima & Ziane, Ydriss, 2024. "Climate risks, financial performance and lending growth: Evidence from the banking industry," Technological Forecasting and Social Change, Elsevier, vol. 209(C).
    9. Zbigniew Korzeb & Paweł Niedziółka & Danuta Szpilko & Filippo Pietro, 2024. "ESG and climate-related risks versus traditional risks in commercial banking: A bibliometric and thematic review," Future Business Journal, Springer, vol. 10(1), pages 1-22, December.
    10. Jomark Pablo Noriega & Luis Antonio Rivera & José Alfredo Herrera, 2023. "Machine Learning for Credit Risk Prediction: A Systematic Literature Review," Data, MDPI, vol. 8(11), pages 1-17, November.
    11. Nguyen, Quyen & Diaz-Rainey, Ivan & Kuruppuarachchi, Duminda & McCarten, Matthew & Tan, Eric K.M., 2023. "Climate transition risk in U.S. loan portfolios: Are all banks the same?," International Review of Financial Analysis, Elsevier, vol. 85(C).
    12. Louis Daumas, 2024. "Financial stability, stranded assets and the low‐carbon transition – A critical review of the theoretical and applied literatures," Journal of Economic Surveys, Wiley Blackwell, vol. 38(3), pages 601-716, July.
    13. Teresa C. Herrador-Alcaide & Montserrat Hernández-Solís & Susana Cortés Rodríguez, 2023. "Mapping barriers to green supply chains in empirical research on green banking," Palgrave Communications, Palgrave Macmillan, vol. 10(1), pages 1-16, December.
    14. Xu, Xiaoming & Ren, Xingzi & He, Feng, 2024. "Climate policy uncertainty and bank liquidity creation," Finance Research Letters, Elsevier, vol. 65(C).
    15. Zaoxian Wang & Dechun Huang, 2023. "A New Perspective on Financial Risk Prediction in a Carbon-Neutral Environment: A Comprehensive Comparative Study Based on the SSA-LSTM Model," Sustainability, MDPI, vol. 15(19), pages 1-22, October.
    16. Elisa Di Febo & Eliana Angelini, 2025. "Transition Risk in Climate Change: A Literature Review," Risks, MDPI, vol. 13(4), pages 1-25, March.
    17. Md Talha Mohsin & Nabid Bin Nasim, 2025. "Explaining the Unexplainable: A Systematic Review of Explainable AI in Finance," Papers 2503.05966, arXiv.org, revised Mar 2025.
    18. Dangxing Chen & Weicheng Ye & Jiahui Ye, 2022. "Interpretable Selective Learning in Credit Risk," Papers 2209.10127, arXiv.org.
    19. Le Sun & Congmou Zhu & Shaofeng Yuan & Lixia Yang & Shan He & Wuyan Li, 2022. "Exploring the Impact of Digital Inclusive Finance on Agricultural Carbon Emission Performance in China," IJERPH, MDPI, vol. 19(17), pages 1-18, September.
    20. Dangxing Chen & Luyao Zhang, 2023. "Monotonicity for AI ethics and society: An empirical study of the monotonic neural additive model in criminology, education, health care, and finance," Papers 2301.07060, arXiv.org.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jdataj:v:10:y:2025:i:5:p:63-:d:1644662. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.