| Literature DB >> 34007306 |
Enbiao Jing1, Haiyang Zhang2, ZhiGang Li1, Yazhi Liu1, Zhanlin Ji1,3, Ivan Ganchev3,4,5.
Abstract
Based on a convolutional neural network (CNN) approach, this article proposes an improved ResNet-18 model for heartbeat classification of electrocardiogram (ECG) signals through appropriate model training and parameter adjustment. Due to the unique residual structure of the model, the utilized CNN layered structure can be deepened in order to achieve better classification performance. The results of applying the proposed model to the MIT-BIH arrhythmia database demonstrate that the model achieves higher accuracy (96.50%) compared to other state-of-the-art classification models, while specifically for the ventricular ectopic heartbeat class, its sensitivity is 93.83% and the precision is 97.44%.Entities:
Year: 2021 PMID: 34007306 PMCID: PMC8110414 DOI: 10.1155/2021/6649970
Source DB: PubMed Journal: Comput Math Methods Med ISSN: 1748-670X Impact factor: 2.238
Figure 1Single heartbeat waveform.
Mapping of the MIT-BIH heartbeat types to the AAMI heartbeat classes.
| AAMI heartbeat classes | MIT-BIH heartbeat types |
|---|---|
| Normal (N) | Normal beat |
|
| |
| Ventricular ectopic (V) | Premature ventricular contraction |
|
| |
| Supraventricular ectopic (S) | Atrial premature contraction |
|
| |
| Fusion (F) | Fusion of nonectopic and ventricular beat |
|
| |
| Unknown (Q) | Paced beat |
Figure 2ECG signal denoising process.
Figure 3ECG signal comparison before denoising (red color) and after denoising (black color).
Figure 4Heartbeat classification based on the proposed model.
The training set, validation set, and test set used in the experiments.
| Data sets | Serial numbers of MIT-BIH patient records |
|---|---|
| Training set | 124, 201, 203, 205, 207, 208, 209, 215, 220, 223, 230 |
| Validation set | 101, 106, 108, 109, 112, 114, 115, 116, 118, 119, 122 |
| Test set | 100, 103, 105, 111, 113, 117, 121, 123, 200, 202, 210, 212, 213, 214, 219, 221, 222, 228, 231, 232, 233, 234 |
Figure 5The overall structure of a convolutional neural network (CNN).
Figure 6The ResNet building block (adapted from [34]).
Figure 7Parameters of each layer of the improved ResNet-18 model.
Figure 8The structure of improved ResNet-18 model.
Algorithm 1The training algorithm of the improved ResNet-18 model.
The number of heartbeats, retrieved from the MIT-BIH database and used in the experiments, for each AAMI heartbeat class.
| AAMI heartbeat class | Number of heartbeats retrieved from MIT-BIH | Number of MIT-BIH heartbeats used as a test set |
|---|---|---|
| N | 73,564 | 36,727 |
| V | 24,122 | 12,219 |
| S | 3,880 | 1,835 |
| F | 586 | 300 |
| Q | 20 | 5 |
| 102,172 (in total) | 51,086 (in total) |
Figure 9The improved ResNet-18 model's loss as a function of the number of iterations.
Figure 10The improved ResNet-18 model's accuracy as a function of the number of iterations.
Performance comparison of different classification models, in terms of overall accuracy.
| Model | Overall accuracy (%) |
|---|---|
| Ensemble learning [ | 94.20 |
| BbNNs [ | 94.49 (calculated by us, based on the confusion matrix provided in [ |
| End-to-end DNN [ | 94.70 (as the proportion of classes F and Q in the MIT-BIH data set is very small (less than 1%), these two classes have insignificant contribution to the overall performance and so they were not included in the calculation of the overall accuracy presented in [ |
| 1D-CNN [ | 95.13 (calculated by us, based on the confusion matrix provided in [ |
| Improved ResNet-18 (the proposed model) | 96.50 |
The confusion matrix of the improved ResNet-18 model.
| Actual AAMI heartbeat class | Predicted AAMI heartbeat class | ||||
|---|---|---|---|---|---|
| N | V | S | F | Q | |
| N | 35617 | 680 | 419 | 9 | 2 |
| V | 139 | 11906 | 54 | 120 | 0 |
| S | 226 | 66 | 1539 | 4 | 0 |
| F | 33 | 34 | 1 | 232 | 0 |
| Q | 2 | 3 | 0 | 0 | 0 |
Sensitivity (Se) and precision (P+) of the improved ResNet-18 model for each AAMI heartbeat class.
| AAMI heartbeat class | Se (%) | P+ (%) |
|---|---|---|
| N | 98.89 | 96.98 |
| V | 93.83 | 97.44 |
| S | 76.45 | 83.87 |
| F | 63.56 | 77.33 |
| Q | 0 | 0 |
Sensitivity (Se) and precision (P+) of the improved ResNet-18 model, in comparison with state-of-the-art models, for AAMI heartbeat classes V and S.
| Model (ensemble learning is omitted from this comparison as there are neither sensitivity nor precision data presented for it in [ | AAMI heartbeat class V | AAMI heartbeat class S | ||
|---|---|---|---|---|
| Se (%) | P+ (%) | Se (%) | P+ (%) | |
| BbNNs [ | 86.60 | 93.30 | 50.60 | 67.90 |
| End-to-end DNN [ | 93.70 | Not provided | 77.30 | Not provided |
| 1D-CNN [ | 93.90 | 90.60 | 60.30 | 63.50 |
| Improved ResNet-18 (the proposed model) | 93.83 | 97.44 | 76.45 | 83.87 |