Accounting Anomaly Detection Using Relational Graph Convolutional Networks over Heterogeneous Financial Knowledge Graphs
Abstract
Accounting anomalies can occur because of relational dependencies which can be missed by independent firm-year feature vectors. In this research, the use of a heterogeneous financial knowledge graph along with R-GCN for anomaly detection is considered. Financial data is retrieved from SEC EDGAR filings and US-GAAP XBRL facts in the period 2010–2024. Enforcement releases are used to indicate the periods of misconduct. Graph nodes correspond to firm-years, accounting accounts, executives, auditors, and industries and edges of five relation types connect them. The inputs include thirty-seven financial features and entity embeddings, which are processed with the help of three-layer R-GCN with relation-specific aggregation of messages and then classified with a multi-layer perceptron classifier. Weighted binary cross-entropy is used as the loss function to handle the problem of imbalanced classes. Time-aware graph snapshots and chronological splitting are performed to avoid information leakage. GNNExplainer is utilized to produce explanatory subgraphs which undergo perturbation-based stability assessment. With ten random seeds, the obtained results are as follows: AUPRC – 0.486 ± 0.021, AUROC – 0.913 ± 0.009, F1-score – 0.571 ± 0.018. The performance is better than that of graph-feature XGBoost by 0.065 ± 0.014 in AUPRC. Ablation studies show that removal of auditor relations leads to AUPRC of 0.443 ± 0.020, while removal of temporal relations causes AUPRC of 0.451 ± 0.018. Thus, contribution of relations to detection performance can be seen from ablation results.
References
- Ashtiani, M. N., & Raahemi, B. (2022). Intelligent fraud detection in financial statements using machine learning and data mining: A systematic literature review.IEEE Access, 10, 72504–72525.
- Shahana, T., Lavanya, V., & Bhat, A. R. (2023). State of the art in financial statement fraud detection: A systematic review.Technological Forecasting and Social Change, 192, 122527.
- Schneider, M., & Brühl, R. (2023). Disentangling the black box around CEO and financial information-based accounting fraud detection: Machine learning-based evidence from publicly listed U.S. firms.Journal of Business Economics, 93, 1591–1628.
- Achakzai, M. A. K., & Peng, J. (2023). Detecting financial statement fraud using dynamic ensemble machine learning.International Review of Financial Analysis, 89, 102827.
- Motie, S., & Raahemi, B. (2024). Financial fraud detection using graph neural networks: A systematic review.Expert Systems with Applications, 240, 122156.
- Li, J., Chang, Y., Wang, Y., & Zhu, X. (2023). Tracking down financial statement fraud by analyzing the supplier-customer relationship network.Computers & Industrial Engineering, 178, 109118.
- Cai, S., & Xie, Z. (2024). Explainable fraud detection of financial statement data driven by two-layer knowledge graph.Expert Systems with Applications, 246, 123126.
- Wang, C., Wang, M., Wang, X., Zhang, L., & Long, Y. (2024). Multi-relational graph representation learning for financial statement fraud detection.Big Data Mining and Analytics, 7(3), 920–941.
- Cheng, D., Zou, Y., Xiang, S., & Jiang, C. (2025). Graph neural networks for financial fraud detection: A review.Frontiers of Computer Science, 19(9), 199609.
- Mashiko, S., Kawamata, Y., Nakayama, T., Sakurai, T., & Okada, Y. (2025). Anomaly detection in double-entry bookkeeping data by federated learning system with non-model sharing approach.Scientific Reports, 15, 42208.