Published on Dec 21, 2023Olivia WilliamsRead time: 13m892 viewer
AI Fraud Detection: How to Test a Model on Your Own Traffic

AI Fraud Detection: How to Test a Model on Your Own Traffic

A fraud model that scores well on a public benchmark can still approve the wrong orders on your traffic. The gap is rarely the algorithm. It is what the model learned from, what it is allowed to see in the 200 milliseconds before a payment goes through, and how you measure it once real money sits behind the decision.

Buying AI fraud detection usually means choosing between a vendor's model, a model you train on your own history, or both used together. Whichever path you take, one question decides the outcome: what can you verify before you switch it on, and what can you still verify a month later?

"Machine learning systems in fraud detection, credit scoring, and clinical risk assessment operate under delayed ground truth: outcome labels arrive days to months after the decision they evaluate." The paper evaluates a proxy monitoring model on the IEEE-CIS Fraud Detection dataset of about 590,000 transactions and finds that proxy monitoring detected covariate and mixed drift with a 100% detection rate, while concept drift without a change in the feature distribution stayed undetected. In a simulated blind period, sufficiency fell fastest under concept drift, to 0.242 at day 60 against 0.418 with no drift. Evidence Sufficiency Under Delayed Ground Truth: Proxy Monitoring for Risk Decision Systems, arXiv, April 2026.

Why a high demo score does not survive production

A vendor benchmark answers one question: how well the model learned that dataset. Your traffic differs in average order value, country mix, share of returning customers, and the quality of the labels behind it. Chargebacks can arrive 45 to 90 days after the sale, so the answer to "was this order fraud" is not even settled when the next campaign starts.

Three things explain most of the drop between the demo and the first month live. The label the model learned is often not the label your team reviews, so a model trained on chargebacks will miss refund abuse and account takeover. Features it saw in training, such as device history or cross-account velocity, may not exist yet at decision time. And the score is usually judged without the constraint that decides its value: how many alerts your analysts can actually review.

None of that makes the model useless. It means the evaluation has to happen on your data, with your labels, at your review capacity.

The blind period between a decision and its label

Every fraud system works blind for a while. You approve an order today, the chargeback lands in eight weeks, and until then the only evidence you have is the traffic around the decision. The paper above names the four dimensions that degrade in that window: completeness, freshness, reliability and representativeness of the evidence. It also shows the shape of the problem: drift in the input distribution is detectable without labels, while a change in the relationship between features and fraud, without a visible change in the features, is not.

For a merchant this reads as a simple rule. Any accuracy number you can compute right now describes traffic from six to ten weeks ago. Treat it as history, not as a live guarantee, and watch the inputs in between.

Test the model on your own traffic before you commit

The cheapest test is also the most honest. Export six to twelve months of your own decisions with their final outcomes: approved orders that were never disputed, orders you refunded after a complaint, chargebacks you lost, and the ones your team reviewed and cleared. Score that same traffic with the candidate system and compare its decision with what actually happened.

Two details make the difference between a test and a demo. Score only orders where the outcome is final, so a pending dispute does not count as clean. And keep the labels you actually use in operations, even when they are messier than "fraud" and "not fraud", because a model that separates chargebacks from clean orders tells you nothing about the refund abuse sitting in your review queue.

If you run your own model, the same export becomes the training set and the test set. If you buy a vendor's model, the export is your acceptance test, and it is the only number that reflects your business.

Split by time, not at random

A random split puts orders from the same week in both training and test. The model then learns the traffic of that week twice and reports a result your future traffic will not reproduce. Sort the data by date, train on the earlier months, and test on the months that follow. If you can, hold out a whole quarter, including a peak period, because fraud behaves differently when volume triples.

The same logic applies to a vendor's backtest. Ask which period was held out and whether it includes a seasonal peak. A model validated on a quiet February is untested for December.

Measure precision at your review capacity

Fraud detection has one operating point that matters: the threshold you actually run. At that threshold, count how many of the flagged orders were fraud (precision), how many frauds you caught out of all frauds (recall), and how many alerts per day land in the queue.

One useful vocabulary item for the buying conversation is the confusion between a scoring model and a production fraud detection system. A model outputs a score. A system decides what happens to the order, which is why alert volume belongs in the evaluation and not in the fine print. If your team can review 400 orders a day and the system flags 1,200, the model is not working as a system, whatever its AUC.

That distinction is why a fraud detection software comparison built on published accuracy alone rarely survives the first month.

Weigh a missed fraud against a false decline rather than treating them as equal. A missed fraud costs the order, the goods and the chargeback fee. A false decline costs the sale, and often the customer, which is why the cost of false declines is worth a separate read before you tune a threshold.

What you know at the moment of the decision

Real time fraud detection is limited by data that exists when the request arrives. Signals available then are the ones that can change a decision: the IP and what it belongs to, the network type behind it, whether the email domain was created last week, whether the card's issuing country matches the billing country, and how fast the same account or card is being used.

Signals that arrive later, such as "this card had a chargeback in another store", are useful for training and useless at the checkout unless the vendor has already collected them across its network and can return them in the same call. Ask which fields in the response are computed at request time and which are cached from history. Then measure the latency of the whole call, because a model that needs 900 milliseconds will not fit a checkout that times out at 500.

The threshold is a business decision

Most fraud scores arrive on a 0 to 100 scale with a risk level attached. The vendor sets the default cut between accept, review and block. Your business sets the real one, and it differs by segment: a digital subscription with instant delivery can tolerate a stricter block than a furniture order that ships in three weeks and can be cancelled.

Set the threshold per segment, then track two numbers after launch: the share of accepted orders that came back as disputes, and the share of reviewed orders your analysts cleared. The first tells you whether the model is missing fraud. The second tells you whether you are paying reviewers to process noise.

Drift you can see and drift you cannot

Two kinds of change matter. The first is in the inputs: a new payment provider, a campaign that brings traffic from a country you did not serve, a bot wave on a hosting range. The second is in the relationship between inputs and fraud: the same signals, a different meaning.

The first is monitorable without labels. The second is not, which is the finding in the paper above and the reason a model needs fresh labels on a schedule. Model drift is not a rare event to plan for later. Fraud detection algorithms learn a relationship between inputs and outcomes, and that relationship moves under you. It is the normal state of a fraud detection model, because the people on the other side adapt to whatever you deploy.

In practice this means a retraining cadence you can name, a fixed sample of decisions reviewed by a human every week, and an alert on the input distributions you care about. A model without a review loop is a snapshot of last year's fraud.

Explanations that survive a dispute

When you lose a chargeback, you have to explain why you accepted the order, not only that a model approved it. A score of 71 is not evidence. A reason code that says the customer IP was on a hosting network, or that the email domain was four days old, is something a payments team can put in a representment file.

This is also where explanations age. A separate 2026 study on the same transaction dataset found that explanations generated before a drift event stayed relevant to a retrained model, but were consistently less faithful than explanations generated by that retrained model. Explanations belong to the model that produced them. Does Explainability Survive Data Drift?, arXiv, October 2026.

So keep the reason codes stored with each decision, with a timestamp and the model version. That record is what turns a fraud detection system into something a risk team can audit months later.

Shadow mode before the cutover

Running the new system next to the old one costs a fraction of a bad cutover. Score every order with the candidate, keep the current decision in production, and compare after four to six weeks. You get the disagreement rate, the cases where the newcomer would have blocked a customer you kept, and the frauds it would have caught that you missed.

The Greip payment endpoint supports a test mode for exactly this stage, so a shadow run can use the same request shape as production without moving money. Set exit criteria before you start: a maximum share of extra blocks you are willing to accept, a minimum of caught frauds, and a latency ceiling.

Questions that separate a real system from a demo

  • Which period was held out, and did it include a peak season?
  • What label did the model learn, and how is that label collected?
  • Which response fields are computed at request time, and what is the p95 latency?
  • Can the score be explained per decision with a reason code you can store?
  • How often is the model retrained, and who reviews the traffic in between?
  • What happens to the score when the customer is behind a corporate VPN or on mobile data?
  • Does the price scale with requests, and what does a shadow run cost?
  • Can you export the decisions and reasons for your own analysis?

A vendor that answers these in writing is selling a system. A vendor that answers only the first one is selling a benchmark.

Where Greip fits

Greip scores the payment and returns the parts you need for a rollout. POST /score/payments takes the transaction and the customer details and answers with a score from 0 to 100, a risk_level, a recommendation of accept, review or reject, and a rules array where each rule carries an id and a description. Those descriptions are the reason codes you store for reviews and disputes.

curl --request POST \
  --url https://v2.greipapi.com/score/payments \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "data": {
      "action": "purchase",
      "customer_ip": "165.227.149.1",
      "customer_email": "buyer@example.com",
      "transaction_id": "ord_8241",
      "transaction_amount": 149.9,
      "transaction_currency": "USD"
    },
    "mode": "test",
    "source": "shadow-run"
  }'

The response:

{
  "success": true,
  "data": {
    "score": 82,
    "risk_level": "high",
    "recommendation": "review",
    "rules": [
      {
        "id": "PF10003",
        "description": "Customer IP Address is probably VPN/Proxy/Bot/Hosting/Cloud."
      },
      {
        "id": "PF10004",
        "description": "Customer Email Address is probably invalid or spam."
      }
    ]
  },
  "execution_ms": 42
}

The payment score sits on top of the individual lookups, which are the fields you can test one by one before trusting the combined score. IP intelligence returns security.vpn_or_proxy, security.hosting, security.tor and the ASN type, and VPN and proxy detection explains how those flags are derived. Data scoring and validation covers the email and phone checks, BIN lookup covers the card's issuer and country, and payment fraud analysis is the combined endpoint shown above. The v2 payment endpoint documentation lists every request and response field, and the IP lookup reference covers the response modules.

For how a model turns those signals into a decision, this guide to machine learning fraud detection goes through the supervised and unsupervised side. If you are still comparing suppliers, the 2026 roundup of fraud detection tools and the guide to choosing fraud prevention tools cover the shortlist stage.

What the score cannot prove

A risk score is a statement about probability, not a finding of fraud. A customer on a corporate VPN with a new email address can be entirely legitimate, and a clean order from a residential IP can be a stolen card. The model ranks, and the policy decides.

Treat the first month as a calibration period with a human in the loop on every block, then widen the automation as the review data supports it. That sequence is slower than switching the whole queue to automatic decisions, and it is the one that leaves you with numbers you can defend when a customer complains or a partner asks how the decision was made.

FAQ

How do I test an AI fraud detection model before buying it?

Score six to twelve months of your own closed orders with the candidate model and compare its decisions against the final outcomes. Split the data by date rather than at random, hold out a peak period, and measure precision at the alert volume your team can review, not the best point on a curve.

Why does a model perform worse in production than in a demo?

The demo traffic is not your traffic. Different order values, countries, returning customer share and label quality all change the result, and the features available at the moment of a real decision are fewer than the features available in a training file. Chargebacks that arrive months later also mean the live accuracy number always describes older traffic.

What is the blind period in fraud detection?

It is the window between a decision and the outcome that proves it right or wrong. An order approved today may only be settled by a chargeback eight weeks from now, so the evidence behind the model degrades before any label arrives. Monitoring the inputs, rather than waiting for labels, is the only way to see problems inside that window.

How often should a fraud model be retrained?

There is no fixed number of days that fits every business. Set the cadence from how fast your traffic changes, keep a human review sample running every week, and retrain when the reviewed sample shows the model missing cases it used to catch. A named cadence, even a rough one, beats waiting for accuracy to drop.

Can I run an AI fraud model in shadow mode first?

Yes, and you should. Score live orders with the new system while the current rules keep deciding, collect four to six weeks of disagreements, and set the exit criteria before the run starts. Greip's payment endpoint has a test mode for this, so the shadow call uses the same request as production.

Does a high risk score mean the order is fraud?

No. The score ranks risk. A high score on a hosting IP with a young email domain means the order needs a check or a review, and some of those customers are perfectly legitimate. Keep the reason codes from the response, use them in review and in disputes, and let policy rather than the score alone decide what happens to the order.

Get started

Start protecting your business today

Our service is trusted by thousands of businesses worldwide.

  • 1,000 requests during trial
  • Cancel anytime

Related Articles