A comparative study on machine learning models combining with outlier detection and balanced sampling methods for credit scoring

Hongyi Qian, Shen Zhang, Baohui Wang, Lei Peng, Songfeng Gao, You SongarXiv 2021

Abstract

This study systematically evaluates the impact of outlier detection and balanced sampling techniques on machine learning models for Peer-to-Peer (P2P) credit scoring. Using a real-world dataset from Lending Club, the researchers tested various combinations of four outlier detection algorithms, eight sampling methods, and four machine learning architectures. The findings reveal that while outlier detection consistently improves model generalization, complex balanced sampling methods like SMOTE often underperform compared to simple random sampling or no sampling at all, with the notable exception of Multi-Layer Perceptrons (MLP). Gradient Boosting Decision Trees (GBDT) combined with Local Outlier Factor (LOF) detection emerged as the top-performing configuration.

Introduction

In the rapidly evolving landscape of Peer-to-Peer (P2P) lending, accurately predicting borrower default is critical for financial stability and investor confidence. However, credit datasets are frequently plagued by two major issues: outliers and class imbalance. Outliers, resulting from data entry errors or rare, non-representative financial events, can mislead models during training. Class imbalance occurs because the majority of borrowers repay their loans, making "default" cases a minority that standard algorithms often fail to identify correctly.

While many studies have explored various machine learning models for this task, as summarized in Table 1, few have investigated the synergistic effects of combining outlier detection with diverse sampling strategies across different model architectures.

Table 1: Summary of previous research on Lending Club datasets, highlighting the diversity of machine learning methods employed.

Methodology

The researchers developed a comprehensive four-step framework to evaluate model performance under different data conditions, allowing for a controlled comparison of various data treatment strategies.

Figure 1: The proposed four-step framework for evaluating credit scoring models, encompassing preprocessing, outlier detection, sampling, and training.
  1. Data Preprocessing: This stage involved standardizing numerical features to ensure zero mean and unit variance, and one-hot encoding categorical variables.
  2. Outlier Detection: Four algorithms were tested: Local Outlier Factor (LOF), Cluster-Based Local Outlier Factor (CBLOF), Isolation Forest (IForest), and Copula-Based Outlier Detection (COPOD). The researchers removed the top 0.5% of "anomalous" samples to reduce noise.
  3. Balanced Sampling: Eight methods were evaluated across three categories: under-sampling (RUS, IHT, ENN), over-sampling (ROS, SMOTE, ADASYN), and hybrid approaches (SMOTEENN, SMOTETomek).
  4. Model Training and Testing: Four representative machine learning models were compared: Logistic Regression (LR), Multi-Layer Perceptron (MLP), Random Forest (RF), and Gradient Boosting Decision Tree (GBDT).

Dataset

The study utilized a real-world dataset from Lending Club (Q2 2017), specifically focusing on "Charged Off" (default) and "Fully Paid" (repaid) loans. The final dataset comprised 44,487 samples with a default ratio of 23.80%. After preprocessing, the initial 24 features were expanded to 123 features to capture categorical nuances.

Key Insights and Results

The experimental results provided several critical insights into the behavior of credit scoring models:

  • Superiority of Tree-Based Models: GBDT and Random Forest demonstrated inherent robustness to outliers and class imbalance. The GBDT model, when paired with LOF outlier detection and no sampling, achieved the peak performance with an AUC of 0.7107.
  • Effectiveness of Outlier Detection: Applying outlier detection—particularly IForest or COPOD—consistently improved the Area Under the Curve (AUC) across almost all models. This suggests that even minimal noise removal (0.5%) significantly aids model generalization.
  • The Sampling Paradox: Contrary to common practice, complex synthetic sampling methods like SMOTE and ADASYN often yielded worse results than simple Random Under-Sampling (RUS) or no sampling at all. For tree-based models, using no sampling method frequently yielded the best results.
  • MLP Sensitivity: The Multi-Layer Perceptron was the most sensitive model to preprocessing. While it generally lagged behind GBDT, it showed significant improvement when combined with Instance Hardness Threshold (IHT) sampling, even surpassing the best Random Forest model in specific configurations.

Conclusion

This research highlights that more complex data balancing techniques are not always superior for credit scoring. While outlier detection is a consistently beneficial step for improving model robustness, the choice of sampling method must be carefully tailored to the specific model architecture. Future work will explore integrating these preprocessing steps with advanced deep learning ensembles and automated feature engineering to further enhance predictive accuracy in the P2P lending sector.

Summary updated

BibTeX
@misc{qian2021comparative,
  author = {Hongyi Qian and Shen Zhang and Baohui Wang and Lei Peng and Songfeng Gao and You Song},
  title = {{A comparative study on machine learning models combining with outlier detection and balanced sampling methods for credit scoring}},
  year = {2021},
  eprint = {2112.13196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.13196},
}
Figure