| Literature DB >> 32847070 |
Gong Zhang1, Yujuan Si1,2, Weiyi Yang1, Di Wang3.
Abstract
Cardiovascular disease is the leading cause of death worldwide. Immediate and accurate diagnoses of cardiovascular disease are essential for saving lives. Although most of the previously reported works have tried to classify heartbeats accurately based on the intra-patient paradigm, they suffer from category imbalance issues since abnormal heartbeats appear much less regularly than normal heartbeats. Furthermore, most existing methods rely on data preprocessing steps, such as noise removal and R-peak location. In this study, we present a robust classification system using a multilevel discrete wavelet transform densely network (MDD-Net) for the accurate detection of normal, coronary artery disease (CAD), myocardial infarction (MI) and congestive heart failure (CHF). First, the raw ECG signals from different databases are divided into same-size segments using an original adaptive sample frequency segmentation algorithm (ASFS). Then, the fusion features are extracted from the MDD-Net to achieve great classification performance. We evaluated the proposed method considering the intra-patient and inter-patient paradigms. The average accuracy, positive predictive value, sensitivity and specificity were 99.74%, 99.09%, 98.67% and 99.83%, respectively, under the intra-patient paradigm, and 96.92%, 92.17%, 89.18% and 97.77%, respectively, under the inter-patient paradigm. Moreover, the experimental results demonstrate that our model is robust to noise and class imbalance issues.Entities:
Keywords: cardiovascular disease; electrocardiogram (ECG); imbalance category; inter-patient paradigm; robustness to noise
Mesh:
Year: 2020 PMID: 32847070 PMCID: PMC7506881 DOI: 10.3390/s20174777
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Literature reviews using ECG for detection of normal, MI, CAD, and CHF.
| Author (Year) | Database | Feature Extraction Method (Classifiers) | Intra-Patient | Inter-Patient |
|---|---|---|---|---|
| Normal and CAD | ||||
| Acharya et al., (2017) [ | Fantasia and St.Petersburg databases | HOS (KNN/DT) | ACC = 98.99% | |
| SEN = 97.75% | ||||
| SPE = 99.39%. | ||||
| Kumar et al., (2017) [ | Fantasia and St.Petersburg databases | FAWT (LS-SVM) | ACC = 99.60% | |
| SEN = 99.57% | ||||
| SPE = 99.61% | ||||
| Normal and MI | ||||
| Baloglu et al., (2019) [ | PTB diagnostic ECG database | CNN (Softmax) | ACC = 99.78% | |
| Han et al., (2019) [ | PTB diagnostic ECG database | Energy entropy based on MODWPT; Feature fusion (SVM) | ACC = 99.75% | ACC = 92.69% |
| SEN = 99.37% | SEN = 80.96% | |||
| PPV = 99.70% | PPV = 86.14% | |||
| Sharma et al., (2018) [ | PTB diagnostic ECG database | Wavelet decomposition based on biorthogonal filter bank, fuzzy entropy (KNN) | ACC = 99.62% | |
| SEN = 99.76% | ||||
| SPE = 99.12% | ||||
| Acharya et al., (2017) [ | PTB diagnostic ECG database | 11-layer CNN (Softmax) | ACC = 95.22% | |
| SEN = 95.49% | ||||
| SPE = 94.19% | ||||
| Reasat et al., (2017) [ | PTB diagnostic ECG database | CNN with inception block (Softmax) | ACC = 84.54% | |
| SEN = 85.33% | ||||
| SPE = 84.09% | ||||
| Sharma et al., (2017) [ | PTB diagnostic ECG database | SWT Sample entropy, log energy entropy, and median slope; (SVM/KNN) | ACC = 98.84% | ACC = 81.71% |
| SEN = 99.35% | SEN = 79.01% | |||
| SPE = 98.29% | SPE = 79.26% | |||
| Padhy et al., (2017) [ | PTB diagnostic ECG database | SVD (SVM) | ACC = 95.30% | |
| SEN = 94.60% | ||||
| SPE = 96.00% | ||||
| Acharya et al., (2016) [ | PTB diagnostic ECG database | DWT (KNN) | ACC = 98.8% | |
| SEN = 99.45% | ||||
| SPE = 96.27% | ||||
| Normal and CHF | ||||
| Acharya et al., (2019) [ | MITBIH Normal Sinus Rhythm, BIDMC CHF database | 1D-CNN (Softmax) | ACC = 98.97% | |
| SEN = 98.87% | ||||
| SPE = 99.01% | ||||
| Sudarshan et al., (2017) [ | MIT-BIH Normal Sinus Rhythm Database, BIDMC CHF database | Dual tree complex wavelet transform (KNN) | ACC = 99.86% | |
| SEN = 99.78% | ||||
| SPE = 99.94% | ||||
| Subasi et al., (2013) [ | BIDMC CHF database, MIT-BIH Arrhythmia database | Autoregressive (AR) Burg (C4.5 DT) | SEN = 99.77% | |
| SPE = 99.93% | ||||
| Normal, CAD and MI | ||||
| Acharya et al., (2017) [ | St.Petersburgdatabases, PTB diagnostic ECG database, | DWT | ACC = 98.5% | |
| SEN = 98.5% | ||||
| SPE = 99.7% | ||||
| Normal, CAD, MI, and CHF | ||||
| Fujita et al., (2017) [ | St.Petersburg databases, PTB diagnostic ECG database, BIDMC CHF database | WPD | ACC =97.98% | |
| SEN = 99.61% | ||||
| SPE = 94.84% | ||||
| Acharya et al., (2017) [ | St.Petersburg databases, PTB diagnostic ECG database, BIDMC CHF database | CWT | ACC = 99.55% | |
| SEN = 99.93% | ||||
| SPE = 99.24% | ||||
ACC: Accuracy, SEN: Sensitivity, SPE: Specificity, HOS: Higher-Order Statistics and Spectra, PCA: Principle Component Analysis, SVD: Singular Value Decomposition, LS-SVM: Least Squares Support Vector Machine, DWT: Discrete Wavelet Transform, FAWT: Flexible Analytic Wavelet Transform, SWT: Stationary Wavelet Transform, DCT: Discrete Cosine Transform, CWT: Continuous Wavelet Transform, EMD: Empirical Mode Decomposition, DT: Decision Tree, KNN: K-Nearest Neighbors, CNN: Convolution Neural Network.
Summary of data used in this paper.
| Database | Diagnosis Type | Used Lead° | Sampling Rate (Hz) | Subjects | Records |
|---|---|---|---|---|---|
| St-Petersburg | CAD | II | 257 | 7 | 17 |
| BIDMC CHF | CHF | II | 250 | 15 | 15 |
| PTB Diagnostic | Normal | II | 1000 | 52 | 80 |
| MI | II | 1000 | 148 | 368 |
The details of the data distribution scheme.
| Paradigm | Class | Training Set (DS1) | Testing Set (DS2) |
|---|---|---|---|
| Inter-patient | Normal | 104, 105, 116, 117, 121, 122, 131, 150, 155, 156, 165, 166, 169, 170, 172, 173, 174, 180, 182, 184, 185, 198, 214, 229, 233, 234 | 235~248, 251, 252, 255, 260, 263, 264, 266, 267, 276, 277, 279, 284 |
| MI | 001~074 | 75~103, 108, 111, 120, 128, 135, | |
| CAD | 001, 010, 016, 017 | 020, 025, 031 | |
| CHF | 001~008 | 009~015 | |
| Intra-patient | All data were chosen randomly as training and test samples. 10-fold cross-validation was employed, 9/10 of data was selected for training and the remaining data was used for testing. | ||
Figure 1Block diagram of the proposed system.
The implementation flow of the ASFS.
| Input: | The raw ECG data |
| Output: | The matrix of segments |
| Step 1: | Calculate the length of a desirable segment |
| Step 2: | Calculate the length of the overlap |
| Step 3: | Calculate the length of input ECG |
| Step 4: | For the loop of segment extraction from the raw ECG |
| Step 5: | Intercept from the raw ECG |
| Step 6: | Get the expected segment based on the current frequency |
| Step 7: | Normalize the segment |
| Step 8: | Add the normalized segment to the matrix |
| Step 9: | Calculate the new |
| Step 10: | End for |
| Step 11: | Get the desirable matrix of segments |
Figure 2The waveform of one ECG segment. (a) normal; (b) MI; (c) CAD; (d) CHF.
Figure 3One-level wavelet transform for image.
Figure 4Two-level 2D-DWT for raw ECG matrix.
Figure 5Flowchart of the proposed deep learning framework (MDD-Net) for cardiovascular disease. BN = Batch Normalization, Relu = Rectified Unit Activation.
The network architecture of our MDD-Net model.
| Layer | Output Shape | Filter (Kernel size, Stride Size, Number) |
|---|---|---|
| Convolution2D | (None,60,50,24) |
|
| AveragePooling2D | (None,30,25,24) |
|
| Dense block 1 | (None,30,25,36) |
|
| Transition block 1 | (None,15,13,18) |
|
| Dense block 2 | (None,15,13,30) |
|
| Transition block 2 | (None,8,7,15) |
|
| Dense block 3 | (None,8,7,27) |
|
| Maxpooling2D | (None,4,4,27) |
|
| Conv block 1 | (None,30,25,24) |
|
| Concatenation 1 | (None,30,25,96) | None |
| Maxpooling2D | (None,15,13,96) |
|
| Conv block 2 | (None,15,13,12) |
|
| Conv block 3 | (None,15,13,24) |
|
| Concatenation 2 | (None,15,13,108) | None |
| Maxpooling2D | (None,8,7,108) |
|
| Conv block 4 | (None,8,7,12) |
|
| Conv block 5 | (None,8,7,24) |
|
| Concatenation 3 | (None,8,7,108) | None |
| Maxpooling2D | (None,4,4,108) |
|
| Concatenation 4 | (None,4,4,135) | None |
| Maxpooling2D | (None,2,2,135) |
|
| GlobalMaxPooling2D | (None,135) | None |
| Softmax | 4 | None |
The implementation flow of the Borderline-SMOTE.
| Input: | The original training set |
| Output: | The new training set |
| Step 1: | Calculate the |
| Step 2: | Classify the samples in if the if the if the |
| Step 3: | For loop until the number of artificial minority-class samples is met. |
| Step 4: | Set the boundary sample set |
| Step 5: | Randomly select |
| Step 6: | Calculate the difference of all attributes between a sample and its nearest neighbors |
| Step 7: | The attribute difference multiplied by a random number |
| Step 8: | The generated artificial minority-class sample is |
| Step 9: | Add the generated sample to the new training set |
| Step 10: | End for |
| Step 11: | Get the desirable training set |
The consistent parameters of the original DenseNet.
| Parameter | Value |
|---|---|
| The number of dense blocks | 3 |
| The depth of the network | 13 |
| Batch size | 50 |
| Epoch | 50 |
| Growth rate | 12 |
Figure 6The impact of input segment on performance. (a) the length, (b) the overlapping rate.
Figure 7The impact of the original DenseNet. (a) Blocks, (b) Depth of the network.
Figure 8The impact of Multilevel-DWT.
Grid parameter list and the optimal parameters of MDD-Net.
| Item | Parameter | Alternative List | Best |
|---|---|---|---|
| The input segment | Segment length | (2000, 3000) | 3000 |
| Overlapping rate | (0.1, 0.2, 0.3) | 0.1 | |
| Reformed DenseNet | Batch size | (20, 30, 40, …, 200) | 50 |
| Epoch | (100, 150, 200) | 100 | |
| Dense blocks | (1, 2, 3) | 3 | |
| Depth | (10, 13, 16, 19, …, 46) | 10 | |
| Growth rate | (12, 24) | 12 | |
| Multilevel DWT | The level of DWT | (1, 2, 3) | 3 |
Figure 9Plots of performance measures versus the number of folds under intra-patient paradigm.
The overall classification results for cardiovascular detection across 10-fold.
| Predicted | ACC (%) | PPV (%) | SEN (%) | SPE (%) | |||||
|---|---|---|---|---|---|---|---|---|---|
| Normal | MI | CAD | CHF | ||||||
| Original | Normal |
| 157 | 0 | 0 | 99.54 | 97.57 | 95.45 | 99.83 |
| MI | 82 |
| 2 | 6 | 99.52 | 98.95 | 99.40 | 99.57 | |
| CAD | 0 | 1 |
| 16 | 99.95 | 99.92 | 99.85 | 99.98 | |
| CHF | 0 | 0 | 7 |
| 99.94 | 99.90 | 99.97 | 99.93 | |
| Average |
|
|
|
| |||||
The results for cardiovascular detection under inter-patient paradigm.
| Original/Predicted | Predicted | ACC (%) | PPV (%) | SEN (%) | SPE (%) | ||||
|---|---|---|---|---|---|---|---|---|---|
| Normal | MI | CAD | CHF | ||||||
| DenseNet | Normal |
| 537 | 6 | 0 | 96.67 | 83.08 | 66.44 | 98.97 |
| MI | 202 |
| 20 | 290 | 94.00 | 86.94 | 91.82 | 94.82 | |
| CAD | 9 | 69 |
| 1170 | 93.59 | 93.96 | 73.27 | 98.79 | |
| CHF | 8 | 257 | 194 |
| 91.62 | 87.16 | 95.57 | 88.36 | |
| Average | 93.97 | 87.78 | 81.77 | 95.24 | |||||
| Multilevel DWT (ML-DWT) | Normal |
| 295 | 1 | 0 | 96.69 | 74.10 | 81.71 | 97.83 |
| MI | 361 |
| 16 | 50 | 96.81 | 95.04 | 93.17 | 98.17 | |
| CAD | 91 | 7 |
| 854 | 93.10 | 85.55 | 79.61 | 96.56 | |
| CHF | 10 | 2 | 611 |
| 93.33 | 91.51 | 93.99 | 92.79 | |
| Average | 94.98 | 86.55 | 87.12 | 96.34 | |||||
|
| Normal |
| 442 | 3 | 0 | 97.32 | 87.41 | 72.50 | 99.21 |
| MI | 149 |
| 48 | 46 | 96.95 | 92.97 | 96.12 | 97.27 | |
| CAD | 15 | 10 |
| 394 | 96.67 | 92.49 | 91.03 | 98.11 | |
| CHF | 5 | 3 | 294 |
| 96.76 | 95.81 | 97.09 | 96.49 | |
| Average |
|
|
|
| |||||
Figure 10The overall accuracy and loss curves of models on the test set. (a) Overall accuracy; (b) Loss.
Figure 11The noisy segment with different SNR. From left to right: Normal, MI, CAD, and CHF. (a–d) SNR = 24 dB; (e–h) SNR = 18 dB; (i–l) SNR = 12 dB; (m–p) SNR = 6 dB; (q–t) SNR = 0 dB.
The average performance of different SNRs under intra-patient and inter-patient paradigms.
| SNR/Paradigm | Intra-Patient | Inter-Patient | ||||||
|---|---|---|---|---|---|---|---|---|
| ACC (%) | PPV (%) | SEN (%) | SPE (%) | ACC (%) | PPV (%) | SEN (%) | SPE (%) | |
| Original | 99.74 | 99.09 | 98.67 | 99.83 | 96.92 | 92.17 | 89.18 | 97.77 |
| 24 db | 99.59 | 97.97 | 98.51 | 99.75 | 96.98 | 90.74 | 89.59 | 98.05 |
| 18 db | 99.48 | 97.65 | 97.91 | 99.67 | 96.93 | 88.71 | 89.20 | 98.08 |
| 12 db | 99.31 | 97.95 | 96.59 | 99.53 | 94.62 | 83.12 | 84.19 | 96.61 |
| 6 db | 98.73 | 95.48 | 94.02 | 99.13 | 95.41 | 84.06 | 86.96 | 97.16 |
| 0 db | 98.00 | 93.16 | 90.87 | 98.62 | 95.29 | 82.37 | 82.85 | 97.02 |
Figure 12Plots of average performance of our model at different SNRs under intra-patient and inter-patient paradigms.
The number of instances of each category in different scales.
| Scale | Normal | MI | CAD | CHF |
|---|---|---|---|---|
| Original | 3454 | 15,011 | 11,339 | 22,215 |
| 20 | 3454 | 750 | 566 | 1110 |
| 40 | 3454 | 375 | 283 | 555 |
| 60 | 3454 | 250 | 188 | 370 |
| 80 | 3454 | 187 | 141 | 277 |
| 100 | 3454 | 150 | 113 | 222 |
The confusion matrix and classification performance of diseases in different scales.
| Scale | Intra-Patient | Inter-Patient | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Confusion Matrix (10-Fold) | Performance (ACC PPV SEN SPE) | Confusion Matrix | Performance (ACC PPV SEN SPE) | |||||||||||
| MI | CAD | CHF | MI | CAD | CHF | |||||||||
| 20 |
| 39 | 0 | 0 | 97.91 | 99.90 | 99.88 |
| 74 | 0 | 0 | 94.18 | 97.20 | 97.39 |
| 84 |
| 0 | 0 | 94.47 | 99.30 | 99.82 | 76 |
| 5 | 1 | 75.66 | 89.90 | 90.14 | |
| 0 | 0 |
| 2 | 88.80 | 99.65 | 99.55 | 1 | 0 |
| 54 | 73.72 | 76.39 | 97.10 | |
| 1 | 0 | 4 |
| 99.24 | 99.92 | 99.96 | 0 | 0 | 15 |
| 96.88 | 99.18 | 97.46 | |
| 40 |
| 24 | 0 | 1 | 97.58 | 99.74 | 99.74 |
| 7 | 0 | 0 | 95.86 | 98.37 | 98.51 |
| 88 |
| 1 | 0 | 92.26 | 99.27 | 98.05 | 80 |
| 2 | 0 | 91.36 | 86.49 | 92.83 | |
| 0 | 0 |
| 10 | 76.27 | 96.47 | 99.82 | 1 | 0 |
| 19 | 47.44 | 82.76 | 94.98 | |
| 0 | 0 | 1 |
| 99.44 | 99.95 | 99.73 | 0 | 0 | 13 |
| 99.65 | 99.26 | 98.99 | |
| 60 |
| 24 | 0 | 0 | 98.15 | 99.86 | 99.86 |
| 13 | 0 | 0 | 97.21 | 98.53 | 98.63 |
| 55 |
| 0 | 0 | 89.04 | 98.40 | 99.19 | 38 |
| 3 | 1 | 82.67 | 86.36 | 88.77 | |
| 0 | 0 |
| 3 | 78.00 | 98.40 | 99.19 | 0 | 0 |
| 20 | 59.62 | 74.03 | 96.51 | |
| 0 | 0 | 3 |
| 99.40 | 99.93 | 99.92 | 0 | 0 | 6 |
| 99.30 | 99.52 | 98.83 | |
| 80 |
| 14 | 0 | 0 | 98.42 | 99.73 | 99.73 |
| 18 | 0 | 0 | 96.55 | 98.57 | 98.83 |
| 50 |
| 0 | 0 | 90.73 | 98.51 | 96.83 | 47 |
| 0 | 0 | 63.27 | 77.19 | 92.80 | |
| 0 | 0 |
| 9 | 73.26 | 93.62 | 99.28 | 5 | 0 |
| 9 | 39.74 | 75.86 | 89.92 | |
| 0 | 0 | 2 |
| 99.64 | 99.95 | 99.76 | 0 | 0 | 13 |
| 99.00 | 99.29 | 99.49 | |
| 100 |
| 9 | 0 | 0 | 98.88 | 99.70 | 99.67 |
| 18 | 1 | 0 | 97.05 | 98.63 | 98.58 |
| 35 |
| 0 | 0 | 92.74 | 98.10 | 95.63 | 34 |
| 0 | 2 | 59.09 | 78.38 | 83.48 | |
| 0 | 0 |
| 10 | 76.67 | 91.15 | 98.65 | 0 | 0 |
| 17 | 41.94 | 63.04 | 93.20 | |
| 1 | 0 | 2 |
| 99.76 | 99.95 | 99.73 | 0 | 0 | 7 |
| 98.98 | 99.55 | 98.90 | |
Figure 13The average performance bar of the model with and without the algorithms in different scales under inter-patient paradigm. BSFL: Borderline-SMOTE algorithm and focal loss function. CE: cross-entropy loss function.
Comparison of different deep networks for classification of Normal, MI, CAD, and CHF.
| Model | Intra-Patient | Inter-Patient | ||||||
|---|---|---|---|---|---|---|---|---|
| ACC (%) | PPV (%) | SEN (%) | SPE (%) | ACC (%) | PPV (%) | SEN (%) | SPE (%) | |
| VGG_16 [ |
|
|
|
| 79.63 | 64.03 | 56.65 | 85.83 |
| ResNet_18 [ | 99.79 | 99.44 | 99.24 | 99.85 | 91.27 | 80.21 | 75.72 | 93.26 |
| ResNet_34 [ | 99.79 | 99.52 | 99.18 | 99.85 | 91.99 | 81.47 | 77.15 | 93.78 |
| ResNet_50 [ | 99.72 | 99.25 | 99.12 | 99.80 | 89.76 | 75.63 | 76.08 | 92.58 |
| DenseNet | 99.63 | 99.20 | 98.86 | 99.73 | 93.97 | 87.78 | 81.77 | 95.24 |
|
| 99.74 | 99.09 | 98.67 | 99.83 |
|
|
|
|
Comparison of the proposed model against the recent literatures using the same databases.
| Author (Year) | Intra-Patient | Inter-Patient | ||||||
|---|---|---|---|---|---|---|---|---|
| ACC (%) | PPV (%) | SEN (%) | SPE (%) | ACC (%) | PPV (%) | SEN (%) | SPE (%) | |
| Normal and MI | ||||||||
| Han et al. (2019) [ | 99.75 | 99.70 | 99.37 | 92.69 | 86.14 | 80.96 | ||
| Sharma et al. (2018) [ | 99.62 | 99.76 | 99.12 | |||||
| Sharma et al. (2017) [ | 98.84 | 99.35 | 98.29 | 81.71 | 79.01 | 79.26 | ||
| Normal, CAD, MI, and CHF | ||||||||
| Fujita et al. (2017) [ | 97.98 | 99.61 | 94.84 | |||||
| Acharya et al. (2017) [ | 99.55 |
| 99.24 | |||||
|
|
|
| 98.67 |
|
|
|
|
|