Sample size and predictive performance of machine learning methods with survival data: A simulation study

Stat Med. 2023 Dec 30;42(30):5657-5675. doi: 10.1002/sim.9931. Epub 2023 Nov 10.

Abstract

Prediction models are increasingly developed and used in diagnostic and prognostic studies, where the use of machine learning (ML) methods is becoming more and more popular over traditional regression techniques. For survival outcomes the Cox proportional hazards model is generally used and it has been proven to achieve good prediction performances with few strong covariates. The possibility to improve the model performance by including nonlinearities, covariate interactions and time-varying effects while controlling for overfitting must be carefully considered during the model building phase. On the other hand, ML techniques are able to learn complexities from data at the cost of hyper-parameter tuning and interpretability. One aspect of special interest is the sample size needed for developing a survival prediction model. While there is guidance when using traditional statistical models, the same does not apply when using ML techniques. This work develops a time-to-event simulation framework to evaluate performances of Cox regression compared, among others, to tuned random survival forest, gradient boosting, and neural networks at varying sample sizes. Simulations were based on replications of subjects from publicly available databases, where event times were simulated according to a Cox model with nonlinearities on continuous variables and time-varying effects and on the SEER registry data.

Keywords: machine learning; prediction; sample size; simulation; time-to-event.

MeSH terms

  • Computer Simulation
  • Humans
  • Machine Learning*
  • Neural Networks, Computer*
  • Proportional Hazards Models
  • Sample Size