Skip to content

mondrita/Credit-Card-Fraud-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Credit Card Fraud Detection Using Machine Learning

This project focuses on detecting fraudulent credit card transactions using machine learning techniques. The dataset is highly imbalanced and requires special handling to effectively identify fraudulent behavior while minimizing false positives.


Dataset

  • Source: Kaggle - Credit Card Fraud Detection

  • Details:

    • Contains 284,807 transactions, including 492 fraud cases.
    • Features: 30 total โ€” Time, Amount, anonymized variables V1 to V28, and Class (0 = Normal, 1 = Fraud).
    • Highly imbalanced (~0.17% fraud rate).

Objectives

  • Explore and preprocess the dataset
  • Train and evaluate multiple classification models
  • Compare performance metrics to identify the most effective approach

Models Used

  • ย k-nearest Neighbors (KNN)
  • Logistic Regression
  • Support Vector Machines (SVM)
  • Naive Bayes.

Evaluation Metrics

Given the dataset's imbalance, the following metrics were prioritized:

  • Precision
  • Recall
  • F1-Score

Requirements

  • Python 3.x
  • pandas, numpy, matplotlib, seaborn
  • scikit-learn

๐Ÿ“ Project Retrospective

This was one of my early machine learning projects, built to explore fraud detection using imbalanced datasets and basic classification models. While the implementation is quite simple by my current standards, it helped me understand key ML concepts like feature importance, precision-recall tradeoff, and data preprocessing.

About

A credit card fraud detection system using Machine learning (Early project-2022)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published