This repository contains implementation from the paper: FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion.
Run the following commands to create a conda environment:
conda create -n MulEHR python=3.8
source activate MulEHR
pip install -r requirements.txt
src/
: Source codepreprocessing/
: Scripts for MIMIC-III and MIMIC-IV data preprocessingcore/
: Core implementation for the MoE and irregularity/modality encoder modulescripts/
: Scripts to run experiments in different settingsutils/
: Hyper-parameters, I/O, utility functions
Under src/scripts/
:
MIMIC-III experiments
sh run.sh
MIMIC-IV experiments
sh run_mimiciv.sh
First change the filepath
in load_result.py
, then run
python load_result.py
Part of our implementations are based on the following papers:
- Improving Medical Predictions by Irregular Multimodal Electronic Health Records Modeling, ICML'23
- Integrated multimodal artificial intelligence framework for healthcare applications, NPJ Digital Medicine
@article{han2024fusemoe,
title={FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion},
author={Han, Xing and Nguyen, Huy and Harris, Carl and Ho, Nhat and Saria, Suchi},
journal={arXiv preprint arXiv:2402.03226},
year={2024}
}