Skip to content

Optimizing warfarin dosing for patients with atrial fibrillation using deep reinforcement learning

License

Notifications You must be signed in to change notification settings

hamilton-health-sciences/warfarin

Repository files navigation

Optimizing Warfarin Dosing for Patients with Atrial Fibrillation Using Deep Reinforcement Learning

Software

In addition to this repository, which contains all the software needed to reproduce our results exactly, we have published a Pip package containing the semi-markov discrete BCQ reinforcement learning PyTorch model. Instructions for installing and using this package on synthetic data are available here. Briefly:

  • Requirements: The model has been tested on Ubuntu Linux 20.04, Python 3.9, and GPUs (although GPUs are not required).
  • Installation: python3 -m pip install smdbcq
  • Demo: python3 -m smdbcq --demo to run on CartPole data.
  • Installation time should be < 1 minute on any machine.
  • Runtime should be < 1 second per optimization step, depending on hardware, with hundreds of thousands to millions of steps required for robust model estimation. We would expect replicating our study with 4 Tesla V100 GPUs to take approximately one week of computation time.
  • Please see REPLICATION for instructions to run the software on our data and detailed replication instructions.

Citation

Optimizing Warfarin Dosing for Patients with Atrial Fibrillation Using Deep Reinforcement Learning

Jeremy Petch, Walter Nelson, Mary Wu, Marzyeh Ghassemi, Alexander Benz, Mehdi Fatemi, Shuang Di, Anthony Carnicelli, Christopher Granger, Robert Giugliano, Hwanhee Hong, Manesh Patel, Lars Wallentin, John Eikelboom, Stuart J Connolly

Under review.

See also

  • The website, which exposes the learned policy as a human-usable web form. Source code for the website and learned weights are available here.

  • Our earlier methodology work:

Semi-Markov Offline Reinforcement Learning for Healthcare

Mehdi Fatemi, Mary Wu, Jeremy Petch, Walter Nelson, Stuart J Connolly, Alexander Benz, Anthony Carnicelli, Marzyeh Ghassemi

Conference on Health, Inference, and Learning 2022

  • The paper describing the COMBINE-AF data:

Individual Patient Data from the Pivotal Randomized Controlled Trials of Non-Vitamin K Antagonist Oral Anticoagulants in Patients with Atrial Fibrillation (COMBINE AF): Design and Rationale

Anthony P Carnicelli, Hwanhee Hong, Robert P Giugliano, Stuart J Connolly, John Eikelboom, Manesh R Patel, Lars Wallentin, David A Morrow, Daniel Wojdyla, Kaiyuan Hua, Stefan H Hohnloser, Jonas Oldgren, Christian T Ruff, Jonathan P Piccini, Renato D Lopes, John H Alexander, Christopher B Granger, COMBINE AF Investigators

American Heart Journal

  • The original discrete batch-constrained Q-learning paper, upon which the semi-Markov form of the model is based:

Benchmarking Batch Deep Reinforcement Learning Algorithms

Scott Fujimoto, Edoardo Conti, Mohammad Ghavamzadeh, Joelle Pineau

arXiv preprint

About

Optimizing warfarin dosing for patients with atrial fibrillation using deep reinforcement learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published