Abstract
The widespread adoption of Unified Payments Interface (UPI) in India has revolutionized digital commerce, yet simultaneously exposed users to evolving threats including transaction spoofing, account takeovers, and coordinated fraud patterns. Existing detection mechanisms largely rely on static rule engines or single-model classifiers that fail to adapt to dynamic fraud behavior. This project proposes a dual-model fraud detection architecture combining Random Forest and XGBoost classifiers to evaluate UPI transactions through an ensemble-based risk assessment pipeline. The system analyzes transactional signals including payment amount, temporal frequency, device fingerprint, geographic origin, and behavioral consistency to generate a composite risk score per transaction. Unlike single-classifier approaches, the ensemble strategy leverages Random Forest's robustness against overfitting alongside XGBoost's gradient-boosted precision, improving detection reliability across both common and edge-case fraud scenarios. Transactions surpassing a dynamically computed risk threshold are automatically flagged, delayed, or blocked before settlement. A key contribution of this work is a centralized real-time monitoring dashboard that visualizes live transaction streams, risk score distributions, userlevel threat profiles, and instant alerts, enabling both system administrators and financial analysts to respond proactively. The proposed architecture is designed for scalability within India's UPI ecosystem, offering a conceptual framework for integrating intelligent fraud prevention into existing payment infrastructure without disrupting transaction speed or user experience.
Keywords
UPI Fraud Detection, Random Forest, XGBoost, Ensemble Learning, Risk Scoring, Real-time Monitoring, Isolation Forest, Feature Engineering
References
[1] National Payments Corporation of India (NPCI). (2024). UPI Annual Report 2023–24. New Delhi: NPCI
Publications.
[2] Reserve Bank of India (RBI). (2023). Annual Report on Payment and Settlement Systems. Mumbai: RBI
Press.
[3] Bolton, R. J., & Hand, D. J. (2002). Statistical Fraud Detection: A Review. Statistical Science, 17(3), 235–
255.
[4] Sahin, Y., & Duman, E. (2011). Detecting Credit Card Fraud by Decision Trees and Support Vector Machines.
Proceedings of the International Multi-Conference of Engineers and Computer Scientists, 1, 442–447.
[5] Dal Pozzolo, A., Boracchi, G., Caelen, O., Alippi, C., & Bontempi, G. (2017). Credit Card Fraud Detection:
A Realistic Modeling and a Novel Learning Strategy. IEEE Transactions on Neural Networks and Learning
Systems, 29(8), 3784–3797.
[6] Fiore, U., De Santis, A., Perla, F., Zanetti, P., & Palmieri, F. (2019). Using Generative Adversarial Networks
for Improving Classification Effectiveness in Credit Card Fraud Detection. Information Sciences, 479, 448–455.
[7] Jha, S., Chaurasia, S., & Shrivastava, A. (2022). Graph Neural Networks for Financial Fraud Detection: A
Survey. Expert Systems with Applications, 201, 117077.
[8] Sharma, V., & Jain, P. (2021). UPI Fraud Detection: A Hybrid Rule-ML Framework. International Journal of
Advanced Computer Science and Applications, 12(5), 78–86.
[9] Gupta, R., Mehta, S., & Bhardwaj, A. (2022). Supervised Machine Learning for UPI Transaction
Classification. Proceedings of the IEEE International Conference on Signal Processing and Communications
(SPCOM), 1–6.
[10] Reddy, K. S., Rao, G. N., & Prasad, V. (2023). Behavioral Biometrics and Device Fingerprinting for UPI
Fraud Detection. Journal of Cybersecurity and Privacy, 3(2), 145–163.
[11] Phua, C., Lee, V., Smith, K., & Gayler, R. (2010). A Comprehensive Survey of Data Mining-based Fraud
Detection Research. arXiv preprint arXiv:1009.6119.
Publications.
[2] Reserve Bank of India (RBI). (2023). Annual Report on Payment and Settlement Systems. Mumbai: RBI
Press.
[3] Bolton, R. J., & Hand, D. J. (2002). Statistical Fraud Detection: A Review. Statistical Science, 17(3), 235–
255.
[4] Sahin, Y., & Duman, E. (2011). Detecting Credit Card Fraud by Decision Trees and Support Vector Machines.
Proceedings of the International Multi-Conference of Engineers and Computer Scientists, 1, 442–447.
[5] Dal Pozzolo, A., Boracchi, G., Caelen, O., Alippi, C., & Bontempi, G. (2017). Credit Card Fraud Detection:
A Realistic Modeling and a Novel Learning Strategy. IEEE Transactions on Neural Networks and Learning
Systems, 29(8), 3784–3797.
[6] Fiore, U., De Santis, A., Perla, F., Zanetti, P., & Palmieri, F. (2019). Using Generative Adversarial Networks
for Improving Classification Effectiveness in Credit Card Fraud Detection. Information Sciences, 479, 448–455.
[7] Jha, S., Chaurasia, S., & Shrivastava, A. (2022). Graph Neural Networks for Financial Fraud Detection: A
Survey. Expert Systems with Applications, 201, 117077.
[8] Sharma, V., & Jain, P. (2021). UPI Fraud Detection: A Hybrid Rule-ML Framework. International Journal of
Advanced Computer Science and Applications, 12(5), 78–86.
[9] Gupta, R., Mehta, S., & Bhardwaj, A. (2022). Supervised Machine Learning for UPI Transaction
Classification. Proceedings of the IEEE International Conference on Signal Processing and Communications
(SPCOM), 1–6.
[10] Reddy, K. S., Rao, G. N., & Prasad, V. (2023). Behavioral Biometrics and Device Fingerprinting for UPI
Fraud Detection. Journal of Cybersecurity and Privacy, 3(2), 145–163.
[11] Phua, C., Lee, V., Smith, K., & Gayler, R. (2010). A Comprehensive Survey of Data Mining-based Fraud
Detection Research. arXiv preprint arXiv:1009.6119.