DAGSurv: Directed Acyclic Graph Based Survival Analysis Using Deep Neural Networks

Ansh Kumar Sharma, Rahul Kukreja, Ranjitha Prasad, Shilpa RaoarXiv 2021

Abstract

Traditional survival analysis models often treat input features as independent, neglecting the complex causal relationships that exist in real-world data. We present DAGSurv, a novel framework that integrates Directed Acyclic Graphs (DAGs) with Conditional Variational Autoencoders (CVAEs) to capture these dependencies. By utilizing the adjacency matrix of a causal graph, DAGSurv achieves a more optimal encoding of the data distribution, leading to improved survival time predictions. Our evaluation on synthetic and real-world clinical datasets demonstrates that DAGSurv consistently outperforms state-of-the-art survival analysis methods.

Introduction

Survival analysis (SA) is critical for predicting the time until an event of interest occurs, such as patient mortality or equipment failure. A primary challenge in SA is handling censored data, where the event time is only partially observed. While deep learning has advanced SA through models like DeepSurv and DeepHit, these approaches typically assume feature independence. In reality, covariates are often causally linked—for instance, a patient's age may influence physiological markers, which subsequently affect survival. Ignoring these structural relationships can introduce bias and limit predictive accuracy.

DAGSurv addresses this limitation by incorporating causal structures directly into the learning process. By representing feature dependencies as a DAG, the model can leverage information-theoretic advantages to produce more robust and interpretable predictions.

Methodology

The core of DAGSurv is the integration of a DAG adjacency matrix into a deep generative model.

Information-Theoretic Foundation

The authors provide a formal proof based on source coding theory, showing that incorporating the adjacency matrix $A$ of a DAG reduces the entropy of the data representation. This implies that knowing the causal "map" allows the model to learn a more efficient and accurate latent representation of the input features compared to DAG-agnostic models.

Architecture

DAGSurv utilizes a Conditional Variational Autoencoder (CVAE) to model the survival distribution.

The DAGSurv architecture integrates the DAG adjacency matrix (A) with feature data (X) and time (t) to predict survival probability.

The architecture consists of:

  1. Encoder ($f_e$): Maps the input features $X$, the event time $t$, and the DAG structure $A$ into a latent space $Z$, characterized by mean $\mu_z$ and variance $\Sigma_z$.
  2. Decoder ($f_d$): Reconstructs the survival information from the latent variable $Z$ and the DAG structure $A$, outputting a probability distribution over discrete time intervals.
  3. Softmax Layer: Produces the final predicted survival time distribution.

Training and Loss Function

The model is trained by maximizing the Evidence Lower Bound (ELBO), which balances reconstruction accuracy with the divergence of the latent distribution from a prior.

The CVAE component of DAGSurv is trained by maximizing the ELBO, incorporating the DAG structure into the latent encoding process.

The loss function is specifically modified to handle the survival log-likelihood, accounting for both observed events and right-censored data points.

Experimental Setup

DAGSurv was evaluated against several baselines, including DeepHit, DeepSurv, and CoxTime, using the time-dependent Concordance Index ($C_{td}$).

Datasets

  • Synthetic Data: Two datasets (9 and 49 features) were generated using Erdos-Rényi models to provide ground-truth DAGs for validation.
  • METABRIC: A clinical dataset of 1,904 breast cancer patients involving gene expression and clinical covariates.
  • GBSG: Data from the German Breast Cancer Study Group, featuring 2,232 patients.

For real-world datasets where the causal graph is unknown, the authors employed structure learning algorithms like bnlearn and DAG-GNN to estimate the adjacency matrix $A$.

Results

DAGSurv demonstrated superior performance across all tested scenarios:

  • Synthetic Benchmarks: On the small synthetic dataset, DAGSurv achieved a $C_{td}$ of 0.5692, significantly higher than DeepHit (0.5532) and DeepSurv (0.4956).
  • Clinical Datasets: On METABRIC, DAGSurv (0.7323) outperformed DeepHit (0.7309) and CoxTime (0.6679). On GBSG, it reached 0.6892, surpassing CoxTime (0.6687).

Beyond accuracy, the model offers improved interpretability. By visualizing the DAG, clinicians can trace the causal pathways influencing survival, such as how tumor characteristics mediate the effect of age on patient outcomes.

Conclusion and Future Work

DAGSurv represents a significant step in merging causal discovery with survival analysis. By mathematically grounding the use of DAGs in information theory, the authors show that structural knowledge leads to better predictive models.

Future research will focus on refining the encoder architecture for optimal source coding, extending the framework to handle competing risks, and exploring counterfactual inference to predict the impact of different treatment interventions.

Summary updated

BibTeX
@misc{sharma2021dagsurv,
  author = {Ansh Kumar Sharma and Rahul Kukreja and Ranjitha Prasad and Shilpa Rao},
  title = {{DAGSurv: Directed Acyclic Graph Based Survival Analysis Using Deep Neural Networks}},
  year = {2021},
  eprint = {2111.01482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.01482},
}
Figure