Unveiling the Black Box: Nonlinear Effects of Digital Transformation on Financial Distress with XGBoost-SHAP Model
Highlights
- XGBoost-SHAP captures non-linear interactions and threshold effects, advancing systems methodology and practice.
- XGBoost outperforms traditional Logit regression in both AUC and PR_AUC for financial distress prediction.
- The marginal contribution of digital transformation to risk reduction is non-linear, stabilizing only beyond a critical threshold.
- Digital transformation and operating profit margin are identified as key protective features, while the asset-liability ratio is the primary risk driver.
Abstract
1. Introduction
2. Theoretical Background and Problem Formulation
2.1. Research on Digital Transformation and Financial Distress
2.2. Research on Financial Distress Prediction Based on Machine Learning Algorithms
- RQ1: Controlling for other financial and governance factors, what is the association between the degree of digital transformation and corporate financial distress—linear or non-linear?
- RQ2: Does the XGBoost model systematically outperform the traditional Logit model in predicting financial distress among Chinese A-share listed firms, using metrics such as AUC, PR_AUC, and F1?
- RQ3: Based on the SHAP interpretability method, which feature variables make significant contributions to financial distress prediction, and what are the characteristics of their impact directions and marginal contribution patterns?
3. Methodology
3.1. Sample Selection and Data Processing
3.2. Variable Definitions and Measurement
3.2.1. Explanatory Variables
3.2.2. Dependent Variables
3.2.3. Control Variables
3.3. Model Construction
3.3.1. Logit Model
3.3.2. The XGBoost Model
- : a differentiable loss function
- : a regularization term that controls tree complexity
- : Number of leaf nodes
- : Weight (predicted value) of the j-th leaf node
- : Function mapping the sample to a leaf
- : Penalty coefficient for the number of leaf nodes (controls tree complexity, prevents excessive depth)
- : L2 regularization coefficient (smooths leaf weights)
3.3.3. The SHAP Explanation Framework
4. Analysis of Results
4.1. Descriptive Statistics
4.2. Baseline Regression Analysis
4.3. Robustness Tests
4.4. Machine Learning Analysis and Visualization of Results (XGBoost & SHAP)
4.4.1. Model Performance and Metrics Evaluation
4.4.2. Threshold Optimization and the Precision–Recall Trade-Off
4.4.3. SHAP Explanatory Analysis
4.4.4. SHAP Dependencies and Interaction Effects
4.4.5. SHAP Explanation Diagram—Typical Case Analysis
5. Discussion
5.1. Comparison with Existing Literature
5.2. Theoretical Contributions
5.3. Practical Implications Within the Chinese Context and External Validity
5.4. Research Limitations and Future Directions
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Saarikko, T.; Westergren, U.H.; Blomquist, T. Digital transformation: Five recommendations for the digitally conscious firm. Bus. Horiz. 2020, 63, 825–839. [Google Scholar] [CrossRef]
- Wu, F.; Hu, H.; Lin, H.; Ren, X. Enterprise digital transformation and capital market performance: Empirical evidence from stock liquidity. J. Manag. World 2021, 37, 130–144+110. [Google Scholar] [CrossRef]
- Cui, L.; Wang, Y. Can corporate digital transformation alleviate financial distress? Financ. Res. Lett. 2023, 55, 103983. [Google Scholar] [CrossRef]
- Sun, B.; Zhang, Y.; Zhu, K.; Mao, H.; Liang, T. Is faster really better? The impact of digital transformation speed on firm financial distress: Based on the cost-benefit perspective. J. Bus. Res. 2024, 179, 114703. [Google Scholar] [CrossRef]
- Li, S.; Yang, Z.; Tian, Y. Unexpected consequence of enterprise digital transformation on financial investments. J. Corp. Account. Financ. 2024, 35, 121–134. [Google Scholar] [CrossRef]
- Ashraf, S.; G. S. Félix, E.; Serrasqueiro, Z. Do Traditional Financial Distress Prediction Models Predict the Early Warning Signs of Financial Distress? J. Risk Financ. Manag. 2019, 12, 55. [Google Scholar] [CrossRef]
- Kadkhoda, S.T.; Amiri, B. A Hybrid Network Analysis and Machine Learning Model for Enhanced Financial Distress Prediction. IEEE Access 2024, 12, 52759–52777. [Google Scholar] [CrossRef]
- Chohan, M.A.; Li, T.; Ramakrishnan, S.; Sheraz, M. Artificial Intelligence in Financial Risk Early Warning Systems: A Bibliometric and Thematic Analysis of Emerging Trends and Insights. Int. J. Adv. Comput. Sci. Appl. 2025, 16, 1336–1351. [Google Scholar] [CrossRef]
- Ben Jabeur, S.; Stef, N.; Carmona, P. Bankruptcy Prediction using the XGBoost Algorithm and Variable Importance Feature Engineering. Comput. Econ. 2023, 61, 715–741. [Google Scholar] [CrossRef]
- Carmona, P.; Dwekat, A.; Mardawi, Z. No more black boxes! Explaining the predictions of a machine learning XGBoost classifier algorithm in business failure. Res. Int. Bus. Financ. 2022, 61, 101649. [Google Scholar] [CrossRef]
- Romero Martínez, M.; Pozuelo Campillo, J.; Carmona Ibáñez, P. Ethical transparency in business failure prediction: Uncovering the black box of xgboost algorithm. Span. J. Financ. Account. Rev. Esp. Financ. Contab. 2025, 54, 135–165. [Google Scholar] [CrossRef]
- 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, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef]
- Lin, J. Digital Transformation Strategies and Practices for Corporates. Adv. Econ. Manag. Polit. Sci. 2024, 96, 204–213. [Google Scholar] [CrossRef]
- Xue, Y.; Zhang, X. Digital transformation and corporate capital structure: Evidence from China. Pac. Basin Financ. J. 2024, 84, 102299. [Google Scholar] [CrossRef]
- Niu, Y.; Wang, S.; Wen, W.; Li, S. Does digital transformation speed up dynamic capital structure adjustment? Evidence from China. Pac. Basin Financ. J. 2023, 79, 102016. [Google Scholar] [CrossRef]
- Wang, Y.; Song, X.; Zhou, J. Does firms’ digitalization affect trade credit provision? Asia-Pac. J. Account. Econ. 2025, 32, 329–357. [Google Scholar] [CrossRef]
- Wang, S.; Wen, W.; Niu, Y.; Li, X. Digital transformation and corporate labor investment efficiency. Emerg. Mark. Rev. 2024, 59, 101109. [Google Scholar] [CrossRef]
- Xu, Y.; Ke, J.; Liu, J.; Zhai, Z. A study on the impact of enterprise digital transformation on the debt financing cost. Macroeconomics 2023, 4, 14–26+116. [Google Scholar] [CrossRef]
- Sun, C.; Zhang, Z.; Vochozka, M.; Vozňáková, I. Enterprise digital transformation and debt financing cost in China’s A-share listed companies. Oecon. Copernic. 2022, 13, 783–829. [Google Scholar] [CrossRef]
- Feng, X. The Impact of Enterprise Digital Transformation on the Cost of Debt Financing: An Empirical Analysis Based on the Moderating Effect of Audit Quality. In Proceedings of the 2025 2nd International Conference on Economic Data Analytics and Artificial Intelligence, Changsha, China, 14–16 November 2025; pp. 179–186. [Google Scholar]
- Yousaf, U.B.; Ullah, I. Corporate governance and financial distress: A review of the theoretical and empirical literature. Int. J. Financ. Econ. 2024, 29, 1627–1679. [Google Scholar] [CrossRef]
- Abrahamsen, N.-G.B.; Nylén-Forthun, E.; Møller, M.; de Lange, P.E.; Risstad, M. Financial Distress Prediction in the Nordics: Early Warnings from Machine Learning Models. J. Risk Financ. Manag. 2024, 17, 432. [Google Scholar] [CrossRef]
- Zhang, T.; Zhu, W.; Wu, Y.; Wu, Z.; Zhang, C.; Hu, X. An explainable financial risk early warning model based on the DS-XGBoost model. Financ. Res. Lett. 2023, 56, 104045. [Google Scholar] [CrossRef]
- Yang, L.-W.; Binh, N.T.; Yi, J.M. Advanced Techniques for Financial Distress Prediction. Forecasting 2026, 8, 2. [Google Scholar] [CrossRef]
- Chen, Y.; Guo, J.; Huang, J.; Lin, B. A novel method for financial distress prediction based on sparse neural networks with L_1/2 regularization. Int. J. Mach. Learn. Cybern. 2022, 13, 2089–2103. [Google Scholar] [CrossRef] [PubMed]
- Chi, G.; Li, C.; Zhou, Y.; Li, T. Financial distress prediction with optimal decision trees based on the optimal sampling probability. J. Risk Model. Valid. 2024, 18, 19–44. [Google Scholar] [CrossRef]
- Deng, S.; Luo, Q.; Zhu, Y.; Ning, H.; Shimada, T. Financial risk forewarning with an interpretable ensemble learning approach: An empirical analysis based on Chinese listed companies. Pac. Basin Financ. J. 2024, 85, 102393. [Google Scholar] [CrossRef]
- Wang, W.; Liang, Z. Financial distress early warning for Chinese enterprises from a systemic risk perspective: Based on the adaptive weighted xgboost-bagging model. Systems 2024, 12, 65. [Google Scholar] [CrossRef]
- Tanaka, K.; Higashide, T.; Kinkyo, T.; Hamori, S. A multi-stage financial distress early warning system: Analyzing corporate insolvency with random forest. J. Risk Financ. Manag. 2025, 18, 195. [Google Scholar] [CrossRef]
- Zheng, C.; Zhang, X.; Hu, S.; Hao, P. How Does Digital-Green Synergy Affect Key Core Technological Innovation in China? Empirical Evidence from A-Share Listed Companies. Emerg. Mark. Financ. Trade 2025, 62, 3660–3685. [Google Scholar] [CrossRef]
- Hou, G.D.; Tong, D.L.; Liew, S.Y.; Choo, P.Y. Improving financial distress prediction using machine learning: A preliminary study. ITM Web Conf. 2024, 67, 01050. [Google Scholar] [CrossRef]
- Zhao, Y.; Fang, Y. Financial Account Audit Early Warning Based on Fuzzy Comprehensive Evaluation and Random Forest Model. J. Math. 2022, 2022, 3090335. [Google Scholar] [CrossRef]
- Qian, H.; Wang, B.; Yuan, M.; Gao, S.; Song, Y. Financial distress prediction using a corrected feature selection measure and gradient boosted decision tree. Expert. Syst. Appl. 2022, 190, 116202. [Google Scholar] [CrossRef]
- Wang, Z.; Li, Y.; Cui, Z.; Zheng, W.; Wang, T. A machine learning-based study of credit risk in supply chain finance of listed service-oriented enterprises in China. Pac. Basin Financ. J. 2026, 96, 103043. [Google Scholar] [CrossRef]
- Luo, W.; Yu, Y.; Deng, M. The impact of enterprise digital transformation on risk-taking: Evidence from China. Res. Int. Bus. Financ. 2024, 69, 102285. [Google Scholar] [CrossRef]
- Takefuji, Y. Beyond XGBoost and SHAP: Unveiling true feature importance. J. Hazard. Mater. 2025, 488, 137382. [Google Scholar] [CrossRef] [PubMed]
- You, Z.; Zhao, S. Enterprise digital transformation and financial risk. Adv. Econ. Manag. Res. 2023, 4, 114–128. [Google Scholar] [CrossRef]











| Dimension | Keyword |
|---|---|
| Artificial Intelligence Technology | Artificial Intelligence, Business Intelligence, Image Recognition, Investment Decision Support Systems, Intelligent Data Analysis, Intelligent Robotics, Machine Learning, Deep Learning, Semantic Search, Biometric Technology, Facial Recognition, Speech Recognition, Identity Verification, Autonomous Driving, Natural Language Processing |
| Cloud computing technology | Cloud Computing, Stream Computing, Graph Computing, In-memory Computing, Multi-party Secure Computation, Brain-inspired Computing, Green Computing, Cognitive Computing, Converged Architecture, Hundreds of millions of Concurrent Connections, Exabyte-scale Storage, Internet of Things, Cyber-physical Systems |
| Blockchain technology | Blockchain, Digital Currency, Distributed Computing, Differential Privacy Technology, Smart Financial Contracts |
| Big Data Technology | Big Data, Data Mining, Text Mining, Data Visualization, Heterogeneous Data, Credit Reporting, Augmented Reality, Mixed Reality, Virtual Reality |
| Applications of Digital Technology | Mobile Internet, Industrial Internet, Mobile Connectivity, Internet Healthcare, E-commerce, Mobile Payments, Third-Party Payments, NFC Payments, Smart Energy, B2B, B2C, C2B, C2C, O2O, NetUnion, Smart Wearables, Smart Agriculture, Smart Transportation, Smart Healthcare, Smart Customer Service, Smart Home, Robo-advisory, Smart Tourism and Culture, Smart Environmental Protection, Smart Grid, Smart Marketing, Digital Marketing, Unmanned Retail, Internet Finance, Digital Finance, Fintech, Financial Technology, Quantitative Finance, Oopen Banking |
| Variable Categories | Variable Name | Variable Symbol | Note |
|---|---|---|---|
| Dependent variable | Financial Distress | FD | 1 = Financial distress, 0 = Financial normal |
| Explanatory variable | Digital Transformation | DX | Natural logarithm of (1 + standardized keyword frequency) |
| Control variable | Asset-liability Ratio | LEV | Total liabilities at year-end/Total assets at year-end |
| Operating Profit Margin | OPM | Operating profit/Operating revenue | |
| Total Asset Turnover | ATO | Revenue/Average total assets | |
| Cash Flow Ratio | CFR | Ratio of net cash flow from operating activities to total assets | |
| Largest Shareholder Ownership | Top1 | Number of shares held by the largest shareholder/Total issued shares | |
| Independent Directors Ratio | Indep | Number of independent directors/Total number of board members | |
| Ownership Nature | Ownership | 1 for state-owned enterprises (SOEs), 0 otherwise | |
| High-Tech Enterprise | HTE | 1 for certified High-Tech Enterprises, 0 otherwise |
| Variable | Sample Size | Mean | SD | Min | Max |
|---|---|---|---|---|---|
| FD | 187,801 | 0.0257 | 0.1581 | 0.0000 | 1.0000 |
| DX | 187,801 | 1.5194 | 1.4214 | 0.0000 | 6.3936 |
| LEV | 187,801 | 0.4143 | 0.2139 | 0.0455 | 0.9397 |
| OPM | 187,801 | 0.0745 | 0.1968 | −0.9406 | 0.6058 |
| ATO | 187,801 | 0.3835 | 0.3358 | 0.0179 | 1.8637 |
| CFR | 187,801 | 0.0158 | 0.0595 | −0.1585 | 0.1934 |
| Top1 | 187,801 | 0.3359 | 0.1501 | 0.0000 | 0.8999 |
| Indep | 187,801 | 0.3776 | 0.0559 | 0.0000 | 1.0000 |
| Ownership | 187,801 | 0.2702 | 0.4441 | 0.0000 | 1.0000 |
| HTE | 187,801 | 0.6221 | 0.4849 | 0.0000 | 1.0000 |
| Variable | Model 1 | Model 2 | Model 3 |
|---|---|---|---|
| DX | −0.2417 *** (0.0123) | −0.2055 *** (0.0128) | −0.1835 *** (0.0.54) |
| LEV | 3.7952 *** (0.1046) | 4.1212 *** (0.0186) | |
| OPM | −2.0974 *** (0.0596) | −2.0380 *** (0.0643) | |
| ATO | −0.2659 *** (0.0522) | −0.4993 *** (0.0618) | |
| CFR | −1.8174 *** (0.3271) | −1.6663 *** (0.3430) | |
| Top1 | −3.4113 *** (0.1303) | −3.2065 *** (0.1321) | |
| Indep | 0.3366 (0.2700) | 0.6383 ** (0.2628) | |
| Ownership | −0.1081 *** (0.0349) | −0.0624 * (0.0351) | |
| HTE | 0.7392 *** (0.036) | 0.9118 *** (0.0386) | |
| Industry fixed effects | No | No | Yes |
| Year fixed effects | No | No | Yes |
| Constant | −3.3213 *** (0.0199) | −3.9440 *** (0.1294) | −3.9306 *** (0.1869) |
| Model | Sample Size | DX_Coefficient | DX_OR |
|---|---|---|---|
| Base Model | 187,801 | −0.1835 *** (0.0154) | 0.8323 |
| 80% Random sample | 150,241 | −0.1825 *** (0.0.174) | 0.8332 |
| Exclude pandemic years | 138,584 | −0.2148 *** (0.0192) | 0.8067 |
| Model | AUC | PR_AUC | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|
| Logistic | 0.8288 | 0.1447 | 0.1815 | 0.3302 | 0.2342 | 0.9585 |
| XGBoost | 0.8653 | 0.2233 | 0.2547 | 0.3075 | 0.2786 | 0.9694 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Zhang, G.; Yang, H.; Wang, C.; Zhou, Z.; Hu, S. Unveiling the Black Box: Nonlinear Effects of Digital Transformation on Financial Distress with XGBoost-SHAP Model. Systems 2026, 14, 905. https://doi.org/10.3390/systems14080905
Zhang G, Yang H, Wang C, Zhou Z, Hu S. Unveiling the Black Box: Nonlinear Effects of Digital Transformation on Financial Distress with XGBoost-SHAP Model. Systems. 2026; 14(8):905. https://doi.org/10.3390/systems14080905
Chicago/Turabian StyleZhang, Guhao, Hao Yang, Chenkai Wang, Zhipeng Zhou, and Shilei Hu. 2026. "Unveiling the Black Box: Nonlinear Effects of Digital Transformation on Financial Distress with XGBoost-SHAP Model" Systems 14, no. 8: 905. https://doi.org/10.3390/systems14080905
APA StyleZhang, G., Yang, H., Wang, C., Zhou, Z., & Hu, S. (2026). Unveiling the Black Box: Nonlinear Effects of Digital Transformation on Financial Distress with XGBoost-SHAP Model. Systems, 14(8), 905. https://doi.org/10.3390/systems14080905

