Papers › An Introduction to Deep Survival Analysis Models for Predicting Time-to-Event Outcomes

An Introduction to Deep Survival Analysis Models for Predicting Time-to-Event Outcomes

1 Oct 2024arXiv:2410.01086archive 2025-07-28

George H. Chen

Many applications involve reasoning about time durations before a critical event happens--also called time-to-event outcomes. When will a customer cancel a subscription, a coma patient wake up, or a convicted criminal reoffend? Time-to-event outcomes have been studied extensively within the field of survival analysis primarily by the statistical, medical, and reliability engineering communities, with textbooks already available in the 1970s and '80s. This monograph aims to provide a reasonably self-contained modern introduction to survival analysis. We focus on predicting time-to-event outcomes at the individual data point level with the help of neural networks. Our goal is to provide the reader with a working understanding of precisely what the basic time-to-event prediction problem is, how it differs from standard regression and classification, and how key "design patterns" have been used time after time to derive new time-to-event prediction models, from classical methods like the Cox proportional hazards model to modern deep learning approaches such as deep kernel Kaplan-Meier estimators and neural ordinary differential equation models. We further delve into two extensions of the basic time-to-event prediction setup: predicting which of several critical events will happen first along with the time until this earliest event happens (the competing risks setting), and predicting time-to-event outcomes given a time series that grows in length over time (the dynamic setting). We conclude with a discussion of a variety of topics such as fairness, causal reasoning, interpretability, and statistical guarantees. Our monograph comes with an accompanying code repository that implements every model and evaluation metric that we cover in detail.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 24 code samples harvested from 2 repositories linked to this paper: 20 ran (of which 0 constructed an object rather than computing a result; 15 with no instrument failure: 5 honoured, 0 violated, 10 with no contract checked; 5 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 24 samples from 2 repositories, 20 ran (15 with no instrument failure; 5 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 20 samples that ran has no recorded date.

georgehc/survival-intro officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: 16 samples, 13 ran (5 instrument-failed) · 3 unverified report
georgehc/survival-kernets officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: 8 samples, 7 ran (0 instrument-failed) · 1 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested: 20 ran (of which 0 constructed an object rather than computing a result; 15 with no instrument failure: 5 honoured, 0 violated, 10 with no contract checked; 5 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

5ran · honoured contract
3ran · our draft was wrong
2ran; the contract check could not run
10ran
4unverified

Licence: 24 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

georgehc/survival-intro official repository 16 samples, 13 ran (5 instrument-failed) · 3 unverified
to_np in 63 papers
census: 8 implementations from 14 papers, 2 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 2, kind float, dtype float32
SODEN/utils.py ran · our draft was wrong no licence file found · pointer only · 8c6b999f5a291101 · report fixture: signature x:Tensor/2/float · returned ndarray · level recorded, date not recorded
create_nn ddh/ddh_torch.py ran licence not identified · pointer only · 52d5f198b90bb262 · report fixture: signature inputdim:int/0/int, outputdim:int/0/int, dropout:float/0/float, layers:list/1/int, activation:str/0/str, no_activation_last:bool/0/bool · returned Sequential · level recorded 2026-09-24
detach in 11 papers SODEN/trainers.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · 7bfce1592a02f7e9 · report fixture: signature data:Tensor/2/float · returned Tensor · level recorded 2026-09-24
longitudinal_loss ddh/losses.py ran fingerprinted licence not identified · pointer only · d6a878606f6a3f6f · report fixture: signature longitudinal_prediction:Tensor/3/float, x:Tensor/3/float · returned Tensor · level recorded 2026-09-24
make_net in 5 papers SODEN/models.py ran licence not identified · pointer only · 567c99195b85caf2 · report fixture: signature input_size:int/0/int, hidden_size:int/0/int, num_layers:int/0/int, output_size:int/0/int, dropout:float/0/float, batch_norm:bool/0/bool, act:str/0/str, softplus:bool/0/bool · returned Sequential · level recorded 2026-09-24
make_sequential SODEN/models.py ran licence not identified · pointer only · f723cd6ace3ba402 · report fixture: signature layer_configs:dict/0/?, input:Tensor/4/float · returned Sequential · level recorded 2026-09-24
my_collate_fn in 5 papers SODEN/data.py ran · our draft was wrong licence not identified · pointer only · bc29d076eaa13d90 · report fixture: signature batch:list/1/tuple · returned tuple · level recorded 2026-09-24
negative_log_likelihood in 6 papers ddh/losses.py ran licence not identified · pointer only · 69bfc00eeb85b25c · report fixture: signature outcomes:list/1/Tensor, cif:list/1/Tensor, t:Tensor/1/int, e:Tensor/1/int · returned Tensor · level recorded 2026-09-24
one_hot in 150 papers
census: 18 implementations from 25 papers, 10 distinct outputs across 6 buckets, one shared input per bucket
survival_kernets/models.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · d87ff0ee47cb77cd · report fixture: signature x:ndarray/1/int · returned ndarray · level recorded 2026-09-24
sample_category SODEN/generate_config.py ran · our draft was wrong no licence file found · pointer only · 2380394e460c5784 · report fixture: signature categories:ndarray/1/<U5, random_state:RandomState/0/? · returned str · level recorded 2026-09-22
sample_value SODEN/generate_config.py ran · honoured contract no licence file found · pointer only · 1104ebe17294a696 · report fixture: signature low:float/0/float, high:float/0/float, scale:str/0/str, is_int:bool/0/bool, random_state:RandomState/0/? · returned float · level recorded 2026-09-22
sample_variable SODEN/generate_config.py ran · honoured contract no licence file found · pointer only · 6cc8b743622a8f3c · report fixture: signature var_name:str/0/str, fixed_hps:dict/0/?, is_category_type:bool/0/bool, low:float/0/float, high:float/0/float, scale:str/0/str, is_int:bool/0/bool, random_state:RandomState/0/? · returned float · level recorded 2026-09-22
symmetric_squared_pairwise_distances survival_kernets/models.py ran · honoured contract fingerprinted no licence file found · pointer only · b5d35227baebad44 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
load_dataset in 276 papers datasets.py unverified licence not identified · pointer only · b6d48c9705133e88 · report
make_layer in 76 papers SODEN/models.py unverified licence not identified · pointer only · ca173721c4603ffb · report
ranking_loss in 5 papers ddh/losses.py unverified licence not identified · pointer only · 4a96f84d0275b9e5 · report
georgehc/survival-kernets official repository 8 samples, 7 ran (0 instrument-failed) · 1 unverified
fit_spline auton_survival/models/cmhe/cmhe_utilities.py ran licence not identified · pointer only · b1d4aaf3b715111b · report fixture: signature t:ndarray/1/float, surv:ndarray/1/float, smoothing_factor:float/0/float · returned UnivariateSpline · level recorded 2026-09-24
func in 29 papers
census: 5 implementations from 5 papers, 5 distinct outputs across 4 buckets, one shared input per bucket
auton_survival/utils.py ran licence not identified · pointer only · 8a71ec1e151548d6 · report fixture: signature x:Tensor/0/float, y:Tensor/0/float, x1:Tensor/0/float, y1:Tensor/0/float, x2:Tensor/0/float, y2:Tensor/0/float · returned Tensor · level recorded 2026-09-24
increase_censoring auton_survival/datasets.py ran licence not identified · pointer only · 1da6236015a64aa4 · report fixture: signature e:ndarray/1/int, t:ndarray/1/float, p:float/0/float, random_seed:int/0/int · returned tuple · level recorded 2026-09-24
interp_x auton_survival/utils.py ran fingerprinted licence not identified · pointer only · 7ff6e606bed62ed3 · report fixture: signature y:ndarray/1/float, x:ndarray/1/float, thres:float/0/float · returned float64 · level recorded 2026-09-24
partial_ll_loss auton_survival/models/cmhe/cmhe_utilities.py ran licence not identified · pointer only · 102f1425a4917f1d · report fixture: signature lrisks:Tensor/1/float, tb:ndarray/1/float, eb:ndarray/1/int, eps:float/0/float · returned Tensor · level recorded 2026-09-24
randargmax auton_survival/models/cmhe/cmhe_utilities.py ran · honoured contract licence not identified · pointer only · 27e716aceab3fcaa · report fixture: signature b:ndarray/2/float · returned int64 · level recorded 2026-09-24
squared_pairwise_distances neural_kernel_survival.py ran · honoured contract fingerprinted no licence file found · pointer only · aa4a7d9530f13f53 · report fixture: signature x:Tensor/2/float, y:Tensor/2/float · returned Tensor · level recorded 2026-09-22
load_dataset in 276 papers auton_survival/datasets.py unverified licence not identified · pointer only · d709035f8bc4eade · report

Tasks

FairnessSurvival AnalysisTime-to-Event Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections