Watch Demo Video
Machine Learning
Intelligent Loan Default Prediction & Credit Risk Assessment System
The Intelligent Loan Default Prediction & Credit Risk Assessment System is a comprehensive machine learning solution that predicts loan default risk using borrower demographic, financial, and behavioral features. This project is ideal for B.Tech, MCA, CSE, and engineering students as their final year project. It uses advanced ensemble algorithms like XGBoost and Random Forest with SMOTE for class imbalance to achieve 89.72% accuracy.
The system leverages comprehensive feature engineering including savings ratio, expense-to-income ratio, payment risk score, and balance-to-income ratio. It provides interactive visualizations, feature importance analysis, model comparison, and real-time loan default prediction to help financial institutions make data-driven lending decisions.
Python 3.8+
Machine Learning
XGBoost
Random Forest
SMOTE
Scikit-learn
imbalanced-learn
Pandas
NumPy
Matplotlib
Seaborn
Flask
HTML/CSS/JS
Key Features:
- Binary Loan Default Prediction
- XGBoost (89.72% Accuracy)
- Random Forest (88.96% Accuracy)
- SMOTE for Class Imbalance
- Leak-Free Cross-Validation
- Feature Importance Analysis
- Real-time Default Prediction
- Model Performance Comparison
- Interactive Visualizations
- Flask Web Application
Algorithms Used
⚡ XGBoost Classifier
Optimized gradient boosting with regularization, handles class imbalance effectively
🎯 Accuracy: 89.72%
🌲 Random Forest Classifier
Ensemble learning with 200 trees, robust to overfitting and outliers
🎯 Accuracy: 88.96%
🔄 SMOTE
Synthetic Minority Over-sampling for handling class imbalance
📊 k-neighbors: 5
🔍 3-Fold Leak-Free CV
Cross-validation with SMOTE inside each fold
📊 XGB: 0.9487 ± 0.0013
Methodology & Workflow
1
Data Loading & Inspection
Loan dataset with 3,000+ records and 15+ features
2
Data Preprocessing
Cleaning, median imputation, IQR outlier removal
3
Feature Engineering
Savings ratio, expense-to-income, payment risk score
4
Model Training
XGBoost & Random Forest with SMOTE pipelines
5
Model Evaluation
Accuracy, Precision, Recall, F1-Score, ROC-AUC, 3-fold CV
6
Web Deployment
Flask web app for real-time loan default prediction
Model Performance Comparison
| Metric |
XGBoost |
Random Forest |
Best |
| Accuracy |
0.8972 |
0.8896 |
XGBoost |
| Precision |
0.8980 |
0.8905 |
XGBoost |
| Recall |
0.8972 |
0.8896 |
XGBoost |
| F1-Score |
0.8970 |
0.8888 |
XGBoost |
| ROC-AUC |
0.9512 |
0.9438 |
XGBoost |
| CV Mean (3-Fold) |
0.9487 |
0.9402 |
XGBoost |
Project Package Includes:
Complete Source Code
Documentation (50+ pages)
Video Tutorial
Dataset (3,000+ records)
Flask Web App
Model Files (Pickle)
Visualizations
24/7 Expert Support