Detecting Earnings Management through Explainable Artificial Intelligence: A Machine Learning Approach Using Financial Statement Data

Authors

  • Safwat Al Tal Faculty of Business, Higher Colleges of Technology (Abu Dhabi/Bani Yas A). Author

DOI:

https://doi.org/10.70568/ijdafs.3.1.1

Keywords:

Earnings Management Proxy, Discretionary Accruals, Explainable Artificial Intelligence, SHAP, Machine Learning

Abstract

This paper develops an explainable machine learning framework to classify the firm-year observations with unusually high discretionary accruals, a common proxy for the accrual-based earnings management, by using the financial statement data. The sample includes 7,800 firm-year observations of publicly listed non-financial firms from Compustat North America (via WRDS) for firms listed on the NYSE, Nasdaq and NYSE American over the fiscal years 2010-2023. The discretionary accruals were estimated by the Modified Jones Model, and they were used to build a proxy-based binary label according to the top quintile of the absolute discretionary accruals inside each industry-year (1,560 observations, 20.0%, classified as high-accrual). Four algorithms, which are the Logistic Regression, Random Forest, XGBoost and LightGBM, were trained on a leakage-screened set of financial ratios that excludes every component used in the label, and they were compared with the Beneish M-Score. The models were trained on the 2010-2018 data, tuned on 2019-2020, and evaluated out-of-sample on 2021-2023 (1,000 observations). The XGBoost achieves the highest ROC-AUC (0.748) and PR-AUC (0.421), which is higher than the Beneish M-Score (0.612), while the LightGBM achieves the highest F1-score (0.484) and balanced accuracy (0.653) at the 0.50 threshold, and the ROC-AUC advantage of the ML models is statistically significant (DeLong test, p = 0.004). Moreover, the SHAP analysis of the optimal model shows that the days sales uncollected, the gross profit margin and the debt-to-equity ratio are the leading variables, and an illustrative walkthrough shows how the SHAP output can be turned into a line-item diagnostic report. The findings indicate that the explainable tree-based models can improve the classification of the high-accrual firm-years compared to the Beneish M-Score, while keeping the interpretability that the auditors and the regulators need.

References

Aljunaid, S. K., Almheiri, S. J., Dawood, H., & Khan, M. A. (2025). Secure and transparent banking: Explainable AI-driven federated learning model for financial fraud detection. Journal of Risk and Financial Management, 18(4), 179. https://doi.org/10.3390/jrfm18040179

Appelbaum, D., Kogan, A., & Vasarhelyi, M. A. (2017). Big data and analytics in the modern audit engagement: Research needs. Auditing: A Journal of Practice & Theory, 36(4), 1-27. https://doi.org/10.2308/ajpt-51684

Arias-Gonzalez, I. P., Serrano-Torres, G. J., Davalos-Mayorga, E. R., & Jimenez-Vargas, N. P. (2026). Explainable artificial intelligence in accounting and financial auditing: A systematic review. Frontiers in Artificial Intelligence, 9, 1823263. https://doi.org/10.3389/frai.2026.1823263

Bao, Y., Ke, B., Li, B., Yu, Y. J., & Zhang, J. (2020). Detecting financial statement fraud using machine learning. Review of Accounting Studies, 25(1), 114-155. https://doi.org/10.1007/s11142-019-09516-0

Barredo Arrieta, A., Díaz-Rodríguez, N., Del Ser, J., Bennetot, A., Tabik, S., Barbado, A., Garcia, S., Gil-Lopez, 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

Beneish, M. D. (1999). The detection of earnings manipulation. Financial Analysts Journal, 55(5), 24-36. https://doi.org/10.2469/faj.v55.n5.2296

Bertomeu, J., Cheynel, E., Floyd, E., & Pan, W. (2021). Using machine learning to detect misstatements. Review of Accounting Studies, 26(2), 468-519. https://doi.org/10.1007/s11142-020-09563-8

Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5-32. https://doi.org/10.1023/A:1010933404324

Bussmann, N., Giudici, P., Marinelli, D., & Papenbrock, J. (2020). Explainable AI in fintech risk management. Frontiers in Artificial Intelligence, 3, 26. https://doi.org/10.3389/frai.2020.00026

Cecchini, M., Aytug, H., Koehler, G. J., & Pathak, P. (2010). Detecting management fraud in public companies. Management Science, 56(7), 1146-1160. https://doi.org/10.1287/mnsc.1100.1174

Cerneviciene, J., & Kabasinskas, A. (2024). Explainable artificial intelligence (XAI) in finance: A systematic literature review. Artificial Intelligence Review, 57, 216. https://doi.org/10.1007/s10462-024-10854-8

Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321-357. https://doi.org/10.1613/jair.953

Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785-794). https://doi.org/10.1145/2939672.2939785

Cil, A. E., Buyuktanir, T., & Yildiz, K. (2026). Comprehensive explainable AI approach for audit opinion classification using feed-forward neural networks. Knowledge-Based Systems, 339, 115606. https://doi.org/10.1016/j.knosys.2026.115606

Craja, P., Kim, A., & Lessmann, S. (2020). Deep learning for detecting financial statement fraud. Decision Support Systems, 139, 113421. https://doi.org/10.1016/j.dss.2020.113421

Dechow, P. M., Ge, W., & Schrand, C. (2010). Understanding earnings quality: A review of the proxies, their determinants and their consequences. Journal of Accounting and Economics, 50(2-3), 344-401. https://doi.org/10.1016/j.jacceco.2010.09.001

Dechow, P. M., Ge, W., Larson, C. R., & Sloan, R. G. (2011). Predicting material accounting misstatements. Contemporary Accounting Research, 28(1), 17-82. https://doi.org/10.1111/j.1911-3846.2010.01041.x

Dechow, P. M., Sloan, R. G., & Sweeney, A. P. (1995). Detecting earnings management. The Accounting Review, 70(2), 193-225. http://www.jstor.org/stable/248303

DeLong, E. R., DeLong, D. M., & Clarke-Pearson, D. L. (1988). Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics, 44(3), 837-845. https://doi.org/10.2307/2531595

Faccia, A. (2026). Explainable AI (XAI) in auditing: Bridging the gap between predictive fraud models and regulatory standards. Journal of Risk and Financial Management, 19(5), 311. https://doi.org/10.3390/jrfm19050311

Graham, J. R., Harvey, C. R., & Rajgopal, S. (2005). The economic implications of corporate financial reporting. Journal of Accounting and Economics, 40(1-3), 3-73. https://doi.org/10.1016/j.jacceco.2005.01.002

Hajek, P., & Henriques, R. (2017). Mining corporate annual reports for intelligent detection of financial statement fraud: A comparative study of machine learning methods. Knowledge-Based Systems, 128, 139-152. https://doi.org/10.1016/j.knosys.2017.05.001

Healy, P. M., & Wahlen, J. M. (1999). A review of the earnings management literature and its implications for standard setting. Accounting Horizons, 13(4), 365-383. https://doi.org/10.2308/acch.1999.13.4.365

ICAEW. (2018). Artificial intelligence and the future of accountancy. Institute of Chartered Accountants in England and Wales. https://www.icaew.com/technical/technology/artificial-intelligence/artificial-intelligence-the-future-of-accountancy

Jones, J. J. (1991). Earnings management during import relief investigations. Journal of Accounting Research, 29(2), 193-228. https://doi.org/10.2307/2491047

Kaufman, S., Rosset, S., Perlich, C., & Stitelman, O. (2012). Leakage in data mining: Formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data, 6(4), 1-21. https://doi.org/10.1145/2382577.2382579

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. In Advances in Neural Information Processing Systems 30 (NIPS 2017) (pp. 3146-3154).

Kothari, S. P., Leone, A. J., & Wasley, C. E. (2005). Performance matched discretionary accrual measures. Journal of Accounting and Economics, 39(1), 163-197. https://doi.org/10.1016/j.jacceco.2004.11.002

Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30 (NIPS 2017) (pp. 4765-4774).

Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S.-I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 56-67. https://doi.org/10.1038/s42256-019-0138-9

Perols, J. L., Bowen, R. M., Zimmermann, C., & Samba, B. (2017). Finding needles in a haystack: Using data analytics to improve fraud prediction. The Accounting Review, 92(2), 221-245. https://doi.org/10.2308/accr-51562

Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). "Why should I trust you?": Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 1135-1144). https://doi.org/10.1145/2939672.2939778

Roychowdhury, S. (2006). Earnings management through real activities manipulation. Journal of Accounting and Economics, 42(3), 335-370. https://doi.org/10.1016/j.jacceco.2006.01.002

Rudin, C. (2019). Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence, 1(5), 206-215. https://doi.org/10.1038/s42256-019-0048-x

Thanathamathee, P., Sawangarreerak, S., Chantamunee, S., & Mohd Nizam, D. N. (2024). SHAP-instance weighted and anchor explainable AI: Enhancing XGBoost for financial fraud detection. Emerging Science Journal, 8(6), 2404-2430. https://doi.org/10.28991/ESJ-2024-08-06-016

Downloads

Published

2026-06-30

Issue

Section

Articles