Ledgerwatch
Fraud and anomaly detection dashboard
Scores every card payment live, explains each alert feature by feature, and gives analysts a case queue with a full audit trail.
Concept project · fictional brand and sample dataApp in English
- 29
- automated tests passing
- 0.854
- PR-AUC on held-out test days
- 81.7%
- of alerts are real fraud at the tuned threshold (rules alone: 11.6 %)
- 77.6%
- of fraud caught at that threshold (rules alone: 51.9 %)
The brief
Card fraud is rare and comes in bursts: a stolen card tested with a few one-dollar charges, then cashed out on gift cards; a hijacked account that changes its address and orders electronics at 3 a.m. Fixed rules catch some of it but bury the team in false alarms, and a black-box score catches more but nobody can say why a payment was stopped.
What I built
- Live transaction stream over WebSockets with a risk score per payment, filters, speed control and a ticker tape
- Explanation panel: fraud probability against the thresholds, the top feature contributions, the rules that fired and the anomaly score
- Hybrid decision: gradient boosting, an isolation forest as a safety net and seven readable rules, with thresholds tuned on validation weeks
- Case queue that groups alerts on the same card, with assignment, notes, confirm fraud or false positive, and an audit trail
- Model page with the PR curve, confusion matrix, threshold tuning, recall per fraud pattern and a drift monitor
- Replay of the held-out test days and scenario injection for demos
The decision that mattered
Explanations that add up to the score
Each tree's contribution is credited to the feature it split on, so the bars in the explanation panel sum exactly to the model's log-odds; training and the tests both assert it. The isolation forest was tried as an input to the model, added nothing on validation and hid the readable reasons, so it runs beside it instead and sends only the top 0.3 % of anomalies to review.