GithubHelp home page GithubHelp logo

vectorinstitute / odyssey Goto Github PK

View Code? Open in Web Editor NEW
10.0 6.0 2.0 3.06 MB

A toolkit for developing foundation models using Electronic Health Record (EHR) data.

Home Page: https://vectorinstitute.github.io/EHRMamba

License: Apache License 2.0

Python 67.15% Jupyter Notebook 32.85%
electronic-health-record foundation-models mimic-iv transformers state-space-models healthcare machine-learning

odyssey's Introduction

Odyssey

A library for developing foundation models using Electronic Health Records (EHR) data.

Visit our recent EHRMamba paper

Introduction

Odyssey is a comprehensive library designed to facilitate the development, training, and deployment of foundation models for Electronic Health Records (EHR). Recently, we used this toolkit to develop EHRMamba, a cutting-edge EHR foundation model that leverages the Mamba architecture and Multitask Prompted Finetuning (MPF) to overcome the limitations of existing transformer-based models. EHRMamba excels in processing long temporal sequences, simultaneously learning multiple clinical tasks, and performing EHR forecasting, significantly advancing the state of the art in EHR modeling.

Key Features

The toolkit is structured into four main modules to streamline the development process:

  1. data:

    • Gathers EHR datasets from HL7 FHIR resources.
    • Processes patient sequences for clinical tasks.
    • Tokenizes data and creates data splits for model training.
    • Provides a dataset class for model training.
  2. models:

    • Implements models including XGBoost, LSTM, CEHR-BERT, BigBird, MultiBird, and EHRMamba.
    • Offers various embedding classes necessary for the models.
  3. evals:

    • Includes tools for testing models on clinical prediction tasks and forecasting.
    • Provides evaluation metrics for thorough assessment of model performance.
  4. interp:

    • Contains methods for interpreting model decisions.
    • Features interactive visualization of attention matrices for Transformer-based models.
    • Includes novel interpretability techniques for EHRMamba and gradient attribution methods.

Contributing

We welcome contributions from the community! Please open an issue.

Citation

If you use EHRMamba or Odyssey in your research, please cite our paper:

@misc{fallahpour2024ehrmamba,
      title={EHRMamba: Towards Generalizable and Scalable Foundation Models for Electronic Health Records},
      author={Adibvafa Fallahpour and Mahshid Alinoori and Arash Afkanpour and Amrit Krishnan},
      year={2024},
      eprint={2405.14567},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

odyssey's People

Contributors

adibvafa avatar amrit110 avatar dependabot[bot] avatar mahshidaln avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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