A sophisticated machine learning-based payment fraud detection system that leverages multiple algorithms (Random Forest, XGBoost, LightGBM, CatBoost) to identify suspicious transactions. Features 50,000 synthetic transactions, 8 data visualizations, and SMOTE for handling class imbalance. Perfect for financial institutions and data scientists working on fraud detection systems.
- Dataset Generation: 50,000 synthetic transactions with 10 relevant features
- Multiple ML Models: Implementation of 4 powerful algorithms
- Random Forest
- XGBoost
- LightGBM
- CatBoost
- Advanced Visualizations: 8 different types of data visualizations
- Class Imbalance Handling: SMOTE technique implementation
- Comprehensive Evaluation: Multiple performance metrics
fraud_detection/
├── data/ # Dataset directory
├── docs/ # Documentation and visualizations
├── models/ # Trained models
├── notebooks/ # Jupyter notebooks
├── src/ # Source code
└── tests/ # Unit tests
- Languages: Python 3.x
- ML Libraries:
- Scikit-learn
- XGBoost
- LightGBM
- CatBoost
- Data Processing:
- Pandas
- NumPy
- Visualization:
- Matplotlib
- Seaborn
- Plotly
- Development:
- Jupyter Notebooks
- Git
- Clone the repository
git clone https://github.com/Arindam-GitH/Payment-Fraud-Detection-.git
cd Payment-Fraud-Detection-
- Set up virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Run the analysis
python src/main.py
Each model is evaluated using:
- Accuracy
- Precision
- Recall
- F1-Score
- ROC-AUC Score
The project includes 8 different types of visualizations:
- Transaction Amount Distribution
- Fraud vs Non-Fraud Distribution
- Correlation Heatmap
- Transaction Time Analysis
- Amount vs Fraud Box Plot
- Customer Age Distribution
- Device Type Distribution
- Geographic Distribution
Feel free to submit issues and enhancement requests!
This project is licensed under the MIT License - see the LICENSE file for details.
Arindam Guha
- GitHub: @Arindam-GitH
⭐️ From Arindam-GitH