amirsoahil101/Credit_Card_Fraud_Synthetic_Detector
๐ณ Credit Card Fraud & Anomaly Detection System
An interactive, production-ready Machine Learning Web Application built with Streamlit to detect fraudulent credit card transactions in real-time based on transformed PCA features and transaction metrics.

๐ผ๏ธ Application Preview & UI
Interactive Streamlit dashboard designed with business-friendly feature inputs, fault-tolerant logic, and instant fraud probability metrics.
๐ Live Application
You can access and test the deployed application directly here: ๐ [Click Here to Launch Live Demo](https://credit-card-fraud-detection-system-md3f6bhxwpbrhz8ogcylwu.streamlit.app/)
๐ผ๏ธ Key Features & Capabilities
- User-Friendly Interface: Business-oriented feature labels replacing raw mathematical PCA names ($V1$โ$V5$) for seamless user experience.
- Smart Decision Dashboard: Clear status classification (Legitimate vs. Fraudulent), Risk Levels, and Model Confidence Score ($0-100\%$) instead of raw binary values ($0/1$).
- Fault-Tolerant Pipeline: Robust exception handling ensuring that the UI renders smoothly even if dependencies or
.pklfiles are missing. - High Accuracy Benchmarks: Powered by high-precision ensemble tree classifiers trained on transaction risk patterns.
๐ Model Evaluation & Benchmarks
Multiple classification algorithms were evaluated to handle high variance and anomaly patterns. Here is the comparative accuracy metric across models:
Selected Baseline: The Random Forest Classifier achieved 98.0% accuracy with reliable probability estimation for risk grading.
โ๏ธ Model Features & Input Parameters
๐ Repository Structure
โโโ credit_card_fraud_synthetic.csv # Primary Transaction Dataset
โโโ model.ipynb # Data Preprocessing, EDA & Model Training
โโโ .gitignore # Git Ignore Rules
โโโ .gitattributes # Git LFS Configuration
โโโ app.py # Fault-Tolerant Streamlit Web Application
โโโ model.pkl # Trained Machine Learning Model
โโโ scaler.pkl # Fitted StandardScaler Object
โโโ column.pkl # Feature Column Definitions
โโโ requirements.txt # Python Dependencies
โโโ README.md # Project Documentationgit clone https://github.com/amirsohail100/Credit-Card-Fraud-Detection-System.gitcd Credit-Card-Fraud-Detection-Systemstreamlit run app.pypip install -r requirements.txt๐ License
This project is licensed under the MIT License.
๐ Author
๐ค Amir Sohail
A high-accuracy Machine Learning project evaluating multiple classifiers (Random Forest, Extra Trees, XGBoost, KNN at 98% accuracy) on Credit Card Fraud Data. Features dynamic inputs like Time, PCA components (V1-V5), and Amount to predict transaction legitimacy (Class) via a fault-tolerant Streamlit web UI.
