TrueMind
    March 30, 2026
    By Viktor DalmovikUpdated November 2, 2026
    18 min read

    ML in Casino Bonus Mechanics: Two Models Wearing One Name

    A welcome offer can lose half its margin when abuse among takers rises by 13 points. Why bonus work needs two models, one for expected value and one for abuse, with worked numbers.

    A welcome offer can lose half its margin without the campaign report noticing. Let the share of takers who only want to extract the bonus rise by 13 points. In the worked example below, margin per grant then falls from 15.62 to 7.29. That sensitivity is the practical reason bonus work needs two separate models.

    Two models wearing one name

    "Bonus optimisation" almost always turns out to be two separate modelling problems. They share a database table and nothing else.

    The first asks what an offer is worth before it goes out. Take this player, this offer and this moment. What margin will granting it bring? Does that beat a cheaper offer, or no offer at all? This is a regression problem: the target is a continuous number. It comes with a budget limit and with bias built into the historical data, because past offers went only to selected players.

    The second asks whether the person taking the offer wants to play or wants to extract the bonus. This is a rare-event classification problem. The opponent adapts, the accounts form networks, and a false alarm hurts a genuine customer.

    The two need different targets, different validation, different serving paths and different owners. Some teams build them as one system: a single score that decides both whether a player deserves an offer and whether they can be trusted with it. That model is mediocre at both jobs and impossible to debug. A change in abuse patterns quietly shifts the marketing recommendations.

    The contrast runs through every aspect. Offer valuation predicts margin over the bonus lifecycle, a continuous number. Abuse detection makes a yes-or-no call on the 0.5 to 4 per cent of redemptions that look suspect. Valuation is judged on how well predicted value matches realised value. Abuse detection is judged on precision within review capacity and on PR-AUC, a measure suited to rare cases. A valuation error wastes budget and thins margin. An abuse error either blocks a genuine customer or lets extraction run on. Only abuse detection faces an opponent, and it does so all the time. The two also refresh at different speeds: valuation once per campaign cycle, abuse every few weeks and sometimes every few days.

    Pricing an offer before it is sent

    The expected value of a granted bonus comes from plain arithmetic, and marketing guesswork has no place in it. It depends on a few quantities, and each can be modelled separately.

    Take an illustrative offer: a 50 per cent match up to 100, with a 30x wagering requirement on the bonus amount, seven days to complete it and standard game weighting. A player deposits 100 and receives 50 in bonus funds. What does that 50 cost?

    Less than 50, and possibly nothing. Say the player wagers the full requirement of 30 × 50 = 1,500 on eligible games with a 4 per cent house edge. The expected theoretical hold during wagering is 60. If wagering is completed and the bonus converts, the operator has paid 50 and expects to earn 60. The bonus pays for itself in theory, and the whole mechanic rests on that relationship. Cut the multiplier to 15x and the expected hold falls to 30. The same offer now costs 20 per grant.

    Real populations split into groups that behave very differently, which is where the modelling starts.

    About 35 per cent complete the requirement. They turn over the full 1,500 and generate 60 of hold against 50 paid out, which is +10 per grant. Around 60 per cent give up partway. On average they turn over 600 and generate 24 of hold, and they lose the bonus, so the operator nets +24. Roughly 5 per cent focus on extraction. They turn over the full 1,500 but at a very low effective edge, generating only 4.5 of hold against 50 paid. That is a loss of 45.5 per grant.

    Weighted, that gives 0.35 × 10 + 0.60 × 24 minus 0.05 × 45.5 = 3.5 + 14.4 minus 2.28 = 15.62 per granted bonus. This is before asking whether the deposit would have happened anyway. Now let the extraction share rise to 18 per cent, with completion at 30 and abandonment at 52. The result is 0.30 × 10 + 0.52 × 24 minus 0.18 × 45.5 = 3.0 + 12.48 minus 8.19 = 7.29. Same offer, same players in every other respect, and the margin has more than halved because one group grew.

    That is the whole case for building both models. The valuation model needs, for each player, a chance of completion and an effective-edge estimate. The abuse model sets the weight of the third group. Neither is optional if the bottom-line number is meant to be trusted.

    So four quantities need separate estimates, each from its own model or its own measured constant. First, the chance that the player accepts the offer. Second, the chance that they complete the wagering. Third, the effective house edge across the games that player actually picks. Fourth, the extra part of the deposit, the part that would not have happened without the offer. The last is the hardest and the one most often assumed away.

    Wagering completion behaves like a countdown

    Completion looks like a yes-or-no target, but it behaves like a duration. A player has seven days to turn over 1,500. Commercially, it matters how far they get and how fast, as well as whether they finish, because all of this sets the hold.

    A plain classifier throws away two things. It loses the partial progress of the sixty per cent who give up, and that is where most of the margin in the example comes from. It also mishandles players whose bonus is still running when the data is cut. Their outcome is unknown; statisticians call them right-censored. Labelling them as failures pushes the completion rate down by exactly the share of recent grants in the training window.

    The right tool is a survival model over wagering progress. Build a table with one row per player per day. The target is "completed the requirement on this day", and features update daily. The model gives the daily chance of completion. From that you get the overall completion probability and, more usefully, expected turnover, which feeds straight into the hold calculation. Players still inside their bonus window count for the days observed and then drop out, which is exactly how censored cases should be handled.

    The features that carry the signal are specific. Turnover in the first 24 hours as a share of the requirement. Average stake compared with the player's own average before the bonus. The weighted game mix since the grant. Sessions since the grant. And the remaining requirement divided by remaining hours. After day two, that last one nearly settles the question by itself, which is worth knowing before building anything complicated.

    Where the promo engine writes its own answers into the data

    Historical bonus data comes from the rules the operator was already running. That fact contaminates almost every column.

    Selection does the most damage. Outcomes exist only for offers that were sent and accepted. Say the reload offer used to go only to players with at least three deposits. Then its observed completion rate describes those players alone. Any model trained on it will extend that pattern to everyone else, confidently and wrongly. What it really measures is the rule that chose who got the offer.

    The second problem is direct leakage. Some fields are written by the bonus system after the grant: the number of wagering transactions, bonus status, forfeit reason, converted amount, and any balance field that mixes cash and bonus funds. They all contain the outcome. So do risk-team records: a manual review flag, a withdrawal hold, an adjusted maximum cashout. Cut every one of them off at the grant time. Test that cut-off instead of assuming it. Bonus tables are often updated in place, so an old row can quietly hold the final state.

    The third problem is subtler and specific to bonuses. If a rules engine already blocks some players from bonuses, they never appear in the redemption data. An abuse model trained on redemptions has never seen the players the rules already catch. Its precision is measured only on what the rules missed. Comparing it directly with the rules means comparing two different groups. The fix is to score the blocked players offline too. Also let a small random sample of them through under manual review from time to time. It is uncomfortable, and it is the only way to measure how often the rules themselves are wrong.

    The general cure for selection is deliberate exploration. Assign a fixed share of offer decisions at random from the eligible catalogue, tag them and keep them. Five per cent is a common starting point. It costs budget, and it is the only unbiased training data the system will ever have. Without it, every reported gain is measured against a baseline the model itself helped create.

    Choosing offer size as a decision under a budget

    Predicting an offer's value is one problem. Deciding which offer to send is another, and its structure deserves respect.

    Say the catalogue holds no offer, ten free spins, a 25 per cent match, a 50 per cent match and a cashback percentage. Each has an expected value per player. The naive rule sends each player the offer with the highest expected value. That rule burns the monthly bonus budget in the first week, because for most players the biggest offer scores highest.

    The right framing is assignment under a budget. Maximise total expected extra margin while keeping total expected bonus cost within budget. A standard trick makes this simple enough for a live system. Put a price, called λ (lambda), on each unit of bonus budget. Then the rule per player becomes: send offer k if expected margin minus λ times expected cost is positive, and pick the k where that value is highest. Find λ by trial: try a value, add up expected spend across the eligible players, and adjust until it matches the budget.

    Here is a worked pass. The monthly budget is 200,000, there are 46,000 eligible players and five offers in the catalogue. At λ = 0 the assignment would spend about 631,000. At λ = 1.0 it spends 258,000. At λ = 1.4 it spends 196,000, which is close enough. The final λ has a direct meaning: the margin earned by one more unit of budget at the best allocation. It tells finance what the next 10,000 of budget would return. That answer is far more useful than a campaign-level ROI figure.

    Two properties make this worth the effort. It degrades sensibly. When the budget is cut, the rule withdraws offers from the lowest-value players first, instead of shrinking everyone's offer. And it makes the trade-off visible, so the debate about spending more turns on a measurable return.

    Where random-assignment data exists, the same method runs on uplift estimates in place of raw expected value. That is strictly better, because it removes players who would have deposited anyway. Without such data the assignment still helps, but its margin figures are inflated by an unknown amount. Everyone involved should know that.

    For exploring the catalogue, contextual bandits fit naturally. These algorithms keep trying offers while shifting traffic toward the ones that work for each kind of player. Thompson sampling is a common version, and it still leaves room to notice when a weak offer becomes strong. The practical catch is slow feedback. A bonus outcome takes seven to thirty days to settle, so the algorithm learns with a delay of weeks. Build the batched version that handles delayed rewards. The textbook version that updates after every action will not fit.

    Rare, adversarial and expensive to get wrong

    Abuse detection inherits every difficulty of rare-event classification. On top of that, it faces an opponent who adapts.

    Start with the label, because it reflects policy more than fact. "Bonus abuse" is whatever the terms and conditions say it is, and definitions differ. They include low-risk betting that cancels out the house edge, coordinated multiple accounts, stake patterns built to finish wagering with minimal exposure, abuse of game weighting tables, and arbitrage between bonus and sportsbook markets. Some cases are clear. Others are judgement calls made by an analyst under time pressure. A model trained on those judgements learns the analysts, including their inconsistencies and whatever they were looking for that quarter.

    Two things follow. Labels should record which clause was invoked. Then the model can be trained per abuse type, without a single catch-all "abuse" flag. The behaviours have almost nothing in common, and one classifier blurs them together. Label quality also needs regular audits: re-review a sample of past decisions blind to check consistency.

    The features that really separate abuse from ordinary play mostly describe links between accounts. Behaviour of a single account matters less. Look for shared device fingerprints, payment cards, withdrawal destinations and cleaned-up addresses, clusters of sign-up times, and overlapping IP addresses or subnets. Build a graph with accounts as points and these shared items as links. Then measure the size of each connected group, the variety of link types and how concentrated bonuses are within the group. A model that looks at one account at a time cannot see these features. A single account taking a welcome bonus and playing low-volatility games looks ordinary. The same account in a group of fourteen accounts sharing two payment cards does not.

    Behavioural features still matter. Watch for stakes clustered at the minimum qualifying value, play concentrated in the eligible games with the highest return to player, sharp changes in game mix the moment a bonus is granted, and turnover speed far beyond the player's own norm.

    Now the threshold. Blocking a genuine player costs something: a declined bonus, a support contact, some chance they leave. Call it 65 in expected terms. Missing an extraction case costs the bonus plus lost hold, and with multiple accounts a multiple of both. Call it 340. The break-even point is 65 / 340 = 0.191. So a hard decline only makes sense above about a 19 per cent predicted probability. But a yes-or-no decision is the wrong shape here, because cheaper middle options exist.

    Predicted abuse probability Action Rationale
    Below 0.05 Grant automatically Cost of review exceeds expected loss
    0.05 to 0.19 Grant with reduced maximum cashout, flag for post-hoc review Preserves customer experience, caps downside
    0.19 to 0.55 Hold for manual review before grant Above the break-even point, below certainty
    Above 0.55 Decline with documented reason and appeal route Sufficient evidence for a policy decision

    Review capacity limits the middle bands, as in any alert queue. So the working point is set by precision within that capacity, whatever the raw probability says. With a 1.5 per cent positive rate, ROC-AUC can look excellent and still say little. Track PR-AUC and precision within the review band when comparing model versions.

    Every offer change invalidates part of the training set

    Bonus models drift for a reason other models do not share. The marketing team rewrites the product they describe every few weeks.

    Change the wagering multiplier from 30x to 25x, and every past completion record describes a different mechanic. Change the game weighting table, and the effective edge shifts across the whole base. Change the expiry from seven days to three, and the survival model is wrong from day one. Add a maximum cashout cap, and extraction economics change enough for abusers to reorganise around it.

    The design that survives this describes each offer by its settings, because an offer ID alone teaches the model nothing that transfers. Every setting becomes a feature: match percentage, cap, wagering multiplier, whether wagering applies to the bonus or to bonus plus deposit, expiry in days, maximum cashout, game weighting profile and eligible product. With these inputs, a model can estimate completion for a setup it has never seen. It has learned how the multiplier and the expiry interact with behaviour, instead of memorising that "Offer 4471 completes 32 per cent of the time". Operators who skip this rebuild their model after every campaign change and never build up anything.

    Monitoring runs on two tracks. For valuation, compare realised and predicted margin per grant group, split by predicted value decile, once each group's bonus windows have closed. Overprediction in the top decile is the classic symptom. It usually means the assumption about extra deposits is too generous. For abuse, watch the alert rate, the precision of resolved reviews and the make-up of account groups. The opponent's adaptation shows first as a change in which features matter most. Next comes a rising share of alerts that reviewers overturn.

    Retraining speed differs too. Valuation models refit once per campaign cycle, roughly monthly. Abuse models refit far more often, every two to four weeks in an active market. They also need a fast way to add rules when a new pattern appears. A model refit is too slow against an exploit that is being shared publicly.

    The bonus decision has 200 milliseconds

    Some bonus decisions run in batches, and those are easy. The interesting one sits inside the deposit flow. The player has just funded the account, and the screen must show which offer they qualify for. The whole decision gets a couple of hundred milliseconds at most.

    That budget shapes what the model can use. Behaviour summaries over the last 90 days can be computed in advance and looked up cheaply. Graph features cannot be computed on the spot. Finding connected groups in an account graph is a batch job. So the pattern is a full nightly run with small updates during the day. Each account stores a group ID that can be looked up instantly at decision time. Accounts registered since the last batch have no group yet. They need an explicit rule for new accounts; leaving the field empty is the wrong default.

    Data freshness needs the same contract discipline as anywhere else, plus one bonus-specific rule. The offer catalogue and its eligibility rules change separately from the model. A model scoring against an offer marketing withdrew this morning will recommend something the system cannot grant. So check catalogue state in the serving path after scoring, every time.

    Most operators under-invest in what happens after the grant. Wagering progress needs near real-time tracking for two reasons. The survival model's features update daily and decide when to intervene. And abuse patterns often show within the first hour of wagering, while stepping in is still cheap. A pipeline that reconciles bonus activity nightly learns about extraction the morning after the withdrawal request.

    Limits the bonus model must not cross

    Bonuses are the most heavily regulated mechanic in the online casino product. Their legal limits are fixed constraints, and a model must never treat them as settings to tune.

    Several jurisdictions cap wagering requirements or bonus values. Some require terms to be shown in a set form before acceptance. Others ban bonus-linked withdrawal restrictions, or ban offers to some groups of players altogether. A few markets have restricted or banned welcome bonuses entirely. Rules also change: a new wagering cap can make years of completion history built on 30x or 35x offers useless overnight. So the model's catalogue must know each jurisdiction's rules at the level of offer settings. And the eligibility check must run on every request, never baked into a segment built last week.

    Player-state blocks are absolute and belong in the delivery path. They cover self-excluded players and players in a cooling-off period. They cover players who set deposit or loss limits, players with an open responsible-gambling case, players under anti-money-laundering review and players who withdrew marketing consent. Encoding these as model features is a mistake. Features get rebuilt, while hard checks must stay fixed.

    One targeting pattern needs special attention, because a model will find it on its own. Offers timed right after a big loss score among the most effective by any short-term engagement measure. They are exactly what responsible-gambling regulation exists to prevent. Several regulators treat loss-chasing incentives as a serious compliance failure. The defence starts with removing recent-loss size and loss-sequence features from the targeting model, so the optimiser cannot discover the pattern. Then audit when offers are granted relative to losses at every refit. Removing loss features alone falls short. Related signals can rebuild the same pattern, so eligibility controls and outcome audits stay necessary.

    Two more decisions stay with people. The first is any bonus value above a set threshold, because an automated pricing error multiplies with every grant before anyone notices. The second is any account restriction or forfeiture after an abuse finding. It touches a customer's money. It needs a written rationale, a named decision-maker and an appeal route, and several markets require that route to be disclosed.

    Record-keeping follows. For each grant, keep the model version, the score, the offer settings, the eligibility checks run and the outcome. For each abuse finding, keep the clause invoked and the evidence. "The model said so" will not stand up in front of a regulator or an ombudsman.

    Where the numbers stop being trustworthy

    The extra-deposit part is the weakest link in every valuation figure. Without random holdouts, the expected margin per grant is a ceiling, often far above reality. The players most likely to accept an offer are also the most likely to have deposited anyway. Any programme that reports strong bonus ROI without a control group is reporting how offers and deposits move together.

    The theoretical hold in the arithmetic assumes a house edge, and the player sets that edge through game choice. A player who wagers only on the eligible games with the highest return generates a fraction of the assumed hold, without breaking any terms. You can model effective edge per player from their past game mix. Assuming an average edge is common, and quietly wrong for the group that matters most.

    Abuse labels come from policy and carry the biases of past enforcement. If reviews focused on one payment method or one market, the model will concentrate its alerts there. Its precision will look good for reasons unrelated to where the abuse really is.

    Small operators hit a volume floor. A base granting a few hundred bonuses a month cannot support survival modelling, uplift estimates and a rare-event abuse classifier at once. The sequence that works starts with a well-instrumented rules engine. Next comes honest measurement of completion rates by offer setup, then a random exploration slice. Modelling comes once there is something to model.

    Finally, none of this asks whether a bonus is the right tool at all. A model can split a bonus budget very precisely when the real answer is a smaller budget and a better product. The model has no way to raise that question.

    Questions that surface in bonus programme reviews

    Can the completion rate simply be measured instead of modelled?

    The overall rate can and should be measured for each offer setup. A model is needed when the decision is made per player. Completion rates vary hugely across the base. The right offer for a reliable completer differs from the right offer for someone who quits at fifteen per cent of the requirement. Measurement sets the baseline, and the model allocates.

    How much randomised exploration is enough?

    Enough to estimate each offer's effect within each major player group. With five offers and four groups, that means twenty cells, each needing a workable sample. Five per cent of decisions is a common starting point. You can work out the cost in advance: five per cent of the budget times the average gap between the random offer and the optimised one.

    Should the abuse model and the responsible-gambling model share features?

    No. Keep them deliberately separate, with separate access controls. Merging them risks treating a player who shows signs of harm as a commercial risk. That player needs a protective response, and a bonus decline is the wrong one. Some behavioural features overlap. The models, thresholds and escalation paths should stay apart.

    Why does a model trained on last quarter's data underperform on the new welcome offer?

    Almost always because the offer settings changed and the model learned offer IDs instead of offer settings. Rebuild it with the multiplier, expiry, cap and weighting profile as explicit numeric features. Then one model can cover the whole catalogue and survive changes to it.

    What is the first thing to build if none of this exists yet?

    The measurement layer. Build grant-level records that link an offer setup, a player, a wagering path and a settled outcome. Add a random holdout on one campaign. Most operators then find that their real bonus cost differs a lot from what campaign reports assumed. That finding usually pays for the whole project before any model is fitted.