Practical overview
When it fits
Use Deepecg when you need code for a local ECG-classification training workflow and can prepare the Python dependencies and dataset folders. The 2D script is the documented option for choosing between the two named datasets.
Who it is for
- Researchers or developers working on ECG classification with Python.
- Users who want to train a 1D or 2D CNN using the named ECG datasets.
Documented uses
- Start 2D CNN training for PhysioNet/CinC 2017 or MIT-BH data.
- Invoke the repository's 1D CNN ECG program.
- Use the scripts as a starting point for adapting ECG classification work to a compatible dataset.
Requirements & limits
The repository is public and specifies the MIT license.
- The documented 2D commands explicitly select PhysioNet/CinC 2017 or MIT-BH; the 1D command has no dataset argument in the README.
- The listed requirements include Python 3.5 or higher, Keras with TensorFlow, and common scientific Python libraries.
- The repository references BioSPPy separately for feature extraction and heartbeat-rate calculation.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train the 2D CNN on a named ECG dataset
Prepare one of the documented datasets and start its 2D ECG-classification training script.
Before you start
- Python 3.5 or higher
- Keras with a TensorFlow backend
- NumPy, SciPy, Pandas and scikit-learn
- The relevant training2017.zip or MIT-BH.zip dataset archive
Steps
Extract training2017.zip into training2017/ or MIT-BH.zip into MIT-BH/.
For PhysioNet/CinC 2017, run python CNN_ECG.py cinc.
For MIT-BH, run python CNN_ECG.py mit.
Expected outcome
The selected 2D CNN training program is started for the named dataset.
Guide limitations
- The README does not specify further training settings or describe expected model outputs.
Start the 1D CNN program
Prepare the documented dataset folders and invoke the 1D ECG-classification script.
Before you start
- Python 3.5 or higher
- Keras with a TensorFlow backend
- NumPy, SciPy, Pandas and scikit-learn
- The training2017.zip and MIT-BH.zip archives
Steps
Extract training2017.zip into training2017/ and MIT-BH.zip into MIT-BH/.
Run python Conv1D_ECG.py.
Expected outcome
The 1D CNN program is invoked.
Guide limitations
- The README does not show a dataset-selection argument for this script or specify its outputs.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 21 November 2026
- Original website title
- ismorphism/DeepECG · Official homepage title · retained in its source language

