| Literature DB >> 34938424 |
Jinliang Yao1,2, Runchuan Li1,2, Shengya Shen1,3, Wenzhi Zhang1,2, Yan Peng1,2, Gang Chen1,2, Zongmin Wang1,2.
Abstract
Arrhythmia is a cardiovascular disease that seriously affects human health. The identification and diagnosis of arrhythmia is an effective means of preventing most heart diseases. In this paper, a BiLSTM-Treg algorithm that integrates rhythm information is proposed to realize the automatic classification of arrhythmia. Firstly, the discrete wavelet transform is used to denoise the ECG signal, based on which we performed heartbeat segmentation and preserved the timing relationship between heartbeats. Then, different heartbeat segment lengths and the BiLSTM network model are used to conduct multiple experiments to select the optimal heartbeat segment length. Finally, the tree regularization method is used to optimize the BiLSTM network model to improve classification accuracy. And the interpretability of the neural network model is analyzed by analyzing the simulated decision tree generated in the tree regularization method. This method divides the heartbeat into five categories (nonectopic (N), supraventricular ectopic (S), ventricular ectopic (V), fused heartbeats (F), and unknown heartbeats (Q)) and is validated on the MIT-BIH arrhythmia database. The results show that the overall classification accuracy of the algorithm is 99.32%. Compared with other methods of classifying heartbeat, the BiLSTM-Treg network model algorithm proposed in this paper not only improves the classification accuracy and obtains higher sensitivity and positive predictive value but also has higher interpretability.Entities:
Mesh:
Year: 2021 PMID: 34938424 PMCID: PMC8687765 DOI: 10.1155/2021/8642576
Source DB: PubMed Journal: J Healthc Eng ISSN: 2040-2295 Impact factor: 2.682
Figure 1The original ECG signal.
Figure 2The denoised ECG signal.
Figure 3Morphology of a single heartbeat and heartbeat segmentation.
Figure 4The ECG signal with ventricular trigeminy.
Figure 5The LSTM cell structure.
Figure 6The BiLSTM model based on tree regularization.
Algorithm 1The description of the BiLSTM-Treg model algorithm. BiLSTM-Treg model algorithm.
Correspondence between MIT-BIH arrhythmia database annotations and AAMI heartbeat types.
| AAMI heartbeat category | MIT-BIH heartbeat types |
|---|---|
|
| Normal beat (N); left bundle branch block beat (L); right bundle branch block beat (R); nodal (junctional) escape beat (j); atrial escape beat (e) |
|
| Aberrated atrial premature beat (a); nodal (junctional) premature beat (J); atrial premature beat (A); premature or ectopic supraventricular beat (S) |
|
| Premature ventricular contraction (V); ventricular escape beat (E) |
|
| Fusion of ventricular and normal beat (F) |
|
| Paced beat (/); unclassifiable beat (Q); fusion of paced and normal beat (f) |
Experimental data statistics.
| Training set | Testing set | Total | |
|---|---|---|---|
|
| 81,551 | 9,044 | 90,595 |
|
| 2,501 | 280 | 2,781 |
|
| 6,519 | 716 | 7,235 |
|
| 723 | 79 | 802 |
|
| 7,242 | 799 | 8041 |
Classification results of heartbeat statistics.
| Reference labels | Predicted labels | ||||
|---|---|---|---|---|---|
|
|
|
|
|
| |
| N | Nn | Ns | Nv | Nf | Nq |
| S | Sn | Ss | Sv | Sf | Sq |
| V | Vn | Vs | Vv | Vf | Vq |
| F | Fn | Fs | Fv | Ff | Fq |
| Q | Qn | Qs | Qv | Qf | |
Comparison of the classification results of RNN, GRU, and LSTM network models.
| RNN | GRU | LSTM | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | |
|
| 99.61 | 97.10 | 99.35 | 99.15 | 99.45 | 97.80 | 99.51 | 99.15 | 99.69 | 97.40 | 99.42 | 99.27 |
|
| 90.40 | 99.80 | 92.86 | 99.54 | 92.72 | 99.77 | 92.11 | 99.58 | 92.05 | 99.90 | 96.19 | 99.68 |
|
| 97.66 | 99.80 | 97.26 | 99.66 | 97.94 | 99.76 | 96.61 | 99.63 | 96.98 | 99.77 | 96.84 | 99.59 |
|
| 71.26 | 99.94 | 91.18 | 99.72 | 71.26 | 99.91 | 86.11 | 99.68 | 75.86 | 99.91 | 86.84 | 99.72 |
|
| 99.43 | 99.94 | 99.32 | 99.90 | 99.77 | 99.90 | 98.88 | 99.89 | 99.55 | 99.97 | 99.66 | 99.94 |
Comparison of the classification results of BiRNN, BiGRU, and BiLSTM network models.
| BiRNN | BiGRU | BiLSTM | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | |
|
| 99.65 | 97.65 | 99.47 | 99.29 | 99.62 | 97.05 | 99.34 | 99.15 | 99.64 | 98.15 | 99.59 | 99.37 |
|
| 90.40 | 99.81 | 93.17 | 99.55 | 89.07 | 99.82 | 93.40 | 99.52 | 92.72 | 99.83 | 93.96 | 99.63 |
|
| 98.21 | 99.83 | 97.68 | 99.73 | 97.12 | 99.80 | 97.25 | 99.63 | 98.63 | 99.76 | 96.64 | 99.68 |
|
| 74.71 | 99.93 | 89.04 | 99.73 | 67.82 | 99.90 | 84.29 | 99.64 | 70.11 | 99.93 | 88.41 | 99.69 |
|
| 100.00 | 99.97 | 99.66 | 99.97 | 99.77 | 99.91 | 98.99 | 99.90 | 100.00 | 99.98 | 99.77 | 99.98 |
Effects of heartbeat segments of different lengths on the classification results of BiLSTM model.
| Time step | 1 | 5 | 10 | 15 | 20 | 25 | 30 |
|---|---|---|---|---|---|---|---|
| Overall accuracy (%) | 99.04 | 99.02 | 99.12 |
| 98.55 | 82.52 | 84.53 |
Classification results of BiLSTM models based on different regularization methods.
| BiLSTM + | BiLSTM + | BiLSTM + Treg | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | Se (%) | Sp (%) | + | Acc (%) | |
|
| 99.73 | 98.00 | 99.55 | 99.41 | 99.73 | 97.80 | 99.51 | 99.38 | 99.78 | 97.95 | 99.54 | 99.44 |
|
| 91.72 | 99.90 | 96.18 | 99.67 | 91.72 | 99.89 | 95.85 | 99.66 | 93.38 | 99.91 | 96.58 | 99.73 |
|
| 98.63 | 99.81 | 97.42 | 99.73 | 98.49 | 99.78 | 97.02 | 99.70 | 98.63 | 99.83 | 97.69 | 99.75 |
|
| 74.71 | 99.92 | 87.84 | 99.72 | 72.41 | 99.96 | 94.03 | 99.74 | 72.41 | 99.96 | 94.03 | 99.74 |
|
| 100.00 | 99.98 | 99.77 | 99.98 | 100.00 | 99.98 | 99.77 | 99.98 | 100.00 | 99.98 | 99.77 | 99.98 |
Figure 7Confusion matrix of heartbeat classification results based on the BiLSTM-Treg model.
Figure 8The simulated decision tree.
Figure 9The key feature points of the decision tree correspond to the positions in the ECG waveform.
Classification results based on key feature points and BiLSTM-Treg algorithm.
| Se (%) | Sp (%) | + | Acc (%) | |
|---|---|---|---|---|
|
| 99.28 | 95.45 | 98.98 | 98.58 |
|
| 77.81 | 99.61 | 85.14 | 99.01 |
|
| 97.94 | 99.74 | 96.35 | 99.62 |
|
| 73.56 | 99.93 | 88.89 | 99.72 |
|
| 99.89 | 99.97 | 99.66 | 99.96 |
Comparison with other studies.
| Reference | Classifier | Performance (%) | |
|---|---|---|---|
| Feature engineering | Yang et al., 2021 [ | Random forest | Acc = 98.1 |
| Ji et al., 2021 [ | Stacking-DWKNN | Acc = 99.01 | |
| Zhu et al., 2018 [ | SVM | Acc = 97.80 | |
| Deep learning | Pandey et al., 2017 [ | 9-layer CNN | Acc = 94.03 |
| Ji et al., 2019 [ | 1D-CNN | Acc = 99.21 | |
| Wu et al., 2020 [ | CNN-BiLSTM | Acc = 97.29 | |
| Pandey et al., 2021 [ | BiLSTM | Acc = 98.58 | |
| Proposed | BiLSTM-Treg | Acc = |
Bold values represent the best experimental results which correspond to the evaluation criteria for one certain type.