TrueMind
    March 30, 2026
    By Caius VardenshawUpdated October 26, 2026
    14 min read

    Antifraud Models in iGaming: Late Labels, Drift and Thresholds

    Antifraud models rarely fail to clever attackers. They fail on labels that call unchecked accounts clean, leaky validation folds and thresholds nobody priced. A build guide in that order.

    Antifraud models that disappoint in production were rarely outwitted by clever attackers. They were trained on labels that called unchecked accounts clean (a chargeback can take 120 days to land), validated on folds that leaked the same ring into both halves, and deployed at a threshold nobody had priced. Each failure has a cheap fix, and none of the fixes involves a cleverer algorithm.

    The label arrives months late and is partly wrong

    Everything downstream in a fraud model depends on a question that is rarely asked out loud: at the moment you write is_fraud = 1 into a training row, how do you actually know? In iGaming the honest answer is usually "not yet", and when the answer finally arrives it is incomplete.

    Chargebacks are the cleanest signal and the slowest one. A disputed deposit can surface a month after the transaction, sometimes four months later, depending on scheme rules and how long the cardholder took to read a statement.

    Bonus abuse is slower and softer. An analyst notices that fourteen accounts wagered the same welcome offer through the same low-variance title and withdrew within an hour of clearing the requirement, and a label is written retroactively across the cohort. Multi-accounting labels appear when an investigation closes, which means they exist only for accounts somebody chose to investigate. Affiliate-driven fraud is frequently labelled by a commercial dispute rather than by evidence of anything.

    These sources trade lag against trust, and the trade runs the wrong way. The card-scheme chargeback is the most trustworthy signal but the slowest, landing 30 to 120 days out, and it encodes only the disputes a cardholder bothered to file. The long tail is set by the card schemes: Visa and Mastercard dispute rules generally give a cardholder up to 120 days from the processing date to raise the common dispute types, which is why the maturity window below is 120 days rather than a month.

    A closed manual investigation is nearly as trustworthy and much faster, three to twenty days, but it exists only for accounts an existing rule already surfaced. The rule engine's auto-block is instant and barely trustworthy at all, because what it records is the rule set's opinion of an account. Affiliate clawbacks arrive in a month or two with medium confidence and carry as much commercial negotiation as behaviour. And the largest category, never reviewed, has no lag because it carries no signal. Nobody knows how far to trust it, yet it gets silently filed as clean, which is often false.

    Two consequences follow. First, the majority class is "unlabelled", and calling it "confirmed legitimate" is a choice the data never made. Training a binary classifier that treats every unreviewed account as a negative teaches the model that undetected fraud looks normal, which is precisely the population you care about. Positive-unlabelled framing, or at minimum sample weighting that discounts unreviewed negatives, is closer to the truth than pretending the zeros are real.

    Second, if the label mostly comes from the rule engine, the model becomes a faster and more expensive copy of the rules. It will reproduce their blind spots with a confident probability attached. The only reliable escape is a labelled slice that did not originate from the rules: a random sample of traffic sent to manual review regardless of score, kept small enough to be affordable and constant enough to be measurable.

    Defining the target when money moves before the truth does

    Before any modelling, two decisions dominate the result more than the choice of algorithm.

    The first is the unit of observation. Scoring an account, a deposit, a withdrawal, or a bonus claim produces four different datasets with four different base rates and four different useful feature sets. Deposit-level scoring answers "should this payment be stepped up"; account-level scoring answers "is this identity worth keeping". Mixing them into one table because both are "fraud" produces a model that is mediocre at both.

    The second is the maturity period. If a chargeback can arrive 120 days after a deposit, then a training set built up to yesterday contains recent rows whose positives simply have not appeared yet. The measured fraud rate decays as you approach the present, and a model fitted on that data learns that recency predicts safety.

    The size of the effect is easy to underestimate, so put numbers on it. Suppose the true deposit fraud rate is a flat 0.9% and disputes arrive uniformly across 120 days. Slice the dataset by deposit age at the moment of extraction:

    In the freshest slice, deposits aged 0 to 30 days, only about 13 per cent of eventual disputes have surfaced, so the observed positive rate reads 0.12 per cent against a true 0.9. By 31 to 60 days roughly 38 per cent are visible and the rate reads 0.34; by 61 to 90 days about 63 per cent, reading 0.57; by 91 to 120 days about 88 per cent, reading 0.79. Only past 120 days, with essentially all disputes in, does the observed rate climb back to the true 0.90 per cent.

    The fix is unglamorous: an embargo. Cut the training window 120 days short of extraction, accept that you are always training on slightly stale attacks, and compensate with frequent refits rather than with fresher, half-labelled data. Where the wait is unacceptable, fit on a shorter-lag proxy target (for example, a manual-review confirmation within 14 days) and treat the chargeback model as a separate, slower head.

    Feature windows need the same discipline. A "deposits in the last 30 days" aggregate must be computed as of the event timestamp, not as of extraction time, or the row contains the future.

    Boosted trees, graphs, and the rules that still win

    Fraud data is tabular, sparse, heavily categorical and full of missing values, which is why gradient-boosted trees remain the default and are hard to beat. They tolerate missingness natively, need no scaling, and accept monotonic constraints, which matters when compliance asks that risk never decrease as the count of shared devices increases.

    Around that default, the other families each own a situation. Reach for regularised logistic regression when you need a first baseline or a regulated decision you can explain in a sentence; its coefficients are naturally calibrated, though it misses interactions you do not hand-build. Gradient-boosted trees stay the workhorse for deposit, withdrawal and bonus scoring because they handle mixed types, interactions and missingness, at the price of needing recalibration and leaving you with SHAP as a proxy rather than a reason.

    Add graph features over shared entities when the problem is multi-accounting, bonus farms or affiliate rings, where fraud is relational before it is behavioural, and accept that connected components are expensive in real time and their component IDs unstable. Sequence models over event streams pay off only on high-volume brands with rich session logs, capturing order and timing that aggregates flatten, but they are data-hungry, slow to retrain and hard to explain. Unsupervised anomaly detection is what you have before the first confirmed case: it works with zero labels, at the cost of a high false-positive rate that needs an analyst queue behind it.

    The unfashionable conclusion is that rules still win in three situations, and building a model into those situations is a mistake. A hard regulatory obligation is a rule: a blocked jurisdiction, a sanctioned BIN, a failed identity check. A brand-new attack with no examples is a rule, because a model cannot learn from a class it has never seen. And any decision that a licensing body may ask you to justify line by line is safer as a rule with a documented owner. The productive architecture is a thin layer of non-negotiable rules, a model for the large grey middle, and a queue for what neither resolves.

    Time is a hard boundary in the split

    Random k-fold cross-validation on fraud data is a way of lying to yourself twice over.

    The first leak is temporal. Attacks are campaigns. A random fold puts Tuesday's ring in training and Wednesday's in validation, and the model appears to generalise when it has merely memorised. The second leak is relational. Ten accounts from the same farm share a device fingerprint, a payment instrument and a behavioural signature; splitting them randomly puts near-duplicates on both sides.

    Picture a deposit-scoring dataset on which random five-fold validation reports PR-AUC around 0.71. The same features and hyperparameters, validated on the following month with rings grouped, report roughly 0.48. Nothing in the model changed. Only the test did, and a later month with rings kept together is far closer to what deployment looks like. In production such a model behaves like the 0.48 number, and whoever promised 0.71 spends a quarter explaining the gap. At a 1-in-800 base rate that gap is not academic: lower precision at the same recall means more honest players held per fraudster caught, and the next sections put a price on each of them.

    The workable protocol is a rolling-origin backtest: train on months one to six, validate on month seven; slide forward; repeat. Group by ring or device cluster inside each training fold so that hyperparameter selection is not gamed by duplicates. Report the spread across folds, not the best one. If performance swings wildly between origins, resist averaging it away. The swing tells you how fast the attack mix moves, and it should set the retraining cadence.

    Leakage in antifraud wears a manual-review badge

    Every leaked feature in this domain shares one property: it exists because someone already suspected the account. A partial catalogue, each item common enough to check for by default:

    • account_status containing values such as closed_fraud or funds_held, which is the label wearing a different column name.
    • Counts of manual reviews, KYC document re-requests, or support tickets tagged "risk", all created by the investigation, not before it.
    • Withdrawal-blocked flags, which are the outcome of the decision the model is supposed to make.
    • Lifetime aggregates (total deposits, final balance, lifetime bonus value) computed over the whole account history rather than up to the event timestamp.
    • Any feature derived from the same rule that generated the label, which produces an apparently excellent model that has learned an identity function.
    • Timestamps of the last login, when accounts blocked for fraud stop logging in and therefore have systematically stale values.

    Three defences. Build features through an as-of join in a point-in-time store, so a value is only visible if it existed at the event timestamp. Compare, for every candidate feature, its distribution before and after the label timestamp; a feature that moves sharply after the label is suspect by construction. And treat an implausibly strong single feature as a bug report rather than a success: if one column carries most of the lift, ablate it and see whether the model is still useful.

    Working with one positive in eight hundred

    Withdrawal fraud at a mid-sized brand might run at roughly one confirmed case per 800 withdrawal attempts. At that base rate accuracy is worthless, and ROC-AUC is close to worthless, because the false-positive rate is computed against an enormous negative class and a change from 0.2% to 0.4% barely moves the curve while doubling the review queue.

    Concretely: 400,000 withdrawal attempts a month, 500 confirmed fraud cases. A model with ROC-AUC of 0.94 sounds excellent. Set the threshold to catch 60% of fraud, 300 cases. If the corresponding false-positive rate is 1.5%, that is 0.015 × 399,500, close to 5,990 clean withdrawals held. Precision is 300 / 6,290, under 5%. Twenty honest players inconvenienced for every fraudster stopped. The operations team lives with that arithmetic, whatever the AUC says. So the numbers to report are precision and recall at the actual working threshold, and PR-AUC across thresholds.

    Handling the imbalance is mostly bookkeeping. Class weights inside the boosting objective are usually enough. Downsampling negatives speeds up training but shifts predicted probabilities upward, and those probabilities must be corrected back to the true prior before they enter any cost calculation. Whatever the sampling, a final calibration step, namely isotonic or Platt scaling fitted on an untouched, unsampled holdout, is what turns a score into a probability. Without calibration you can rank cases but you cannot compute expected value, and expected value is the whole point of the next section.

    Setting the cut-off from the cost of a frozen withdrawal

    A threshold is a pricing decision, and it should be written down as arithmetic rather than negotiated in a meeting.

    Now assign unit costs to a withdrawal-hold decision; these are placeholders to replace with your own. A missed fraud case costs an average of 180 in lost funds. A false positive costs the review labour, roughly 4, plus the behavioural damage: assume a 12% chance the wrongly held player never returns, against a remaining expected NGR of 260 from that player, giving 31.20, for about 35 in total.

    Act when expected loss avoided exceeds expected cost inflicted: p × 180 > (1 minus p) × 35, so p > 35 / 215, about 0.163.

    Sweeping the threshold over a month of 400,000 attempts with 500 true cases:

    Threshold Holds raised True cases caught False holds Loss avoided Friction cost Net
    0.05 14,200 425 13,775 76,500 482,125 -405,625
    0.10 7,600 385 7,215 69,300 252,525 -183,225
    0.20 2,900 320 2,580 57,600 90,300 -32,700
    0.45 900 240 660 43,200 23,100 20,100
    0.70 380 165 215 29,700 7,525 22,175
    0.90 120 78 42 14,040 1,470 12,570

    The optimum sits far from where intuition puts it, and the naive break-even of 0.163 is beaten badly because the model is not well separated in that region. Two lessons generalise. Compute the sweep on held-out data with realised costs rather than trusting the analytic break-even. And do not use one threshold for one action: a ladder is cheaper. Step-up verification is a low-cost action and deserves a low threshold; a temporary hold sits higher; permanent closure and confiscation sit higher still, or outside the model's authority altogether.

    Drift shows up in the features before it shows up in the losses

    Fraud is the one prediction problem where the data-generating process reads your output and adapts. Three separate clocks run at once: attackers change tactics in days, the payment mix changes when a provider or a market is added, and player behaviour changes seasonally around major sporting events and campaign calendars.

    Because labels lag by weeks, waiting for performance decay is waiting far too long. Monitor upstream instead. Population stability on the top twenty features catches a new device-fingerprint vendor or a changed SDK before it degrades anything. The distribution of scores, and the alert volume at a fixed threshold, catch shifts in traffic composition within a day. Realised precision on the review queue is available in days rather than months, because analysts close cases quickly even when chargebacks do not.

    There is a subtler trap. Every case the model successfully blocks never produces an outcome, so the training data slowly loses the fraud the model is good at and over-represents what it misses. Performance appears to fall even when nothing degraded. The model is shaping the data its successor will learn from, and because the missing outcomes are missing from every offline table too, no offline metric will show the loop closing. The countermeasure is to let a small randomised share of borderline cases through unblocked, monitored closely, purely to keep an unbiased outcome sample, or to apply reject-inference weighting when that is not commercially acceptable.

    A reasonable cadence for a mid-sized operator: features and aggregates refreshed daily, a full refit monthly, an out-of-cycle refit triggered by a drift alert or a confirmed new attack pattern, and every candidate run in shadow mode against the incumbent for at least two weeks before promotion.

    Forty milliseconds at deposit, four hours at bonus review

    Serving constraints eliminate more feature ideas than accuracy ever does. At each decision point a predictive feature is worthless unless its value already exists and can be fetched in time.

    Trace one account through the funnel and the budgets tighten and loosen in turn. At registration there is roughly 100 ms and little to go on beyond device, IP, email domain and form telemetry, so a small tree ensemble on identity features is the ceiling. At deposit the budget tightens to about 40 ms, but velocity counters and instrument history are now available on top of the identity signals, which suits boosted trees run against cached aggregates.

    At withdrawal the clock relaxes to seconds or minutes and the full session and game-level history is in reach, enough for a larger ensemble with graph features attached. And the bonus-abuse sweep runs in hours, where everything including cohort-level patterns is fair game and batch scoring with clustering is the right shape.

    A brand-new account has no thirty-day history, so a model trained mostly on tenured players will extrapolate badly at exactly the moment fraud is most concentrated. Either train a separate thin-history model or make the missingness explicit rather than imputing a mean. Graph features are the classic casualty. Connected-component computations that take minutes cannot serve a 40 ms deposit call, so they are precomputed on a schedule and served slightly stale. Measure that staleness: a ring assembled this morning will not appear in last night's graph.

    Training and serving must share transformation code. When they drift apart the result is training-serving skew, and in antifraud it is mundane: a currency conversion applied in the training notebook but not in the scoring service is the most common cause of a model that validated beautifully and performs at chance in production. A cheap guard is to log the served feature vector for 1% of calls and diff it nightly against the offline pipeline's value for the same event; any feature whose mismatch rate exceeds, say, 0.5% blocks the next promotion. And the service needs a defined fallback: when the feature store times out, the correct behaviour is to fall through to rules, log the event, and never to score on silently defaulted zeros.

    What a reviewer does that the model must not

    The model produces a probability and reason codes. It should not produce a verdict on anything that is irreversible or legally consequential.

    Permanent account closure, confiscation of a balance, and the filing of a suspicious activity report are human decisions in essentially every regulated market, for reasons that have little to do with sentiment. These decisions carry statutory obligations, they must be justifiable to a licensing body months later, and many data-protection regimes (in the EU, Article 22 of the GDPR) give individuals rights against decisions with significant effects taken by automated means alone.

    AML rules add a second reason. Due-diligence thresholds in gambling typically count linked transactions together, so a feature such as "deposits by this customer across the last seven days" stops being only a fraud signal and becomes evidence the operator may have to produce. Its as-of value has to be stored at decision time; a value recomputed later from corrected data will not match what the reviewer saw.

    Together these obligations translate into concrete engineering requirements: every score persisted with its model version, feature values and reason codes; the ability to reconstruct why an account was flagged on a given date; a documented override path with the reviewer's identity attached; and an appeals route that a human actually answers.

    Two boundaries specific to this industry deserve explicit policy. Responsible-gambling signals and fraud signals must be kept apart. A player who set a deposit limit, took a cooling-off period or triggered an affordability check is not thereby more suspicious, and letting those flags into a fraud model penalises exactly the protective behaviour the licence requires you to encourage. The reverse is equally important: a fraud score must not trigger a responsible-gambling (RG) intervention, because RG decisions have their own governance and their own audit trail. Keep two models, two owners, two review processes, and let a human read both.

    The second boundary concerns proportionality. Reason codes given to reviewers should be specific enough to act on and never so specific that they teach an attacker the threshold, which is why customer-facing messaging stays generic while the internal record stays detailed.

    Where a model is the wrong instrument

    A classifier needs examples, volume, and a target that is stable enough to learn. Remove any of the three and something else is the right tool.

    Below a few hundred confirmed cases, a supervised model will fit noise. A brand with ninety fraud cases across two years is better served by well-maintained rules, a device-intelligence provider and an experienced analyst. Novel attacks are invisible to supervised learning by definition; anomaly detection plus a staffed queue is the honest answer for the first weeks of any new pattern.

    Some problems that look like fraud are product defects. If bonus terms permit low-risk arbitrage, meaning a wagering contribution table that lets a player clear a requirement with near-zero variance, or a promotion whose expected value is positive for the player, the correct fix is to rewrite the terms. Training a model to catch people for taking the offer as written treats the customer as the defect. Modelling around a broken product means paying inference costs forever to conceal a change someone could make in an afternoon.

    Finally, a model cannot recover money that has already left, cannot substitute for identity verification, and cannot tell you whether a pattern is fraud or merely unusual. It ranks. The judgement about what the ranking means, and what it is fair to do to the people at the top of it, stays where it belongs.

    Questions the risk committee asks in model review

    How much labelled fraud do we need before a supervised model is worth building? As a rough working figure, several hundred confirmed cases within the window you intend to train on, spread across more than one attack type. Fewer than that and validation folds contain too few positives for any estimate to be stable, and the sensible investment is better labelling rather than a bigger model.

    Why not simply optimise recall, given that fraud is expensive? Because the false-positive side has a real price that is invisible on the fraud P&L. A held withdrawal produces support contacts, complaint escalations, and a measurable share of players who never deposit again. Recall without a stated cost per false positive optimises one department's number at another department's expense.

    We are catching less fraud than last quarter. Is the model degrading? Possibly, but check three cheaper explanations first: the label backfill for the recent period is incomplete, so cases exist but are not confirmed yet; traffic mix changed and the underlying rate genuinely fell; or the model is blocking successfully and those blocked cases no longer generate outcomes. Only the first is a measurement artefact, only the third is good news, and separating them requires the randomised unblocked sample.

    Can the same model score deposits and withdrawals? It can, and it should not. The base rates differ by an order of magnitude, the available features differ, the latency budgets differ, and the cost of a false positive differs sharply. One model forced across both will be tuned for whichever population dominates the training set.

    How do we explain a decision to a regulator six months later? By storing the inputs, not by reasoning backwards from the model. Persist the feature vector, model version, score, threshold in force, reason codes and reviewer action for every decision, with a retention period matched to the licence. A SHAP attribution generated today against a retrained model is not evidence of what happened in March.

    Does a more accurate model always reduce losses? No. Losses fall when better ranking is converted into better actions at a threshold priced from real costs. A model with higher PR-AUC deployed at an unchanged, badly chosen threshold can easily produce more friction, more churn and the same fraud loss as the one it replaced.