|
a |
|
b/README.md |
|
|
1 |
# Inter- and intra- patient ECG heartbeat classification for arrhythmia detection: a sequence to sequence deep learning approach |
|
|
2 |
|
|
|
3 |
# Paper |
|
|
4 |
Our paper can be downloaded from the [arxiv website](https://arxiv.org/pdf/1812.07421v2) |
|
|
5 |
* The Network architecture |
|
|
6 |
 |
|
|
7 |
|
|
|
8 |
## Requirements |
|
|
9 |
* Python 2.7 |
|
|
10 |
* tensorflow/tensorflow-gpu |
|
|
11 |
* numpy |
|
|
12 |
* scipy |
|
|
13 |
* scikit-learn |
|
|
14 |
* matplotlib |
|
|
15 |
* imbalanced-learn (0.4.3) |
|
|
16 |
|
|
|
17 |
## Dataset |
|
|
18 |
We evaluated our model using [the PhysioNet MIT-BIH Arrhythmia database](https://www.physionet.org/physiobank/database/mitdb/) |
|
|
19 |
* To download our pre-processed datasets use [this link](https://drive.google.com/drive/folders/19bDrAqlSGQuNLRmA-7pQRU9R81gSuY70?usp=sharing), then put them into the "data" folder. |
|
|
20 |
* Or you can follow the instructions of the readme file in the "data preprocessing_Matlab" folder to download the MIT-BIH database and perform data pre-processing. Then, put the pre-processed datasets into the "data" folder. |
|
|
21 |
|
|
|
22 |
## Train |
|
|
23 |
|
|
|
24 |
* Modify args settings in seq_seq_annot_aami.py for the intra-patient ECG heartbeat classification |
|
|
25 |
* Modify args settings in seq_seq_annot_DS1DS2.py for the inter-patient ECG heartbeat classification |
|
|
26 |
|
|
|
27 |
* Run each file to reproduce the model described in the paper, use: |
|
|
28 |
|
|
|
29 |
``` |
|
|
30 |
python seq_seq_annot_aami.py --data_dir data/s2s_mitbih_aami --epochs 500 |
|
|
31 |
``` |
|
|
32 |
``` |
|
|
33 |
python seq_seq_annot_DS1DS2.py --data_dir data/s2s_mitbih_aami_DS1DS2 --epochs 500 |
|
|
34 |
``` |
|
|
35 |
## Results |
|
|
36 |
 |
|
|
37 |
## Citation |
|
|
38 |
If you find it useful, please cite our paper as follows: |
|
|
39 |
|
|
|
40 |
``` |
|
|
41 |
@article{mousavi2018inter, |
|
|
42 |
title={Inter-and intra-patient ECG heartbeat classification for arrhythmia detection: a sequence to sequence deep learning approach}, |
|
|
43 |
author={Mousavi, Sajad and Afghah, Fatemeh}, |
|
|
44 |
journal={arXiv preprint arXiv:1812.07421}, |
|
|
45 |
year={2018} |
|
|
46 |
} |
|
|
47 |
``` |
|
|
48 |
|
|
|
49 |
## References |
|
|
50 |
[deepschool.io](https://github.com/sachinruk/deepschool.io/blob/master/DL-Keras_Tensorflow) |
|
|
51 |
|
|
|
52 |
## Licence |
|
|
53 |
For academtic and non-commercial usage |
|
|
54 |
|