Giter Site home page Giter Site logo

harrymayne / icu-patient-subgroups Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 61 KB

Unsupervised Learning Approaches for Identifying ICU Patient Subgroups: Do Results Generalise?

Home Page: https://arxiv.org/abs/2403.02945

License: MIT License

Jupyter Notebook 100.00%
intensive-care machine-learning

icu-patient-subgroups's Introduction

Unsupervised Learning Approaches for Identifying ICU Patient Subgroups: Do Results Generalise?

Find the paper here: https://arxiv.org/abs/2403.02945

Data requirements

Since the MIMIC-IV data is confidential, we cannot share the data used for the project. Users of this code must first get access the data and then put it into the relevant directories. The code is designed that there is minimal effort required once the data is sourced.

We require the following datasets:

  • MIMIC-IV v2.2 dataset (mimic-iv-v2.2). Details about getting access to this can be found here.
  • Derived files from the MIMIC-IV Code Repository. These can be installed directly from Google BigQuery or you can find the raw SQL code here. If there are python implementations of these derived tables then feel free to let us know or submit a pull request.
    • Charlson Comorbidity Index (charlson.csv)
    • SAPS II (sapsii.csv)
    • Glasgow Coma Scale (gcs.csv). NOTE: this is not the same as first_day_gcs

Required directory structure

Once you have downloaded MIMIC-IV, you should put the contents of the mimic-iv-v2.2' directory into the data' directory. Derived files from the MIMIC-IV Code Repository/GoogleBigQuery should be put into the directory called `queried_data'.

The finished set up should look like the image below. Note that the LICENSE.txt and CHANGELOG.txt are part of the MIMIC-IV contents.

directory_setup

Generating the cleaned dataset

To generate the dataset for clustering, you only need to run one file. This is data_cleaning.ipynb. This will create three csv files in the data directory: total_mimiciv_cohort.csv which is all 73,181 ICU stays in the cleaned data, random_sample.csv, which is the sample of 5,000 patients randomly drawn from the total cohort (note the same random seed as in the paper) and remaining_data.csv, which is the remainder after the random sample are removed. We used this dataset for testing the difference between the random sample and the remaining data.

It is a long notebook and can take a while to run depending on your compute.

Citation

If you wish to cite this in future research, please cite using this BibTeX:

@misc{mayne2024ICUclustering,
    title={Unsupervised learning approaches to identify ICU patient subgroups: Do results generalise?},
    url={https://github.com/HarryMayne/ICU-patient-subgroups},
    author={Mayne, Harry and Parsons, Guy and Mahdi, Adam},
    year={2024},
    month={Feb}
}

icu-patient-subgroups's People

Contributors

harrymayne avatar

Stargazers

amine mihoubi avatar

Watchers

 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.