code repository for EMNLP 2024 main conference paper DKEC: Domain Knowledge Enhanced Multi-Label Classification for Diagnosis Prediction
Multi-label text classification (MLTC) tasks in the medical domain often face the long-tail label distribution problem. Prior works have explored hierarchical label structures to find relevant information for few-shot classes, but mostly neglected to incorporate external knowledge from medical guidelines. This paper presents DKEC, Domain Knowledge Enhanced Classification for diagnosis prediction with two innovations:


Run the following commands to get an anaconda environment DKEC
chmod +x install.sh
./install.sh
dataproc_mimic_III.ipynb, you need to download pre-trained embeddings
BioWordVec_PubMed_MIMICIII_d200.vec.bin from link.mimic_iii_6668.ipynb, mimic_iii_3737.ipynb and mimic_iii_1000.ipynb in sequence.
mimic_iii_6668.ipynbpython Heterogeneous_graph.py config/whichname.json to generate embedding for different backbones
dataset to MIMIC3-6668 since it will generate the initial node embedding for all 6668 ICD-9 codes.This section specifies some parameters that can be changed in config file
This section specifies the terminal commands
sbatch whichname.slurmpython main.py config/whichname.jsonThe following tables specify how to reproduce main experimental results in Table 4 by using slurm. You can also find corresponding json file in config to run on local machine. For ISD, we directly use their github code.
| Model | Slurm script or URL |
|---|---|
| CAML | sbatch CAML.slurm |
| ZAGCNN | sbatch ZAGCNN.slurm |
| MultiResCNN | sbatch MultiResCNN.slurm |
| ISD | https://github.com/tongzhou21/ISD/tree/master |
| DKEC-M-CNN | sbatch DKEC_CNN.slurm |
| DKEC-GatirTron | sbatch DKEC_GatorTron.slurm |
If you find this work helpful, please cite,
@inproceedings{ge-etal-2024-dkec,
title = "{DKEC}: Domain Knowledge Enhanced Multi-Label Classification for Diagnosis Prediction",
author = "Ge, Xueren and
Satpathy, Abhishek and
Williams, Ronald Dean and
Stankovic, John and
Alemzadeh, Homa",
editor = "Al-Onaizan, Yaser and
Bansal, Mohit and
Chen, Yun-Nung",
booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.emnlp-main.712",
pages = "12798--12813",
abstract = "Multi-label text classification (MLTC) tasks in the medical domain often face the long-tail label distribution problem. Prior works have explored hierarchical label structures to find relevant information for few-shot classes, but mostly neglected to incorporate external knowledge from medical guidelines. This paper presents DKEC, Domain Knowledge Enhanced Classification for diagnosis prediction with two innovations: (1) automated construction of heterogeneous knowledge graphs from external sources to capture semantic relations among diverse medical entities, (2) incorporating the heterogeneous knowledge graphs in few-shot classification using a label-wise attention mechanism. We construct DKEC using three online medical knowledge sources and evaluate it on a real-world Emergency Medical Services (EMS) dataset and a public electronic health record (EHR) dataset. Results show that DKEC outperforms the state-of-the-art label-wise attention networks and transformer models of different sizes, particularly for the few-shot classes. More importantly, it helps the smaller language models achieve comparable performance to large language models.",
}
38 commits
Python
62.9%
Jupyter Notebook
34.3%
Shell
2.8%
code repository for EMNLP 2024 main conference paper DKEC: Domain Knowledge Enhanced Multi-Label Classification for Diagnosis Prediction
Multi-label text classification (MLTC) tasks in the medical domain often face the long-tail label distribution problem. Prior works have explored hierarchical label structures to find relevant information for few-shot classes, but mostly neglected to incorporate external knowledge from medical guidelines. This paper presents DKEC, Domain Knowledge Enhanced Classification for diagnosis prediction with two innovations:


Run the following commands to get an anaconda environment DKEC
chmod +x install.sh
./install.sh
dataproc_mimic_III.ipynb, you need to download pre-trained embeddings
BioWordVec_PubMed_MIMICIII_d200.vec.bin from link.mimic_iii_6668.ipynb, mimic_iii_3737.ipynb and mimic_iii_1000.ipynb in sequence.
mimic_iii_6668.ipynbpython Heterogeneous_graph.py config/whichname.json to generate embedding for different backbones
dataset to MIMIC3-6668 since it will generate the initial node embedding for all 6668 ICD-9 codes.This section specifies some parameters that can be changed in config file
This section specifies the terminal commands
sbatch whichname.slurmpython main.py config/whichname.jsonThe following tables specify how to reproduce main experimental results in Table 4 by using slurm. You can also find corresponding json file in config to run on local machine. For ISD, we directly use their github code.
| Model | Slurm script or URL |
|---|---|
| CAML | sbatch CAML.slurm |
| ZAGCNN | sbatch ZAGCNN.slurm |
| MultiResCNN | sbatch MultiResCNN.slurm |
| ISD | https://github.com/tongzhou21/ISD/tree/master |
| DKEC-M-CNN | sbatch DKEC_CNN.slurm |
| DKEC-GatirTron | sbatch DKEC_GatorTron.slurm |
If you find this work helpful, please cite,
@inproceedings{ge-etal-2024-dkec,
title = "{DKEC}: Domain Knowledge Enhanced Multi-Label Classification for Diagnosis Prediction",
author = "Ge, Xueren and
Satpathy, Abhishek and
Williams, Ronald Dean and
Stankovic, John and
Alemzadeh, Homa",
editor = "Al-Onaizan, Yaser and
Bansal, Mohit and
Chen, Yun-Nung",
booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.emnlp-main.712",
pages = "12798--12813",
abstract = "Multi-label text classification (MLTC) tasks in the medical domain often face the long-tail label distribution problem. Prior works have explored hierarchical label structures to find relevant information for few-shot classes, but mostly neglected to incorporate external knowledge from medical guidelines. This paper presents DKEC, Domain Knowledge Enhanced Classification for diagnosis prediction with two innovations: (1) automated construction of heterogeneous knowledge graphs from external sources to capture semantic relations among diverse medical entities, (2) incorporating the heterogeneous knowledge graphs in few-shot classification using a label-wise attention mechanism. We construct DKEC using three online medical knowledge sources and evaluate it on a real-world Emergency Medical Services (EMS) dataset and a public electronic health record (EHR) dataset. Results show that DKEC outperforms the state-of-the-art label-wise attention networks and transformer models of different sizes, particularly for the few-shot classes. More importantly, it helps the smaller language models achieve comparable performance to large language models.",
}
38 commits
Python
62.9%
Jupyter Notebook
34.3%
Shell
2.8%