Background: Cardiovascular diseases (CVDs) are among the leading causes of death globally. In order to treat CVDs successfully in the early stages, it is crucial to diagnose them in time. The ECG is one of the most common and non-invasive methods to detect heart rhythms and to diagnose arrhythmias. However, the analysis of ECG recordings manually requires a lot of time and experience because the morphology of ECG signals and the characteristics of their waveforms are very complex and show large overlaps between different types of arrhythmias. So far, various approaches for automated analysis of ECG signals have been developed, mostly based on deep learning (DL). In general, these methods are able to analyze ECG signals automatically and to detect different types of arrhythmias. Most approaches, however, are based on a purely data-driven feature learning and do not pay attention to the morphology-sensitive temporal structure of ECG signals, which is important for a discriminative diagnosis of arrhythmias.
Methods: In this paper, we propose an Attention-Based Morphology-Aware (ABMA) framework to leverage multilead ECG signals in conjunction with automatically computed physiological features using a hybrid deep learning architecture. ABMA leverages multi-scale convolutional neural networks to learn local morphology features, and bidirectional long short-term memory (BiLSTM) networks to model temporal rhythms in ECG signals. We designed an ABMA module that incorporates a morphology scoring network (MSN) in order to (1) estimate the morphology-aware importance of different ECG segments and (2) learn the temporal importance of ECG features. The learned attention weights enable learning to focus on key sections of ECG signals without predefined boundaries or manual annotation of fiducial points. To understand the contribution of each individual component of the framework, we performed an extensive ablation study, where we removed the handcrafted feature branch, the ABMA module, the MSN, and the multi-head attention mechanism, one at a time, and compared the results against a fixed set of experimental configurations.
Results: To assess the performance of the proposed framework in three-class classification between sinus rhythm (SA), atrial fibrillation (AFIB), and ventricular tachycardia (VT), we employed a stratified 10-fold cross-validation protocol. Our approach achieved a mean accuracy of 95.18 ± 1.18%, followed by a corresponding weighted F1-score of 95.19 ± 1.18% and a macro F1-score of 94.66 ± 1.35%. Notably, the performance of the proposed complete ABMA framework considerably outperformed the baseline CNN–BiLSTM architecture. Furthermore, in the primary evaluation metrics (i.e., accuracy, F1-score), the complete framework showed statistically significant improvements against the baseline through paired two-sided
t-tests (
p < 0.001). The ablation study indicated that each architectural component contributed positively to the overall classification performance, with the complete ABMA framework outperforming all reduced variants.
Conclusions: The framework was evaluated by stratified cross-validation on a publicly available dataset. Our framework outperformed the baseline CNN–BiLSTM model as well as the respective ablation models in terms of classification performance. The findings from the current study are based on a retrospective analysis and therefore future studies using an independent external dataset, from multiple centers, or as part of a prospective clinical study are necessary in order to establish the generalizability and clinical utility of the proposed framework. The ABMA framework is currently viewed as a very promising research framework for intelligent ECG analysis, but it is not yet a clinically validated diagnostic tool.
Full article