Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AI4HealthUOL/s4ecg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S4ECG: Exploring the impact of long-range interactions for arrhythmia prediction

Welcome to the official GitHub repository for the paper "[S4ECG: Exploring the impact of long-range interactions for arrhythmia prediction]". If you consider this repository useful for you research, we would appreciate a citation of our preprint.

Table of Contents

Setup & Environment

  1. Environment: The environment details and requirements for Linux systems are provided in the environment.yml folder. Please ensure to set up the provided environment to avoid compatibility issues.

  2. Additional Package: You'll need to install the cauchy or other related packages for the S4 model. See the official repository for more details:

    https://github.com/HazyResearch/state-spaces/

Datasets

We utilize four primary datasets for our research:

Both datasets should be appropriately placed in the main directory or as instructed by specific scripts.

Preprocessing

To preprocess the raw data:

Run the preprocess.py script:

python preprocess.py icentia /path/to/your/dataset.zip

This will process the raw data from the aforementioned datasets and prepare them for classification.

Classification

To run the classification:

  1. Configuration: Modify the config files located at ./conf/data to specify the directory containing the preprocessed data.

  2. Training the model: Set the desired config file using the --config-name flag. Example for a time-series-based model on Icentia11k:

python main.py --config-name=config_id_icentia.yaml

You can use other config settings by specifying different .yaml files located in the ./conf directory.

For ood test the path of trained model should be denoted as:

python main.py --config-name=config_ood_ltafdb.yaml trainer.eval_only=/path/best_model.ckpt

Contribution

Feel free to submit pull requests, raise issues, or suggest enhancements to improve the project. We appreciate community contributions!

Acknowledgments

This work partly builds on the S4 layer kindly provided by https://github.com/HazyResearch/state-spaces/


For any further queries or concerns, please refer to the official publication or contact the project maintainers.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages