| Literature DB >> 36009560 |
Lotfi Mhamdi1, Oussama Dammak2, François Cottin3,4, Imed Ben Dhaou5,6.
Abstract
The electrocardiogram (ECG) provides essential information about various human cardiac conditions. Several studies have investigated this topic in order to detect cardiac abnormalities for prevention purposes. Nowadays, there is an expansion of new smart signal processing methods, such as machine learning and its sub-branches, such as deep learning. These popular techniques help analyze and classify the ECG signal in an efficient way. Our study aims to develop algorithmic models to analyze ECG tracings to predict cardiovascular diseases. The direct impact of this work is to save lives and improve medical care with less expense. As health care and health insurance costs increase in the world, the direct impact of this work is saving lives and improving medical care. We conducted numerous experiments to optimize deep-learning parameters. We found the same validation accuracy value of about 0.95 for both MobileNetV2 and VGG16 algorithms. After implementation on Raspberry Pi, our results showed a small decrease in accuracy (0.94 and 0.90 for MobileNetV2 and VGG16 algorithms, respectively). Therefore, the main purpose of the present research work is to improve, in an easy and cheaper way, real-time monitoring using smart mobile tools (mobile phones, smart watches, connected T-shirts, etc.).Entities:
Keywords: ECG images; Raspberry; cardiac arrhythmia classification; deep learning; healthcare
Year: 2022 PMID: 36009560 PMCID: PMC9405719 DOI: 10.3390/biomedicines10082013
Source DB: PubMed Journal: Biomedicines ISSN: 2227-9059
Data description.
| Class | Training Dataset | Test Dataset | Total Dataset |
|---|---|---|---|
| Normal | 227 | 57 | 284 |
| MI | 191 | 48 | 239 |
| HMI | 137 | 35 | 102 |
| ABH | 186 | 47 | 233 |
| Total dataset | 741 | 187 | 928 |
Figure 1MobileNet V2 architecture for transfer learning.
Figure 2MobileNet V2 architecture for fine-tuning.
Figure 3VGG16 architecture for transfer learning.
Figure 4VGG16 architecture for fine-tuning.
MobileNet Transfer Learning summary.
| Layer Type | Output Shape | Param |
|---|---|---|
| mobilenet_1.00_224 (Functional) | (None, 7, 7, 1024) | 3,228,864 |
| global_average_pooling2d | (None, 1024) | 0 |
| dropout (Dropout) | (None, 1024) | 0 |
| dense (Dense) | (None, 1024) | 1,049,600 |
| dense_1 (Dense) | (None, 1024) | 1,049,600 |
| dense_2 (Dense) | (None, 512) | 524,800 |
| dense_3 (Dense) | (None, 512) | 262,656 |
| dense_4 (Dense) | (None, 5) | 2565 |
| Non-trainable params: 3,228,864 |
MobileNet Fine Tuning summary.
| Layer Type | Output Shape | Param |
|---|---|---|
| mobilenet_1.00_224 (Functional) | (None, 7, 7, 1024) | 3,228,864 |
| global_average_pooling2d | (None, 1024) | 0 |
| dropout_1 (Dropout) | (None, 1024) | 0 |
| dense_5 (Dense) | (None, 1024) | 1,049,600 |
| dense_6 (Dense) | (None, 1024) | 1,049,600 |
| dense_7 (Dense) | (None, 512) | 524,800 |
| dense_8 (Dense) | (None, 512) | 262,656 |
| dense_9 (Dense) | (None, 4) | 2052 |
| Non-trainable params: 3,228,864 |
VGG16 Transfer Learning summary.
| Layer Type | Output Shape | Param |
|---|---|---|
| vgg16 (Functional) | (None, 7, 7, 512) | 14,714,688 |
| flatten_1 (Flatten) | (None, 25,088) | 0 |
| dense_4 (Dense) | (None, 1024) | 25,691,136 |
| dense_5 (Dense) | (None, 512) | 524,800 |
| dense_6 (Dense) | (None, 512) | 262,656 |
| dense_7 (Dense) | (None, 4) | 2052 |
VGG16 Fine Tuning summary.
| Layer Type | Output Shape | Param |
|---|---|---|
| vgg16 (Functional) | (None, 7, 7, 512) | 14,714,688 |
| flatten_1 (Flatten) | (None, 25,088) | 0 |
| dense (Dense) | (None, 1024) | 25,691,136 |
| dense_1 (Dense) | (None, 512) | 524,800 |
| dense_2 (Dense) | (None, 512) | 262,656 |
| dense_3 (Dense) | (None, 4) | 2052 |
Figure 5ECG images modifications after the data augmentation process.
Classification report for MobileNet V2 transfer learning.
| Precision | Recall | f1-Score | Support | |
|---|---|---|---|---|
| Normal | 0.95 | 0.87 | 0.91 | 47 |
| Abnormal heartbeat (ABH) | 0.88 | 0.86 | 0.87 | 35 |
| Previous history of MI (HMI) | 0.98 | 1.00 | 0.99 | 48 |
| Myocardial infarction (MI) | 0.90 | 0.96 | 0.93 | 57 |
| accuracy | 0.93 | 187 | ||
| macro avg | 0.93 | 0.92 | 0.93 | 187 |
| weighted avg | 0.93 | 0.93 | 0.93 | 187 |
Classification report for MobileNet V2 fine-tuning.
| Precision | Recall | f1-score | Support | |
|---|---|---|---|---|
| Normal | 1.00 | 0.89 | 0.94 | 47 |
| Abnormal heartbeat (ABH) | 0.91 | 0.91 | 0.91 | 35 |
| Previous history of MI (HMI) | 1.00 | 1.00 | 1.00 | 48 |
| Myocardial infarction (MI) | 0.90 | 0.98 | 0.94 | 57 |
| accuracy | 0.95 | 187 | ||
| macro avg | 0.95 | 0.95 | 0.95 | 187 |
| weighted avg | 0.95 | 0.95 | 0.95 | 187 |
Classification report for VGG16 transfer learning.
| Precision | Recall | f1-score | Support | |
|---|---|---|---|---|
| Normal | 0.95 | 0.77 | 0.85 | 47 |
| Abnormal heartbeat (ABH) | 0.91 | 0.89 | 0.90 | 35 |
| Previous history of MI (HMI) | 0.89 | 1.00 | 0.94 | 48 |
| Myocardial infarction (MI) | 0.90 | 0.96 | 0.93 | 57 |
| accuracy | 0.91 | 187 | ||
| macro avg | 0.91 | 0.90 | 0.90 | 187 |
| weighted avg | 0.91 | 0.91 | 0.91 | 187 |
Classification Rerort for VGG16 fine-tuning.
| Precision | Recall | f1-score | Support | |
|---|---|---|---|---|
| Normal | 0.95 | 0.87 | 0.91 | 47 |
| Abnormal heartbeat (ABH) | 0.94 | 0.89 | 0.91 | 35 |
| Previous history of MI (HMI) | 1.00 | 1.00 | 1.00 | 48 |
| Myocardial infarction (MI) | 0.90 | 1.00 | 0.95 | 57 |
| accuracy | 0.95 | 187 | ||
| macro avg | 0.95 | 0.94 | 0.94 | 187 |
| weighted avg | 0.95 | 0.95 | 0.95 | 187 |
Figure 6Confusion matrix for the MobileNet V2 model.
Figure 7Confusion matrix for the VGG16 model.