An Explainable Machine Learning Framework for Early Warning of Profitability Downside Risk in Listed Companies
Abstract
Profitability deterioration often appears before bankruptcy, default, or formal financial distress. This paper develops an explainable machine learning framework to identify listed companies with high next-year profitability downside risk. Using a public firm-year panel constructed from SEC Financial Statement Data Sets and Stooq historical stock price data, this study examines U.S. non-financial listed companies from 2015 to 2024. High-risk observations are defined as firms whose next-year ROA change falls in the bottom 30 percent within the same industry-year group. Logistic Regression, Random Forest, XGBoost, and LightGBM are evaluated under a chronological validation design. XGBoost performs best in the out-of-sample test set, with an AUC of 0.836 and a PR-AUC of 0.653. SHAP results indicate that revenue growth, operating margin, leverage, ROA, operating cash flow growth, and stock volatility are the main risk drivers.
References
- Beaver, W. H. (1966). Financial ratios as predictors of failure. Journal of Accounting Research, 4, 71-111. https: //doi.org/10.2307/2490171
- Altman, E. I. (1968). Financial ratios, discriminant analysis and the prediction of corporate bankruptcy. The Journal of Finance, 23(4), 589-609. https: //doi.org/10.1111/j.1540-6261.1968.tb00843.x
- Ohlson, J. A. (1980). Financial ratios and the probabilistic prediction of bankruptcy. Journal of Accounting Research, 18(1), 109-131. https: //doi.org/10.2307/2490395
- Campbell, J. Y., Hilscher, J., & Szilagyi, J. (2008). In search of distress risk. The Journal of Finance, 63(6), 2899-2939. https: //doi.org/10.1111/j.1540-6261.2008.01416.x
- Breiman, L. (2001). Random forests. Machine Learning, 45, 5-32. https: //doi.org/10.1023/A: 1010933404324
- Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5), 1189-1232. https: //doi.org/10.1214/aos/1013203451
- Chen, T., & Guestrin, C. (2016). XGBoost: a scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785-794. https: //doi.org/10.1145/2939672.2939785
- Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., & Liu, T.-Y. (2017). LightGBM: a highly efficient gradient boosting decision tree. Advances in Neural Information Processing Systems, 30.
- Shapley, L. S. (1953). A value for n-person games. In H. W. Kuhn & A. W. Tucker (Eds.), Contributions to the Theory of Games II (pp. 307-317). Princeton University Press.DOI:10.1515/9781400881970-018
- Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30.