Giter Club home page Giter Club logo

ai_clinician's Introduction

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 - [email protected]

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:

ai_clinician's People

Contributors

matthieukomorowski avatar penify-dev[bot] avatar

Watchers

Robert Bongart (MSc MSc MA) avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.