File size: 1,280 Bytes
1613e73 6e27e66 1613e73 6e27e66 5a8e22b 6e27e66 5a8e22b bc918a8 1613e73 6e27e66 1613e73 6e27e66 1613e73 6e27e66 5a8e22b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ---
title: Fraud Detection Multi-Model
emoji: π‘οΈ
colorFrom: red
colorTo: blue
sdk: streamlit
sdk_version: 1.57.0
app_file: app.py
pinned: true
suggested_hardware: cpu-basic
python_version: 3.11
---
# Fraud Detection β Multi-Model Live Monitor
Real-time transaction fraud detection using a 3-layer ensemble pipeline.
## Architecture
```
Transaction
β
βΌ
Layer 1 β Hard Rules
β Rule 1: Accessibility + Remote App β Block immediately
β Rule 2: Hesitation > 45s + New recipient β bias score β₯ 0.6
β
βΌ
Layer 2 β Ensemble Scoring
β Model A (Sender Behavioral): LightGBM / XGBoost
β Model B (Payee Risk Profile): LightGBM
β final_score = 0.3 Γ prob_a + 0.7 Γ prob_b
β
βΌ
Layer 3 β Threshold Decision
score β₯ 0.80 β Block
score β₯ 0.50 β Alert + OTP
score < 0.50 β Pass
```
## Files required
| File | Purpose |
|------|---------|
| `model_a_pipeline.joblib` | Sender behavioral model |
| `model_b_pipeline.joblib` | Payee risk profile model |
| `config.json` | Feature list, weights, thresholds |
| `payee_profile_store.csv` | Historical payee lookup table |
## GitHub
[Fraud-Detection-Multi-Model](https://github.com/PlamGG/Fraud-Detection-Multi-Model-) |