Student project for fraud detection research. Not a banking service.
The standalone React app at upi-frauddetection.netlify.app gates actions behind account login, and its free-tier Render API (
upi-fraud-detection-qdxe.onrender.com) is currently offline (HTTP 502 / timeout). This explorer displays verified notebook evaluation metrics (26,393 synthetic records) alongside a transparent educational risk simulator — never enter real UPI PINs, passwords, or banking details.
26,393
Transactions Evaluated
21,114 train / 5,279 test (17.22% fraud)
97.12%
Random Forest Accuracy
F1 91.29% · ROC-AUC 0.9570
97.04%
XGBoost Accuracy
ROC-AUC 0.9591 (highest discrimination)
18
Engineered Signals
Led by amount spike z-score (44.75%)
Educational Risk Pattern Simulator (Synthetic Demo Inputs)
Test synthetic scenarios weighted by top model signals (spending spike ratio, retry count, session speed) to understand how fraud classifiers flag risk patterns. Uses deterministic educational weights locally because the external Render ML server is inactive.
Educational Pattern Score (Synthetic Only)
12%
LOW RISK PATTERN
Real payment fraud in India should be reported immediately via helpline 1930 or cybercrime.gov.in.
Plain-English Metric Guide
Accuracy
Shows how often the model makes the correct prediction overall.
Precision
Shows how often flagged alerts turn out to be genuinely suspicious transactions.
Recall
Shows what share of actual suspicious transactions the model successfully caught.
F1 & ROC-AUC
F1 balances precision & recall; ROC-AUC shows how cleanly suspicious and safe transfers separate.
Model Performance Comparison (n_test = 5,279)
What this chart shows: Tree ensembles (Random Forest & XGBoost) achieve ~97% test accuracy and 0.957–0.959 ROC-AUC on held-out synthetic transactions.
| Model | Acc. | Prec. | Recall | F1 | AUC |
|---|
Top-10 Feature Importances (XGBoost, %)
What this chart shows: Sudden spend spikes relative to a user's normal baseline (
amount_zscore) and failed verification retries contribute the strongest fraud signals.Unsupervised Anomaly Benchmark: Isolation Forest
Without labeled fraud tags during training, Isolation Forest flagged 653 transactions (590 true anomalies, 63 false alarms; ROC-AUC 0.8173).