A novel method of swin transformer with time-frequency characteristics for ECG-based arrhythmia detection
Authors:
Open Access
- 7 June 2024
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Cardiovascular Medicine
- Vol. 11, 1401143
Abstract
Introduction: Arrhythmia is an important indication of underlying cardiovascular diseases (CVD) and is prevalent worldwide. Accurate diagnosis of arrhythmia is crucial for timely and effective treatment. Electrocardiogram (ECG) plays a key role in the diagnosis of arrhythmia. With the continuous development of deep learning and machine learning processes in the clinical field, ECG processing algorithms have significantly advanced the field with timely and accurate diagnosis of arrhythmia.Methods: In this study, we combined the wavelet time-frequency maps with the novel Swin Transformer deep learning model for the automatic detection of cardiac arrhythmias. In specific practice, we used the MIT-BIH arrhythmia dataset, and to improve the signal quality, we removed the high-frequency noise, artifacts, electromyographic noise and respiratory motion effects in the ECG signals by the wavelet thresholding method; we used the complex Morlet wavelet for the feature extraction, and plotted wavelet time-frequency maps to visualise the time-frequency information of the ECG; we introduced the Swin Transformer model for classification and achieve high classification accuracy of ECG signals through hierarchical construction and self attention mechanism, and combines windowed multi-head self-attention (W-MSA) and shifted window-based multi-head self-attention (SW-MSA) to comprehensively utilise the local and global information.Results: To enhance the confidence of the experimental results, we evaluated the performance using intra-patient and inter-patient paradigm analyses, and the model classification accuracies reached 99.34% and 98.37%, respectively, which are better than the currently available detection methods.Discussion: The results reveal that our proposed method is superior to currently available methods for detecting arrhythmia ECG. This provides a new idea for ECG based arrhythmia diagnosis.Keywords
This publication has 55 references indexed in Scilit:
- A novel transformer‐based ECG dimensionality reduction stacked auto‐encoders for arrhythmia beat detectionMedical Physics, 2023
- A transformer-based deep neural network for arrhythmia detection using continuous ECG signalsComputers in Biology and Medicine, 2022
- Complex networks and deep learning for EEG signal analysisCognitive Neurodynamics, 2020
- Arrhythmia detection using deep convolutional neural network with long duration ECG signalsComputers in Biology and Medicine, 2018
- Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beatsComputers in Biology and Medicine, 2018
- Baseline wander and power line interference removal from ECG signals using eigenvalue decompositionBiomedical Signal Processing and Control, 2018
- Classification of ECG beats using deep belief network and active learningMedical & Biological Engineering & Computing, 2018
- Classification of imbalanced ECG beats using re-sampling techniques and AdaBoost ensemble classifierBiomedical Signal Processing and Control, 2018
- A novel algorithm for threshold image denoising based on wavelet constructionCluster Computing, 2018
- ECG arrhythmia classification using time frequency distribution techniquesBiomedical Engineering Letters, 2017