Coder Social home page Coder Social logo

mimic_generalisation's Introduction

Feature Robustness in Non-stationary Health Records: Caveats to Deployable Model Performance in Common Clinical Machine Learning Tasks

The paper can be found here: https://arxiv.org/abs/1908.00690

If you use this repository please cite:

@ARTICLE{2019arXiv190800690N,
       author = {Bret Nestor, Matthew B.~A. McDermott, Willie Boag, Gabriela Berner, Tristan Naumann, Michael C. Hughes, Anna Goldenberg, Marzyeh Ghassemi},
        title = "{Feature Robustness in Non-stationary Health Records: Caveats to Deployable Model Performance in Common Clinical Machine Learning Tasks}",
      journal = {arXiv e-prints},
     keywords = {Computer Science - Machine Learning, Statistics - Machine Learning},
         year = "2019",
        month = "Aug",
          eid = {arXiv:1908.00690},
        pages = {arXiv:1908.00690},
archivePrefix = {arXiv},
       eprint = {1908.00690},
 primaryClass = {cs.LG},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2019arXiv190800690N},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

About

This repository contains code to test the generalisability of benchmark models in a clinical setting.

conda create -n mimic_years --file requirements.txt
source activate mimic_years

Usage

  1. Prepare MIMIC-III data as described in https://github.com/MLforHealth/MIMIC_Extract

  2. If you have permission to access the csv of patients and years of care then place them in the same directory as the flattened data. Those without permission may still reproduce the year-agnostic results. The path to the data can be saved to the DATA_DIR environment variable in train_job, train_job_cpu, and train_no_years_job.

  3. Ensure that the training scripts are executable. Run them to reproduce the experiments.

./train_job
./train_job_cpu
./train_no_years_job

Experimental parameters can be fed into AUC_GH.py as arguments. They are outlined below:

  • test_size, the test size for training 2001-2002 models, default=0.2
  • max_time, the maximum number of hours to use in the flattened data, default=24
  • random_seed, a seed for reproducible splits in the data.
  • level, The column level of the multindex pandas data of which to group the data, default='itemid', choices=['itemid', 'Level2', 'nlp']
  • representation, a transformation to apply to the data before training on the classification task, default='raw', choices=['raw', 'pca', 'umap', 'autoencoder']
  • target, the classification task, default='mort_icu', choices=['mort_icu', 'los_3']
  • prefix, a file prefix for debugging and labelling experiments, default=""
  • modeltype, select a model to train on the data, default="rf", choices=['rf', 'lr', 'svm', 'rbf-svm', 'knn', 'mlp', 'lstm', 'gru', 'grud']
  • train_type, four training paradigms, default="2001-2002", choices=['2001-2002', 'rolling_limited', 'rolling', 'no_years']
  • data_dir,full path to the folder containing the data
  • gpu, specify which GPUS to train on, default=0
  • n_threads, Number of threads to use for CPU model searches, default=maximum available

mimic_generalisation's People

Contributors

bnestor avatar

Stargazers

 avatar Annie_Z avatar  avatar Valli Subasri avatar Afroditi Papadaki avatar xiaozhuang avatar  avatar Raj N Manickam avatar Mert Yuksekgonul avatar David C. Lambert avatar Alex Movila avatar Kamalesh Palanisamy avatar John Chen avatar Batuhan Bardak avatar

Watchers

James Cloos avatar Marzyeh Ghassemi avatar  avatar paper2code - bot 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.