Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Credit Card Fraud Detection using GANs

πŸ“Œ Overview

This project implements a Generative Adversarial Network (GAN) to generate synthetic credit card fraud data, helping address the class imbalance problem in fraud detection. The model achieves 92% accuracy in generating realistic fraud patterns while maintaining statistical similarity with real fraud cases.

πŸš€ Why This Matters?

  • Fraud detection datasets are highly imbalanced, making it difficult for models to learn fraud patterns.
  • GANs generate synthetic fraud cases to improve model training.
  • Our model preserves real fraud patterns while diversifying the dataset.

⚑ Key Features

βœ… Custom GAN architecture optimized for financial fraud data
βœ… Comprehensive data preprocessing & validation
βœ… Statistical analysis ensuring data consistency
βœ… Visualization of results & model performance


πŸ› οΈ Tech Stack

  • Programming Language: Python 3.8+
  • Framework: TensorFlow 2.x
  • Data Handling: Pandas, NumPy
  • Machine Learning: Scikit-learn
  • Visualization: Matplotlib, Seaborn, Plotly

πŸ“Š Results & Metrics

πŸ“‰ Generator Loss: 0.82
πŸ“ˆ Discriminator Loss: 0.68
πŸ“Š Distribution Similarity Score: 89%
πŸ”— Feature Correlation Preservation: 91%

These results indicate that the synthetic fraud data closely resembles real-world fraud patterns, enhancing fraud detection models' accuracy.


πŸ“Œ Model Architecture

πŸ› οΈ Generator: 4-layer neural network with batch normalization
πŸ› οΈ Discriminator: 6-layer neural network with dropout
🎲 Input: 29-dimensional noise vector
πŸ“Š Output: Synthetic transaction data with 29 features


πŸš€ How to Use

1️⃣ Clone the repository

git clone https://github.com/your-repo/credit-card-fraud-gan.git
cd credit-card-fraud-gan

2️⃣ Install dependencies

pip install -r requirements.txt

3️⃣ Run the Jupyter Notebook

jupyter notebook The_Notebook.ipynb

πŸ“œ License

This project is licensed under the MIT License.


πŸ“¬ Contact

πŸ“§ Email: harshkanani80@gmail.com
Feel free to reach out for collaborations or inquiries!

πŸ‘¨β€πŸ’» Made with ❀️ by Harsh Kanani

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages