Downloads · 30 days
0
amirsoahil101/Credit_Card_Fraud_Synthetic_Detector
Credit_Card_Fraud_Synthetic_Detector is a text classification model from amirsoahil101. Use it when you need a label for a piece of text. The card lists the license as mit.
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.
Downloads · 30 days
0
Access
Public
Updated Aug 30, 2026
Repo size
383 KB
Likes
0
Public
Click a slice to open those files.
.pkl383 KB · 65%
From the Hugging Face model README
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.

Interactive Streamlit dashboard designed with business-friendly feature inputs, fault-tolerant logic, and instant fraud probability metrics.
You can access and test the deployed application directly here: 👉 Click Here to Launch Live Demo
.pkl files are missing.Multiple classification algorithms were evaluated to handle high variance and anomaly patterns. Here is the comparative accuracy metric across models:
| Model Name | Accuracy Score | Status |
|---|---|---|
| Random Forest Classifier 🏆 | 0.980 (98.0%) | Selected Model |
| Extra Trees Classifier 🏆 | 0.980 (98.0%) | Top Performer |
| K-Neighbors Classifier | 0.980 (98.0%) | Top Performer |
| XGBoost Classifier | 0.980 (98.0%) | Top Performer |
| AdaBoost Classifier | 0.975 (97.5%) | High Precision |
| Decision Tree Classifier | 0.970 (97.0%) | Baseline |
| Gradient Boosting Classifier | 0.970 (97.0%) | Baseline |
Selected Baseline: The Random Forest Classifier achieved 98.0% accuracy with reliable probability estimation for risk grading.
| UI Parameter Name | Feature Code | Description / Domain Context |
|---|---|---|
| Transaction Timestamp | Time | Elapsed time in seconds since the first dataset transaction |
| Transaction Behavior Factor 1 | V1 | Primary PCA vector for transaction behavior patterns |
| Account Activity Vector 2 | V2 | PCA vector capturing account usage variations |
| Security Risk Index 3 | V3 | PCA vector measuring security variance |
| Anomalous Pattern Score 4 | V4 | PCA vector identifying spending behavior anomalies |
| Location/Device Metric 5 | V5 | PCA vector for contextual transaction parameters |
| Transaction Amount | Amount | Total monetary value of the transaction ($) |
| Target Output | Class | 0 = Legitimate Transaction, 1 = Fraudulent |
├── 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 Documentation
git clone https://github.com/amirsohail100/Credit-Card-Fraud-Detection-System.git
cd Credit-Card-Fraud-Detection-System
streamlit run app.py
pip install -r requirements.txt
This project is licensed under the MIT License.
👤 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.