This project applies AI and machine learning to predict whether a customer is likely to default on a loan, enabling banks to make informed and automated credit decisions.
Banks often struggle to accurately assess credit risk and loan default probability. This project automates that process by using classification models to predict default based on applicant data.
- Predicts loan defaults using historical banking data
- Compares multiple ML algorithms (Logistic Regression, Random Forest, XGBoost, etc.)
- Evaluates models via ROC-AUC, F1 score, Precision, and Recall
- Provides explainability with SHAP (SHapley Additive exPlanations)
- Visualization of feature importance and model decisions
- End-to-end pipeline from data preprocessing to model interpretation
- Python
- scikit-learn
- XGBoost
- SHAP
- pandas, matplotlib, seaborn
- Clone the Repository
git clone https://github.com/aimaster-dev/default_loan_prediction.git
cd default_loan_prediction
- Install Dependencies
pip install -r requirements.txt
- Run the Notebook
Open loan_default_prediction.ipynb
in Jupyter or run it using:
jupyter notebook loan_default_prediction.ipynb
- Best Model: XGBoost
- ROC-AUC: High discriminative power
- SHAP Values: Used to interpret individual predictions and global feature impact
- Automated model selection and tuning
- Transparent credit risk scoring using SHAP
- Business-focused evaluation for banking applications
MIT License. See LICENSE
for details.
Thanks to aimaster-dev for sharing this impactful project in AI-driven finance.