Skip to content

About

CipherShield AI is an intelligent fraud detection platform built with XGBoost and Flask, designed to analyze financial transactions, predict fraud risks, and provide real-time transaction security insights.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ CipherShield AI

AI-Powered Credit Card Fraud Detection System using XGBoost & Flask

CipherShield AI is a machine learning-based fraud detection platform designed to identify suspicious credit card transactions using advanced classification techniques. The system uses an optimized XGBoost model to analyze transaction patterns and predict whether a transaction is legitimate or fraudulent.

This project combines Machine Learning + Web Development to provide an interactive dashboard where users can upload transaction data and receive real-time fraud predictions with probability analysis.


๐Ÿš€ Features

  • โœ… AI-powered credit card fraud detection
  • โœ… XGBoost classification model
  • โœ… Handles highly imbalanced transaction data
  • โœ… SMOTE-based class balancing
  • โœ… CSV transaction upload support
  • โœ… Real-time fraud prediction
  • โœ… Fraud probability estimation
  • โœ… Flask-based web application
  • โœ… Fast ML model inference
  • โœ… Clean and user-friendly dashboard

๐Ÿง  Machine Learning Workflow

Data Collection
        โ†“
Data Preprocessing
        โ†“
Exploratory Data Analysis
        โ†“
Feature Scaling
        โ†“
Class Imbalance Handling (SMOTE)
        โ†“
XGBoost Model Training
        โ†“
Model Evaluation
        โ†“
Model Serialization
        โ†“
Flask Deployment
        โ†“
Real-Time Prediction

๐Ÿ“Š Model Information

Algorithm

  • XGBoost Classifier

Dataset

  • Credit Card Fraud Detection Dataset

Input Features

  • Time
  • V1 - V28 anonymized transaction features
  • Amount

Problem Type

Binary Classification

Classes

  • 0 โ†’ Legitimate Transaction
  • 1 โ†’ Fraudulent Transaction

๐Ÿ› ๏ธ Tech Stack

Machine Learning

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • XGBoost
  • Imbalanced-learn (SMOTE)
  • Joblib

Backend

  • Flask
  • Python

Frontend

  • HTML
  • CSS
  • JavaScript

Tools

  • Jupyter Notebook
  • VS Code
  • Git & GitHub

๐Ÿ“‚ Project Structure

CipherShield-AI/
โ”‚
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ main.py
โ”‚   โ”œโ”€โ”€ model_loader.py
โ”‚   โ””โ”€โ”€ predictor.py
โ”‚
โ”œโ”€โ”€ model/
โ”‚   โ””โ”€โ”€ credit_card_fraud_xgboost.pkl
โ”‚
โ”œโ”€โ”€ notebook/
โ”‚   โ””โ”€โ”€ fraud_detection.ipynb
โ”‚
โ”œโ”€โ”€ templates/
โ”‚   โ””โ”€โ”€ index.html
โ”‚
โ”œโ”€โ”€ static/
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ””โ”€โ”€ js/
โ”‚
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

โš™๏ธ Installation & Setup

Clone Repository

git clone https://github.com/yourusername/CipherShield-AI.git

Navigate to Project Folder

cd CipherShield-AI

Install Dependencies

pip install -r requirements.txt

Run Application

python app/main.py

Open in browser:

http://127.0.0.1:5000

๐Ÿ” How It Works

  1. User uploads transaction data through the web interface.
  2. Flask receives and processes the input.
  3. The trained XGBoost model analyzes transaction patterns.
  4. The model predicts the transaction category.
  5. The application displays:
    • Transaction status
    • Fraud probability
    • Prediction result

๐Ÿ“ˆ Model Evaluation

The model is evaluated using:

  • Accuracy Score

  • Precision

  • Recall

  • F1 Score

  • ROC-AUC Score

  • Confusion Matrix

    Screenshot 2026-07-19 150203

XGBoost was selected because it performs effectively on structured/tabular datasets and captures complex relationships between transaction features.


๐Ÿ”ฎ Future Enhancements

  • Real-time transaction monitoring
  • Explainable AI using SHAP
  • Advanced anomaly detection
  • Cloud deployment
  • Model performance monitoring
  • Automated model retraining pipeline
  • User authentication system

๐Ÿ“ธScreenshots

Screenshot 2026-07-19 144504 Screenshot 2026-07-19 144608

๐Ÿ‘จโ€๐Ÿ’ป Author

Jayendra Ghosh


โญ Support

If you found this project useful, consider giving it a star โญ on GitHub.

License

jayendra08/CipherShield is licensed under the MIT License

About

CipherShield AI is an intelligent fraud detection platform built with XGBoost and Flask, designed to analyze financial transactions, predict fraud risks, and provide real-time transaction security insights.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages