The repository contains code for Master's degree dissertation - ECG Anomaly Detection using convolutional neural network.
The repository follows config principle and can be run in the following modes:
- Training - use
train.py --config configs/training/ECGNet.json
to train the model - Validation - use
inference.py --config configs/inference/config.json
to validate the model
All available models and all necessary information are described below
Python 3.7 and PyTorch are used in the project
Training quick start:
- Download
and unzip files into
mit-bih
directory - Install requirements via
pip install -r requirements.txt
- Generate 2D data files running
cd scripts && python dataset-generation-pool.py
- Create
json
annotation files- For 2D model -
cd scripts && python annotation-generation-2d.py
- For 2D model -
- Run training -
python train.py --config configs/training/ECGNet.json