Skip to main content

Advertisement

Log in

Transaction fraud detection via attentional spatial–temporal GNN

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

The detection of fraudulent transactions remains a critical challenge in the financial services industry, further intensified by the rapid growth in transaction volumes and the increasingly sophisticated tactics of fraudsters. Traditional methods, including current graph neural networks, have shown potential but often fall short in accurately detecting fraud due to the ability of fraudsters to mimic legitimate behaviors, conceal relationships, and operate within narrow time frames. These limitations necessitate the development of more effective detection techniques. This study is motivated by the need to overcome the inherent limitations of existing GNN-based methods in fraud detection. We propose an innovative approach that enhances local information aggregation and incorporates global insights through graph reconstruction, addressing both the structural and temporal complexities introduced by fraudulent activities. Our method utilizes attention mechanisms to capture spatial–temporal relationships within transaction networks, emphasizing crucial connections between nodes to improve detection efficiency. Key innovations include attentional intra-relation aggregation, which differentiates the strength of connections between neighboring nodes, and attentional inter-relation aggregation, which prioritizes nodes that share a higher number of common neighbors. We validate the effectiveness of the proposed method using two benchmark datasets, YelpChi and Amazon, as well as a real-world dataset. Experimental results demonstrate that our approach significantly outperforms existing techniques, achieving notable improvements in AUC, F1-macro, and Gmean metrics. These results highlight the importance of addressing the current limitations in GNN-based methods and demonstrate the potential of our approach to provide a more robust solution for financial fraud detection.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Algorithm 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

Data availability

No datasets were generated or analyzed during the current study.

References

  1. Xie Y, Liu G, Yan C, Jiang C, Zhou M, Li M (2022) Learning transactional behavioral representations for credit card fraud detection. IEEE transactions on neural networks and learning systems. IEEE Trans Neural Netw Learn Sys 35:5735–5748. https://doi.org/10.1109/TNNLS.2022.3208967

    Article  Google Scholar 

  2. The Nilson Report. [Online]. Available: https://nilsonreport.com/mention/1313/1link

  3. Cheng D, Wang X, Zhang Y, Zhang L (2020) Graph neural network for fraud detection via spatial-temporal attention. IEEE Trans Knowl Data Eng 34:3800–3813. https://doi.org/10.1109/TKDE.2020.3025588

    Article  MATH  Google Scholar 

  4. Wang D, Lin J, Cui P, Jia Q, Wang Z, Fang Y, Yu Q, Zhou J, Yang S, Qi Y (2020) A semi-supervised graph attentive network for financial fraud detection. In 2019 IEEE International Conference on Data Mining (ICDM) 598–607. https://doi.org/10.1109/ICDM.2019.00070.

  5. Liu C, Sun L, Ao X, Feng J, He Q, Yang H (2021) Intention-aware heterogeneous graph attention networks for fraud transactions detection. In: Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, 3280–3288. https://doi.org/10.1145/3447548.3467142.

  6. Zhong Q, Liu Y, Ao X, Hu B, Feng J, Tang J, He Q (2020) Financial defaulter detection on online credit payment via multi-view attributed heterogeneous information network. In Proceedings of the Web Conference 785–795. https://doi.org/10.1145/3366423.3380159.

  7. Zhang J, Lu J, Tang X (2024) Two-stage GNN-based fraud detection with camouflage identification and enhanced semantics aggregation. Neurocomputing 570:127108. https://doi.org/10.1016/j.neucom.2023.127108

    Article  Google Scholar 

  8. Dou Y, Liu Z, Sun L, Deng Y, Peng H, Yu PS (2020) Enhancing graph neural network-based fraud detectors against camouflaged fraudsters. In: Proceedings of the 29th ACM International Conference on Information & Knowledge Management 315–324. https://doi.org/10.1145/3340531.3411903.

  9. Liu Z, Dou Y, Yu PS, Deng Y, Peng H (2020) Alleviating the inconsistency problem of applying graph neural network to fraud detection. In: Proceedings of the 43rd international ACM SIGIR Conference on Research and Development in Information Retrieval 4:1569–1572. https://doi.org/10.1145/3397271.3401253.

  10. Liu Y, Ao X, Qin Z, Chi J, Feng J, Yang H, He Q (2021) Pick and choose: a GNN-based imbalanced learning approach for fraud detection. In: Proceedings of the Web Conference 3168–3177. https://doi.org/10.1145/3442381.3449989.

  11. Shi F, Cao Y, Shang Y, Zhou Y, Zhou C, Wu J (2022) H2-fdetector: A GNN-based fraud detector with homophilic and heterophilic connections. In: Proceedings of the ACM Web Conference 1486–1494. https://doi.org/10.1145/3485447.3512195.

  12. Liu Y, Sun Z, Zhang W (2023) Improving fraud detection via hierarchical attention-based graph neural network. J Inform Sec Appl 72:103399. https://doi.org/10.1016/j.jisa.2022.10339

    Article  MATH  Google Scholar 

  13. Wang X, Ji H, Shi C, Wang B, Ye Y, Cui P, Yu PS (2019) Heterogeneous graph attention network. In: the World Wide Web Conference 2022–2032. https://doi.org/10.48550/arxiv.1903.07293.

  14. Chen J, Chen Q, Jiang F, Guo X, Sha K, Wang Y (2024) SCN_GNN: a GNN-based fraud detection algorithm combining strong node and graph topology information. Expert Syst Appl 237:121643. https://doi.org/10.1016/j.eswa.2023.121643

    Article  Google Scholar 

  15. Wu J, Hu R, Li D, Ren L, Huang Z, Zang Y (2024) Beyond the individual: an improved telecom fraud detection approach based on latent synergy graph learning. Neural Netw 169:2031. https://doi.org/10.1016/j.neunet.2023.10.019

    Article  MATH  Google Scholar 

  16. Lu M, Han Z, Rao SX, Zhang Z, Zhao Y, Shan Y, Raghunathan R, Zhang C, Jiang J (2022) Bright-graph neural networks in real-time fraud detection. In: Proceedings of the 31st ACM International Conference on Information & Knowledge Management 3342–3351. https://doi.org/10.1145/3511808.3557136.

  17. Singh K, Tsai YC, Li CT, Cha M, Lin SD (2023) GraphFC: Customs Fraud Detection with Label Scarcity. In: Proceedings of the 32nd ACM International Conference on Information and Knowledge Management. 4829–4835. https://doi.org/10.1145/3583780.3614690.

  18. Van Belle R, Van Damme C, Tytgat H, De Weerdt J (2022) Inductive graph representation learning for fraud detection. Expert Syst Appl 193:116463. https://doi.org/10.1016/j.eswa.2021.116463

    Article  Google Scholar 

  19. Zeng Y, Tang J (2021) RLC-GNN: An improved deep architecture for spatial-based graph neural network with application to fraud detection. Appl Sci 11:5656. https://doi.org/10.3390/app11125656

    Article  MATH  Google Scholar 

  20. Rao SX, Zhang S, Han Z, Zhang Z, Min W, Chen Z, Shan Y, Zhao Y, Zhang C (2020) xFraud: explainable fraud transaction detection. arXiv preprint arXiv:2011.12193. https://doi.org/10.14778/3494124.3494128.

  21. Li Y, Cao J, Xu Y, Zhu L, Dong ZY (2024) Deep learning based on transformer architecture for power system short-term voltage stability assessment with class imbalance. Renew Sustain Energy Rev 189:113913. https://doi.org/10.1016/j.rser.2023.113913

    Article  MATH  Google Scholar 

  22. Kim GB, Kim JY, Lee JA, Norsigian CJ, Palsson BO, Lee SY (2023) Functional annotation of enzyme-encoding genes using deep learning with transformer layers. Nat Commun 14:7370. https://doi.org/10.1038/s41467-023-43216-z

    Article  MATH  Google Scholar 

  23. Fu S, Gao X, Zhai F, Li B, Xue B, Yu J, Meng Z, Zhang G (2024) A time series anomaly detection method based on series-parallel transformers with spatial and temporal association discrepancies. Inf Sci 657:119978. https://doi.org/10.1016/j.ins.2023.119978

    Article  Google Scholar 

  24. An H, Ma R, Yan Y, Chen T, Zhao Y, Li P, Li J, Wang X, Fan D, Lv C (2024) Finsformer: a novel approach to detecting financial attacks using transformer and cluster-attention. Appl Sci 14:460. https://doi.org/10.3390/app14010460

    Article  MATH  Google Scholar 

  25. Mao X, Liu M, Wang Y (2022) Using GNN to detect financial fraud based on the related party transactions network. Procedia Computer Science 214:351–358. https://doi.org/10.1016/j.procs.2022.11.185

    Article  MATH  Google Scholar 

  26. Meng L, Ren Y, Zhang J (2023) Decoupling Graph Neural Network with Contrastive Learning for Fraud Detection. In: International Conference on Database Systems for Advanced Applications 397–414. https://doi.org/10.1007/978-3-031-30678-5_30.

  27. Tian Y, Liu G (2023) Transaction fraud detection via spatial-temporal-aware graph transformer arXiv preprint arXiv: 2307. https://doi.org/10.48550/arXiv.2307.05121.

  28. Hu S, Zhang Z, Luo B, Lu S, He B, Liu L (2023) BERT4ETH: a pre-trained transformer for ethereum fraud detection. In: Proceedings of the ACM Web Conference 2189–2197. https://doi.org/10.1145/3543507.3583345.

  29. Tang Y, Liu Z (2024) A distributed knowledge distillation framework for financial fraud detection based on transformer. IEEE Access. https://doi.org/10.1109/ACCESS.2024.3387841

    Article  MATH  Google Scholar 

  30. Fan Y, Yeh CC, Chen H, Zheng Y, Wang L, Wang J, Dai X, Zhuang Z, Zhang W (2023) Spatial-temporal graph boosting networks: enhancing spatial-temporal graph neural networks via gradient boosting. In: Proceedings of the 32nd ACM International Conference on Information and Knowledge Management 504–513. https://doi.org/10.1145/3583780.3615066.

  31. Chen JP, Lu P, Yang F, Chen R, Lin K (2022) Medical insurance fraud detection using graph neural networks with spatio-temporal constraints. J Netw Intell 7:480–498

    MATH  Google Scholar 

  32. Hu B, Zhang Z, Shi C, Zhou J, Li X, Qi Y (2019) Cash-out user detection based on attributed heterogeneous information network with a hierarchical attention mechanism. Proceed AAAI Conf Artif Intell 33:946–953. https://doi.org/10.1609/AAAI.V33I01.3301946

    Article  MATH  Google Scholar 

  33. Liu Z, Chen C, Li L, Zhou J, Li X, Song L, Qi Y (2019) Geniepath: Graph neural networks with adaptive receptive paths. Proceed AAAI Conf Artif Intell 33:4424–4431. https://doi.org/10.1609/aaai.v33i01.33014424

    Article  MATH  Google Scholar 

  34. Motie S, Raahemi B (2023) Financial fraud detection using graph neural networks: A systematic review. Expert Syst Appl 204:122156. https://doi.org/10.1016/j.eswa.2023.122156

    Article  MATH  Google Scholar 

Download references

Funding

The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.

Author information

Authors and Affiliations

Authors

Contributions

S. KH. and M. K. contributed to conceptualization of the study and methodology; S. KH. contributed to software and formal analysis; M. K. contributed to data curation and supervision; S. KH., B.T., and M.T. contributed to writing—original draft; B. T. and M. T. contributed to investigation, resources, review, and editing.

Corresponding author

Correspondence to Mehrdad Kargari.

Ethics declarations

Conflict of interest

The authors declare no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Khosravi, S., Kargari, M., Teimourpour, B. et al. Transaction fraud detection via attentional spatial–temporal GNN. J Supercomput 81, 537 (2025). https://doi.org/10.1007/s11227-025-06983-8

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11227-025-06983-8

Keywords