Giter Club home page Giter Club logo

capstone-project's Introduction

capstone-project

Code from our capstone project, Multimodal Self-Supervised Deep Learning with Chest X-Rays and EHR Data.

This implementation combines three modalities of data (image, text, and tabular EHR) from MIT's MIMIC-IV and MIMIC-CXR datasets to learn a model for diagnosing various lung ailments. Our approach was to first pretrain a model using self-supervised learning among the three modalities, using contrastive loss between image-text and image-EHR pairings.

In short, the model attempts to embed all 3 modalities into the same space; for a given patient, each embedding should be the same. Training in this method allows the model to leverage information in the other modalities when learning how to embed a single one, e.g. to leverage a doctor's notes to create more informative image embeddings. We then took the image component of this model and finetuned its embeddings in a supervised manner to perform two downstream tasks: disease diagnosis and morality prediction.

Many different model structures, preprocessing techniques, and dataloading methods were experimented with to determine which configuration yielded a superior balance of performance and training speed. At the cost of messiness, code from all experiments is left in the repository for future reference. The final pretraining method is the one used in src/train_v2.py and its relevant modules; the final methods for downstream tasks are likewise shown in src/train_diagnosis.py, src/test_diagnosis.py, src/train_mortality.py, and src/test_mortality.py. All other modules should be considered irrelevant to final results.

capstone-project's People

Contributors

arzaatri 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.