Skip to content

πŸ’΄ A machine learning project that detects fraudulent credit card transactions using classification algorithms. Includes data preprocessing, EDA, model training & evaluation with techniques like Random Forest, Logistic Regression, and SMOTE for class imbalance. Built for secure financial insights and real-world fraud detection use cases.

License

Notifications You must be signed in to change notification settings

QuantumCoderrr/Credit-Card-Fraud-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Credit Card Fraud Detection πŸš¨πŸ’³

This project focuses on detecting fraudulent credit card transactions using machine learning techniques. It uses a dataset containing credit card transactions, where each transaction is labeled as either 'Fraud' or 'Not Fraud'. The goal is to train a model to predict fraud based on transaction features.

Table of Contents

Overview

In this project, we use a Random Forest Classifier to classify credit card transactions as fraudulent or not. The project includes steps like:

  • Data Preprocessing
  • Model Training
  • Evaluation (Confusion Matrix, Classification Report, ROC-AUC)
  • Feature Importance Analysis

Requirements πŸ“¦

The following libraries are required to run this project:

  • pandas
  • numpy
  • matplotlib
  • seaborn
  • scikit-learn

Getting Started πŸš€

Prerequisites

  • Python 3.8 or higher
  • Required libraries installed (pip install -r requirements.txt)

Installation

  1. Clone the repository:
    git clone https://github.com/QuantumCoderrr/CreditCardFraudDetection.git
    cd CreditCardFraudDetection
  2. Install dependencies:
    pip install -r requirements.txt
    

Results πŸ“Š

Below are the visuals showing the Confusion Matrix and Feature Importance.

Confusion Matrix

The confusion matrix visualizes the performance of the classification model, showing the true positives, true negatives, false positives, and false negatives.

Confusion Matrix

Feature Importance

Feature importance indicates the relative importance of each feature in the model's decision-making process. Higher values indicate features that play a greater role in determining the prediction.

Feature Importance

Dataset πŸ“‚

The dataset used for this project can be accessed via the following Google Drive link:
Credit Card Fraud Detection Dataset

Contributing 🀝

We welcome contributions! Please follow the contributing guidelines to submit changes.

License πŸ“

This project is licensed under the MIT License - see the LICENSE file for details.


Thanks for checking out the project! Let's work together to make fraud detection more efficient! πŸš€

About

πŸ’΄ A machine learning project that detects fraudulent credit card transactions using classification algorithms. Includes data preprocessing, EDA, model training & evaluation with techniques like Random Forest, Logistic Regression, and SMOTE for class imbalance. Built for secure financial insights and real-world fraud detection use cases.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published