Skip to content

thebugged/credit-card-fraud-detection

Repository files navigation


Fraud Guard Banner
python tensorflow scikit-learn streamlit

Fraud Guard - Credit Card Fraud Detection

Advanced machine learning system for real-time credit card fraud detection and prevention using neural networks and cloud-native architecture.

Datasets 🗃️


Setup & Installation

Prerequisites

Ensure the following are installed:

To set up this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/thebugged/credit-card-fraud-detection
  1. Change into the project directory:
cd credit-card-fraud-detection
  1. Create a virtual environment (recommended):
python -m venv fraud_env
source fraud_env/bin/activate  # On Windows: fraud_env\Scripts\activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create the models directory and add your trained models:
mkdir models
# Place your trained model files:
# - european_fraud_model.pkl
# - synthetic_fraud_model.pkl
# - european_scaler.pkl
# - synthetic_scaler.pkl

Running the Application

  1. Run the Streamlit application:
streamlit run main.py
  1. Alternatively, you can train the models first by running this notebook main_modelling.ipynb. Then run the command in step 1.

The application will be available in your browser at http://localhost:8501.


App Structure

fraud-guard-detection/
├── main.py                # Main Streamlit application
├── apps/                  # Application pages
│   ├── home.py            # Home dashboard
│   ├── fraud_detection.py # Fraud detection interface
│   └── resources.py       # Documentation and resources
├── models/                # Trained models and scalers
├── data/                  # Dataset files
├── requirements.txt       # Python dependencies
└── README.md              # Project documentation

License & Disclaimer

This project is developed for educational and research purposes. It should not be used for actual financial decision-making without proper validation, compliance measures, and regulatory approval.

Streamlit App

About

a machine learning application for real-time credit card fraud detection using machine learning models trained on synthetic and European transaction datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors