Skip to content
/ baysurv Public

Code for: Efficient Training of Probabilistic Neural Networks for Survival Analysis (IEEE JBHI 2024)

License

Notifications You must be signed in to change notification settings

thecml/baysurv

Repository files navigation

Efficient Training of Probabilistic Neural Networks for Survival Analysis

This repository is the official TensorFlow implementation of "Efficient Training of Probabilistic Neural Networks for Survival Analysis", IEEE JBHI 2024.

The proposed method is implemented based on TensorFlow Probability.

Evaluation is done using SurvivalEval. Thank you to the authors.

Full paper: https://ieeexplore.ieee.org/document/10568314

In the context of survival analysis using Bayesian modeling, we investigate whether non-VI techniques can offer comparable or possibly improved predictive performance and uncertainty calibration compared to VI.

License

To view the license for this work, visit https://github.com/thecml/baysurv/blob/main/LICENSE

Requirements

To run the models, please refer to Requirements.txt.

Code was tested in virtual environment with Python 3.9, TensorFlow 2.11 and TensorFlow Probability 0.19

Training

  • Make directories mkdir results and mkdir models.

  • Please refer to paths.py to set appropriate paths. By default, results are in results and models in models

  • Network configuration using best hyperparameters are found in configs/*

  • Run the training code:

# SOTA models
python train_sota_models.py

# BNN Models
python train_bnn_models.py

Evaluation

  • After model training, view the results in the results folder.

Visualization

  • Run the notebook to plot the survival function and the predicted time to event:
jupyter notebook model_inference.ipynb

Citation

@article{lillelund_efficient_2024,
  author={Lillelund, Christian Marius and Magris, Martin and Pedersen, Christian Fischer},
  journal={IEEE Journal of Biomedical and Health Informatics}, 
  title={Efficient Training of Probabilistic Neural Networks for Survival Analysis}, 
  year={2024},
  pages={1-10},
  doi={10.1109/JBHI.2024.3417369}
}

About

Code for: Efficient Training of Probabilistic Neural Networks for Survival Analysis (IEEE JBHI 2024)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published