| Literature DB >> 36132548 |
Kogilavani Shanmugavadivel1, V E Sathishkumar2, M Sandeep Kumar3, V Maheshwari3, J Prabhu3, Shaikh Muhammad Allayear4.
Abstract
The level of patient's illness is determined by diagnosing the problem through different methods like physically examining patients, lab test data, and history of patient and by experience. To treat the patient, proper diagnosis is very much important. Arrhythmias are irregular variations in normal heart rhythm, and detecting them manually takes a long time and relies on clinical skill. Currently machine learning and deep learning models are used to automate the diagnosis by capturing unseen patterns from datasets. This research work concentrates on data expansion using augmentation technique which increases the dataset size by generating different images. The proposed system develops a medical diagnosis system which can be used to classify arrhythmia into different categories. Initially, machine learning techniques like Support Vector Machine (SVM), Naïve Bayes (NB), and Logistic Regression (LR) are used for diagnosis. In general deep learning models are used to extract high level features and to provide improved performance over machine learning algorithms. In order to achieve this, the proposed system utilizes a deep learning algorithm known as Convolutional Neural Network-baseline model for arrhythmia detection. The proposed system also adopts a novel hyperparameter tuned CNN model to acquire optimal combination of parameters that minimizes loss function and produces better result. The result shows that the hyper-tuned model outperforms other machine learning models and CNN baseline model for accurate classification of normal and other five different arrhythmia types.Entities:
Mesh:
Year: 2022 PMID: 36132548 PMCID: PMC9484938 DOI: 10.1155/2022/8571970
Source DB: PubMed Journal: Comput Math Methods Med ISSN: 1748-670X Impact factor: 2.809
Literature study.
| Author | Model | Approach | Dataset | Evaluation |
|---|---|---|---|---|
| Acharya et al. [ | Convolutional Neural Network | Deep CNN with 11 input layers and 4 output neurons | MIT-BIH | Accuracy—92.5% |
| Isin and Ozdalili [ | Artificial Neural Network and transferred deep learning | Transferred deep CNN is used to extract features and then applied Artificial Neural Network (ANN) | MIT-BIH | Accuracy—92% |
| Zubair et al. [ | Convolutional Neural Network and LSTM | Dropout regularization | MIT-BIH | Accuracy—91.8% |
| Ribeiro et al. [ | Deep Neural Network | Stacked transformations | CODE | F1-Score—above 80% |
| Porumb et al. [ | CNN | Multilayer perceptron for raw signal classification | MIT-BIH(250 samples) | Accuracy—97% |
| Khan et al. [ | Deep Neural Network | MobileNet | Manual dataset | Accuracy—98% |
| Atal and Singh [ | Deep CNN | Bat-Rider Optimization algorithm | MIT-BIH | Accuracy—93.19% |
| Zheng et al. [ | Ensemble models | Hyper-tuned classification model | Manually generate dataset | F1-Score—97% |
| Mathunjwa et al. [ | CNN | Hyperparameter tuning | MIT-BIH | Accuracy—95. 3% |
| Jun et al. [ | CNN | AlexNet, VGGNet | MIT-BIH | Accuracy—99.05% |
| Hu et al. [ | CNN-Transformer-based model | Classification and positioning | MIT-BIH | Accuracy—99.49% |
| Yıldırım et al. [ | 1D-CNN | ECG signal fragments based on one lead | MIT-BIH | Accuracy—91.33% |
| Li et al. [ | SE-ResNet deep learning model | 19-layer deep squeeze-and-excitation residual network | MIT-BIH | Accuracy—99.61% |
| Sharma et al. [ | LSTM | Rhythm-based method | MIT-BIH | Accuracy—90.07% |
| Simonyan and Zisserman [ | Deep learning | ConvNet | ILSVRC-2012 | Accuracy—93.2% |
| Damaševičius et al. [ | Machine learning | KNN | Time series dataset | Accuracy—86% |
| Naz et al. [ | Deep learning | AlexNet, VGG-16, Inception-V3 | MIT-BIH | Accuracy—97.6% |
Figure 1The proposed system work flow.
Figure 2Shape of ECG images with different arrhythmia types.
Augmented ECG image dataset.
| Class labels | Training data | Test data |
|---|---|---|
| Normal | 7346 | 2179 |
| LBBB | 504 | 341 |
| PAC | 2054 | 1503 |
| PVC | 2759 | 1645 |
| RBBB | 2239 | 915 |
| VF | 439 | 242 |
Figure 3Sample augmented ECG image.
Figure 4Convolutional neural network-baseline model.
CNN-Baseline model summary.
| Layer (type) | Output shape | Number of parameters |
|---|---|---|
| conv2d (Conv2D) | (None, 62, 62, 32) | 320 |
| max_pooling2d (MaxPooling2D) | (None, 31, 31, 32) | 0 |
| Flatten (flatten) | (None, 30752) | 0 |
| Dense (dense) | (None, 128) | 3,936,384 |
| Dense_1 (dense) | (None, 6) | 774 |
| Total params: 3,937,478 | Trainable params: 3,937,478 | Nontrainable params: 0 |
Figure 5Hyperparameter tuning process workflow.
Figure 6Hyper tuned Model Work Flow.
CNN-Hyper-tuned model summary.
| Layer (type) | Output shape | Number of parameters |
|---|---|---|
| Conv2d_4 (Conv2D) | (None, 62, 62, 16) | 448 |
| Conv2d_5 (Conv2D) | (None, 60, 60, 16) | 2320 |
| Max_pooling2d_2 (MaxPooling 2D) | (None, 15, 15, 16) | 0 |
| Dropout (dropout) | (None, 15, 15, 16) | 0 |
| Conv2d_6 (Conv2D) | (None, 13, 13, 32) | 4640 |
| Conv2d_7 (Conv2D) | (None, 11, 11, 64) | 18496 |
| Max_pooling2d_3 (MaxPooling 2D) | (None, 5, 5, 64) | 0 |
| Dropout (dropout) | (None, 5, 5, 64) | 0 |
| Flatten_1 (flatten) | (None, 1600) | 0 |
| Dense_3 (dense) | (None, 128) | 204928 |
| Dropout_2 (dropout) | (None, 128) | 0 |
| Dense_3 (dense) | (None, 6) | 774 |
| Total params: 231,606 | Trainable params: 231,606 | Nontrainable params: 0 |
Performance evaluation.
| Model | Precision | Recall | F1-Score | Accuracy |
|---|---|---|---|---|
| SVM | 0.84 | 0.75 | 0.79 | 0.80 |
| Naïve Bayes | 0.77 | 0.79 | 0.78 | 0.73 |
| Logistic Regression | 0.67 | 0.80 | 0.73 | 0.70 |
| CNN-Baseline model | 0.88 | 0.90 | 0.89 | 0.91 |
| CNN-Hyper-tuned model | 0.92 | 0.90 | 0.91 | 0.94 |
Figure 7Performance evaluation of proposed models based on precision.
Figure 8Performance evaluation of proposed models based on recall.
Figure 9Performance evaluation of proposed models based on F1-Score.
Figure 10Performance evaluation of proposed models based on F1-Score.
Figure 11Accuracy and loss values of CNN-Baseline model.
Hyperparameters and their values in the CNN-Hyper-tuned model.
| Hyperparameters | Trail 1 | Trail 2 | Trail 3 | Trail 4 | Trail 5 |
|---|---|---|---|---|---|
| conv_1_filter | 80 | 80 | 112 | 96 | 64 |
| conv_1_kernel | 5 | 5 | 5 | 3 | 3 |
| conv_2_filter | 56 | 64 | 56 | 64 | 48 |
| conv_4_filter | 32 | 40 | 48 | 48 | 56 |
| dense_1_units | 80 | 80 | 128 | 64 | 64 |
| dense_2_units | 80 | 96 | 64 | 112 | 128 |
| Learning_rate | 0.01 | 0.001 | 0.01 | 0.001 | 0.01 |
| Score | 0.78123 | 0.83211 | 0.88993 | 0.94375 | 0.93531 |
Confusion matrix–SVM.
| Normal | LBBB | PAC | PVC | RBBB | VF | |
|---|---|---|---|---|---|---|
| Normal | 1743 | 101 | 102 | 105 | 107 | 71 |
| LBBB | 11 | 273 | 17 | 15 | 11 | 14 |
| PAC | 52 | 218 | 1316 | 34 | 15 | 10 |
| PVC | 63 | 41 | 47 | 1202 | 106 | 44 |
| RBBB | 45 | 30 | 28 | 40 | 732 | 40 |
| VF | 9 | 15 | 7 | 10 | 7 | 194 |
Confusion matrix–Naïve Bayes.
| Normal | LBBB | PAC | PVC | RBBB | VF | |
|---|---|---|---|---|---|---|
| Normal | 1590 | 182 | 101 | 93 | 113 | 100 |
| LBBB | 23 | 249 | 16 | 15 | 17 | 21 |
| PAC | 120 | 117 | 1200 | 98 | 63 | 47 |
| PVC | 56 | 153 | 76 | 1097 | 42 | 79 |
| RBBB | 23 | 39 | 87 | 44 | 667 | 55 |
| VF | 10 | 17 | 15 | 11 | 13 | 176 |
Confusion matrix–Logistic Regression.
| Normal | LBBB | PAC | PVC | RBBB | VF | |
|---|---|---|---|---|---|---|
| Normal | 1525 | 203 | 63 | 159 | 178 | 51 |
| LBBB | 13 | 238 | 35 | 16 | 10 | 29 |
| PAC | 56 | 189 | 1151 | 83 | 153 | 13 |
| PVC | 51 | 73 | 67 | 1052 | 203 | 57 |
| RBBB | 98 | 58 | 23 | 62 | 640 | 34 |
| VF | 19 | 23 | 12 | 10 | 9 | 169 |
Confusion matrix–CNN-Baseline model.
| Normal | LBBB | PAC | PVC | RBBB | VF | |
|---|---|---|---|---|---|---|
| Normal | 1982 | 18 | 46 | 52 | 63 | 18 |
| LBBB | 11 | 310 | 9 | 5 | 2 | 4 |
| PAC | 75 | 21 | 1496 | 11 | 26 | 16 |
| PVC | 13 | 25 | 34 | 1367 | 42 | 22 |
| RBBB | 13 | 11 | 19 | 23 | 832 | 12 |
| VF | 1982 | 18 | 46 | 52 | 63 | 18 |
Confusion matrix–CNN-Hyper-tuned model.
| Normal | LBBB | PAC | PVC | RBBB | VF | |
|---|---|---|---|---|---|---|
| Normal | 2048 | 29 | 15 | 43 | 23 | 21 |
| LBBB | 1 | 320 | 3 | 4 | 2 | 11 |
| PAC | 26 | 14 | 1546 | 16 | 28 | 15 |
| PVC | 11 | 13 | 35 | 1412 | 25 | 7 |
| RBBB | 9 | 11 | 12 | 10 | 860 | 13 |
| VF | 2 | 1 | 3 | 4 | 5 | 227 |