All projectsW

05 / 06Machine Learning·2024

Fraud Detection

Transaction fraud classification

A machine learning model that classifies fraudulent transactions on highly imbalanced data, evaluated with precision, recall, and F1.

Fraud Detection

Role

Data science project

Year

2024

Category

Machine Learning

Stack

  • Python
  • Pandas
  • scikit-learn
  • Classification

Overview

The story.

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

What it does.

01

Exploratory analysis

Studied transaction patterns to understand what separates fraud from normal activity.

02

Imbalance handling

Tested resampling and class weighting to give the minority class a fair chance.

03

Model comparison

Compared several classifiers and tuned the most promising ones.

04

Honest evaluation

Reported precision, recall, and F1 with a confusion matrix, not just accuracy.

Next project

Credit Scoring

Credit risk prediction model

Wendy · Software Engineer

All projectsContact