| Literature DB >> 33042210 |
Abstract
COVID-19 is a disease that causes symptoms in the lungs and causes deaths around the world. Studies are ongoing for the diagnosis and treatment of this disease, which is defined as a pandemic. Early diagnosis of this disease is important for human life. This process is progressing rapidly with diagnostic studies based on deep learning. Therefore, to contribute to this field, a deep learning-based approach that can be used for early diagnosis of the disease is proposed in our study. In this approach, a data set consisting of 3 classes of COVID19, normal and pneumonia lung X-ray images was created, with each class containing 364 images. Pre-processing was performed using the image contrast enhancement algorithm on the prepared data set and a new data set was obtained. Feature extraction was completed from this data set with deep learning models such as AlexNet, VGG19, GoogleNet, and ResNet. For the selection of the best potential features, two metaheuristic algorithms of binary particle swarm optimization and binary gray wolf optimization were used. After combining the features obtained in the feature selection of the enhancement data set, they were classified using SVM. The overall accuracy of the proposed approach was obtained as 99.38%. The results obtained by verification with two different metaheuristic algorithms proved that the approach we propose can help experts during COVID-19 diagnostic studies.Entities:
Keywords: BGWO; BPSO; COVID-19; Deep learning models; Pneumonia
Year: 2020 PMID: 33042210 PMCID: PMC7538100 DOI: 10.1016/j.bspc.2020.102257
Source DB: PubMed Journal: Biomed Signal Process Control ISSN: 1746-8094 Impact factor: 3.880
Fig. 1Dataset samples from original and enhancement data set.
Model parameters.
| Model | Image Size | Optimization | Mini Batch | Momentum | Learning Rate |
|---|---|---|---|---|---|
| AlexNet | 227 × 227 | Stochastic Gradient Descent (SGD) | 64 | 0.9 | 1e-5 |
| VGG19 | 224 × 224 | Stochastic Gradient Descent (SGD) | 64 | 0.9 | 1e-5 |
| GoogleNet | 224 × 224 | Stochastic Gradient Descent (SGD) | 64 | 0.9 | 1e-5 |
| ResNet | 224 × 224 | Stochastic Gradient Descent (SGD) | 64 | 0.9 | 1e-5 |
Structure of Models.
| Models | Size (M) | #layers | Model description |
|---|---|---|---|
| AlexNet | 238 | 8 | 5 conv+3 fc layers |
| VGG19 | 560 | 19 | 16 conv+3 fc layers |
| GoogleNet | 40 | 22 | 21 conv+1 fc layers |
| ResNet | 235 | 50 | 49 conv+1 fc layers |
Fig. 2Support Vector Machine.
* Default parameters of the Matlab program were used for SVM.
Fig. 3Graphical abstract of MH-CovidNet.
Fig. 4Confusion matrix for 2-class.
Fig. 5Confusion matrix obtained from VGG19 for the original dataset.
Fig. 6Training and validation accuracy of the models on the enhancement dataset.
Fig. 7Confusion matrix obtained from VGG19 for the enhancement dataset.
Metric values of the confusion matrix of models.
| Original Data | Enhancement Data | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | Classes | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
| AlexNet | COVID-19 | 99.54 | 99.09 | 99.69 | 97.55 | 98.16 | 98.16 | 98.77 | 97.55 |
| Pneumonia | 96.83 | 95.53 | 97.85 | 97.71 | 97.27 | 98.47 | |||
| Normal | 96.26 | 98.09 | 97.55 | 96.77 | 97.22 | 97.85 | |||
| VGG19 | COVID-19 | 100 | 100 | 100 | 98.16 | 99.53 | 100 | 99.69 | 98.47 |
| Pneumonia | 97.27 | 96.39 | 98.16 | 98.16 | 98.16 | 98.77 | |||
| Normal | 97.22 | 98.13 | 98.16 | 97.71 | 97.27 | 98.47 | |||
| GoogleNet | COVID-19 | 98.16 | 98.16 | 98.77 | 95.1 | 99.09 | 98.19 | 99.38 | 96.94 |
| Pneumonia | 94.59 | 92.92 | 96.33 | 96.33 | 96.33 | 97.55 | |||
| Normal | 92.52 | 94.28 | 95.10 | 95.37 | 96.26 | 96.94 | |||
| ResNet | COVID-19 | 98.60 | 100 | 99.08 | 95.71 | 98.63 | 98.18 | 99.08 | 96.94 |
| Pneumonia | 94.59 | 92.92 | 96.33 | 96.83 | 95.53 | 97.85 | |||
| Normal | 94.00 | 94.44 | 96.02 | 95.32 | 97.14 | 96.94 | |||
Fig. 8Confusion matrices with the method of 5-fold cross-validation for enhancement data.
Metric values of the confusion matrix of models (cross validation).
| Model & Data Type | Classes | F-Scr (%) | Se. (%) | Sp. (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
|---|---|---|---|---|---|---|---|
| AlexNet & Enhancement Data | COVID-19 | 99.44 | 99.17 | 99.86 | 99.72 | 99.63 | 97.98 |
| Pneumonia | 97.40 | 98.07 | 98.35 | 96.74 | 98.26 | ||
| Normal | 97.10 | 96.70 | 98.76 | 97.50 | 98.07 | ||
| VGG19 & Enhancement Data | COVID-19 | 99.58 | 99.45 | 99.86 | 99.72 | 99.72 | 98.71 |
| Pneumonia | 98.36 | 99.17 | 98.76 | 97.56 | 98.90 | ||
| Normal | 98.20 | 97.52 | 99.45 | 98.88 | 98.80 | ||
| GoogleNet & Enhancement Data | COVID-19 | 98.48 | 98.07 | 99.45 | 98.89 | 98.99 | 95.6 |
| Pneumonia | 94.76 | 96.97 | 96.15 | 92.65 | 96.42 | ||
| Normal | 93.55 | 91.75 | 97.80 | 95.42 | 95.78 | ||
| ResNet & Enhancement Data | COVID-19 | 98.06 | 97.52 | 99.31 | 98.61 | 98.71 | 96.61 |
| Pneumonia | 96.62 | 98.35 | 97.39 | 94.96 | 97.71 | ||
| Normal | 95.13 | 93.95 | 98.21 | 96.33 | 96.79 |
Metric values obtained using the BPSO method.
| Model & Data Type | Classes | Total of Features | Test Data % | F-Scr (%) | Se. (%) | Sp. (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
|---|---|---|---|---|---|---|---|---|---|
| AlexNet & Enhancement Data | COVID-19 | 499 | 30 | 100 | 100 | 100 | 100 | 100 | 99.08 |
| Pneumonia | 98.63 | 99.08 | 99.08 | 98.18 | 99.08 | ||||
| Normal | 98.61 | 98.16 | 99.54 | 99.07 | 99.08 | ||||
| VGG19 & Enhancement Data | COVID-19 | 488 | 30 | 99.54 | 100 | 99.54 | 99.09 | 99.69 | 99.38 |
| Pneumonia | 99.54 | 100 | 99.54 | 99.09 | 99.69 | ||||
| Normal | 99.07 | 98.16 | 100 | 100 | 99.38 | ||||
| GoogleNet & Enhancement Data | COVID-19 | 488 | 30 | 98.60 | 97.24 | 100 | 100 | 99.08 | 95.71 |
| Pneumonia | 95.06 | 97.24 | 96.33 | 92.98 | 96.63 | ||||
| Normal | 93.51 | 92.66 | 97.24 | 94.39 | 95.71 | ||||
| ResNet & Enhancement Data | COVID-19 | 477 | 30 | 99.08 | 99.08 | 99.54 | 99.08 | 99.38 | 96.94 |
| Pneumonia | 96 | 99.08 | 96.33 | 93.10 | 97.24 | ||||
| Normal | 95.73 | 92.66 | 99.54 | 99.01 | 97.24 |
Metric values obtained using the BPSO method on combined features.
| Model | Classes | Total of Features | Test Data % | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) | k-fold | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AlexNet & VGG19 | COVID-19 | 987 | 30 | 100 | 100 | 100 | 99.08 | k=5 | 99.58 | 99.72 | 99.72 | 99.08 |
| Pneumonia | 98.63 | 98.18 | 99.08 | 98.90 | 98.36 | 99.26 | ||||||
| Normal | 98.61 | 99.07 | 99.08 | 98.75 | 99.16 | 99.17 | ||||||
| GoogleNet & ResNet | COVID-19 | 965 | 30 | 100 | 100 | 100 | 97.85 | k=5 | 98.89 | 99.44 | 99.26 | 97.06 |
| Pneumonia | 96.83 | 95.53 | 97.85 | 96.35 | 94.69 | 97.52 | ||||||
| Normal | 96.74 | 98.11 | 97.85 | 95.96 | 97.18 | 97.34 |
Fig. 9Confusion matrices obtained using the BPSO method.
Fig. 10Confusion matrices obtained using the BPSO method; (a) by combining the features of the AlexNet model with the VGG19 model (30% test data) (b) by combining the features of the GoogleNet model with the ResNet model (30% test data).
Metric values obtained using the BGWO method.
| Model &Data Type | Classes | Total of Features | Test Data % | F-Scr (%) | Se. (%) | Sp. (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
|---|---|---|---|---|---|---|---|---|---|
| AlexNet & Enhancement Data | COVID-19 | 575 | 30 | 99.54 | 100 | 99.54 | 99.09 | 99.69 | 98.16 |
| Pneumonia | 97.73 | 99.08 | 98.16 | 96.42 | 98.47 | ||||
| Normal | 97.19 | 95.41 | 99.54 | 99.04 | 98.16 | ||||
| VGG19 & Enhancement Data | COVID-19 | 627 | 30 | 99.074 | 98.16 | 100 | 100 | 99.38 | 98.47 |
| Pneumonia | 98.19 | 100 | 98.16 | 96.46 | 98.77 | ||||
| Normal | 98.14 | 97.24 | 99.54 | 99.06 | 98.77 | ||||
| GoogleNet & Enhancement Data | COVID-19 | 662 | 30 | 99.09 | 100 | 99.08 | 98.19 | 99.38 | 96.33 |
| Pneumonia | 95.45 | 96.33 | 97.24 | 94.59 | 96.94 | ||||
| Normal | 94.39 | 92.66 | 98.16 | 96.19 | 96.33 | ||||
| ResNet & Enhancement Data | COVID-19 | 572 | 30 | 98.16 | 98.16 | 99.08 | 98.16 | 98.77 | 96.94 |
| Pneumonia | 96.88 | 100 | 96.78 | 93.96 | 97.85 | ||||
| Normal | 95.73 | 92.66 | 99.54 | 99.01 | 97.24 |
Metric values obtained using the BGWO method on combined features.
| Model | Classes | Total of Features | Test Data % | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) | k-fold | F-Scr (%) | Pre. (%) | Acc. (%) | Overall Acc. (%) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AlexNet & VGG19 | COVID-19 | 1202 | 30 | 99.07 | 100 | 99.38 | 99.08 | k=5 | 99.58 | 99.72 | 99.72 | 98.99 |
| Pneumonia | 99.54 | 99.09 | 99.69 | 98.77 | 98.1 | 99.17 | ||||||
| Normal | 98.63 | 98.18 | 99.08 | 98.61 | 99.16 | 99.08 | ||||||
| GoogleNet & ResNet | COVID-19 | 1234 | 30 | 99.54 | 99.09 | 99.69 | 97.24 | k=5 | 98.75 | 99.16 | 99.17 | 97.16 |
| Pneumonia | 96.46 | 93.16 | 97.55 | 96.61 | 95.2 | 97.71 | ||||||
| Normal | 95.69 | 100 | 97.24 | 96.11 | 97.19 | 97.43 |
Fig. 11Confusion matrices obtained using the BGWO method.
Fig. 12Confusion matrices obtained using the BGWO method; (a) by combining the features of the AlexNet model with the VGG19 model (k fold value = 5). (b) by combining the features of the GoogleNet model with the ResNet model (k fold value = 5).
Comparison of the proposed MH-CovidNet with other existing deep learning methods.
| Study | Method used | Image Pre-Processing | Constrat Enhancement | Number of Cases | Accuracy % | Feature Size | Computation Time | |
|---|---|---|---|---|---|---|---|---|
| Hemdan et al [ | VGG19 | No | No | 25 COVID, 25 non-COVID, type of image:jpg and png | 90 | Not Available | Max:2645 s | |
| Toğaçar et al. [ | MobileNet and SqueezeNet | Yes | No | 295 COVID, 98 pneumonia, 65 normal, type of image:jpg and png | 99.27 | Min:663 Max:1357 | Not Available | |
| Zhang et al. [ | ResNet | No | No | 100 COVID, 1431 pneumonia, type of image:jpg and png | 95.18 | Not Available | Not Available | |
| Afshar et al. [ | CapsulNet | No | No | 94,323 x-ray images, type of image: png | 98.3 | Not Available | Not Available | |
| Apostolopoulos et al. [ | VGG19 | No | No | 224 COVID, 700 pneumonia,504 normal, type of image:jpg and png | 98.75 | Not Available | Not Available | |
| Ozturk et al. [ | DarkNet | No | No | 127 COVID, 500 pneumonia, 500 normal, type of image:jpg and png | 98.08 | Not Available | Not Available | |
| Uçar et al. [ | SqueezeNet and Bayesian optimization | Yes | No | 76 COVID, 1591 pneumonia, 1203 normal, type of image:jpg and png | 98.3 | Not Available | Max:2395 s | |
| AlexNet | Yes | Yes | 364 COVID, 364 pneumonia, 364 normal, type of image:jpg | 97.55 | 1000 | Max:2500 s | ||
| VGG19 | 98.47 | 1000 | ||||||
| GoogleNet | 96.94 | 1000 | ||||||
| ResNet | 96.94 | 1000 | ||||||
| BPSO | AlexNet | 99.08 | 499 | |||||
| VGG19 | 99.38 | 488 | ||||||
| GoogleNet | 95.71 | 488 | ||||||
| ResNet | 96.94 | 477 | ||||||
| BGWO | AlexNet | 98.16 | 575 | |||||
| VGG19 | 98.47 | 627 | ||||||
| GoogleNet | 96.33 | 662 | ||||||
| ResNet | 96.94 | 572 | ||||||