Skip to content
All case studies

Finance · Enterprise AI · Series C payments firm

Real-time fraud detection that decides in 8 milliseconds

We replaced a nightly rules batch with a streaming ML model that scores every transaction in real time — cutting fraud loss 41% while false positives fell.

PythonKafkapgvectorSageMaker
Finance case study — Real-time fraud detection that decides in 8 milliseconds

-41%

fraud loss

Timeline

4 months

Team

5 engineers + 2 data scientists

The challenge

What was breaking

  • 01Fraud was reviewed in overnight batches, so losses were discovered too late.
  • 02The rules engine produced 9% false positives, angering good customers.
  • 03New attack patterns waited on a release cycle to be addressed.

The approach

How we tackled it

  • 01Built a feature store from live transaction and device signals.
  • 02Trained a gradient-boosted model with a calibrated threshold per segment.
  • 03Served it on a streaming path with a hard 10ms budget and a human queue for the grey zone.

The solution

What we shipped

  • 01Sub-10ms scoring on 100% of transactions.
  • 02A self-tuning threshold that holds false positives under 1.5%.
  • 03A feedback loop where every reviewed case retrains the model nightly.

In pictures

A closer look

The live risk console
The live risk console
The scoring model in the stream
The scoring model in the stream
Guardrails & audit trail
Guardrails & audit trail

The results

-41%

fraud loss

-83%

false positives

8ms

median decision

3x

faster to new patterns

"We went from chasing yesterday's fraud to stopping today's. The finance team finally trusts the green light."
Head of Risk, Series C payments firm

Related work