Skip to main content
All Case Studies
BFSI / Fintech

Real-Time Fraud Detection: $2M Saved in Chargebacks

A fintech company's rule-based fraud system was catching less than half of fraudulent transactions. We built ML models that score transactions in under 50ms and brought detection rates above 92%.

92%Fraud Detection Rate (up from 40%)

The Challenge

What was getting in the way

  1. 01

    The existing rule-based system flagged only 40% of actual fraud. The other 60% slipped through and hit as chargebacks

  2. 02

    False positive rate was 18%, meaning legitimate customers were getting blocked and calling support to complain

  3. 03

    Rules were maintained manually by a team of three analysts. Adding a new rule took weeks of testing and rollout

The Solution

How we solved it

We built a two-stage fraud detection pipeline. Stage one is a lightweight gradient-boosted model that scores every transaction in under 10ms. Transactions above the threshold go to stage two, a deeper neural network that evaluates 140+ features including device fingerprint, velocity patterns, and behavioral anomalies. The whole system runs on AWS Lambda + SageMaker endpoints behind an API Gateway. We trained on 18 months of labeled transaction data (12M+ records) and deployed with a shadow mode that ran alongside the old system for two weeks before going live.

Technologies

Python
XGBoost
TensorFlow
AWS SageMaker
Lambda
DynamoDB
Kafka

What We Built

A look inside the project

Transaction Fraud Monitor
Monitoring
92% Detection Rate
Transactions/sec
1,247
Flagged
23
Blocked
8
Avg Score Time
12ms
Recent TransactionsLive Feed
TimeAmountStatusRisk Score
14:23:12$129.99Approved
0.05
14:23:09$2,499.00Flagged
0.87
14:23:07$45.99Approved
0.03
14:23:04$8,750.00Blocked
0.96
14:23:01$312.50Flagged
0.72
Illustration based on actual project deliverable

The Process

Step-by-step delivery

Step 1

Data Preparation

Clean and label 18 months of transaction data (12M+ records)

Step 2

Feature Engineering

Build 140+ features from device, velocity, and behavior signals

Step 3

Model Training

Train two-stage pipeline: fast scorer + deep fraud analyzer

Step 4

Shadow Deployment

Run alongside existing system for 2-week validation

Step 5

Production Launch

Go live with real-time scoring and alerting dashboard

The Results

The numbers

92%

Fraud Detection Rate (up from 40%)

$2M

Annual Chargeback Savings

<50ms

Transaction Scoring Latency

Built with:PythonXGBoostTensorFlowAWS SageMakerLambdaDynamoDBKafka