Kidney transplantation is the optimal treatment for life-threatening end-stage renal disease, providing significant survival advantages over dialysis. Given the severe shortage of donor organs, accurately predicting the time to premature graft failure is an essential clinical task for optimizing organ allocation and tailoring individualized immunosuppressive therapies. This study is motivated by a comprehensive United Network of Organ Sharing (UNOS) dataset containing 243,443 kidney transplant records with complex multi-region structures and high right-censoring rates. We propose EnSurv (survival engression), a deep generative survival framework designed to capture complex, non-linear clinical covariate interactions for modeling time to graft failure. Within a pre-additive noise model (pre-ANM) family, EnSurv optimizes an energy score augmented with pooled Kaplan-Meier tail completion to handle right-censoring. We identify the pooled-completion target of the objective, establish consistency for its best approximation within the pre-ANM family, and give conditions and error bounds for its relation to true conditional graft survival. EnSurv also provides global explainability through summaries of fitted feature weights and incorporates domain constraints through established clinical directions using a soft gradient penalty. Extensive simulation experiments were conducted to evaluate the performance of the proposed method in comparison with existing methods. Application to the UNOS cohort demonstrates that EnSurv effectively models individual and region-level effects, consistently outperforming baselines across evaluation metrics encompassing discrimination, calibration, and accuracy.
Introduction
End-stage renal disease is a life-threatening condition for which kidney transplantation remains the optimal treatment, offering significant survival advantages over dialysis [40]. However, because donor organs are a severely limited resource, optimizing the allocation of available kidneys is a critical public health priority. A primary challenge in this allocation process is that the rate of premature graft loss remains undesirably high [26]. Pre-transplantation, an accurate estimate of a graft’s potential longevity is the most relevant information for patients and clinicians when deciding whether to accept a specific kidney offer. In contrast, post-transplantation, reliable survival predictions at an individual level help clinicians tailor patient-specific interventions, such as adjusting the intensity of immunosuppressive therapies to proactively extend graft survival. Understanding the interactions of donor and recipient related clinical factors to predict time to graft failure is therefore an essential clinical task for improving outcomes in both pre- and post-transplant settings.
Predicting graft longevity falls under the framework of survival analysis, which models time-to-event outcomes. A patient may still have a functioning graft when the study ends, or may be lost to follow-up before graft failure occurs. For such a patient, the exact time of graft failure is unknown; the only information available is that the graft remained functional up to their last observed follow-up time. Such an observation is said to be right-censored. Historically, classical survival frameworks, such as Cox proportional hazards (CoxPH) [5] and accelerated failure time (AFT) [38] models have been the gold standard for analyzing censored data. Indeed, established clinical scoring systems for predicting post-transplant kidney outcomes, including the estimated post transplant survival score [3], the recipient risk score [2], and life years from transplant [39] were largely developed using CoxPH formulations. While these classical models are highly interpretable, they solely rely on strict structural assumptions, such as proportional hazards or predefined parametric distributions. These assumptions can be restrictive and often fail to capture the complex, non-linear, and high-dimensional clinical covariate interactions present in modern transplant databases.
Our study is motivated by a kidney transplantation dataset derived from the United Network of Organ Sharing (UNOS; [6]). The dataset considered in this study includes time to graft failure for 243,443 kidney transplantations performed from October 1987 to June 2016, with an event right-censoring rate of approximately 60%. Beyond its sheer volume, this data exhibits a complex hierarchical and multi-regional structure, as each transplant is performed at specific centers nested within 11 distinct geographical regions. Numerous prior studies investigating kidney graft failure and simultaneous organ transplants have extensively adjusted for or matched on the clinical covariates, while implicitly ignoring region-induced effects [10, 17]. Given the high-stakes nature of organ allocation or post-transplant treatments, accurately estimating graft survival requires a framework that systematically captures both individual donor-recipient profiles and these region-level effects. Furthermore, an effective clinical tool must go beyond black-box predictions by providing inherent explainability to rank early failure risk factors, while integrating domain knowledge regarding which covariates are clinically established to accelerate or delay graft loss.
Given the vast sample size and the high dimensionality of modern electronic health record datasets, deep learning approaches for survival analysis [18, 20] have emerged as powerful tools capable of capturing complex, non-linear clinical relationships. However, while standard neural survival architectures excel at predictive accuracy in high-dimensional spaces, they function largely as black boxes, lacking both the inherent explainability required to rank clinical risk factors and the architectural mechanisms necessary to integrate established domain knowledge. To this end, we introduce EnSurv, a deep generative framework for prediction of kidney graft survival outcomes. EnSurv employs a pre-additive noise architecture to generate conditional log-failure times and is trained using a combination of energy score loss used in egression framework [9, 31, 25], and a pooled Kaplan-Meier (KM) tail-completion term to accommodate right-censored observations in the UNOS registry. In contrary to Censored regression [16], which scores generated outcomes after a censoring transformation and studies propriety on an identifiable region, EnSurv targets a horizon-restricted workout outcome distribution constructed through pooled KM completion. This approach avoids separately estimating covariate-dependent censoring distributions by employing a shared residual-tail estimate, enabling EnSurv to learn patient-specific predictive distributions and generate individualized graft survival curves up to a prespecified horizon. It is generative since for a fixed patient covariate profile, independent noise draws passed through the fitted network yield long-time samples from this learned distribution. Unlike standard deep learning models, EnSurv provides built-in global explainability to identify the primary drivers of early graft loss. It ranks feature importance by jointly tracking the explicit weights of a linear AFT-like component and the weight norms of the non-linear dense layers. Moreover, EnSurv integrates clinical domain knowledge via gradient penalization during backpropagation. This allows for encouraging specified directional associations during training, such as learning that a higher kidney donor risk index (KDRI) or presence of hepatitis C virus (HCV) in the donor correlates with reduced graft survival (Štabjak-Blaž et al., 2023).
Our theoretical analysis establishes that EnSurv’s objective is strictly proper for the conditional outcome law induced by pooled KM completion. We characterize the conditional distribution induced by pooled completion, and establish uniform convergence of the objective and consistency of approximate minimizers for the best attainable pooled-target risk. We also quantify pooling distortion and state the additional conditions under which the true restricted law can be recovered. We use simulations to empirically examine how the KM approximation and empirical risk approach their population counterparts as the sample size grows, and compare EnSurv’s predictive performance with that of existing survival methods across a range of data-generating mechanisms and censoring levels. Finally, application to the UNOS cohort establishes that EnSurv consistently outperforms state-of-the-art survival frameworks, including survival foundation model, in predicting graft failure time across a broad suite of ten evaluation metrics encompassing discrimination, calibration, and accuracy. Hence, EnSurv serves as a comprehensive toolkit for predicting kidney graft survival, functioning as a deep generative architecture that natively integrates established domain knowledge and robust explainability. Our main contributions are four-fold:
We introduce EnSurv, a deep generative model that samples graft failure times for a given donor–recipient profile and yields individualized survival curves up to a prespecified horizon.
We combine an energy score with pooled Kaplan–Meier completion of censored records, characterize the resulting conditional distribution, and establish risk consistency for this target. Extensive simulation experiments are conducted to validate the theoretical results as well as evaluate predictive performance against existing methods.
EnSurv makes its predictions open to clinical interpretation. Signed coefficients describe associations in the linear component, while weights along nonlinear network paths help rank the importance of patient and regional covariates. A gradient penalty allows established clinical knowledge to guide the direction of selected associations during training, thereby encouraging domain constraints.
Across approximately 240,000 UNOS kidney transplants, EnSurv achieved the highest mean concordance among the methods evaluated, both before transplantation (0.609) and after transplantation (0.663). Explainability analysis post transplant revealed that dialysis in the first week after transplant, higher creatinine at discharge, and higher KDRI were among the strongest markers of shorter predicted graft survival.
The remainder of this article is organized as follows. § 2 describes the dataset. § 3 introduces the proposed framework and the model architecture, and § 4 studies theoretical properties. Simulation experiments and real data analyses are presented in § 5 and § 6, respectively. Finally, § 7 concludes the work, discussing limitations and potential future directions.
Motivating Example: UNOS Dataset
At the patient level, the available prognostic covariates include demographic attributes (age, gender, and race) alongside baseline clinical variables. Key clinical indicators include hospital length of stay (LOS) post transplant, panel reactive antibodies (PRA), donor and recipient blood types, discharge creatinine levels, KDRI, and immunosuppression strategies. Preliminary analysis shows that approximately 60% of the donors and recipients are male, and about 26% of the patients required dialysis within the first week of transplant. Among patients experiencing graft failure, the timing of failure varied, with 19.2% failing within the first year (short-term), 35.3% between 1 and 5 years, and 45.5% failing after 5 years. Comparing donor-recipient gender matching, 52.9% of the transplants were gender-matched, while 47.1% were mismatched (female receiving male kidney or vice versa). The survival trajectories between these groups exhibited a statistically significant difference (log-rank p<0.001), with gender-matched transplants showing a higher initial survival probability. Stratification by HCV serological status of donors and recipients demonstrated a statistically significant impact on overall graft survival (p<0.001). The D-R group (both donor and recipient HCV negative) exhibited the highest survival probability over time, whereas the HCV positive donor (D+) with HCV negative recipient (R-) pairing had the lowest survival. These primary survival analyses for the cohort are summarized in Panels (A), (B), and (C), respectively, in Figure 1.
Figure 1. Composite analysis of kidney graft outcomes from the UNOS registry: (A) distribution of failure times; and survival probabilities stratified by (B) donor-recipient gender concordance, (C) HCV serological status, and (D) UNOS geographic region.
The UNOS registry inherently possesses a multi-regional nature, where each patient comes from one of 11 distinct Organ Procurement and Transplantation Network (OPTN) regions. A multivariate log-rank test on the survival curves of patients stratified by region indicated a statistically significant variance in graft survival rates (p<0.001; Figure 1(D)). Specifically, the estimated 10-year restricted mean graft survival was highest in Region 6 and lowest in Region 2. Hence, ignoring region-specific effects might result in failing to account for unobserved region-level heterogeneity driven by systemic variations in surgical protocols, region volume, and post-operative care. Detailed descriptive statistics and clinical definitions for all covariates are provided in Table S.1 (supplementary Section E).
Methodology
Problem Formulation
Let T>0 be time to graft failure, C the right-censoring time (possibly infinite), and X∈X⊆Rd the covariate vector, with X a Borel set. We observe n independent, identically distributed copies (Yi,δi,Xi) of
Y=min(T,C),δ=1{T≤C},
where Y denotes the time to graft failure or censoring (whichever occured first) and δ is the graft failure indicator. Fix a clinically chosen horizon τ and a positive lower bound c0 on censoring times, with 0<c0<τ<∞. Define
Z=logT,a=logτ,Zτ=min(Z,a),
A=logmin(Y,τ),D=1−(1−δ)1{Y<τ}.
Thus, D=1 means that Zτ is observed and equals A: either graft failure is observed before τ, or follow-up reaches τ. When D=0, follow-up was censored before the horizon, i.e., Y=C<τ and T>C, so only Zτ>logY is known. Follow-up to τ is sufficient to observe the restricted outcome and a failure at τ is not required. Throughout this study, we consider the following population-level assumptions:
C≥c0 almost surely,h0:=P(Y≥τ)>0,E∣Zτ∣<∞,(1)
where h0 denotes the probability that an individual’s observed follow-up time reaches or exceeds τ. The positive lower bound on censoring keeps completed log-time tails in the bounded interval [logc0,a], and the follow-up condition keeps the pooled risk set positive up to τ.
Let PX denote the marginal law of the covariates and Px be the covariate-conditional law of Zτ; we write
where Fx is the conditional cumulative distribution function (CDF) of the horizon-restricted log-failure time and ST(t∣x) denotes the conditional survival function representing the probability that an individual with covariates x experiences no graft failure before or at time t. Throughout, a minus sign after a time argument denotes a lefthand limit, so f(t−)=lims↑tf(s), with any other arguments held fixed. All the conditional statements hold for PX-almost every x, given that regular conditional distributions exist on the underlying Borel spaces. We additionally consider
T⊥C∣X,G(t∣x):=P(C≥t∣X=x)>0(0≤t≤τ),(2)
where G(t∣x) is the conditional probability that an individual with covariates x remains uncensored through time t. The former condition is conditional independence, which says that given the measured covariates, censoring supplies no further information about the failure time. Positivity in the latter condition permits follow-up throughout the prediction window for almost every profile. Together, they identify the conditional event hazard wherever the conditional risk set is positive:
The conditional hazard that we can estimate from the censored data is therefore the hazard of the true event and it determines the conditional survival function of T on [0,τ].
Model Formulation
Let ν=(θ,ϕ,β)∈Θ⊆Rp parameterize a predictive family for the horizon-restricted log-time. The generated outcome is defined as
Uν(x,ϵ)=gθ(x+hϕ(ϵ))+β⊤x,ϵ∼Pϵ,(3)
where hϕ:Rq→Rd transforms independent simulation noise ϵ sampled from Pϵ (e.g., Gaussian or uniform), gθ:Rd→R is a neural network (multilayer perceptron), and β∈Rd provides a linear pathway. Let Qν,x=Lϵ{Uν(x,ϵ)} denote the predictive law induced by the generated outcome, with CDF Fν,x(z)=Pϵ{Uν(x,ϵ)≤z}. On the original time scale, the model survival function on (0,τ) is 1−Fν,x(logt). To accommodate right-censored observations (D=0), EnSurv imputes unobserved log-times using a pooled KM tail. Let N(t)=P(Y≤t,δ=1) denote the observed graft failure subdistribution and H(t)=P(Y≥t) the at-risk probability. Their pooled hazard and survival functions, respectively, on [0,τ) are defined as
Λ#(t)=∫(0,t]H(s)N(ds),S#(t)=(0,t]∏{1−dΛ#(s)}.
The superscript # denotes a working curve constructed from failures and risk sets pooled across the cohort. We consider pooling because a local conditional tail can be unstable late in follow-up, when few patients with similar covariates remain at risk. For a patient censored at c<τ, the pooled curve is used to allocate probability over (c,τ], so patients censored at the same time share a completion distribution. Because observed failures represent only a subset of all risk-set removals, S#(t)≥P(Y>t)≥h0 for t<τ. Placing the residual mass S#(τ−) at τ gives a probability distribution on (0,τ] with CDF F#. For a given censoring time c∈[c0,τ), the conditional log-tail law Kc and its expected absolute deviation Ψ(c,u) at u∈R are
where E⊆R is a Borel set. Both Kc and Ψ are constructed from the pooled distribution F# and do not depend on the patient covariates. By convention, Ψ(c,u)=0 outside [c0,τ) to ensure well-defined products when D=1.
For any predictive law Q with a finite first moment, model performance is evaluated via the pooled-completion energy score loss:
References
[1]L. Antolini, P. Boracchi, and E. Biganzoli. A time-dependent discrimination index for survival data. Statistics in medicine, 24(24): 3927–3944, 2005.pubmed.ncbi.nlm.nih.gov/16320281
[2]E. S. Baskin-Bey, W. Kremers, and S. L. Nyberg. A Recipient Risk Score for Deceased Donor Renal Allocation. American Journal of Kidney Diseases, 49(2):284–293, 2007.
[3]P. Clayton, S. McDonald, J. Snyder, N. Salkowski, and S. Chadban. External Validation of the Estimated Posttransplant Survival Score for Allocation of Deceased Donor Kidneys in the United States. American Journal of Transplantation, 14(8):1922–1926, 2014.DOI
[4]M. Coemans, T. H. Tran, B. Döhler, A. B. Massie, G. Verbeke, D. L. Segev, S. E. Gentry, and M. Naesens. A competing risks model to estimate the risk of graft failure and patient death after kidney transplantation using continuous donor-recipient age combinations. American Journal of Transplantation, 25(2):355–367, 2025.DOI
[5]D. R. Cox. Regression Models and Life-Tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2):187–202, 1972.
[6]V. R. Dharnidharka, G. Stevens, and R. J. Howard. En-bloc kidney transplantation in the United states: an analysis of united network of organ sharing (UNOS) data from 1987 to 2003. American Journal of Transplantation, 5(6):1513–1517, 2005.pubmed.ncbi.nlm.nih.gov/15888062
[7]D. Faraggi and R. Simon. A neural network model for survival data. Statistics in medicine, 14(1):73–82, 1995.pubmed.ncbi.nlm.nih.gov/7701159
[8]S. Fotso. Deep Neural Networks for Survival Analysis Based on a Multi-Task Framework. arXiv preprint arXiv:1801.05512, 2018.arxiv.org/abs/1801.05512
[9]T. Gneiting and A. E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American statistical Association, 102(477):359–378, 2007.
[10]G. Gupta, L. Kang, J. W. Yu, A. J. Lickermann, V. Garcia, D. Bandyopadhyay, D. Kumar, H. Fattah, M. Levy, A. H. Cotterell, et al. Long-term outcomes and transmission rates in hepatitis C virus-positive donor to hepatitis C virus-negative kidney transplant recipients: analysis of United States national data. Clinical Transplantation, 31(10):e13055, 2017.DOI
[11]H. Haider, B. Hoehn, S. Davis, and R. Greiner. Effective Ways to Build and Evaluate Individual Survival Distributions. Journal of Machine Learning Research, 21(85):1–63, 2020.
[12]F. E. Harrell Jr, K. L. Lee, and D. B. Mark. Multivariable prognostic models: issues in developing models, evaluating assumptions and adequacy, and measuring and reducing errors. Statistics in medicine, 15(4):361–387, 1996.pubmed.ncbi.nlm.nih.gov/8668867
[13]D. Hernández, T. Vázquez, A. M. Armas-Padrón, J. Alonso-Titos, C. Casas, E. Gutiérrez, C. Jironda, M. Cabello, and V. Lopez. Peripheral Vascular Disease and Kidney Transplant Outcomes: Rethinking an Important Ongoing Complication. Transplantation, 105(6):1188–1202, 2021.DOI
[14]T. Hothorn, P. Bühlmann, S. Dudoit, A. Molinaro, and M. J. Van Der Laan. Survival ensembles. Biostatistics, 7(3):355–373, 2006.pubmed.ncbi.nlm.nih.gov/16344280
[15]H. Ishwaran, U. B. Kogalur, E. H. Blackstone, and M. S. Lauer. Random survival forests. The Annals of Applied Statistics, 2(3):841–860, 2008. URL https://doi.org/10.1214/08-AOAS169.
[16]J. Jonkers, G. Van Wellen dael, L. Duchateau, and S. Van Hoecke. Proper scoring rules for right-censored survival data. arXiv preprint arXiv:2606.06393, 2026.arxiv.org/abs/2606.06393
[17]L. Kamal, W. Y. Jonathan, T. W. Reichman, L. Kang, D. Bandyopadhyay, D. Kumar, A. King, U. Gautam, C. Bhati, I. Yakubu, et al. Impact of Induction Immunosuppression Strategies in Simultaneous Liver/Kidney Transplantation. Transplantation, 104(2):395–403, 2020.DOI
[18]J. L. Katzman, U. Shaham, J. Cloninger, J. Bates, T. Jiang, and Y. Kluger. Deepsurv: personalized treatment recommender system using a cox proportional hazards deep neural network. BMC medical research methodology, 18(1):24, 2018.DOI
[19]M. LeBlanc and J. Crowley. Survival Trees by Goodness of Split. Journal of the American Statistical Association, 88(422):457–467, 1993.DOI
[20]C. Lee, W. Zame, J. Yoon, and M. Van Der Schaar. Deephit: A deep learning approach to survival analysis with competing risks. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
[21]P. Massart. The tight constant in the Dvoretzky-Kiefer-Wolfowitz inequality. The Annals of Probability, pages 1269–1283, 1990.DOI
[22]C. Nagpal, X. Li, and A. Dubrawski. Deep Survival Machines: Fully Parametric Survival Regression and Representation Learning for Censored Data With Competing Risks. IEEE Journal of Biomedical and Health Informatics, 25(8):3163–3175, 2021a.DOI
[23]C. Nagpal, S. Yadlowsky, N. Rostamzadeh, and K. Heller. Deep Cox Mixtures for Survival Regression. In Machine Learning for Healthcare Conference, pages 674–708. PMLR, 2021b.arxiv.org/abs/2101.06536
[24]H. Oweira, A. Ramouz, O. Ghamarnejad, E. Khajeh, S. Ali-Hasan-Al-Saegh, R. Nikbakhsh, C. Reißfelder, N. Rahbari, A. Mehrabi, and M. Sadeghi. Risk Factors of Rejection in Renal Transplant Recipients: A Narrative Review. Journal of Clinical Medicine, 11(5):1392, 2022.DOI
[25]R. Pathak and T. Chakraborty. Deep Generative Spatiotemporal Engression for Probabilistic Forecasting of Epidemics. Transactions on Machine Learning Research, 2026.arxiv.org/abs/2603.07108
[26]J. Perl. Kidney transplant failure: failing kidneys, failing care? Clinical Journal of the American Society of Nephrology: CJASN, 9(7):1153, 2014.DOI
[27]E. D. Poggio, J. J. Augustine, S. Arrigain, D. C. Brennan, and J. D. Schold. Long-term kidney transplant graft survival—Making progress when most needed. American Journal of Transplantation, 21(8):2824–2832, 2021.DOI
[28]S. Pölsterl. scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn. Journal of Machine Learning Research, 21(212):1–6, 2020. URL http://jmlr.org/papers/v21/20-729.html.
[29]S.-a. Qi, W. Sun, and R. Greiner. SurvivalEVAL: A Comprehensive Open-Source Python Package for Evaluating Individual Survival Distributions. In Proceedings of the AAAI Symposium Series, volume 2, pages 453–457, 2023.DOI
[30]S.-a. Qi, V. Balazadeh, M. Cooper, R. Greiner, and R. G. Krishnan. SurvivalPFN: Amortizing Survival Prediction via In-Context Bayesian Inference. arXiv preprint arXiv:2605.15488, 2026.arxiv.org/abs/2605.15488
[31]X. Shen and N. Meinshausen. Engression: extrapolation through the lens of distributional regression. Journal of the Royal Statistical Society Series B: Statistical Methodology, 87(3):653–677, 2025.
[32]N. Simon, J. H. Friedman, T. Hastie, and R. Tibshirani. Regularization paths for Cox’s proportional hazards model via coordinate descent. Journal of statistical software, 39:1–13, 2011.pubmed.ncbi.nlm.nih.gov/27065756
[34]N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014.
[35]D. J. Taber, K. Douglass, T. Srinivas, J. W. McGillicuddy, C. F. Bratton, K. D. Chavin, P. K. Baliga, and L. E. Egede. Significant Racial Differences in the Key Factors Associated with Early Graft Loss in Kidney Transplant Recipients. American Journal of Nephrology, 40(1):19–28, 2014.DOI
[36]H. Uno, T. Cai, M. J. Pencina, R. B. D’Agostino, and L.-J. Wei. On the C-statistics for evaluating overall adequacy of risk prediction procedures with censored survival data. Statistics in medicine, 30(10):1105–1117, 2011.DOI
[37]Z. Wang, J. W. Lee, T. Chakraborty, Y. Ning, M. Liu, F. Xie, M. E. H. Ong, and N. Liu. Survival Modeling Using Deep Learning, Machine Learning, and Statistical Methods: A Comparative Analysis for Predicting Mortality After Hospital Admission. Health Data Science, 6:0449, 2026.
[38]L.-J. Wei. The accelerated failure time model: a useful alternative to the cox regression model in survival analysis. Statistics in medicine, 11(14-15):1871–1879, 1992.pubmed.ncbi.nlm.nih.gov/1480879
[39]R. Wolfe, K. McCullough, and A. Leichtman. Predictability of Survival Models for Waiting List and Transplant Patients: Calculating LYFT. American Journal of Transplantation, 9(7):1523–1527, 2009.DOI
[40]K. D. Yoo, C. T. Kim, M.-H. Kim, J. Noh, G. Kim, H. Kim, J. N. An, J. Y. Park, H. Cho, K. H. Kim, et al. Superior outcomes of kidney transplantation compared with dialysis: An optimal matched analysis of a national population-based cohort study between 2005 and 2008 in Korea. Medicine, 95(33):e4352, 2016.