Skip to content

ShrutiPatel263/Fraud_Detection_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’³ Credit Card Fraud Detection β€” ML Classification Pipeline

An end-to-end Machine Learning project for detecting fraudulent credit card transactions using ensemble learning techniques. This project benchmarks multiple tree-based models and demonstrates superior performance using gradient boosting methods on a highly imbalanced dataset.

Credit card fraud detection is a highly imbalanced binary classification problem where fraudulent transactions represent a very small percentage of total transactions.

The objective of this project is to:

  • Build a robust fraud detection pipeline
  • Compare multiple ensemble learning models
  • Evaluate performance using ROC-AUC and classification metrics
  • Identify the best performing model for real-world deployment

πŸ“Š Dataset Information


βš™οΈ Tech Stack

  • Python
  • NumPy
  • Pandas
  • Scikit-learn
  • XGBoost
  • LightGBM
  • CatBoost
  • Matplotlib
  • Seaborn

🧠 Models Implemented

The following ensemble models were trained and evaluated:

  • Random Forest
  • AdaBoost
  • CatBoost
  • LightGBM
  • XGBoost

πŸ“ˆ Model Performance (ROC-AUC Score)

Model ROC-AUC
πŸ₯‡ XGBoost 0.9771
πŸ₯ˆ LightGBM 0.9682
CatBoost 0.8578
Random Forest 0.8529
AdaBoost 0.8135

πŸ”₯ Best Model: XGBoost

  • Achieved ROC-AUC = 0.977
  • Excellent class separation capability
  • Strong performance on imbalanced dataset
  • Suitable for production-level fraud detection systems

πŸ“Š Evaluation Metrics Used

  • ROC Curve & AUC Score
  • Confusion Matrix
  • Precision
  • Recall
  • F1-Score

Special focus was given to Recall to minimize false negatives (missed fraud cases).


πŸ—‚ Project Structure

Fraud_Detection_Model/
β”‚
β”œβ”€β”€ credit_card_fraud_detection.ipynb
β”œβ”€β”€ README.md
└── requirements.txt

πŸš€ How to Run the Project

1️⃣ Clone the repository

git clone https://github.com/ShrutiPatel263/Fraud_Detection_Model.git

2️⃣ Install dependencies

pip install -r requirements.txt

3️⃣ Run the notebook

jupyter notebook credit_card_fraud_detection.ipynb

πŸ“Œ Key Highlights

βœ” Implemented complete ML pipeline βœ” Compared 5 ensemble learning algorithms βœ” Handled severe class imbalance βœ” Achieved high ROC-AUC (0.977) βœ” Conducted systematic model benchmarking


πŸ‘©β€πŸ’» Author

Shruti Patel Machine Learning & AI Enthusiast

GitHub: https://github.com/ShrutiPatel263


About

Comparative implementation of tree-based and boosting models for optimized classification performance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors