Giter Site home page Giter Site logo

linglongqian / ehrmonize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aiwonglab/ehrmonize

0.0 0.0 0.0 8.97 MB

EHRmonize: a Python package to abstract medical concepts with LLMs

Home Page: https://ehrmonize.readthedocs.io/

License: MIT License

Shell 0.08% Python 1.14% Jupyter Notebook 98.78%

ehrmonize's Introduction

EHRmonize

Welcome to EHRmonize, a Python package to abstract medical concepts using large language models.

arXiv Python 3.9 License: MIT stability-beta Hugging Face PyPI version Documentation Status PR Welcome Badge

Suggested Citation

Matos, J., Gallifant, J., Pei, J., & Wong, A. I. (2024). EHRmonize: A framework for medical concept abstraction from electronic health records using large language models. arXiv. https://arxiv.org/abs/2407.00242

@article{matos2024ehrmonize,
    title={EHRmonize: A Framework for Medical Concept Abstraction from Electronic Health Records using Large Language Models}, 
    author={João Matos and Jack Gallifant and Jian Pei and A. Ian Wong},
    year={2024},
    journal={arXiv preprint arXiv:2407.00242v1 [cs.CL]},
    url={https://arxiv.org/abs/2407.00242}, 
}

Documentation

For documentation, please see: https://ehrmonize.readthedocs.io/. We are currently working on a demo that will soon be available on Google Colaboratory.

Motivation

Processing and harmonizing the vast amounts of data captured in complex electronic health records (EHR) is a challenging and costly task that requires clinical expertise. Large language models (LLMs) have shown promise in various healthcare-related tasks. We herein introduce EHRmonize, a framework designed to abstract EHR medical concepts using LLMs.

Rationale

EHRmonize is designed with two main components: a corpus generation and an LLM inference pipeline. The first step entails querying the EHR databases to extract and the text/concepts across various data domains that need categorization. The second step employs LLM few-shot prompting across different tasks. The objective is to leverage the vast medical text exposure of LLMs to convert raw input medication data into useful, predefined classes.

Dataset

Our curated and labeled dataset is accessible on HuggingFace.

Current supported tasks

Type Task
Free-text task_generic_drug
task_generic_route
Multiclass task_multiclass_drug
Binary task_binary_drug
Custom task_custom

Current supported models / engines / APIs

API model_id
OpenAI gpt-4
gpt-4o
gpt-3.5-turbo (discouraged!)
AWS Bedrock anthropic.claude-3-5-sonnet-20240620-v1:0
meta.llama3-70b-instruct-v1:0
mistral.mixtral-8x7b-instruct-v0:1

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.