Related Experiment Videos
ScaHybNet: a scalogram-based hybrid ensemble network for ECG arrhythmia classification
Sonam Nagar1, Karan Verma1, Sachin Singh1
1National Institute of Technology, Delhi, New Delhi, India.
Insights
ScaHybNet, a deep learning model, accurately classifies heart arrhythmias using ECG data. This advanced tool aids in preventing sudden cardiac death by improving arrhythmia detection, especially with noisy and imbalanced datasets.
Area of Science:
- Cardiology
- Artificial Intelligence
- Biomedical Signal Processing
Background:
- Cardiovascular diseases are a leading global cause of mortality.
- Accurate and timely detection of cardiac arrhythmias is crucial for preventing sudden cardiac death.
- Existing methods may struggle with noisy and imbalanced electrocardiogram (ECG) data.
Purpose of the Study:
- To propose ScaHybNet, a novel deep learning ensemble model for multi-class arrhythmia classification.
- To enhance the accuracy and robustness of arrhythmia detection using ECG signals.
- To address challenges posed by class imbalance and noise in ECG datasets.
Main Methods:
- ECG signals were transformed into 224x224 RGB-scalogram images using Continuous Wavelet Transform (CWT) with a Morlet wavelet.
- A hybrid deep learning architecture combining a Convolutional Neural Network (CNN) with residual blocks, a Bidirectional Long Short-Term Memory (BiLSTM) layer, and a Transformer encoder was developed.
- Stratified balancing and inverse-frequency class weighting were employed to mitigate extreme class imbalance.
- Fivefold cross-validation was used to assess model robustness.
Main Results:
- ScaHybNet achieved an ensemble training accuracy of 99.81%.
- The mean accuracy across fivefold cross-validation was 90.42% ± 1.26%.
- On the unseen test set, the model demonstrated an ensemble test accuracy of 94.73%, with a precision of 76.51%, recall of 82.93%, and F1-score of 77.40%.
Conclusions:
- ScaHybNet effectively classifies cardiac arrhythmias, showing superior or comparable performance to state-of-the-art methods, particularly with noisy and imbalanced ECG data.
- The model's hybrid architecture, incorporating CNN, BiLSTM, and Transformer components, proves effective in learning spatial, temporal, and long-term dependencies.
- ScaHybNet holds significant potential as a patient-centric tool to benefit the medical field in cardiovascular disease management.
Abstract:
Cardiovascular diseases are the leading cause of death in the world, requiring the accurate and timely detection of arrhythmias to prevent sudden cardiac death. In this work, ScaHybNet, a deep learning ensemble model is proposed for multi-class arrhythmia classification using the widely adopted ECG Heartbeat Categorization Dataset. The dataset comprises 109,446 samples across five heartbeat classes (N, S, V, F, Q), enabling comprehensive arrhythmia analysis. The proposed method first transforms the ECG signals to 224 × 224 RGB-scalogram images using CWT with the Morlet wavelet. Then, a hybrid model is developed, which is composed of (1) a residual block-based CNN with skip connections to learn spatial features, (2) a BiLSTM layer for learning temporal features from the CNN feature maps and (3) a Transformer encoder layer with a custom-built multi-head self-attention mechanism to capture long-term dependencies. Thus, to address the extreme class imbalance within the data, stratified balancing of the data among normal beat, supraventricular ectopic beat, ventricular ectopic beat, fusion beat, and unknown beat, and inverse-frequency class weighting were performed. They assessed model robustness using fivefold cross-validation. Hyperparameters set to final values included a batch size of 2, 150 epochs, and an Adam optimizer. Ensemble train accuracy 99.81% and the mean accuracy on the fivefold cross validation set was 90.42% ± 1.26 (std) for ScaHybNet. On the test set (unseen data), it showed a total ensemble test accuracy of 94.73%, precision of 76.51%, recall of 82.93%, and F1-score of 77.40%. The ablation test proved the joint efficacy of each part of the model, and state-of-the-art analysis revealed better or equal results on current standards regarding ECG data with noise and imbalance. ScaHybNet appears to offer the potential to act as a more patient-centric tool that could offer considerable benefits to the medical field.
Related Concept Videos
Holter Monitor: 24-Hour Monitoring
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
Dysrhythmias V: Evaluating Dysrhythmias
Dysrhythmias II: Classification of Tachyarrhythmias
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...