Fraud and Risk ML Systems

Fraud and risk ML systems — the decision systems between RegTech's regulatory layer and the fintech handbook's money rails. The fraud problem (five textbook inversions: an adversary that adapts to the model, tiny base rates with asymmetric error currencies, labels that arrive late and lie a little, decisions that censor their own training data, and a milliseconds budget in the authorization path — fraud systems as decision factories, not classifiers), rules and models (rules for minutes-fast reaction, exact policy, explainability, and blind spots — with lifecycle discipline; GBDTs as the tabular workhorse with deep models at the embedding edges; composition as versioned, golden-tested code), features and feature stores (velocities, histories, graph neighborhoods, derived scores — and point-in-time correctness against feature time-travel, solved by one event-time definition materialized offline and online with parity checks and freshness SLOs), scoring and thresholds (precision at review capacity and recall at FP budget on time-split segmented data; calibration maintained against drift; thresholds as cost derivations moving with amount, extended into the approve/friction/review/decline ladder), the label problem (maturity horizons, labels as state trajectories, provenance-weighted noise handling, and censoring confronted with bounded exploration booked as data acquisition), drift and adaptation (detection cascaded by speed, responses laddered by cost, validation staged around label delay), humans in the loop (friction as behavior-based separation, review queues as operations and labeling engines with a declared capacity split), and risk in production (staged degradation in the money path, explainability as three products, prevention measured against counterfactual holdouts, loss-rate SLOs). Grounded in Wikipedia (credit card fraud, CNP, anomaly detection, gradient boosting, feature engineering, precision/recall, ROC, chargeback, selection bias, concept drift, adversarial ML, 3-D Secure, active learning, XAI).

8 parts · written by Pratik Dhanave. Start with Part 1 →

← All series · Blog home

Part 1 · ·4 min read

The Fraud Problem — Adversarial, Asymmetric, and Allergic to Textbook ML

Fraud detection looks like a classification problem and behaves like nothing else in machine learning: the adversary adapts to your model, the classes are wildly imbalanced, the labels arrive months late, your own decisions censor the data you learn from, and both kinds of error cost real money in different currencies. This series builds fraud and risk systems from first principles — and this opening post is about why the textbook assumptions fail, because every architecture decision downstream flows from these five inversions.

Fraud inverts the textbook five ways: an adversary that adapts to your model, tiny base rates with asymmetric error currencies, labels that arrive months late and partly wrong, decisions that censor their own training data, and a milliseconds budget in the payment path. The answer is a decision system, not a classifier. Opens the series.

Part 2 · ·4 min read

Rules and Models — Why Fraud Systems Need Both

Every few years someone declares rules dead — just let the model learn everything — and every production fraud team quietly keeps both, because rules and models are good at different, complementary things: rules deploy in minutes against the attack happening right now, encode hard policy exactly, and explain themselves completely; models find the subtle multidimensional patterns no human would write down. The engineering question isn't which — it's how the two compose into one decision.

Rules deploy in minutes against live attacks, encode policy exactly, explain themselves completely, and hold the blind spots; models (GBDTs as the tabular workhorse) own the unstateable patterns. Composition makes them one decision: policy first, scores next, cost-thresholded logic last — versioned and golden-tested.

Part 3 · ·4 min read

Features and Feature Stores — Where Fraud ML Is Actually Won

Ask practitioners where fraud detection quality comes from and the answer is uniform: not the model — the features. Velocities, histories, graph signals, and their freshness carry the signal; the model just reads it. And ask where production fraud ML fails and the answer is equally uniform: the gap between how features were computed in training and how they're computed at serving time. This post covers both — the feature families that catch fraud, and the feature-store discipline that keeps them honest.

Signal lives in velocities (second-fresh streaming aggregates), histories, precomputed graph neighborhoods, and composed scores. The characteristic failure is training/serving skew — feature time-travel leaking the future into training. The feature store fixes it by construction: one event-time definition, two materializations.

Part 4 · ·4 min read

Scoring, Thresholds, and the Cost of Errors — Where ML Meets the P&L

A fraud model outputs a probability; the business needs a decision; and the line between them — the threshold — is where machine learning stops and economics begins. Set it by gut and you've made your most consequential business decision by vibes. This post builds the machinery that makes the error trade-off explicit: metrics that survive extreme imbalance, calibration that makes scores mean something, and thresholds derived from costs rather than from tradition.

At 0.1% base rates ROC-AUC flatters; use precision at review capacity and recall at FP budget on time-split, segmented data. Calibration makes scores probabilities; thresholds become cost derivations that move with amount and segment, extended into a ladder across approve, friction, review, and decline.

Part 5 · ·4 min read

The Label Problem — Delay, Noise, and the Data Your Own Decisions Hide

Supervised learning assumes someone hands you the truth. In fraud, the truth arrives 30 to 90 days late, labeled by processes with their own agendas, for only the transactions you approved — and silence means nothing, because unreported fraud and un-disputed legitimate purchases are indistinguishable until they aren't. Label engineering is the least glamorous layer of a fraud system and the one that decides whether everything upstream learns reality or a convenient fiction.

Labels are an engineered pipeline: maturity horizons (recent silence is not legitimacy), labels as versioned state trajectories, early proxies weighted then reconciled; noise handled by provenance; and censoring confronted with bought data — bounded exploration of would-be declines booked as data acquisition cost.

Part 6 · ·4 min read

Drift and Adaptation — Defending Against an Adversary Who Read Your Model

Ordinary ML drift is weather — the world changes and models age. Fraud drift is war — the distribution shifts precisely because you deployed, as attackers probe the new boundary and route around it. A fraud system's long-run performance is therefore determined less by any single model than by its adaptation loop: how fast drift is detected, how fast a response ships, and how safely the response is validated against labels that haven't arrived yet. This post builds that loop.

Against an adapting adversary the system is the loop: detection cascaded by speed (input drift, score drift, proxy labels, chargeback truth), responses laddered by cost (expiring tactical rules in minutes, threshold posture, cadence-plus-trigger retrains, shadow challengers), validation staged around label delay.

Part 7 · ·4 min read

Humans in the Loop — Review Queues, Friction Ladders, and the Third Answer

The best fraud decision is often neither yes nor no but "prove it" — a verification step that fraudsters abandon and legitimate customers clear in seconds. And for the genuinely ambiguous rest, trained human reviewers remain the highest-precision classifier available, at a unit cost that makes their deployment an optimization problem. This post builds the human layer: friction as a decision outcome, review queues as both safety valve and labeling engine, and the operations that keep both honest.

Friction separates by behavior — fraudsters abandon challenges, customers clear them — priced by abandonment and bent by 3DS liability shift. Review queues run as operations: capacity-driven routing, value-tiered SLAs, reviewers measured like models — and a declared capacity split for the queue's second job: labeling.

Part 8 · ·4 min read

Risk in Production — Latency Budgets, Explainability, and Proving You Prevented Anything

The last mile of a fraud system is operational: score inside the authorization window without becoming the payment path's weakest dependency, explain decisions to customers, auditors, and your own reviewers, and answer the question every budget cycle asks — how much fraud did all this actually prevent, given that prevented fraud is precisely the thing that didn't happen? This closing post is the production discipline that makes the whole stack deployable, defensible, and fundable.

Production risk: the money-path budget (precomputed features, staged degradation, decisions stamped with full configuration), explainability as three products (reviewers, customers and regulators, governance with disparity monitoring), and prevention measured against counterfactuals — holdout slices, an estimated ledger, loss-rate SLOs. Closes the series.

This series is part of a larger body of work by Pratik Dhanave, an Agentic AI Architect writing about production AI systems, distributed systems, and cloud-native engineering. Explore all course series, browse every post, or find topics via the tag index.