DuckerMaster's picture
Update README.md
bc918a8 verified
|
Raw History Blame Contribute Delete
1.28 kB

A newer version of the Streamlit SDK is available: 1.65.0

Upgrade
metadata
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