Skip to content

Fsoft-AIC/TolerantECG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[ACMMM 2025] TolerantECG: A Foundation Model for Imperfect Electrocardiogram

This repository contains the source code of paper TolerantECG: A Foundation Model for Imperfect Electrocardiogram model architecture

Data preprocessing

The data used in this work can be downloaded using the links below:

After downloading, please put them in the data folder as such:

data
└───mimic-iv-ecg
|   |   machine_measurements.csv
│   |   record_list.csv
│   └───files
│       ...
│   
└───mit-noise
|   │   bw.dat
|   │   em.dat
|   │   ma.dat
│       ...
└───ptb-xl
|   │   pltxl_database.csv
|   │   scp_statements.csv
│   └───records500
│       ...
└───mit-bih
|   │   100.atr
|   │   100.dat
│       ...

Installation requirement

The necessary requirements can be installed using pip:

pip install -r requirements.txt

Training & fintuning

The training scripts are provided in the script folder. Or it can be simply run as followed:

  • Pretraining with MIMIC-IV-ECG:
bash ./script/train.sh
  • Finetune with PTB-XL Super-diagnosis:
bash ./script/finetune.sh

Please note to change some of the arguments in the .sh file for desire modification.

About

[ACM MM 2025] TolerantECG: A Foundation Model for Imperfect Electrocardiogram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published