This project implements a fraud detection application using a Random Forest model, built with Flask and Python to predict fraudulent credit card transactions. The model outperforms others like XGBoost and Decision Trees in accuracy, recall, and ROC-AUC, making it ideal for handling imbalanced datasets in real-time fraud detection.
- Random Forest: Best overall performance with high accuracy, recall, and ROC-AUC, making it ideal for fraud detection in imbalanced datasets.
- XGBoost: Performs well in accuracy but suffers from overfitting and slight recall drop, leading to missed fraud cases.
- Decision Tree: Easy to interpret but prone to overfitting, with poor generalization.
- Logistic Regression: Simple and interpretable, but fails to capture complex patterns, resulting in lower accuracy and recall.
- Real-time fraud detection using a trained Random Forest model
- Simple, user-friendly interface built with Flask
- High accuracy, precision, and recall for accurate predictions
- Scalable and easy to deploy in production environments
- Python
- Flask
- Random Forest (for fraud detection)
- Clone the repository:
git clone https://github.com/KrishnenduMR/CredSecure.git
cd CredSecure
- install dependencies
pip install -r requirements.txt
- Run the app
python app.py
Now the app should be running locally on http://127.0.0.1:5000/
.
This project is licensed under the MIT License - see the LICENSE file for details.