Abstract
The conditional survival function of a time-to-event outcome subject to censoring and truncation is a common target of estimation in survival analysis. This parameter may be of scientific interest and also often appears as a nuisance in nonparametric and semiparametric problems. In addition to classical parametric and semiparametric methods (e.g., based on the Cox proportional hazards model), flexible machine learning approaches have been developed to estimate the conditional survival function. However, many of these methods are either implicitly or explicitly targeted toward risk stratification rather than overall survival function estimation. Others apply only to discrete-time settings or require inverse probability of censoring weights, which can be as difficult to estimate as the outcome survival function itself. Here, we employ a decomposition of the conditional survival function in terms of observable regression models in which censoring and truncation play no role. This allows application of an array of flexible regression and classification methods rather than only approaches that explicitly handle the complexities inherent to survival data. We outline estimation procedures based on this decomposition, empirically assess their performance, and demonstrate their use on data from an HIV vaccine trial.
Introduction
In clinical research and reliability engineering, estimating personalized survival curves—the probability that an individual will remain event-free over time given their specific covariates—is a fundamental task. However, real-world data is rarely clean. It is typically subject to censoring (where the event is not observed before the study ends) and left truncation (where individuals only enter the study if they have already survived to a certain point).
While the Cox Proportional Hazards model has long been the industry standard, its reliance on the proportional hazards assumption often fails to capture the complexity of biological or mechanical systems. Conversely, while modern machine learning (ML) offers the flexibility to model non-linear interactions, many ML survival tools are designed for risk ranking (e.g., Random Survival Forests) rather than providing calibrated, individual survival probabilities. This paper introduces global survival stacking, a framework that bridges this gap by transforming survival estimation into a series of standard binary classification tasks.
The Methodological Framework: Global Survival Stacking
The core innovation of this research is a mathematical decomposition that expresses the conditional survival function through observable regression models. By doing so, the complexities of censoring and truncation are effectively bypassed during the learning phase.
From Survival to Classification
The framework employs a "stacking" procedure. The survival problem is discretized into a series of time points, and the dataset is expanded so that each individual appears multiple times—once for each time point in a grid. For each point, the outcome is binary: has the event occurred yet?
Global vs. Local Stacking
Unlike "local" stacking, which estimates the hazard (the risk of an event at a specific moment), global survival stacking estimates the cumulative probability of having survived up to that moment. This "global" approach offers several advantages:
- Stability: It is significantly less sensitive to the choice of the time grid.
- Efficiency: It allows for the simultaneous estimation of the event distribution and the censoring distribution.
- Flexibility: Because the problem is reduced to binary classification, researchers can use any off-the-shelf ML algorithm, such as XGBoost, Deep Learning, or an ensemble "Super Learner."
Empirical Validation
The researchers evaluated the framework across three distinct domains: simulations, public benchmarks, and a real-world clinical trial.
Simulation and Benchmarks
In simulations featuring non-proportional hazards and heavy left truncation, global survival stacking consistently outperformed both the Cox model and traditional ML survival methods. When applied to five public datasets—including FLCHAIN (mortality), GBSG and METABRIC (breast cancer), NWTCO (Wilms’ Tumor), and SUPPORT (serious illness)—the proposed method achieved superior Brier scores. The Brier score serves as a critical metric here, as it measures the accuracy of predicted probabilities rather than just the relative ranking of risks.
Case Study: The STEP HIV Vaccine Trial
The framework was applied to data from the STEP HIV vaccine trial to estimate how biological markers, specifically Ad5 antibody titers, influenced the risk of infection over time. The global stacking approach successfully captured complex subgroup interactions, identifying instances where the vaccine appeared to increase risk for certain participants. This finding aligned with previous specialized statistical analyses but was achieved using a more generalizable and automated ML framework.
Discussion and Limitations
While global survival stacking unlocks the power of modern ML for survival analysis, it introduces certain trade-offs:
- Computational Intensity: Stacking increases the size of the dataset, which can lead to higher memory usage and longer training times compared to simple parametric models.
- Monotonicity: Survival curves must, by definition, be non-increasing. Because individual ML models may produce non-monotonic estimates ("wiggles"), the authors incorporate isotonic regression as a post-processing step to ensure valid survival curves.
- Interval Censoring: The current framework is optimized for right-censoring and left-truncation; extending these benefits to interval-censored data remains a subject for future research.
Conclusion
Global survival stacking provides a robust, learner-agnostic framework for estimating personalized survival curves. By reducing complex survival data to binary classification, it allows researchers to leverage the full suite of modern machine learning tools without the need for specialized survival loss functions or complex weighting schemes. The authors have made this methodology accessible through the survML R package on CRAN.
Summary updated