Official code for "EnECG: Efficient Ensemble Learning for Electrocardiogram Multi-task Foundation Model".
The EnECG framework comprises three main steps.
â‘ Because each pretrained foundation model
Prepare ECG Data from MIMIC-IV-ECG and download our prepared Subset Data and Label.
We provide .jsonl file subset from the MIMIC-IV-ECG, along with the corresponding labels to evaluate in different downstream tasks, including RR Interval Estimation rr_interval, Age Estimation age, Gender Classification gender, Potassium Abnormality Prediction flag, and Arrhythmia Detection report_label.
Download TEMPO and ECG-FM through Checkpoints.
The required packages can be installed by running pip install -r requirements.txt.
For ECG-FM environment please refer the link ECG-FM and fairseq-signals.
In the run.sh, we provide shell scripts, and you can change the --label, --task_name and --num_class to start running.
