DeepSurv
Deep Learning for Survival Analysis · Also known as: Neural network survival, DL survival model
DeepSurv is a deep neural network approach to survival analysis that learns personalized survival distributions directly from data. Introduced by Katzman et al. in 2018, it extends the Cox proportional hazards model using deep learning to capture complex, nonlinear relationships between covariates and survival outcomes. It solves the problem of modeling heterogeneous treatment effects and time-to-event predictions in high-dimensional settings.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use DeepSurv when you have high-dimensional covariates, expect nonlinear or interaction effects between variables, or need personalized survival predictions. It is particularly valuable in precision medicine applications where treatment effects vary by individual characteristics. Assume proportional hazards approximately hold, and that you have sufficient data for the network to learn reliably. Prefer DeepSurv over Cox regression when preliminary exploration suggests the linearity assumption is violated.
Strengths & limitations
- Captures complex, nonlinear relationships between covariates and survival outcomes automatically
- Produces interpretable personalized hazard estimates and survival curves for individual subjects
- Handles high-dimensional covariate spaces naturally through deep learning representation learning
- Enables discovery of treatment-by-covariate interactions without manual feature engineering
- Provides probabilistic predictions suitable for clinical decision support
- Requires substantially more data than traditional Cox models to estimate accurately
- Network architecture and hyperparameter selection add complexity to the modeling process
- Theoretical guarantees on proportional hazards assumption are weaker than Cox regression
- Computational cost is higher due to neural network training
- Feature importance interpretation is less straightforward than traditional methods
Frequently asked
How does DeepSurv differ from Cox regression?
Cox regression assumes a linear relationship between log-hazards and covariates. DeepSurv replaces this linear assumption with a neural network, allowing it to learn arbitrary nonlinear transformations. Both use the same partial likelihood objective, but DeepSurv can capture interactions and complex patterns automatically.
What is the baseline hazard in DeepSurv, and how is it estimated?
The baseline hazard (hazard when all covariates are zero) is not explicitly estimated by the network. Instead, the Breslow estimator computes it from the training data after the network is fitted, using the residuals. This decoupling allows DeepSurv to focus on learning covariate effects.
How many subjects do I need to train a reliable DeepSurv model?
There is no fixed rule, but deep learning typically requires more samples than traditional methods. A practical guideline is to have at least 50–100 events per covariate (or per hidden unit in small networks). With fewer subjects, simpler models like Cox regression are preferable.
Can DeepSurv handle time-varying covariates?
Standard DeepSurv (and Cox regression) assumes covariates are fixed. Extensions using recurrent neural networks (RNNs) or transformers can model time-varying covariates, but these are more advanced variants.
How should I choose the network architecture?
Start with one or two hidden layers (32–128 units each) and tune via cross-validation using the concordance index. Deeper networks can overfit; regularization (dropout, L1/L2) is essential. Early stopping on a validation set prevents overfitting.
What software packages implement DeepSurv?
The original DeepSurv code is available in TensorFlow. Modern implementations include lifelines (Python), pycox, and DeepLearningLifeExpectancy. Each has different features and computational backends.
Sources
- Faraggi, D., & Simon, R. (1995). A neural network model for survival data. Statistics in Medicine, 14(1), 73–82. DOI: 10.1002/sim.4780140108 ↗
- Katzman, J. L., et al. (2018). DeepSurv: Personalized treatment recommender system using a Cox proportional hazards deep neural network. Journal of Machine Learning Research, 40, 40–51. DOI: 10.1186/s12874-018-0482-1 ↗
- Lee, C., Zame, W., Yoon, J., & van der Schaar, M. (2018). Deephit: A deep learning approach for dynamic survival analysis. AAAI Conference on Artificial Intelligence, 32(1). link ↗
How to cite this page
ScholarGate. (2026, June 3). Deep Learning for Survival Analysis. ScholarGate. https://scholargate.app/en/survival/deepsurv
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Accelerated Failure Time ModelSurvival↔ compare
- Cox RegressionSurvival↔ compare
- Weibull RegressionSurvival↔ compare