Skip to content
Home Credit: Predicting Loan Default

Home Credit: Predicting Loan Default

Home Credit lends to people with little or no credit history. The model predicts the probability that an applicant defaults, drawing on 58.4 million rows across seven linked tables of applications, bureau records, and payment histories.

LightGBMXGBoostCatBoostSHAPFeature Engineering

58.4M

rows across seven tables

0.798

out-of-fold AUC

0.797

private leaderboard AUC

32

logged experiments

Problem

Understanding the challenge and user needs

Only 8 percent of the 307,511 training applicants defaulted, and the signal sits scattered across monthly balances and past loans rather than in the application itself. A model that reads one table misses most of what a lender needs to know.

The seven tables

TableRows
Bureau balance27,299,925
Installment payments13,605,401
Point-of-sale and cash balance10,001,358
Credit card balance3,840,312
Bureau1,716,428
Previous applications1,670,214
Applications (training)307,511

Approach

Strategy and methods used to address the problem

Eight notebooks build the solution in stages: a baseline, relational aggregations, temporal features, null-importance feature selection, an imbalance study, a three-model blend, SHAP interpretability, and a final round of Optuna tuning with multi-seed bagging. One fixed five-fold split scores every experiment, and a results file logs all 32 runs, including the ones that failed.

Null-importance selection peaks at 300 features; keeping all 845 scores slightly lower.
A Bayesian network learned from the data offers a readable structure, and scored well below the boosted models.
PCA needs more than 400 components to reach 95 percent of the variance, and the compressed features cost accuracy.

Final Solution

The final design and outcome

Out-of-fold AUC rose from 0.762 on raw data to 0.798 for the final blend of LightGBM, XGBoost, and CatBoost. Feature selection cut 845 engineered features to 300 without losing accuracy, and the final submission scored 0.797 on the competition's private leaderboard.

AUC by stage

StageOut-of-fold AUC
Application-table baseline0.769
Plus relational aggregations from six auxiliary tables0.793
Plus temporal and domain features0.794
Plus null-importance selection to 300 features0.794
Plus LightGBM, XGBoost, and CatBoost blend0.796
Plus state-split features, tuning, and bagging0.798

One fixed five-fold split scores every stage, so the figures compare directly.

Impact & Validation

Results, learnings, and outcomes

SHAP values explain each prediction in terms a credit officer can check: external credit scores, the size of the annuity against income, and payment behavior on earlier loans. The log of negative results, from PCA to a Bayesian network, documents what did not work and why.

SHAP beeswarm plot of the fifteen most influential features (opens in a new tab)
Each dot is one applicant. The external credit score mean dominates, and its color shows the direction: low scores push predictions toward default.
Mean absolute SHAP value ranks the features by overall influence on the model.

Presentation

The deck, slide by slide

Title slide: Home Credit Default Risk. Predict whether a loan applicant is likely to default on a future loan. A machine-learning journey from a 122-column table to a top-tier private leaderboard score. Amaly Attia, Nour Romdhane, & Em Echeverria.

Slide 1 of 18