Real-Time Fraud Risk Scoring through Behavioral Sequence Analysis: An Explainable Approach for online Transaction Security

Main Article Content

Minghua Deng

Abstract

Payment fraud continues to evolve, resulting in global losses of approximately $33.83 billion last year alone. We developed a system capable of highly effective fraud detection by analyzing spending behavior over time rather than focusing solely on individual transactions. While fraudsters can imitate a single purchase, it is far more difficult for them to replicate an entire behavioral history. Our key innovation lies in a hierarchical architecture that combines modified gated recurrent units (GRUs) with gradient boosting methods, allowing each component to perform its specialized role. The proposed system achieves an area under the precision-recall curve (AUPRC) of 0.876 and a Recall@1%FPR of 0.834 on the IEEE-CIS dataset comprising 590,540 transactions. In production-level stress tests, it sustains throughput up to 12,000 transactions per second under peak load conditions (with an average daily volume of approximately 3.4 million across partner institutions) and maintains a median latency of 47.3 ms (95% CI: [45.8, 48.9] ms; p95: 67.2 ms), remaining consistently below the 50 ms operational threshold. The system's core mechanism involves a temporal-gap-aware gating module within the modified GRU encoder that captures irregular intervals between purchases, effectively distinguishing genuine consumer behavior from fraudulent activity. This encoder is integrated with an ensemble of LightGBM, XGBoost, and Random Forest models, enabling robust voting-based decision fusion. To balance interpretability and performance, the system employs selective explainability-providing gradient-based attributions and counterfactual explanations only for the 5% of transactions flagged as high-risk-thereby ensuring regulatory transparency without compromising speed. Extensive validation using real banking datasets from three financial institutions confirmed its reliability and practicality. While not flawless, the system demonstrates sufficient robustness and interpretability for large-scale deployment-an outcome that ultimately matters more than theoretical optimality when millions of dollars are at stake each day.

Article Details

Section

Articles

How to Cite

Real-Time Fraud Risk Scoring through Behavioral Sequence Analysis: An Explainable Approach for online Transaction Security. (2025). Journal of Sustainability, Policy, and Practice, 1(4), 130-142. https://schoalrx.com/index.php/jspp/article/view/61

References

1. G. Liu, J. Guo, Y. Zuo, J. Wu, and R. Y. Guo, "Fraud detection via behavioral sequence embedding," Knowledge and Information Systems, vol. 62, no. 7, pp. 2685-2708, 2020.

2. J. Guo, G. Liu, Y. Zuo, and J. Wu, "Learning sequential behavior representations for fraud detection," In 2018 IEEE International Conference on Data Mining (ICDM), November, 2018, pp. 127-136. doi: 10.1109/icdm.2018.00028

3. R. Zhang, F. Zheng, and W. Min, "Sequential behavioral data processing using deep learning and the Markov transition field in online fraud detection," arXiv preprint arXiv:1808.05329, 2018.

4. C. Liu, Y. Gao, L. Sun, J. Feng, H. Yang, and X. Ao, "User behavior pre-training for online fraud detection," In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, August, 2022, pp. 3357-3365. doi: 10.1145/3534678.3539126

5. Y. Xie, G. Liu, C. Yan, C. Jiang, M. Zhou, and M. Li, "Learning transactional behavioral representations for credit card fraud detection," IEEE Transactions on Neural Networks and Learning Systems, vol. 35, no. 4, pp. 5735-5748, 2022.

6. H. Lin, G. Liu, J. Wu, Y. Zuo, X. Wan, and H. Li, "Fraud detection in dynamic interaction network," IEEE Transactions on Knowledge and Data Engineering, vol. 32, no. 10, pp. 1936-1950, 2019. doi: 10.1109/tkde.2019.2912817

7. S. X. Rao, S. Zhang, Z. Han, Z. Zhang, W. Min, Z. Chen, and C. Zhang, "xFraud: Explainable fraud transaction detection," arXiv preprint arXiv:2011.12193, 2020.

8. S. Rani, and A. Mittal, "Securing digital payments: A comprehensive analysis of AI-driven fraud detection with real-time transaction monitoring and anomaly detection," In 2023 6th International Conference on Contemporary Computing and Informatics (IC3I), September, 2023, pp. 2345-2349.

9. R. Khurana, "Fraud detection in e-commerce payment systems: The role of predictive AI in real-time transaction security and risk management," International Journal of Applied Machine Learning and Computational Intelligence, vol. 10, no. 6, pp. 1-32, 2020.

10. M. Islam, "Fraud detection in banking using real-time data stream analytics and AI for improved security and transaction monitoring," Tuijin Jishu / Journal of Propulsion Technology, vol. 46, no. 2, p. 2025, 2025.

11. F. Van Wyk, Y. Wang, A. Khojandi, and N. Masoud, "Real-time sensor anomaly detection and identification in automated vehicles," IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 3, pp. 1264-1276, 2019.

12. A. Immadisetty, "Real-time fraud detection using streaming data in financial transactions," Journal of Recent Trends in Computer Science and Engineering (JRTCSE), vol. 13, no. 1, pp. 66-76, 2025. doi: 10.70589/jrtcse.2025.13.1.9