|
a |
|
b/README.md |
|
|
1 |
# DeepECG |
|
|
2 |
ECG classification programs based on ML/DL methods. There are two datasets: |
|
|
3 |
- **training2017.zip** file contains one electrode voltage measurements taken as the difference between RA and LA electrodes with no ground. It is taken from The 2017 PhysioNet/CinC Challenge. |
|
|
4 |
- **MIT-BH.zip file** contains two electrode voltage measurements: MLII and V5. |
|
|
5 |
|
|
|
6 |
## Prerequisites: |
|
|
7 |
- Python 3.5 and higher |
|
|
8 |
- Keras framework with TensorFlow backend |
|
|
9 |
- Numpy, Scipy, Pandas libs |
|
|
10 |
- Scikit-learn framework |
|
|
11 |
|
|
|
12 |
## Instructions for running the program |
|
|
13 |
1) Execute the **training2017.zip** and **MIT-BH.zip** files into folders **training2017/** and **MIT-BH/** respectively |
|
|
14 |
2) If you want to use 2D Convolutional Neural Network for ECG classification then run the file **CNN_ECG.py** with the following commands: |
|
|
15 |
- If you want to train your model on the 2017 PhysioNet/CinC Challenge dataset: |
|
|
16 |
``` |
|
|
17 |
python CNN_ECG.py cinc |
|
|
18 |
``` |
|
|
19 |
- If you want to train your model on the MIT-BH dataset: |
|
|
20 |
``` |
|
|
21 |
python CNN_ECG.py mit |
|
|
22 |
``` |
|
|
23 |
3) If you want to use 1D Convolutional Neural Network for ECG classification then run the file **Conv1D_ECG.py** with the following commands: |
|
|
24 |
``` |
|
|
25 |
python Conv1D_ECG.py |
|
|
26 |
``` |
|
|
27 |
|
|
|
28 |
# Additional info |
|
|
29 |
### Citation |
|
|
30 |
If you use my repo - then, please, cite my paper. This is a BibTex citation: |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
@article{pyakillya_kazachenko_mikhailovsky_2017, |
|
|
34 |
author = {Boris Pyakillya, Natasha Kazachenko, Nick Mikhailovsky}, |
|
|
35 |
title = {Deep Learning for ECG Classification}, |
|
|
36 |
journal = {Journal of Physics: Conference Series}, |
|
|
37 |
year = {2017}, |
|
|
38 |
volume = {913}, |
|
|
39 |
pages = {1-5}, |
|
|
40 |
DOI={10.1088/1742-6596/913/1/012004}, |
|
|
41 |
url = {http://iopscience.iop.org/article/10.1088/1742-6596/913/1/012004/pdf} |
|
|
42 |
} |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
### For feature extraction and hearbeat rate calculation: |
|
|
46 |
- https://github.com/PIA-Group/BioSPPy (Biosignal Processing in Python) |