Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal
1Framing the ProblemChapter 1

Every payments processor sits on the authorization path. When a card is swiped or a checkout submits, the network has a few hundred milliseconds to decide whether the transaction goes through. Inside that budget, a fraud detection system has to judge whether this looks like a stolen card, an account takeover, or a legitimate purchase that just looks unusual, without rejecting real customers along the way.

What we are deciding and for whom

The primary surface is inline scoring of every authorization on the processor's auth path. The Fraud Scoring Service returns one of four actions within ~50 ms p99: approve, decline, step-up via 3-D Secure, or send to a manual review queue. The consumers are the authorization service, the 3-D Secure service, and the analyst review queue. The objective is to minimize expected business cost in dollars per authorization, where false declines often cost more than the fraud they prevent.

The ML problem is binary classification with calibrated output. Given the transaction, account, device, merchant, history, and graph signals, predict P(fraud∣x)P(\text{fraud} \mid x) and map it to one of four actions through a per-segment threshold policy. Calibration matters more than usual because the score picks among four actions whose dollar costs are very different: a 4% fraud probability on a $5 MCC (merchant category code) transaction is not the same decision as 4% on a $2k electronics purchase.

Four pressures make this hard. Inference must finish within a tight real-time budget. Chargebacks arrive 30-90 days later, so recent days are not label-clean. The model only sees outcomes for approved transactions, so naive retraining reinforces what it already catches. Meanwhile, fraud rings can change tactics within days.

The system is a cascade plus an offline loop: rule pre-filter, feature fetch, hybrid scorer (gradient-boosted trees plus sequence and graph branches), action mapper applying per-MCC thresholds, all inside ~50 ms. Offline, events flow through Kafka into Flink (velocity features) and Spark (training sets and graph features) for daily retraining and canary rollout.

Your progressLogin to save progress
Spot an issue or have a suggestion?