| Literature DB >> 35432590 |
Pengyao Xu1, Hui Liu1, Xiaoyun Xie1, Shuwang Zhou1,2, Minglei Shu1, Yinglong Wang1.
Abstract
The precise identification of arrhythmia is critical in electrocardiogram (ECG) research. Many automatic classification methods have been suggested so far. However, efficient and accurate classification is still a challenge due to the limited feature extraction and model generalization ability. We integrate attention mechanism and residual skip connection into the U-Net (RA-UNET); besides, a skip connection between the RA-UNET and a residual block is executed as a residual attention convolutional neural network (RA-CNN) for accurate classification. The model was evaluated using the MIT-BIH arrhythmia database and achieved an accuracy of 98.5% and F 1 scores for the classes S and V of 82.8% and 91.7%, respectively, which is far superior to other approaches.Entities:
Mesh:
Year: 2022 PMID: 35432590 PMCID: PMC9012615 DOI: 10.1155/2022/2323625
Source DB: PubMed Journal: Comput Math Methods Med ISSN: 1748-670X Impact factor: 2.809
Figure 1Heartbeat segmentation schematic diagram.
Figure 22-D data generation and enhancement.
Data comparison before and after dataset enhancement.
| Database | Enhancement | Type | Number of heart beats | Total | |||
|---|---|---|---|---|---|---|---|
|
|
|
|
| ||||
| MIT-BIH | Before | Amount | 90042 | 2779 | 7007 | 802 | 100630 |
| Percentage (%) | 89.48 | 2.76 | 6.96 | 0.80 | — | ||
| After | Amount | 90042 | 20696 | 41099 | 8668 | 160505 | |
| Percentage (%) | 56.10 | 12.89 | 25.61 | 5.40 | — | ||
Figure 3RA-CNN model training flowchart.
Figure 4RA-CNN model.
The number of channels and output dimensions of each layer.
| Layer name | Operate | Kernel size | Stride | Output size | Channels |
|---|---|---|---|---|---|
| Input | 224 × 224 | 3 | |||
| Top layer | conv2d | 7 × 7 | 2 | 112 × 112 | 16 |
| Max Pool2d | 3 × 3 | 2 | 56 × 56 | 16 | |
| R-block1 |
| 1 | 56 × 56 | 16 | |
| Middle layer | R-block5 |
| 1 | 56 × 56 | 16 |
| Bottom layer | RA-UNET | 56 × 56 | 16 | ||
| Top layer | R-block2 |
| 1 | 28 × 28 | 32 |
| R-block3 |
| 1 | 14 × 14 | 64 | |
| R-block4 |
| 1 | 7 × 7 | 64 | |
| Avg Pool2d | 7 × 7 | 1 | 1 × 1 | 64 | |
| Output | 4 |
Figure 5R-block.
Figure 6RA-UNET structure diagram.
Each layer structure and input size of RA-UNET.
| Name | Layer | Kernel size | Output size | Channels |
|---|---|---|---|---|
| Encoder | Max Pool2d | 3 × 3, stride 2 | 28 × 28 | 16 |
| A-block | — | 28 × 28 | 16 | |
| R-block |
| 28 × 28 | 16 | |
| Max Pool2d | 3 × 3, stride 2 | 14 × 14 | 16 | |
| A-block | — | 14 × 14 | 16 | |
| R-block |
| 14 × 14 | 16 | |
| Max Pool2d | 3 × 3, stride 2 | 7 × 7 | 16 | |
| A-block | — | 7 × 7 | 16 | |
|
| ||||
| Decoder | Upsample | Size (14, 14) | 14 × 14 | 16 |
| A-block | — | 14 × 14 | 16 | |
| Upsample | Size (28, 28) | 28 × 28 | 16 | |
| A-block | — | 28 × 28 | 16 | |
| Upsample | Size (56, 56) | 56 × 56 | 16 | |
| A-block | — | 56 × 56 | 16 | |
| R-block |
| 56 × 56 | 16 | |
|
| ||||
| Output | 56 × 56 | 16 | ||
Figure 7A-block.
Classification of ECG in the MIT-BIH database using AAMI standard.
| Types | Contains heartbeat type |
|---|---|
| Normal ( | Normal (NOR), left bundle branch block (LBBB), right bundle branch block (RBBB), atrial escape (AE), node (junction) escape heartbeat (NE) |
| Ventricular ectopic heartbeat ( | Premature ventricular contraction (PVC), ventricular escape heartbeat (VE) |
| Fusion heartbeat ( | Fusion of ventricular and normal (FVN) |
| Supraventricular ectopic heartbeat or premature heartbeat ( | Atrial premature (AP), aberrant atrial premature (AaP), nodal (junctional) premature (NP), supraventricular premature (SP) |
| Unknown heartbeat ( | Paced (/), fusion of paced and normal (FPN), unclassified (U), undetermined (?) |
Interpatient dataset partitioning scheme.
| Database | Datasets | Partition | Number of heart beats | Total | |||
|---|---|---|---|---|---|---|---|
|
|
|
|
| ||||
| MIT-BIH | DS1 | Training | 45824 | 18860 | 37880 | 8280 | 110844 |
| Percentage (%) | 41.34 | 17.01 | 34.17 | 7.47 | 100 | ||
| DS2 | Testing | 44218 | 1836 | 3219 | 388 | 49661 | |
| Total | 90042 | 20696 | 41099 | 8668 | 160505 | ||
Figure 82-D ECG data processing results of the two branches of A-block.
Figure 9Confusion matrix without data augmentation.
Figure 10Confusion matrix enhanced with data augmentation.
Comparison of effects before and after data enhancement.
| Enhancement | ACC |
|
|
| ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SEN | Ppr |
| SEN | Ppr |
| SEN | Ppr |
| ||
| Without | 97.6 | 98.16 | 98.29 | 98.23 | 75.93 | 71.56 | 73.68 | 89.93 | 82.95 | 86.30 |
| Proposed | 98.5 | 98.87 | 98.64 | 98.75 | 83.06 | 82.48 | 82.77 | 93.46 | 90.04 | 91.72 |
Data analysis of ablation experiments.
| Works | ACC |
|
|
| ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SEN | Ppr |
| SEN | Ppr |
| SEN | Ppr |
| ||
| Without R-block | 97.4 | 97.49 | 98.41 | 97.94 | 77.72 | 71.85 | 74.67 | 91.92 | 78.26 | 84.54 |
| Without A-block | 97.2 | 97.72 | 98.15 | 97.94 | 71.35 | 66.23 | 68.69 | 88.38 | 78.77 | 83.30 |
| Without channel attention | 97.7 | 98.18 | 98.21 | 98.20 | 76.68 | 68.84 | 72.61 | 89.84 | 86.35 | 88.06 |
| Without spatial attention | 97.5 | 97.95 | 98.08 | 98.02 | 75.44 | 68.40 | 71.74 | 88.75 | 83.51 | 86.05 |
| Without top layer | 96.5 | 96.36 | 97.88 | 97.11 | 74.83 | 64.87 | 69.50 | 90.59 | 72.86 | 80.76 |
| Without middle layer | 97.3 | 97.28 | 98.48 | 97.88 | 80.39 | 72.60 | 76.30 | 92.17 | 77.19 | 84.02 |
| Proposed | 98.5 | 98.87 | 98.64 | 98.75 | 83.06 | 82.48 | 82.77 | 93.46 | 90.04 | 91.72 |
Comparison of related experiments.
| Works | ACC |
|
|
| ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SEN | Ppr |
| SEN | Ppr |
| SEN | Ppr |
| ||
| Dictionary | 95.1 | 90.9 | 99.4 | 94.2 | 80.8 | 48.8 | 60.8 | 82.2 | 85.4 | 83.8 |
| DCNN | 94.0 | 90.6 | 98.8 | 94.5 | 82.3 | 38.1 | 52.1 | 92.0 | 72.1 | 80.9 |
| MPCNN | 96.4 | 98.8 | 97.4 | 98.1 | 76.5 | 76.6 | 76.6 | 85.7 | 94.1 | 89.7 |
| DDCNN + CLSM (2020) [ | 95.1 | 97.5 | 97.6 | 97.6 | 83.8 | 59.4 | 69.5 | 80.4 | 90.2 | 85.0 |
| Linear discriminant (2021) [ | 87.3 | 78.7 | 99.3 | 87.8 | 89.4 | 37.5 | 52.9 | 86.5 | 93.0 | 89.6 |
| Proposed | 98.5 | 98.9 | 98.6 | 98.8 | 83.1 | 82.5 | 82.8 | 93.5 | 90.1 | 91.7 |