Catching fraud across 6.3 million transactions
A fraud detection classifier engineered on 6.3 million transactions with careful feature engineering and SMOTE, reaching 98% accuracy on heavily imbalanced data.
- Category
- Machine Learning
- Published
- November 28, 2025
- Client
- Fraud detection
This is machine learning engineering in practice: solve imbalance and reliability first, then package the model so it can be consumed safely by production systems.
What I built
A fraud detection classifier trained on 6.3 million transactions that flags suspicious activity at 98% accuracy.
How it works
Fraud data is heavily imbalanced — genuine fraud is rare, which is exactly what makes naive models useless. The work went into feature engineering and using SMOTE to balance the training set so the model learns the fraud signal instead of just predicting “not fraud” every time. It’s built with Scikit-learn and served behind FastAPI.
Why it matters
On imbalanced problems, headline accuracy is a trap — a model can score high by ignoring the thing you care about. Treating the imbalance directly is what makes the classifier actually catch fraud rather than look good on paper.
Related AI engineering paths
If you need fraud or risk scoring in a production workflow, start with AI engineering services, review adjacent AI case studies, or contact me with your data and risk constraints.
Related reading: Classifying 300,000 invoices at 98% accuracy and Shipping ML behind a FastAPI service that stays up.
Building something similar?
If you have a workflow that's slow, manual, or hard to scale, I can tell you what AI can realistically do about it.