KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
long-clinical-doc
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
EchoPulse
:
An all-new model architecture to detect devices on ranges of radio frequencies using transformers and mambas
vc_shortcut
:
A simpler and less verbose-y way to render ViewComponents & Phlex components
async-sample
:
No description available.
LucidLogs
:
A Flutter-based Dream Journal that gives an AI analysis of your dreams
Library-Seat-Reservation-Management-System-2-Based-on-Springboot
:
基于springboot和vue的图书馆座位预约管理系统2拥有三种角色 管理员:座位管理、学生管理、签到管理、离开信息管理、信用分管理等 学生:预约座位、暂离、离开、签到等 教师:新增座位、审核、查看各种信息等
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
long-clinical-doc
?
Download (.md)
# LCD benchmark: Long Clinical Document Benchmark on Mortality Prediction for Language Models ### Leaderboard (as of May 12, 2024) <img src="https://web-share-research.s3.amazonaws.com/shared-images-research-05132024/Screenshot+2024-05-13+at+6.02.04+PM.png" alt="Leaderboard (May 12, 2024)" width="100%"> <hr> Paper under review. Citation information at the end of the README <b>Note:</b> Users of the processed benchmark datasets, which are the outputs generated by the code in this repository, must comply with the MIMIC-IV Data Use Agreement. Please refrain from distributing them to others. Instead, direct individuals to this repository and https://physionet.org/ for access. <b>Never upload the benchmark dataset in publicly accessible locations, such as GitHub repositories.</b> ### Platforms [Link to LCD benchmark CodaBench](https://www.codabench.org/competitions/2064) * LCD benchmark supports CodaBench, which is an online dataset evaluation platform. Please submit your model's output through CodaBench and compare it with others. ## Update log [Metadata creation](https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc/pull/5). (Pull req #5) * Add code to generate metadata.json (with patient IDs for train/dev/test split) and update README with metadata details (See 6. of [Steps](https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc/blob/metadata_creation/README.md#steps)) [Added subtasks for 60, 90 days](https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc/pull/4). (Pull req #4) * Added `--task_name` flag and modified README accordingly. * Changed the folder name for main task (30-day) from `out_hos_30days_mortality/labels.json` → to `out_hospital_mortality_30/labels.json` [LLM experiment example codes](https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc/pull/1). (Pull req #1) * For LLM experiment example codes, please see [llm_experiment_examples folder](https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc/tree/main/llm_experiment_examples) * cf. Codes for other baseline models (CNN and Hierarchical Transformer) are available on [CNLPT library](https://github.com/Machine-Learning-for-Medical-Language/cnlp_transformers) as stated in the paper. Future plans: * We are planning to expand our data distribution platforms (Full data and preprocessing code will soon be available on PhysioNet) ## License: This repository only provides hashed (using one-way encryption) document ids and the labels of each datapoint. You will need to download notes from PhysioNet.org after fully executed MIMIC-IV data use agreement. Agreeing to [PhysioNet Credentialed Health Data Use Agreement 1.5.0](https://physionet.org/content/mimiciv/view-dua/2.2/) and [PhysioNet Credentialed Health Data License 1.5.0](https://physionet.org/content/mimiciv/view-license/2.2/) is required to utilize the benchmark dataset. **Please get access to both [MIMIC-IV v2.2](https://physionet.org/content/mimiciv/2.2/) and [MIMIC-IV-Note v2.2](https://physionet.org/content/mimic-iv-note/2.2/).** <hr> ## How to prepare the dataset #### Environments: We strongly recommend to use Python version 3.9 or higher. <br>The example codes are tested on Ubuntu 22.04 (python v3.10.12) and MacOS v13.5.2 (python v3.9.6). <br>pandas and tqdm are required. To install these: `pip install -r requirements.txt` Please pay attention to the message (stdout) at the end of processing run, as it will tell the integrity of the created data. Note that the integrity does not check the order of the instances in datasets. ### Folder structure ```bash create_data.py : Code that merges labels.json with MIMIC-IV note data. create_data_serverside.py : (Internal use only) ``` Please note that `create_data_serverside.py` is the code the authors used to extract labels from pre-processed data. It is not required for users to run the code. ### Steps: 1. Complete the steps required by [MIMIC-IV-Note v2.2](https://physionet.org/content/mimic-iv-note/2.2/) and download `mimic-iv-note-deidentified-free-text-clinical-notes-2.2.zip` file. 2. Unzip the downloaded file. Following is an example bash script for linux users : ```bash #cd <MOVE_TO_DOWNLOAD_FOLDER> unzip mimic-iv-note-deidentified-free-text-clinical-notes-2.2.zip cd note/ gzip -d discharge.csv.gz export NOTE_PATH=${PWD}/discharge.csv ``` The path to discharge.csv (3.3G) is stored in `$NOTE_PATH` ```bash shasum -a 1 discharge.csv # sha1 value # -> c4f0cfcd00bb8cbb118b1613a5c93f31a361e82b discharge.csv # Or a9ac402818385f6ab5a574b4516abffde95d641a discharge.csv (old version) ``` 3. Clone this repository ```bash # Move to any project folder # e.g.) cd <MOVE_TO_ANY_PROJECT_FOLDER> git clone https://github.com/Machine-Learning-for-Medical-Language/long-clinical-doc.git cd long-clinical-doc ``` 4. Merge notes and the labels ```bash export TASK_NAME="out_hospital_mortality_30" export LABEL_PATH=${TASK_NAME}/labels.json export OUTPUT_PATH=${TASK_NAME} python create_data.py \ --label_path ${LABEL_PATH} \ --discharge_path ${NOTE_PATH} \ --output_path ${OUTPUT_PATH} \ --task_name ${TASK_NAME} ``` For the subtasks of 60-day or 90-day mortality, please change the `TASK_NAME` so that both the path and the `--task_name` argument are updated accordingly. 5. Please make sure to check the number of processed datapoints. If the numbers match the values written below, then the contents of the datasets are identical to our version. (Note that this integrity check does not verify the order of instances in the datasets.) ``` Train: 34,759 Dev: 7,505 Test: 7,568 ``` 6. Once processing is completed, metadata — including data_type (indicating whether the instance is train, dev, or test), note_id, subject_id, hadm_id, note_type, note_seq, charttime, and storetime — will be stored in `${OUTPUT_PATH}/${TASK_NAME}/metadata.json`. <br>Example (numbers are replaced with arbitrary values): ``` { "0xbfe5e112c39b6240f54dc3af123456": { "note_id": "10000000-DS-01", "subject_id": 10000000, "hadm_id": 12345678, "note_type": "DS", "note_seq": 01, "charttime": "2199-12-29 00:00:00", "storetime": "2199-12-30 21:59:00", "data_type": "train" }, "0xd8e888974794dffcc8d72734567890": { ``` ### Paper information Citation information: ``` @article{yoon2024lcd, title={LCD Benchmark: Long Clinical Document Benchmark on Mortality Prediction for Language Models}, author={Yoon, WonJin and Chen, Shan and Gao, Yanjun and Zhao, Zhanzhan and Dligach, Dmitriy and Bitterman, Danielle S and Afshar, Majid and Miller, Timothy}, journal={Under review (Preprint: medRxiv)}, pages={2024--03}, year={2024} } ```