Abstract
Survival analysis, the prediction of time until an event occurs, is fundamental across medicine, finance, and marketing. Traditional models often struggle with non-linear dependencies or rely on rigid distributional assumptions. We present Deep Recurrent Survival Analysis (DRSA), a novel framework that employs Recurrent Neural Networks (RNNs) to model the conditional hazard rate at discrete time intervals. By applying the probability chain rule, DRSA captures complex temporal patterns and effectively handles censored data. Evaluations on large-scale real-world datasets demonstrate that DRSA significantly outperforms state-of-the-art statistical and deep learning models in both ranking accuracy and likelihood estimation.
Introduction
Survival analysis aims to model the time elapsed until a specific event of interest occurs. This is critical in diverse applications such as predicting patient mortality, customer churn, or credit default. A primary challenge in this field is censorship, where the event has not yet occurred for some subjects by the end of the observation period. While traditional methods like the Cox Proportional Hazards model have been widely used, they often assume linear effects of features or specific parametric distributions that may not hold in complex, real-world scenarios.
Methodology: Modeling the Conditional Hazard Rate
The DRSA framework re-imagines survival analysis as a sequence modeling task. Instead of predicting a single time-to-event value, the model divides time into $L$ discrete slices and predicts the conditional hazard rate at each step.
As shown in the architecture above, an RNN (specifically an LSTM) processes the input features $\mathbf{x}$ and the current time step $t$. At each step $l$, the model outputs a hazard rate $h_l$, representing the probability that the event occurs at time $l$ given it has not occurred previously. By leveraging the probability chain rule, the model derives the full Survival Function $S(t)$ and the Probability Density Function $p(z)$.
The model is trained using a multi-part loss function:
- Log-likelihood Loss ($L_z$): Applied to uncensored data to minimize the error in predicting the exact event time.
- Cross-Entropy Loss ($L_c$): Treats survival at each step as a classification task, allowing the model to learn effectively from censored data.
Experimental Evaluation
The authors evaluated DRSA on three diverse datasets:
- CLINIC: Patient mortality tracking based on physiologic variables.
- MUSIC: User lifetime prediction on Last.fm, measuring time between visits.
- BIDDING: A large-scale ad-tech dataset (19M+ records) predicting the time until an advertiser wins an auction.
DRSA was compared against traditional baselines (Kaplan-Meier, Lasso-Cox) and modern deep learning approaches (DeepSurv, DeepHit).
Results and Discussion
DRSA consistently outperformed all baselines across all metrics. In terms of the C-index (ranking accuracy), DRSA achieved superior results, notably reaching 0.911 on the BIDDING dataset compared to DeepHit's 0.858. Furthermore, DRSA showed significantly better likelihood accuracy, measured by Average Negative Log Probability (ANLP).
The figure above illustrates the probability density curves for various models. DRSA (red line) successfully captures the sharp peak at the actual event time, whereas other models either produce flat distributions or miss the timing entirely. This demonstrates DRSA's ability to learn sophisticated, non-parametric distributions directly from data without prior assumptions. Additionally, learning curves indicate that the model converges rapidly, often within the first epoch of training.
Conclusion
Deep Recurrent Survival Analysis provides a flexible and powerful approach to time-to-event modeling. By utilizing RNNs to capture sequential dependencies and providing dense gradient signals through step-wise hazard rate prediction, DRSA overcomes the limitations of traditional pointwise or parametric models. Future work may explore multi-task learning for competing risks and optimizing time-step granularity.
Reference
Ren, K., Qin, J., Zheng, L., Yang, Z., Zhang, W., Qiu, L., & Yu, Y. (2019). Deep Recurrent Survival Analysis. Proceedings of the AAAI Conference on Artificial Intelligence.
Summary updated