Skip to content

elenamer/ecg_classification_DL

Repository files navigation

ECGDL: A framework for comparative study of databases and computational methods for arrhythmia detection from single-lead ECG

More details about this framework can be found in our publication.

This repository puts multiple ECG datasets for arrhythmia detection and arrhythmia detection methods under one umbrella. The focus is on using only one ECG lead in all methods. Initially, two different arrhythmia tasks are considered: rhythm classification and heartbeat form classification.

Usage

Environment

The requirements.txt file provides all the dependencies to run this framework.

Datasets

Using this downloading script, all the datasets covered in this framework will be downloaded within a 'data' folder.

Tasks

Custom classification tasks can be defined as subsets of target arrhythmia classes. For this, please refer to the label dictionary, where a mapping of all relevant arrhythmia labels in each dataset is provided. They are mapped to common arrhythmia types.

Custom tasks can be defined as .csv files in the /tasks folder. New tasks should be named in the following way: newname-task.csv (an example is the form task file).

Experiments

The main class in this framework is the Experiment class. Example scripts for defining and evaluating Experiments can be found for recording-level datasets and for beat level datasets. More information about the categorization of the datasets and the implemented methodology can be found in our publication.

Experimental results

Results from arrhythmia classification experiments can be found in our publication, as well as within this repository.

Citation

If this framework was useful in your work, please consider citing our paper:

@article{merdjanovska2023framework,
  title={A framework for comparative study of databases and computational methods for arrhythmia detection from single-lead ECG},
  author={Merdjanovska, Elena and Rashkovska, Aleksandra},
  journal={Scientific Reports},
  volume={13},
  number={1},
  pages={11682},
  year={2023},
  publisher={Nature Publishing Group UK London}
}