| Literature DB >> 34290619 |
Mingfeng Jiang1, Jiayan Gu1, Yang Li1, Bo Wei1, Jucheng Zhang2, Zhikang Wang2, Ling Xia3.
Abstract
In recent years, with the development of artificial intelligence, deep learning model has achieved initial success in ECG data analysis, especially the detection of atrial fibrillation. In order to solve the problems of ignoring the correlation between contexts and gradient dispersion in traditional deep convolution neural network model, the hybrid attention-based deep learning network (HADLN) method is proposed to implement arrhythmia classification. The HADLN can make full use of the advantages of residual network (ResNet) and bidirectional long-short-term memory (Bi-LSTM) architecture to obtain fusion features containing local and global information and improve the interpretability of the model through the attention mechanism. The method is trained and verified by using the PhysioNet 2017 challenge dataset. Without loss of generality, the ECG signal is classified into four categories, including atrial fibrillation, noise, other, and normal signals. By combining the fusion features and the attention mechanism, the learned model has a great improvement in classification performance and certain interpretability. The experimental results show that the proposed HADLN method can achieve precision of 0.866, recall of 0.859, accuracy of 0.867, and F1-score of 0.880 on 10-fold cross-validation.Entities:
Keywords: ResNet; arrhythmia classification; attention mechanism; bidirectional LSTM; deep learning
Year: 2021 PMID: 34290619 PMCID: PMC8289344 DOI: 10.3389/fphys.2021.683025
Source DB: PubMed Journal: Front Physiol ISSN: 1664-042X Impact factor: 4.566
FIGURE 1The architecture of bidirectional LSTM.
FIGURE 2Principle of the residual module.
FIGURE 3Attention principle architecture.
Data profile of PhysioNet challenge 2017 dataset.
| Type | # recording | Time length (s) | ||||
| Mean | StDev | Max | Median | Min | ||
| Normal | 5,154 | 31.9 | 10.0 | 61.0 | 30 | 9.0 |
| AF | 771 | 31.6 | 12.5 | 60 | 30 | 10.0 |
| Other rhythm | 2,557 | 34.1 | 11.8 | 60.9 | 30 | 9.1 |
| Noisy | 46 | 27.1 | 9.0 | 60 | 30 | 10.2 |
| Total | 8,528 | 32.5 | 10.9 | 61.0 | 30 | 9.0 |
FIGURE 4HADLN architecture.
The length/number of convolution kernels and pool size of max-pooling layers in each residual module.
| ResNet module | Kernel length | Kernel number | Pool size |
| 1 | 16 | 32 | 1 |
| 2 | 16 | 32 | 2 |
| 3 | 16 | 32 | 1 |
| 4 | 16 | 32 | 2 |
| 5 | 16 | 64 | 1 |
| 6 | 16 | 64 | 2 |
| 7 | 16 | 64 | 1 |
| 8 | 16 | 64 | 2 |
| 9 | 16 | 128 | 1 |
| 10 | 16 | 128 | 2 |
| 11 | 16 | 128 | 1 |
| 12 | 16 | 128 | 2 |
| 13 | 16 | 256 | 1 |
| 14 | 16 | 256 | 2 |
| 15 | 16 | 256 | 1 |
| 16 | 16 | 256 | 2 |
Counting rules for the numbers of the variables.
| Normal | AF | Other | Noisy | Total | |
| Normal | Nn | Na | No | Np | Σ |
| AF | An | Aa | Ao | Ap | ΣA |
| Other | On | Oa | Oo | Op | ΣO |
| Noisy | Pn | Pa | Po | Pp | ΣP |
| Total | Σn | Σa | Σo | Σp |
FIGURE 5Training and validation of (A) loss function and (B) accuracy over the epochs.
Classification results of weight average.
| F1-score | Precision | Recall | Accuracy | |
| CL3 | 0.856 | 0.856 | 0.850 | 0.867 |
| QRS-LSTM | 0.666 | 0.770 | 0.714 | 0.770 |
| Dense-net | 0.843 | 0.867 | 0.860 | 0.860 |
| ResNet | 0.837 | 0.865 | 0.853 | 0.857 |
| ResNet_A | 0.844 | 0.854 | 0.853 | 0.853 |
| HADLN | 0.880 | 0.866 | 0.859 | 0.867 |
The classification performances of the proposed HADLN method using 10-fold cross.
| No. | F1-score | Precision | Recall | Accuracy |
| 1 | 0.857 | 0.862 | 0.857 | 0.865 |
| 2 | 0.850 | 0.865 | 0.856 | 0.860 |
| 3 | 0.880 | 0.873 | 0.872 | 0.872 |
| 4 | 0.887 | 0.890 | 0.879 | 0.890 |
| 5 | 0.905 | 0.884 | 0.885 | 0.891 |
| 6 | 0.887 | 0.877 | 0.876 | 0.888 |
| 7 | 0.879 | 0.840 | 0.827 | 0.836 |
| 8 | 0.911 | 0.839 | 0.833 | 0.837 |
| 9 | 0.900 | 0.870 | 0.859 | 0.861 |
| 10 | 0.848 | 0.858 | 0.850 | 0.867 |
| Average | 0.880 | 0.866 | 0.859 | 0.867 |
| Standard deviation | 0.021 | 0.016 | 0.018 | 0.019 |
FIGURE 6Confusion matrices by using different classification methods. (A) CL3 method, (B) QRS-LSTM method, (C) Dense method, (D) ResNet method, (E) ResNet_A method, and (F) HADLN method. The percentage of all records in each category is displayed on a color gradient scale.
FIGURE 7The output of feature mapping by using the different types for four kinds ECG signals: (A) normal, (B) atrial fibrillation, (C) noise, and (D) other. The yellow line is the ECG signal, the green line is mapping of the ResNet model, the black line is the mapping of ResNet_A model, and the blue line is the mapping of HADLN model.