aura-fraud-detection.py
Completed Featured

AURA: Autoencoder Fraud Detection

Label-free fraud detection via reconstruction error

  1. 1// AURA: Autoencoder Fraud Detection
  2. 2export const project = {
  3. 3 status: "completed",
  4. 4 timeline: "2025",
  5. 5 role: "Solo: research & implementation",
  6. 6 language: "Python",
  7. 7 stack: [
  8. 8 "Python",
  9. 9 "PyTorch",
  10. 10 "Autoencoders",
  11. 11 "Anomaly Detection",
  12. 12 "Colab",
  13. 13 ],
  14. 14};

A leakage-free, fully unsupervised detector that beats an Isolation Forest baseline on every metric over 1M records.

  • Trained on 1M records at 1.1% fraud (BAF benchmark)
  • Honest PR-AUC reporting, not misleading accuracy
  • Leakage-free preprocessing; thresholds set on validation

Overview

AURA detects fraudulent bank-account-opening applications without any fraud labels. A deep autoencoder is trained only on legitimate transactions, and anomalies are flagged by high reconstruction error, giving a label-free first-line filter that narrows the review population. It is built on the Bank Account Fraud (BAF, NeurIPS 2022) benchmark: 1,000,000 records at 1.1% fraud.

On the held-out test set the autoencoder reaches ROC-AUC 0.592 and PR-AUC 0.016, beating an Isolation Forest baseline and the random floor on every metric. Average precision is treated as the honest headline for a 1.1%-prevalence problem (a 'never fraud' classifier already scores 98.9% accuracy). The project is a corrected, reproducible rebuild of an earlier course project. It fixes leakage, missing-value sentinels, categorical cardinalities, and thresholding done on validation rather than test.

Key features

  • Deep autoencoder scored by reconstruction error
  • Missing-indicator features + median imputation
  • Isolation Forest baseline for context
  • GPU-ready end-to-end Colab notebook

Notes

/**
* @importance Why it matters

Fraud rarely comes labelled. This shows an unsupervised approach that adds value on a deliberately hard, imbalanced, real-world benchmark.

*/
/**
* @technicality The hard parts

Autoencoder anomaly detection with careful, leakage-free preprocessing (scaling, outlier clipping, missing-value handling) and honest imbalanced-classification evaluation.

*/
/**
* @clarity How it's organised

Config-driven scripts for split → preprocess → train → evaluate, an IEEE-style report, and a documented account of exactly what was fixed versus the original.

*/
Completed
Python Paper Repo