techdiagrams.net
← All templates

Real-time fraud detection pipeline

Streaming velocity features, a champion model with a shadow challenger, a rules fallback for model timeouts, and a human review queue for the gray zone.

Open in editor — free, no login Download JSON
eventsfeaturesscore requestvelocity features ≤10msscore ≤50msmirrored — result logged, ignoreddeadline miss → rules decideconfidence 0.4–0.7labeled outcomestraining data for v43Transaction Streamevery card swipeWindow Aggregatorsliding 5m / 1h / 24hFeature Storeonline + offline parityFraud Scorerdecision ≤80msChampion Modelv41 — decidesChallengerv42 — shadow onlyRules Fallbackdeterministic · always answersReview Queuegray-zone scoresAnalystslabel & decideCase DBlabels → retrainingthe loop: challenger shadows today's traffic,analysts label the gray zone, both feed the nextchampion — the model improves without everbeing trusted blindly.

What this design does

Fraud systems fail in two directions: block good customers or approve criminals — and both happen when the model is treated as an oracle instead of a component. This pipeline computes velocity features over sliding windows, scores with a champion model while a challenger shadow-scores the same traffic for offline comparison, falls back to deterministic rules when the model misses its deadline, and routes low-confidence decisions to human analysts whose labels feed the next retrain.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.