Logo
Full Logo

Stopping card fraud in real time without blocking good customers

A retail bank replaced static fraud rules with machine learning that scores every transaction as it happens.

<0.01%
false positive rate across millions of transactions

At a glance

Client
A mid-sized retail bankName withheld for confidentiality
Industry
Banking
Scope
Fraud model design, real-time scoring and analyst tooling

The challenge

The bank's fraud controls were a growing list of hand-written rules. Fraudsters learned the thresholds quickly, and every new rule added to catch them also blocked more genuine purchases.

Analysts were buried in alerts, most of them false alarms, while new fraud patterns still slipped through for days before anyone wrote a rule for them.

Our approach

  1. Study the fraud that got through

    We analysed confirmed fraud cases and false alarms together to see where the rules were too loose and where they were too strict.

  2. Engineer behavioural features

    We built features that describe how each customer normally spends: where, when, how much and on which devices.

  3. Score in milliseconds

    Models were deployed behind the payment switch so each transaction is scored before it is approved.

  4. Close the feedback loop

    Analyst decisions flow back into training, so the models keep learning as fraud patterns change.

The solution

Every card transaction now receives a risk score in real time, based on how unusual it is for that specific customer rather than on fixed limits. High-risk payments are held for review, low-risk ones go straight through.

Analysts work from a single queue that explains why each transaction was flagged, which makes reviews faster and decisions more consistent.

Results

<0.01%
false positive rate across millions of transactions
  • Fraud detected as it happens instead of after the money has gone
  • Far fewer genuine customers have their cards declined
  • Analysts review a short, explained queue instead of thousands of raw alerts
  • Models retrain on new cases so detection keeps pace with fraudsters

Technology used

  • Python
  • XGBoost
  • Kafka
  • Feature store
  • Real-time scoring API

Facing a similar challenge?

Tell us what you are working on. We will walk you through how we would approach it, with no obligation.

All case studies