CardioNet-XL is a specialized 1D Convolutional Neural Network (CNN) designed for multi-label classification of cardiac abnormalities from ECG signal data. Trained on the PTB-XL dataset, the model is optimized to detect five specific classes, providing a high-precision screening tool for clinical decision support.
The dataset includes comprehensive annotations for:
Diagnostic Classes: Normal ECG, Myocardial Infarction, ST/T Changes, Conduction Disturbances, Hypertrophy, and more
Form Annotations: Detailed morphological descriptions
Rhythm Annotations: Heart rhythm classifications
Demographics: Age, sex, and clinical metadata
Access the Dataset
bash
1# Download from PhysioNet2wget -r -N -c -np https://physionet.org/files/ptb-xl/1.0.3/
Citation for PTB-XL Dataset:
bibtex
1@article{wagner2020ptbxl,
2 title={PTB-XL, a large publicly available electrocardiography dataset},
3 author={Wagner, Patrick and Strodthoff, Nils and Bousseljot, Ralf-Dieter and Kreiseler, Dieter and Lunze, Fatima I and Samek, Wojciech and Schaeffter, Tobias},
4 journal={Scientific Data},
5 volume={7},
6 number={1},
7 pages={154},
8 year={2020},
9 publisher={Nature Publishing Group}
10}
CardioNet-XL utilizes a deep 1D-CNN architecture with 4.1M trainable parameters. The model processes raw ECG signals through three convolutional blocks followed by a dense classification head.
Architecture Overview
Layer Type
Output Shape
Parameters
Conv1D Block 1 (32 filters)
(None, 1000, 32)
2,720
BatchNormalization
(None, 1000, 32)
128
MaxPooling1D
(None, 500, 32)
0
Conv1D Block 2 (64 filters)
(None, 500, 64)
10,304
BatchNormalization
(None, 500, 64)
256
MaxPooling1D
(None, 250, 64)
0
Conv1D Block 3 (128 filters)
(None, 250, 128)
24,704
BatchNormalization
(None, 250, 128)
512
MaxPooling1D
(None, 125, 128)
0
Flatten
(None, 16000)
0
Dense (256 units)
(None, 256)
4,096,256
Dropout (0.5)
(None, 256)
0
Output Dense (5 units)
(None, 5)
1,285
Total Trainable Parameters: 4,135,717 (15.78 MB)
📈 Performance Metrics
Classification Report
The model demonstrates strong discriminative performance across major cardiac conditions:
Class
Precision
Recall
F1-Score
Support
NORM (Normal)
0.86
0.70
0.77
963
MI (Myocardial Infarction)
0.86
0.26
0.39
550
STTC (ST/T Change)
0.87
0.38
0.53
506
CD (Conduction Disturbance)
0.93
0.35
0.51
496
HYP (Hypertrophy)
1.00
0.01
0.02
262
Micro Average
0.87
0.43
0.57
2777
Macro Average
0.90
0.34
0.44
2777
Optimal Decision Thresholds
Class-specific thresholds optimized for clinical sensitivity-specificity balance:
⚠️ Important: This model is intended for research and clinical decision support only. It should not replace professional medical diagnosis.
📖 Citation
If you use CardioNet-XL in your research, please cite:
bibtex
1@software{cardionet_xl_2024,
2 title={CardioNet-XL: Multi-label ECG Classification using 1D CNNs},
3 author={Your Name},
4 year={2024},
5 url={https://huggingface.co/sid512206/CardioNet-XL}
6}
78@article{wagner2020ptbxl,
9 title={PTB-XL, a large publicly available electrocardiography dataset},
10 author={Wagner, Patrick and Strodthoff, Nils and Bousseljot, Ralf-Dieter and Kreiseler, Dieter and Lunze, Fatima I and Samek, Wojciech and Schaeffter, Tobias},
11 journal={Scientific Data},
12 volume={7},
13 number={1},
14 pages={154},
15 year={2020},
16 publisher={Nature Publishing Group}
17}
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.