Design an ML Fraud Detection System
Understanding the Problem
💳 What is an ML fraud detection system? It is a set of models that score events (a card payment, a login, a payout request) by how likely they are to be fraudulent, and a decision layer that turns those scores into actions: approve, decline, send to a human, or ask the user to prove who they are. Payment companies, banks, marketplaces and wallets all run one. The models learn from past fraud, the decisions run in the middle of a live request, and the people on the other side are actively trying to beat them.
This question shows up as "detect payment fraud," "detect compromised accounts from login events," "build an anomaly detection system for transactions," or "score transactions in real time." They are one system with two main models. Payment fraud asks whether this transaction is being made by someone who isn't the cardholder (or with a stolen card). Account takeover (ATO) asks whether the person logged in right now is the account's real owner, which we answer from login events and the time series of what the account does next. Both share the same feature platform, label pipeline and serving stack, so we'll design them together and call out where they differ.
The streaming rules engine, multi-bank tenancy and the plumbing around a model API are covered in Design a Real-Time Fraud Detection System. Here we go deeper on the ML: what to predict, where labels come from, which features matter, which models to use, and how to evaluate a model whose mistakes cost real money.
Functional Requirements
We're the risk team at a payments company that processes card payments for many online merchants and also runs consumer accounts (a wallet with a stored balance and saved cards).
Core Requirements
- Every card payment should get a fraud score and a decision (approve, decline, review, or step-up authentication such as 3-D Secure) before it is authorized.
- Every login, and every sensitive action after login (changing email, adding a payout bank account, sending money), should get an account-takeover score that can trigger MFA, a hold, or a block.
- The system should surface new fraud patterns that the supervised models haven't seen, for analysts to investigate.
- Analyst decisions, chargebacks and customer reports should flow back as labels so the models improve.
Below the line (out of scope)
- The rules engine and analyst tooling in detail (see the system design version).
- Anti-money-laundering and sanctions screening. Different labels, different regulators.
- Merchant fraud (a merchant account that's itself a scam). Same ideas, much lower volume.
Non-Functional Requirements
Ask for numbers, because they set both the latency budget and the training data size. Our assumptions: 3,000 payments per second on average and 15,000 at peak, about 250 million payments a day. 300 million accounts and about 100 million logins a day, so roughly 1,200 per second on average and 5,000 at peak. Fraud is rare: on the order of 0.1% of payments by count.
Core Requirements
- Payment scoring should add at most 100 ms at p99 to authorization, including feature lookups. Login scoring has a similar budget.
- The system should be highly available. If the model is down we fall back to rules and a cached simple model, we never fail closed and decline everything.
- Streaming features (counts over the last minute or hour) should be fresh within a few seconds. A fraudster testing 20 cards in a minute must show up in the 21st request.
- The false positive rate must stay low. Declining a good customer loses the sale and often the customer; we'll hold the decline rate on good traffic under about 0.3%.
- Decisions should be explainable enough for analysts and for customer support ("declined because of a new device and an unusual amount").
Below the line (out of scope)
- Multi-region active-active serving details.
- Regulatory reporting.
Some arithmetic that shapes the design. At 0.1% fraud, a model that says "not fraud" every time is 99.9% accurate, so accuracy is useless as a metric. 250M payments a day means about 250,000 fraudulent payments a day, and 90 days of history is 22.5 billion rows. We won't train on all of them: we keep every positive (about 22.5M) and sample negatives, say 1 in 100, giving about 250M rows. At ~500 features of 4 bytes each that's about 500 GB of training data, which is a distributed GBDT job of a few hours, not a week.
The question looks like "build a classifier." The hard parts are elsewhere: labels arrive 30 to 90 days late, you only get labels for transactions you approved, and the people you're classifying change their behavior when you catch them. Say this early.
Framing It as an ML Problem
ML Objective
The business wants to minimize total fraud cost: money lost to fraud (chargebacks plus fees) plus the cost of friction (good transactions declined, good users forced through MFA, review headcount). Those pull in opposite directions, so the objective is a trade-off, usually expressed as "maximize fraud caught at a fixed decline rate" or "minimize dollars lost subject to the good-customer decline rate staying under 0.3%."
The model itself optimizes something simpler: a calibrated probability that this event is fraud. Calibration matters because the decision layer multiplies that probability by money. A transaction is declined when the expected loss from approving it is bigger than the expected loss from declining it:
p = calibrated P(fraud | features)
loss_if_approve = p * (amount + chargeback_fee) # we eat the loss
loss_if_decline = (1 - p) * (margin * amount + churn_cost) # we lose a good sale
decline when loss_if_approve > loss_if_decline
A $2,000 laptop and a $3 coffee with the same score should not get the same decision, and this formula is why. It also explains why we want a probability and not just a rank: the threshold moves with the amount.
Inputs and Outputs
- Payment model. Input: the payment (amount, currency, merchant, card BIN, card-present or not), the account and card history, device and network signals, and the merchant's risk profile. Output:
P(fraud)plus the top contributing features for explanations. - ATO model. Input: the login attempt (device, IP, location, credentials outcome, time) and the account's recent history; later, the sequence of actions in the session. Output:
P(this session is not the account owner). - Anomaly scores. Input: the same features. Output: how unusual this event is relative to the user's own baseline and to the population, used as a feature and as an analyst lead, not as a decision on its own.
Choosing the ML Approach
This is binary classification on tabular, highly imbalanced data, with a strong time component. Supervised learning is the core, because we do have labels (chargebacks, confirmed fraud) and they're far more precise than "unusual." Unsupervised anomaly detection is a supporting tool: it finds things no label describes yet, such as a new attack, but "unusual" is not the same as "fraud." Lots of good customers are unusual (traveling, buying a gift, a new phone).
Ranking framing isn't a good fit, because each event is decided on its own against a threshold, not ordered against other candidates. Regression on fraud amount is occasionally used as a second head, but the expected-loss formula already brings the amount in.
Data and Labels
The raw data is the event stream we already produce: payment authorizations, logins, sessions, profile changes, payouts, device fingerprints, and the network data around them (IP, ASN, geolocation). Everything goes to Kafka and lands in a data lake (S3 + Iceberg or Delta) partitioned by day.
Labels come from several sources, with different delays and different quality:
| Source | Delay | Quality |
|---|---|---|
| Chargebacks with a fraud reason code | 30-90 days, some up to 120 | High, but includes "friendly fraud" (a real cardholder disputing) |
| Customer reports ("I didn't make this") | Hours to days | High for ATO, medium for payments |
| Manual review outcomes | Minutes to hours | High, but only for the reviewed slice |
| Account recovery tickets, password resets after a report | Days | Good ATO labels |
| Issuer fraud reports (TC40/SAFE-style notifications) | Days to weeks | Good, partial coverage |
We build the label for each event by joining these back to the event ID. An event is fraud if any trusted source says so, not fraud if it's older than the label maturity window (say 90 days) with no fraud signal, and unknown otherwise. Unknowns stay out of training: if you count a payment from last week as "not fraud," you teach the model that the newest fraud patterns are legitimate, because their chargebacks simply haven't come in yet.
Selection bias is the subtle problem. We only see outcomes for payments we approved. If the current model declines everything from a certain pattern, there are no labels for that pattern, and the next model can't learn whether the decline was right. Over time the training data drifts toward "what the old model let through." The standard fix is a small exploration holdout: for a tiny random slice of low-value transactions (say 0.1%, under $50) that the model would decline, approve anyway and record the outcome, with the cost budgeted as the price of unbiased data. Those rows get an inverse-propensity weight in training and give us an unbiased test set.
Class imbalance at 0.1% is handled at sampling time: keep all positives, sample negatives at a known rate, and correct the probabilities afterwards (see Training). Sample negatives randomly within each day so we keep the natural mix of merchants and users, not just the easy negatives.
Label leakage is easy to introduce here. Features must be computed as of the event time, never with data that arrived afterwards. A "number of chargebacks on this card" feature built from today's table, joined to last month's payments, will make offline numbers look spectacular and do nothing in production. So will any feature derived from the review queue, since only already-suspicious events get reviewed. We'll fix this structurally with point-in-time joins and feature logging.
Feature Engineering
Fraud models live and die by features. The model family matters less than whether you have the right velocity counts and history.
Event features (the payment itself)
- Amount, currency, amount in USD, amount relative to the merchant's typical ticket.
- Card BIN (issuer country, card type, prepaid or not), card-present vs card-not-present, entry mode.
- Billing vs shipping address match, shipping to a freight forwarder, email domain.
Entity history (card, account, device, IP, email, shipping address)
- Age of the account, the card on the account, the email, the device.
- Velocity counts over 1 minute, 1 hour, 24 hours and 30 days: payments per card, distinct cards per device, distinct merchants per card, declines per card, distinct countries per card. This is where "5 countries in 1 minute" lives.
- Deviation from the entity's own history: amount z-score vs the card's last 90 days, new merchant category for this user, first time shipping to this address, hour-of-day vs the user's usual hours.
Network and device
- IP risk (datacenter or residential, proxy/VPN/Tor flags, ASN reputation), distance between IP location and billing address.
- Device fingerprint stability, emulator or rooted device signals, browser automation hints.
Graph features
- How many accounts share this device, card, IP or shipping address. Fraud rings reuse infrastructure, and "this device has touched 40 accounts in a week" is one of the strongest features there is.
- Fraud rate in the entity's neighborhood: the fraction of accounts linked by a shared device or card that have confirmed fraud (computed with a lag, from mature labels only).
ATO-specific features
- New device, new country, new ASN for this account; impossible travel (two logins 8,000 km apart within an hour).
- Failed password attempts on this account and from this IP across many accounts (credential stuffing).
- Time since password change, email change or MFA reset, and the order they happened in.
Embeddings
- Learned embeddings for high-cardinality IDs (merchant, BIN, device model) trained on co-occurrence or as part of a neural model.
- A sequence embedding of the account's last 100 events, produced by a sequence model (see Modeling).
These features have very different freshness needs, which decides where they're computed:
- Real-time (seconds): velocity counts and "last seen" values, maintained by a Flink job reading Kafka and writing to a low-latency key-value store (Redis, Aerospike or DynamoDB). For the tightest windows, the scoring service updates the counter inline so the current request is counted.
- Near-line (minutes): graph counts like accounts per device, updated incrementally.
- Batch (daily): 30- and 90-day aggregates, neighborhood fraud rates from mature labels, embeddings. Spark jobs write them to both the offline store and the online store.
A feature store (Feast, Tecton or in-house) holds the definitions once and serves both sides: an online store for scoring and an offline store with point-in-time history for training. The single most valuable habit is feature logging: the scoring service writes the exact feature vector it used for every decision to Kafka. Training then uses logged features plus the later label, so training and serving see the same numbers by construction.
When your interviewer asks "how do you avoid training-serving skew?", the strongest one-line answer is "log the features at serving time and train on the logs." Point-in-time joins from the offline store are the backup for new features that weren't logged yet.
Modeling
Payment Fraud Model
Bad Solution: Rules Only
Approach
Analysts write rules: decline if amount > $1,000 and the card is less than a day old; review if the billing and IP countries differ. Every fraud team starts here, and rules stay useful forever for fast reaction.
Challenges
Rules are thresholds on one or two features at a time. They can't weigh 300 weak signals against each other, they don't adjust for the amount, and they pile up: after a few years you have 2,000 rules nobody dares delete, each one declining some good customers. Precision at any useful recall is poor.
Good Solution: Gradient-Boosted Trees on Tabular Features
Approach
Train a GBDT (XGBoost, LightGBM or CatBoost) on the feature set above with a binary cross-entropy objective. GBDTs are the industry default for fraud for good reasons: they handle mixed numeric and categorical features without scaling, cope with missing values, capture interactions ("new device AND high amount AND night"), train in hours on hundreds of millions of rows, and run inference in well under a millisecond on CPU. SHAP values give per-decision explanations for analysts.
A logistic regression baseline is worth training first, because it tells you how much the trees actually buy you and gives you a cheap fallback model.
Challenges
Trees see each event as a flat row. Everything the model knows about history is what we managed to summarize in hand-built aggregates. Fraudsters learn the thresholds those aggregates imply (stay under 3 attempts per hour), and patterns that live in the order of events, like "add card, small test charge, change shipping address, big purchase," are hard to express as counts.
Great Solution: GBDT With Sequence and Graph Embeddings
Approach
Keep the GBDT as the decision model and feed it learned representations:
- A sequence model (a small transformer or GRU) reads the account's or card's last 100 events (event type, merchant category, amount bucket, time gap, device change flag) and outputs a 64-dimensional embedding. It's trained on the same fraud labels, or self-supervised on next-event prediction and then fine-tuned. Its embedding and its own score become GBDT features.
- Graph features from the entity graph (accounts, cards, devices, IPs, addresses as nodes; shared use as edges): connected component size, number of fraud-labeled neighbors, and optionally GNN embeddings (GraphSAGE-style) computed offline daily.
- The GBDT combines these with the tabular features and outputs a score, which goes through a calibration step (isotonic regression or Platt scaling on a recent held-out set) before the decision layer.
The sequence encoder runs on a GPU or optimized CPU server (Triton, ONNX Runtime). To keep it off the critical path, we can recompute the embedding asynchronously after each event and store it in the feature store, so scoring just reads it. It's then one event stale, which is a reasonable trade for the latency.
Challenges
More moving parts, each with its own retraining and monitoring. The sequence model's gains show up mostly on ATO and on users with long histories; for brand-new cards it has nothing to read. Explanations get harder (SHAP on "embedding dimension 17" means nothing), so keep the interpretable features in the GBDT and explain decisions with those.
Some teams go further and train a single deep model end to end (a DLRM-style network with embeddings for IDs and an MLP over everything). It can beat the hybrid with enough data, but you lose the robustness and debuggability of trees on tabular data. In an interview, the hybrid is the safer recommendation.
Account Takeover Model
ATO is scored at two moments, with different information:
- At login. Was this credential entered by the owner? Features: device and IP novelty for this account, impossible travel, failed attempts on this account and from this IP across accounts, whether the password appears in known breach lists, time of day vs the user's habits. A GBDT works well. The actions are graded: allow, ask for MFA (step-up), or block and notify. Step-up is the workhorse because it's cheap for real users and stops most attackers.
- During the session. Attackers who get through often follow a script: change the email, change the password, add a payout account, drain the balance. A sequence model over in-session events (type, time gaps, sensitive-action flags) scores each sensitive action, and the score can hold a payout for 24 hours instead of blocking the user outright.
ATO labels are cleaner than payment labels (a user who reports a takeover and goes through recovery is a strong positive) but much rarer, perhaps a few in 100,000 logins. Credential-stuffing attacks also generate huge bursts of failed logins that look nothing like normal traffic. Most of those are best handled by rate limits and bot detection upstream (see bot and spam detection); the ATO model focuses on the attempts that succeed.
Anomaly Detection
Supervised models only catch what they've seen. To find new patterns, we add unsupervised scores:
- Per-entity baselines. For time-series signals like a merchant's hourly decline rate or a user's spend per day, a robust z-score against a rolling baseline (median and MAD, with seasonality by hour and weekday) flags spikes. This is how you spot a card-testing attack against one merchant: hundreds of $1 payments with high decline rates.
- Isolation Forest or an autoencoder over the feature vector, trained on recent traffic, gives a population-level "how weird is this" score.
These scores are features for the supervised model and leads for analysts, ranked and clustered so an analyst sees "500 accounts created from the same ASN with the same device model in two hours" as one case. They are not used to decline on their own, because their precision is low.
Training
Loss and imbalance. Binary cross-entropy on the sampled data. With negatives kept at rate w (for example 0.01), the model's predicted odds are inflated by 1/w, so we correct before calibration:
p_true = (q * w) / (q * w + 1 - q) # q = model output on sampled data
Class weights or focal loss are alternatives to sampling, but sampling also cuts training cost by 100x, so it's usually the better trade. Weighting positives by transaction amount is worth trying when the business metric is dollars lost, since it pushes the model to care more about the $2,000 fraud than the $5 one.
Time-based splits. Never split randomly. Train on days 1-60 of mature data, validate on 61-75, test on 76-90. Random splits leak the same fraud ring's transactions into both train and test and overstate performance badly.
Retraining cadence. The label maturity window forces a gap: the newest fully labeled data is about 90 days old. We work around it two ways. We retrain weekly on a sliding window of mature data plus "early labels" from recent reviews, customer reports and early chargebacks (positives only arrive early; that's fine because positives are what we're short of). And we keep a short-term layer, rules and a few daily-updated features, that reacts to a new attack within hours while the model catches up.
Distributed training. 250M rows × 500 features fits distributed XGBoost or LightGBM on Spark or Ray across a handful of large machines. The sequence model trains on GPUs with PyTorch DDP. Neither needs more than that.
Promotion. A new model must beat the current one on the out-of-time test set at the operating point (recall at fixed decline rate), not just on AUC, and then pass shadow scoring before it takes traffic.
Evaluation
Offline Metrics
- PR-AUC (average precision) instead of ROC-AUC. With 0.1% positives, ROC-AUC looks great for nearly any model because the false positive rate stays tiny even when false positives outnumber true ones 10 to 1. PR-AUC shows that.
- Recall at a fixed decline rate, e.g. "fraud caught when we decline 0.5% of traffic." This is the operating point the business actually runs at.
- Dollar-weighted recall: the share of fraud dollars caught at that operating point.
- Calibration: reliability plots and expected calibration error, per segment (country, merchant category, amount bucket), because the decision layer trusts the probability.
- Slices: new vs returning users, card-present vs not, each major market. A model that improves overall but gets worse for one country will get noticed by that country's merchants first.
Online Metrics and A/B Testing
The metrics that matter are fraud loss in basis points of volume, good-customer decline rate, approval rate, review queue volume and precision, and for ATO, MFA challenge rate and confirmed takeovers.
A/B testing fraud models is awkward because the main outcome, chargebacks, arrives months later. The usual sequence:
- Shadow mode. The challenger scores all live traffic but doesn't decide. Compare its decisions with the champion's; look at the disagreements by hand.
- Small randomized split. Send, say, 5% of traffic (randomized by card or account, not by transaction, so one fraudster's attempts don't straddle both arms) to the challenger. Read early proxies right away (decline rate, review rate, 3DS challenge rate, early fraud reports) and the real outcome (chargeback rate) after 60-90 days.
- Ramp with guardrails: auto-revert if the decline rate rises more than an agreed amount.
A fraud model that cuts losses by 10% and raises good-customer declines by 0.2 points can easily be a net loss. Always report both sides of the trade, and in dollars where you can.
Serving
Every payment goes through a Risk Service in the authorization path. It fetches features in parallel, runs the model, applies the decision policy and returns within the budget.
Latency budget for a payment, p99:
| Step | Budget |
|---|---|
| Network in and out of the Risk Service | 10 ms |
| Online feature fetch (Redis/Aerospike, parallel, ~10 keys) | 20 ms |
| Inline counter update for the tightest windows | 5 ms (parallel with fetch) |
| Precomputed sequence and graph embeddings (same fetch) | 0 extra |
| GBDT inference, 500 trees, in-process | 2 ms |
| Rules and decision policy | 5 ms |
| Headroom for GC, retries, tail | ~60 ms |
The GBDT runs in-process in the Risk Service (via a compiled model like Treelite or the native library), which removes a network hop. Each feature fetch has a deadline; a missing feature becomes a "missing" value the trees already handle, plus a flag the model was trained with. If the model service is down entirely, the decision falls back to rules plus a small logistic model compiled into the service.
Online vs batch prediction. Payment and login scoring are online by necessity. Some scoring is better done in batch: nightly re-scoring of all active accounts for ATO risk (to proactively force password resets), daily scoring of merchants, and recomputing graph embeddings. Those run in Spark and write results to the feature store.
Async path. Every decision, with its logged feature vector, model version and score, goes to Kafka. Flink consumes payments and logins to update streaming features; the label pipeline consumes chargebacks and review outcomes; everything lands in the lake for training and monitoring.
Potential Deep Dives
1) How do we train on labels that arrive months late?
Bad Solution: Treat Unlabeled as Negative
Approach
Train on the last 30 days, where anything without a chargeback is "not fraud."
Challenges
Most fraud from the last 30 days hasn't been charged back yet, so the freshest fraud patterns are labeled as legitimate. The model learns to approve exactly what it should decline. Offline metrics computed the same way look fine, which makes this mistake hard to notice.
Good Solution: Label Maturity Window
Approach
Only train and evaluate on events old enough that labels are essentially complete (90 days). Use historical data to measure what fraction of chargebacks arrive by day 30, 60, 90; that curve tells you where to put the window.
Challenges
The model is always trained on a world that's three months old. When fraudsters shift tactics, the model is slow to follow.
Great Solution: Mature Window Plus Early Labels, Weighted
Approach
Train on the mature window, and add recent events that already have a positive label from a fast source (reviews, customer reports, early chargebacks, issuer reports). Recent events with no signal are left out, not labeled negative. Optionally weight recent positives up to emphasize new patterns. For evaluation, keep a mature out-of-time test set as the source of truth and track a "recent positives caught" metric as an early warning.
Challenges
The training set's positive rate now depends on how fast labels arrive, so calibration must be fit on mature data only. And early labels are biased toward fraud types that get reported quickly (ATO victims notice fast; stolen-card fraud on a rarely used card doesn't).
2) How do we catch fraud patterns we've never seen?
Supervised models are blind to the first instance of a new attack. Three layers help:
- Anomaly scores (per-entity baselines, Isolation Forest) as model features and analyst leads, described above.
- Graph clustering. Each day, build components over shared devices, cards, IPs and addresses. A component of 300 accounts created in 48 hours sharing 4 devices is a ring, even if none of them has a chargeback yet. Score the component, and propagate risk to new accounts that join it.
- Fast feedback. When analysts confirm a new pattern, they write a rule for the next hour and label the cases, and those labels go into the next weekly retrain as early positives. Rules are the patch; the model is the fix.
Interviewers like to hear that rules and models are complementary. Models generalize; rules are what you deploy at 3 a.m. when a new attack starts and the next retrain is days away.
3) How do we choose thresholds and actions?
Bad Solution: One Global Threshold
Approach
Decline when the score is above 0.8.
Challenges
It ignores amount, so we decline cheap good transactions and approve expensive bad ones at the same score. It also ignores that a 0.8 in one market means something different from a 0.8 in another if calibration drifts.
Good Solution: Expected-Loss Decisions With Bands
Approach
Use the calibrated probability and the expected-loss rule from the ML Objective, so the threshold scales with amount. Add a middle band: scores in it get step-up (3-D Secure for cards, MFA for logins) or review instead of a hard decline. Step-up costs a little conversion but shifts liability and stops most fraud; review is the most expensive action, so the band is sized to the analysts' capacity.
Challenges
Review capacity is fixed per shift, while traffic isn't. A fixed band either overflows the queue on busy days or leaves analysts idle on quiet ones.
Great Solution: Capacity-Aware Policy Per Segment
Approach
Set thresholds per segment (market, merchant category, card-present vs not) from the expected-loss curve, and size the review band dynamically: rank events in the band by expected loss and send the top N per hour to review, where N is current analyst capacity. Everything else in the band gets step-up. Re-fit thresholds weekly, and whenever a new model ships, so the decline rate stays at its target.
Challenges
More parameters to govern. Thresholds that change weekly need a change log and owner sign-off, or nobody can explain why approval rates moved.
4) How do we keep up with adversaries and drift?
Fraud is adversarial. Within weeks of a model learning a pattern, fraudsters change it. We watch three things:
- Input drift: population stability index (PSI) per feature, day over day. A sudden shift in the mix of BIN countries or device types often means a new attack, or a broken upstream pipeline.
- Score drift: the score distribution and the share of traffic in each decision band. If the decline rate moves 30% in an hour with no model change, page someone.
- Outcome drift: early fraud reports and review precision, daily. Chargeback rate by cohort, monthly.
The response depends on what moved. A broken feature gets fixed and the affected feature's values get treated as missing in the meantime. A new attack gets a rule now and labels for the next retrain. Slow drift is what the weekly retrain is for.
Adversaries also probe: they try small transactions to learn where the thresholds are. Don't return the score or detailed decline reasons to the client, add a little randomness to which borderline cases get step-up vs decline, and watch for accounts that repeatedly land just below a threshold.
5) How do we keep explanations and fairness under control?
Analysts need reasons, and support agents need something to tell the customer. We return the top 3 SHAP contributions from interpretable features ("new device," "amount 8x usual," "card used in 4 countries today") with every decision. For the sequence and graph embeddings, we report the human-readable features that drive them instead.
Fraud models can also hurt groups of good users disproportionately, for example travelers, people on prepaid cards, or users in one country. Track decline rate and step-up rate per segment, avoid sensitive attributes and obvious proxies as features, and treat a big gap between segments as a bug to explain, not a curiosity.
What is Expected at Each Level?
Mid-level
You should frame it as imbalanced binary classification, reject accuracy as a metric in favor of precision/recall, and propose a GBDT on sensible features: amount, account age, velocity counts, device and IP signals. You should know that chargebacks come late and split data by time, not randomly. A reasonable serving picture (feature lookup, model, threshold, within ~100 ms) is enough.
Senior
You should design the label pipeline with a maturity window, explain why unlabeled recent data isn't negative, and handle imbalance with negative sampling plus probability correction and calibration. Expect to separate real-time from batch features, use a feature store, and prevent leakage with point-in-time joins or feature logging. You should turn scores into decisions with expected loss and step-up, measure recall at a fixed decline rate, and describe shadow scoring before an A/B test.
Staff+
You should drive toward the problems that decide whether this works in production: selection bias from declines and the exploration holdout that fixes it, adversarial adaptation, and the rules-plus-model operating model. Expect to discuss the ATO session model and graph signals for rings, capacity-aware review, monitoring and auto-revert, and how to evaluate when the true outcome lags by months. Strong candidates also say where they'd stop: a hybrid GBDT with embeddings, not a giant end-to-end model, and why.