Can we use machine learning to discover risk factors? Testing the proof of principle using data on >11,000 predictors and mortality in the UK Biobank

Iqbal Madakkatel, Ang Zhou, Mark D. McDonnell, Elina HyppönenmedRxiv 2021

Abstract

This study presents a simple and fast hypothesis-free machine learning (ML) pipeline for risk factor discovery in large biomedical databases. By integrating Gradient Boosting Decision Trees (GBDT) with SHAP (SHapley Additive exPlanation) values and traditional epidemiological validation, we demonstrate a method that accounts for non-linearity and interactions with minimal variable pre-processing. Testing this pipeline on 502,506 UK Biobank participants across 11,639 predictors, we identified 193 potential risk factors for mortality, 166 of which were subsequently validated using adjusted Cox models. Our results suggest that ML can effectively automate the first stage of hypothesis-free risk factor identification in high-dimensional datasets.

Introduction

Traditional epidemiological research is typically hypothesis-driven, where researchers select a limited set of variables based on prior knowledge. However, the advent of deeply phenotyped large-scale population cohorts, such as the UK Biobank, presents a challenge for standard statistical tools like logistic or Cox regression. These methods often struggle with high dimensionality, multicollinearity, and the need to manually model complex non-linear relationships and interactions. This study addresses the need for a pragmatic, automated approach to discover "hidden" risk factors in modern biomedical databases.

Methods: The GBDT-SHAP Pipeline

We developed a multi-stage pipeline designed to sift through thousands of variables efficiently:

  1. Automated Pre-processing: The PHESANT (PHEnome Scan Analysis) package was used to clean and categorize diverse variables.
  2. Gradient Boosting Decision Trees (GBDT): Using the CatBoost implementation, we built mortality models. GBDT is ideal for this task as it handles missing values natively and captures non-linear relationships and interactions without manual specification.
  3. SHAP Values: To interpret the "black box" GBDT model, we used SHAP values to rank variable importance, providing a mathematically grounded measure of each predictor's contribution.
  4. Feature Selection: Predictors with low SHAP values or high redundancy were eliminated.
  5. Epidemiological Validation: Selected predictors were analyzed using traditional Cox proportional hazards models to ensure statistical robustness and clinical interpretability.

Results: Discovery in the UK Biobank

The pipeline was tested using data from 502,506 individuals followed over seven years. From an initial pool of 11,639 predictors, the GBDT model achieved an impressive AUROC of 0.94 for mortality prediction.

  • Variable Distillation: The pipeline narrowed the field to 193 important predictors. Of these, 166 (86%) showed significant associations with mortality in adjusted Cox models.
  • Predictive Importance: Health-related factors (hospital diagnoses and medical history) accounted for 60% of the model's predictive importance. Sociodemographics, lifestyle, and baseline characteristics each contributed approximately 10%.
  • Non-linear and Interaction Effects: The model successfully identified complex relationships, such as a U-shaped association between tea intake and mortality. It also flagged interactions, such as "comparative height at age 10," which was found to interact with secondary brain malignancies.

Discussion and Conclusion

The GBDT-SHAP pipeline serves as a powerful high-throughput filter for epidemiological discovery. It not only "rediscovered" established risk factors like smoking and self-rated health—providing a vital sanity check—but also identified novel associations that might be missed by linear modeling.

While ML offers significant speed and automation, it does not replace the need for domain expertise. The loss of significance for 19 predictors after adjustment highlights the ongoing risk of confounding in observational data. This pipeline is best viewed as a first-stage tool for generating new research hypotheses, particularly in the study of rare diseases or under-explored health determinants.

Summary of study context and contributions.

Summary updated

Abstract

Abstract Background We present a simple and fast hypothesis-free machine learning pipeline for risk factor discovery that accounts for non-linearity and interaction in large biomedical databases with minimal variable pre-processing. Methods Mortality models were built using gradient boosting decision trees (GBDT) and important predictors were identified using SHAP values. Cox models controlled for false discovery rate were used for interpretability and further validation. The pipeline was tested using information from 502,506 UK Biobank participants, aged 37–73 years at recruitment and followed over seven years for mortality registrations. Results From the 11,639 predictors included in GBDT, 193 potential risk factors had SHAP values 0.05 or greater and were selected for further modelling. Of the total variable importance summed up, 60% was directly health related, and baseline characteristics, sociodemographics, and lifestyle factors each contributed about 10%. Cox models adjusted for baseline characteristics, showed evidence for an association with mortality for 166 out of the 193 predictors. These included mostly well-known risk factors (e,g, age, sex, ethnicity, education, material deprivation, smoking, physical activity, self-rated health, BMI, and many disease outcomes), and the pipeline was able to detect associations in the presence of interactions and non-linear relationships. For 19 predictors we saw evidence for an association in the unadjusted but not adjusted analyses, suggesting bias by confounding.. Conclusion Our GBDT-SHAP pipeline was able to identify relevant predictors ‘hidden’ within thousands of variables, providing a fast and pragmatic solution for the first stage of hypothesis free risk factor identification. What was known before this study? Existing studies have used ML for variable selection in general settings, however, we are not aware of studies integrating epidemiological approaches with ML for risk factor discovery in deeply phenotyped large scale population cohorts. We present a simple and fast method for risk factor discovery using GBDT-SHAP pipeline, followed by subsequent standard epidemiological analyses. We test this pipeline using mortality prediction in the UK Biobank as an example. What this study adds? Machine learning pipeline integrated with traditional epidemiological practices as described in our study can be used a simple and fast method for discovering potential risk factors in extensively phenotyped high dimensional biomedical databases. GBDT-SHAP pipeline was able to detect associations with factors presenting with interactions with other explanatory variables and non-linear relationships with the outcome with minimal variable pre-processing. However, ML does not replace the requirement for content knowledge and more refined modelling to ensure lack of confounding and accurate interpretation.
BibTeX
@misc{madakkatel2021can,
  author = {Iqbal Madakkatel and Ang Zhou and Mark D. McDonnell and Elina Hyppönen},
  title = {{Can we use machine learning to discover risk factors? Testing the proof of principle using data on \>11,000 predictors and mortality in the UK Biobank}},
  year = {2021},
  doi = {10.1101/2021.05.07.21256791},
  howpublished = {medRxiv},
}
Figure