All work

21AI · Machine learning · Fintech

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.

Screens

Live stream with a card-testing burst and its explanation
Case detail: assignment, decision and why it was flagged
Model page: PR curve, confusion matrix, thresholds
Feature importance, recall by pattern, drift and rules
Audit trail after an analyst confirmed fraud

Have a project in mind?

Send the brief through Workana. The reply comes with questions and a written scope before any quote, so the price reflects the actual work.

Hire me on Workana

What helps in a brief: what the finished thing must do, what already exists (site, store, server, accounts), your deadline and budget range, and two or three references you like.