Giter Club home page Giter Club logo

covidprognosis's Introduction

CovidPrognosis

This repository contains code for reproducing the following paper:

A. Sriram*, M. Muckley*, K. Sinha, F. Shamout, J. Pineau, K. J. Geras, L. Azour, Y. Aphinyanaphongs, N. Yakubova, W. Moore. COVID-19 Prognosis via Self-Supervised Representation Learning and Multi-Image Prediction. arXiv preprint arXiv:2101.04909 (2020).

We also include models from the MoCo pretraining process for groups interested in fine-tuning them on their own data. Prior to using this code or pretrained models please consult the Disclaimer.

Installation

First, follow the official instructions for installing PyTorch. Then, navigate to the root CovidPrognosis directory and run

pip install -e .

After that you should be able to run the examples in cp_examples.

Usage

For pretraining, you'll need to download the MIMIC-CXR-JPG or CheXpert datasets. Once you've downloaded the data, add the path to configs/data.yaml and it should be used as a default.

The cp_examples directory contains three subdirectories corresponding to the training stages in the paper:

  • moco_pretrain: Momentum-contrast (MoCo) pretraining (e.g., with MIMIC, CheXpert, or both)
  • sip_finetune: Fine-tuning of MoCo models for single-image prediction tasks (i.e., single-image adverse event prediction or oxygen requirements prediction)
  • mip_finetune: Fine-tuning of MoCo models for multi-image prediction tasks

Our code is built on top of the PyTorch Lightning framework.

The examples scripts for MoCo pretraining and SIP fine-tuning are set up for public X-ray data sets - due to consideration of patient privacy we do not release COVID data and use the public data as examples.

Pretrained Models

We provide pretrained models that use the MIMIC-CXR-JPG and CheXpert datasets. These datasets are subject to additional terms and conditions as indicated on their respective websites. For a list of models, see here. For an example of how to download and train with the models, please look at the SIP Fine-tuning example.

The following publication describes MIMIC-CXR:

MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports (A.E.W. Johnson et al., 2019)

And this publication describes CheXpert:

CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison (J. Irvin et al., 2019)

Disclaimer

This code and accompanying pretrained models are provided with no guarantees regarding their reliability, accuracy or suitability for any particular application and should be used for research purposes only. The models and code are not to be used for public health decisions or responses, or for any clinical application or as a substitute for medical advice or guidance.

Citation

If you use this code or models in your scientific work, please cite the following paper:

@misc{sriram2021covid19,
      title={COVID-19 Deterioration Prediction via Self-Supervised Representation Learning and Multi-Image Prediction}, 
      author={Anuroop Sriram and Matthew Muckley and Koustuv Sinha and Farah Shamout and Joelle Pineau and Krzysztof J. Geras and Lea Azour and Yindalon Aphinyanaphongs and Nafissa Yakubova and William Moore},
      year={2021},
      eprint={2101.04909},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

License

The code is MIT licensed, as found in the LICENSE file.

covidprognosis's People

Contributors

mmuckley avatar rachgupta avatar anuroopsriram avatar

Watchers

James Cloos 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.