Skip to content

matthieukomorowski/AI_Clinician

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Clinician: reinforcement learning in intensive care

Code for a reinforcement learning model applied to the management of intravenous fluids and vasopressors in patients with sepsis in intensive care.

Related to publication: https://www.nature.com/articles/s41591-018-0213-5

Author: Dr Matthieu Komorowski, Imperial College London, 2015-2019 - m.komorowski14@imperial.ac.uk

The 2 datasets used in the research are:

Cohort definition: all adult patients fulfilling the sepsis-3 definition: http://jamanetwork.com/journals/jama/fullarticle/2492881

This repository contains:

I. the Jupyter notebook to perform data extraction in MIMIC-III (AIClinician_Data_extract_MIMIC3_140219.ipynb)

II. the Matlab code to identify the cohort of patients with sepsis in MIMIC-III (AIClinician_sepsis3_def_160219.m)

III. the Matlab code to re-create the MIMIC-III dataset (AIClinician_MIMIC3_dataset_160219.m)

IV. the Matlab code (AIClinician_core_160219.m) to:

  1. build 500 different discrete state and action MDP models from the MIMIC-III training dataset;
  2. select the best policy from off-policy evaluation on the MIMIC-III validation set;
  3. test this optimal policy on the eICU-RI dataset;
  4. compute the main results and key figures.

V. Additional files:

  1. The unique identifiers for these patients in both datasets are provided (patientIDs_MIMIC3.csv and patientIDs_eRI.csv). Note: you'll need to add 200,000 to all the patient identifiers in patientIDs_MIMIC3 to match the numbering found in the initiail database.
  2. A detailed desciption of the datasets (Dataset description Komorowski 111118.xlsx).
  3. deloutabove.m and deloutbelow.m : custom functions to delete outliers.
  4. fixgaps.m : custom function for linear interpolation.
  5. reference_matrices.mat contains the mapping of item identifiers and concepts, and data for sample-and-hold technique.
  6. SAH.m : custom function to perform sample-and-hold.

External files and toolboxes used:

About

Reinforcement learning for medical decisions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published