Abstract
Survival analysis, the study of time-to-event data, is often complicated by right-censorship, where the exact time of an event is unknown for some subjects. Traditional models like the Cox Proportional Hazards model rely on rigid parametric assumptions that frequently fail in complex real-world scenarios. We present Deep Recurrent Survival Analysis (DRSA), a novel framework that treats survival analysis as a sequence modeling task. By employing Recurrent Neural Networks (RNNs) to model conditional hazard rates at discrete time intervals, DRSA captures complex temporal dependencies without pre-assumed probability distributions. Our evaluation across diverse datasets demonstrates that DRSA significantly outperforms existing statistical and deep learning baselines in both predictive accuracy and concordance.
Introduction
The primary challenge in survival analysis is censorship. For example, in a clinical trial, a patient might leave the study before an event occurs, or the study might end before the event happens. In such cases, we only know the subject survived at least until a certain time. Traditional methods, such as the Kaplan-Meier estimator or Lasso-Cox models, often assume linear relationships or specific distributions (e.g., Weibull, Gamma) that lack the flexibility to model the irregular patterns found in large-scale, modern datasets.
Recent deep learning approaches have attempted to address these limitations but often treat the problem as a static regression task. This ignores the sequential nature of time and can lead to sparse gradients during training, as the supervision signal is typically only available at the final time step.
The DRSA Framework
DRSA addresses these issues by modeling the survival process as a dynamic sequence. Instead of predicting a single survival time, the model predicts the conditional hazard rate at each time step.
Conditional Hazard Modeling
The core of DRSA is an LSTM network that processes input features $\mathbf{x}$ and time steps $t$ to output a conditional hazard rate $h_l$ for each interval $l$. This rate represents the probability that an event occurs in interval $l$, given that the subject has survived up to that point.
Probability Chain Rule and Loss Functions
By predicting conditional hazards, DRSA utilizes the mathematical chain rule to derive the overall survival rate $S(t)$ and the probability density of the event $p(z)$. This ensures mathematical consistency across the entire timeline. The model is trained using a multi-component loss function:
- $L_z$: Negative log-likelihood of the true event time for uncensored data.
- $L_{uncensored}$: Supervision of the event rate over the entire range for known events.
- $L_{censored}$: Information from censored logs, indicating the event occurs after the last observation.
This architecture allows gradients to flow back through the entire temporal sequence, mitigating the sparse gradient problem and leading to more stable training.
Experimental Evaluation
We evaluated DRSA on three diverse real-world datasets: CLINIC (patient physiological variables), MUSIC (user visit intervals), and BIDDING (real-time auction winning prices).
Key Results
DRSA was compared against seven baselines, including traditional statistical models (Kaplan-Meier, Lasso-Cox) and state-of-the-art deep learning models (DeepSurv, DeepHit).
- Concordance Index (C-index): DRSA achieved the highest scores across all datasets. Notably, on the BIDDING dataset, DRSA reached a C-index of 0.911, significantly higher than DeepHit's 0.858.
- Average Negative Log Probability (ANLP): DRSA consistently showed the lowest ANLP, indicating superior accuracy in pinpointing the exact timing of events.
- Qualitative Analysis: Visualizing the survival and probability curves reveals that DRSA's predictions closely track true event times, capturing peak risk moments that other models often miss or "smear" across the timeline.
Conclusion and Future Work
DRSA provides a flexible, distribution-agnostic framework for survival analysis that leverages the temporal modeling capabilities of RNNs. By treating time as a sequence rather than a label, it overcomes the limitations of both traditional parametric models and simple deep learning regressions. Future research directions include extending the model to handle competing risks and incorporating time-varying features.
Summary updated