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.
- โ 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
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
- XGBoost Classifier
- Credit Card Fraud Detection Dataset
- Time
- V1 - V28 anonymized transaction features
- Amount
Binary Classification
- 0 โ Legitimate Transaction
- 1 โ Fraudulent Transaction
- Python
- Pandas
- NumPy
- Scikit-learn
- XGBoost
- Imbalanced-learn (SMOTE)
- Joblib
- Flask
- Python
- HTML
- CSS
- JavaScript
- Jupyter Notebook
- VS Code
- Git & GitHub
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
git clone https://github.com/yourusername/CipherShield-AI.gitcd CipherShield-AIpip install -r requirements.txtpython app/main.pyOpen in browser:
http://127.0.0.1:5000
- User uploads transaction data through the web interface.
- Flask receives and processes the input.
- The trained XGBoost model analyzes transaction patterns.
- The model predicts the transaction category.
- The application displays:
- Transaction status
- Fraud probability
- Prediction result
The model is evaluated using:
XGBoost was selected because it performs effectively on structured/tabular datasets and captures complex relationships between transaction features.
- Real-time transaction monitoring
- Explainable AI using SHAP
- Advanced anomaly detection
- Cloud deployment
- Model performance monitoring
- Automated model retraining pipeline
- User authentication system
If you found this project useful, consider giving it a star โญ on GitHub.
jayendra08/CipherShield is licensed under the MIT License
