A Hybrid Generative Adversarial Network and Random Forest Architecture for Enhanced Fraud Detection in Unified Payments Interface (UPI) Systems

Authors

  • Hiteshkumar M. Nimbark Department of Computer Science and Engineering, Gyanmanjari Innovative University, India
  • Hansiniba P. Jadeja Department of Computer Science and Engineering, Gyanmanjari Innovative University, India
  • Evan Habibani Department of Computer Science and Engineering, Gyanmanjari Innovative University, India

DOI:

https://doi.org/10.65890/dmp-lncse.ICICCS26.181

Keywords:

Generative Adversarial Networks (GAN), Random Forest, Fraud Detection, Class Imbalance Learning, Synthetic Data Generation, Unified Payments Interface (UPI), Ensemble Machine Learning, Financial Cybersecurity

Abstract

Financial fraud in digital payment systems is a major cybersecurity issue. Global losses exceed $32 billion each year, and fraud-detection methods are constantly improving to keep pace with increasingly complex attack patterns. One significant challenge in fraud analytics is the severe class imbalance. Fraudulent transactions make up a very small fraction of total transaction volume. This study introduces a new detection framework that combines Generative Adversarial Networks (GANs) for synthesising minority classes with Random Forest (RF) ensemble learning for strong classification. The GAN part is based on adversarial training methods introduced earlier, with improved stabilisation techniques from recent studies and tabular data modelling strategies from previous research. The Random Forest classifier uses the ensemble approach first defined in earlier work. In this paper, a synthetic dataset featuring 20,000 transactions and 20 engineered features is presented. This set includes transactional, behavioural, device-based, and contextual information. The GAN uses a 100-dimensional latent-space generator and a binary discriminator, trained for 1,000 epochs with the Adam optimiser. We tuned the hyperparameters of the RF classifier using GridSearchCV with 5-fold cross-validation, resulting in the best parameters: n_estimators=100, max_depth=20, and min_samples_split=5. These experiments show an overall accuracy of 97.09%, with balanced precision and recall metrics at 0.97. This outperforms the baseline RF (96.75%), SMOTE-RF (96.82%), and XGBoost (96.91%). Adding 5,000 GAN-synthesised minority samples, generated using adversarial oversampling techniques, increased validation accuracy to 97.12% (p < 0.05, McNemar’s test). Analysis of feature importance showed that geo-location anomaly flags (24.95%) and previous fraudulent behaviour indicators (20.41%) were the most distinguishing attributes. The proposed hybrid GAN-RF framework effectively addresses class imbalance while maintaining computational efficiency and model interpretability. It shows strong promise for use in real-time fraud detection in Unified Payments Interface (UPI) environments.

Downloads

Published

26-07-2026

Conference Proceedings Volume

Section

Articles

How to Cite

M. Nimbark, H. ., P. Jadeja, H. ., & Habibani, E. . (2026). A Hybrid Generative Adversarial Network and Random Forest Architecture for Enhanced Fraud Detection in Unified Payments Interface (UPI) Systems. DMPedia Lecture Notes in Computer Science & Engineering, ICICCS26, 1-12. https://doi.org/10.65890/dmp-lncse.ICICCS26.181