| Literature DB >> 36080960 |
Mohamed Hammad1, Samia Allaoua Chelloug2, Reem Alkanhel2, Allam Jaya Prakash3, Ammar Muthanna4, Ibrahim A Elgendy5, Paweł Pławiak6,7.
Abstract
An electrocardiogram (ECG) is an essential piece of medical equipment that helps diagnose various heart-related conditions in patients. An automated diagnostic tool is required to detect significant episodes in long-term ECG records. It is a very challenging task for cardiologists to analyze long-term ECG records in a short time. Therefore, a computer-based diagnosis tool is required to identify crucial episodes. Myocardial infarction (MI) and conduction disorders (CDs), sometimes known as heart blocks, are medical diseases that occur when a coronary artery becomes fully or suddenly stopped or when blood flow in these arteries slows dramatically. As a result, several researchers have utilized deep learning methods for MI and CD detection. However, there are one or more of the following challenges when using deep learning algorithms: (i) struggles with real-life data, (ii) the time after the training phase also requires high processing power, (iii) they are very computationally expensive, requiring large amounts of memory and computational resources, and it is not easy to transfer them to other problems, (iv) they are hard to describe and are not completely understood (black box), and (v) most of the literature is based on the MIT-BIH or PTB databases, which do not cover most of the crucial arrhythmias. This paper proposes a new deep learning approach based on machine learning for detecting MI and CDs using large PTB-XL ECG data. First, all challenging issues of these heart signals have been considered, as the signal data are from different datasets and the data are filtered. After that, the MI and CD signals are fed to the deep learning model to extract the deep features. In addition, a new custom activation function is proposed, which has fast convergence to the regular activation functions. Later, these features are fed to an external classifier, such as a support vector machine (SVM), for detection. The efficiency of the proposed method is demonstrated by the experimental findings, which show that it improves satisfactorily with an overall accuracy of 99.20% when using a CNN for extracting the features with an SVM classifier.Entities:
Keywords: CNN; SVM; conduction disorders; deep learning; feature selection; myocardial infarction
Mesh:
Year: 2022 PMID: 36080960 PMCID: PMC9460171 DOI: 10.3390/s22176503
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Comparison of related works.
| Literature | Year | Database | Classifiers | Remarks (Accuracy in %) |
|---|---|---|---|---|
| Smigiel et al. [ | 2021 | PTB-XL | CNN | 72.00 |
| Smigiel et al. [ | 2021 | PTB-XL | Neural networks | 76.20 |
| Pałczynski et al. [ | 2022 | PTB-XL | Neural networks | 80.20 |
| Prabhakararao et al. [ | 2022 | PTB-XL | DMSCE | 84.50 |
| Zhang et al. [ | 2021 | China Physiological Signal | MLBF-Net | 87.70 |
| Jahmunah et al. [ | 2021 | PTB | GABORCNN | 98.84 |
| Alghamdi et al. [ | 2020 | PTB | VGG-Net | 99.20 |
| Anand et al. [ | 2022 | PTB-XL | CNN | 95.80 |
| He et al. [ | 2021 | Combination of PTB and | Multi-feature-branch | 94.19 |
Original dataset without multiple annotations.
| Beat Name | Number of Beats | Number of Beats Utilized for Testing |
|---|---|---|
| Normal (Norm) | 5087 | 2150 |
| Myocardial infarction (MI) | 2055 | 881 |
| Conduction disturbance (CD) | 2240 | 992 |
| Hypertrophy (HYP) | 560 | 255 |
| ST/T change (STTC) | 2100 | 964 |
Detailed splitting of the data to validate the proposed method.
| Total Number of Beats in | Number of Beats for Training | Number of Beats for Testing (30%) |
|---|---|---|
| 17,232 | 12,040 | 5242 |
Figure 1General diagram of the proposed method.
Figure 2The architecture of the deep learning model.
Figure 3Convergence of the proposed (customized) activation function and the sigmoid function.
The performance of the proposed network with various activation functions.
| No | Activation Function Name | Performance in Detection of the ECG Beats (in %) |
|---|---|---|
| 1 | Sigmoid | 98.46 |
| 2 | tanh | 96.32 |
| 3 | ReLU | 93.67 |
|
|
|
|
The default settings used to implement the SVM.
| Hyperparameters | Values |
|---|---|
| Regularization parameter C | 1.0 |
| Kernel | `Radial Basis Function (RBF) kernel’ |
| Degree of the polynomial kernel function | 3 |
| Gamma (kernel coefficient for `rbf’) | `scale’ |
| Shrinking | True (if the number of iterations is large, then shrinking can shorten the training time) |
| Probability | False (Whether probability estimates are enabled—this must be enabled before running the fit; it will slow down that method as it utilizes 10-fold cross-validation internally, and the predict_proba may differ from predict). |
| Tol | 0.001 (tolerance for the stopping criterion). |
| Cache_size | 200 (specifying the size of the kernel cache). |
| max_iter | −1 (hard limit on iterations within the solver, or −1 for no limit). |
| decision_function_shape | `ovr’. |
| break_ties | True (if true, decision_function_shape = `ovr’ and number of classes > 2, predict will break ties based on the confidence values of decision_function; otherwise, the first tied class is returned. Please note that breaking ties incurs a somewhat large computational cost relative to a simple prediction). |
| random_state | None (controls the creation of pseudo-random numbers for shuffling data for probability estimates. When the probability is False, it is ignored. An integer is passed for output that is reproducible over several function calls). |
Figure 4Confusion matrix of the proposed end-to-end CNN model.
Overall performance of the proposed end-to-end CNN model for each class.
| Class | n (Truth) | n (Classified) | Accuracy | Precision | Recall | F-Score |
|---|---|---|---|---|---|---|
|
| 5054 | 5087 | 99.39 | 99.21 | 99.35 | 0.992 |
|
| 2032 | 2055 | 99.62 | 98.88 | 98.77 | 0.988 |
|
| 2022 | 2240 | 99.66 | 98.98 | 99.20 | 0.990 |
|
| 537 | 560 | 99.56 | 94.74 | 95.89 | 0.953 |
|
| 2065 | 2100 | 99.57 | 99.23 | 98.33 | 0.987 |
|
| 98.90 (in %) | |||||
Figure 5Proposed end-to-end CNN training and validation accuracy curve.
Figure 6Proposed end-to-end CNN training and validation error curve.
Figure 7Confusion matrix of the SVM classifier.
Overall performance of the proposed CNN model with the SVM for each class.
| Class | n (Truth) | n (Classified) | Accuracy | Precision | Recall | F-Score |
|---|---|---|---|---|---|---|
|
| 2140 | 2149 | 99.64 | 99.53 | 99.58 | 0.995 |
|
| 877 | 881 | 99.58 | 97.99 | 99.55 | 0.987 |
|
| 985 | 992 | 99.81 | 99.70 | 99.29 | 0.994 |
|
| 238 | 255 | 99.64 | 99.17 | 93.33 | 0.961 |
|
| 959 | 964 | 99.73 | 99.07 | 99.48 | 0.992 |
|
| 99.20 (in %) | |||||
Comparison between the proposed deep CNN method and other recent methods.
| Literature | Year | Database | Technique | F-Score | |||
|---|---|---|---|---|---|---|---|
| Smigiel et al. [ | 2021 | PTB-XL | CNN and | 89.14 | 71.40 | 66.20 | 68.00 |
| Smigiel et al. [ | 2021 | PTB-XL | Deep learning | 76.20 | 66.7 | 66.7 | 68.30 |
| Pałczynski et al. [ | 2022 | PTB-XL | Deep CNN | 79.00 | 70.60 | 70.60 | 70.60 |
| Prabhakararao et al. [ | 2021 | PTB-XL | CNN ensemble | 85.65 | 84.25 | 85.21 | 84.55 |
| Zhang et al. [ | 2021 | PTB-XL | Multi-lead-branch | 93.10 | 94.30 | 93.10 | 92.80 |
| Proposed Method | 2022 | PTB-XL | Deep CNN model | 99.20 | 98.20 | 99.20 | 98.60 |