05 / 06Machine Learning·2024
Transaction fraud classification
A machine learning model that classifies fraudulent transactions on highly imbalanced data, evaluated with precision, recall, and F1.

Role
Data science project
Year
2024
Category
Machine Learning
Stack
Overview
Fraud is rare, which is exactly what makes it hard to catch. In this dataset only a tiny share of transactions were fraudulent, so a model could look 99% accurate while missing almost every fraud case.
I focused on handling that imbalance properly and judging the model with precision, recall, and F1 instead of plain accuracy, so the results reflect how well it actually catches fraud.
Highlights
Studied transaction patterns to understand what separates fraud from normal activity.
Tested resampling and class weighting to give the minority class a fair chance.
Compared several classifiers and tuned the most promising ones.
Reported precision, recall, and F1 with a confusion matrix, not just accuracy.
Wendy · Software Engineer