Batch financial risk scoring and anomaly detection pipeline using Python, SQL, and Isolation Forest.
This project analyzes 300 synthetic transaction records and produces a scored risk queue for analyst review. It combines rule-based controls with Isolation Forest anomaly detection to identify transactions that deserve escalation.
Kafka and AWS are documented only as production architecture designs in docs/architecture/. They are not implemented in this local demo.
| Metric | Value |
|---|---|
| Transactions processed | 300 |
| Transactions flagged for escalation | 24 |
| Isolation Forest precision | 0.81 |
| Isolation Forest recall | 0.74 |
| Risk Tier | Count |
|---|---|
| Low | 242 |
| Medium | 57 |
| High | 1 |
pip install -r requirements.txt
python scripts/risk_monitor.pySynthetic transaction data
-> Rule-based risk indicators
-> Velocity and region risk scoring
-> Isolation Forest anomaly detection
-> Escalation queue output
-> SQL monitoring views