| Literature DB >> 35945966 |
Sohaib Asif1,2, Yi Wenhui1, Kamran Amjad1, Hou Jin3, Yi Tao4, Si Jinhai1.
Abstract
Coronavirus disease (COVID-19) is a pandemic that has caused thousands of casualties and impacts all over the world. Most countries are facing a shortage of COVID-19 test kits in hospitals due to the daily increase in the number of cases. Early detection of COVID-19 can protect people from severe infection. Unfortunately, COVID-19 can be misdiagnosed as pneumonia or other illness and can lead to patient death. Therefore, in order to avoid the spread of COVID-19 among the population, it is necessary to implement an automated early diagnostic system as a rapid alternative diagnostic system. Several researchers have done very well in detecting COVID-19; however, most of them have lower accuracy and overfitting issues that make early screening of COVID-19 difficult. Transfer learning is the most successful technique to solve this problem with higher accuracy. In this paper, we studied the feasibility of applying transfer learning and added our own classifier to automatically classify COVID-19 because transfer learning is very suitable for medical imaging due to the limited availability of data. In this work, we proposed a CNN model based on deep transfer learning technique using six different pre-trained architectures, including VGG16, DenseNet201, MobileNetV2, ResNet50, Xception, and EfficientNetB0. A total of 3886 chest X-rays (1200 cases of COVID-19, 1341 healthy and 1345 cases of viral pneumonia) were used to study the effectiveness of the proposed CNN model. A comparative analysis of the proposed CNN models using three classes of chest X-ray datasets was carried out in order to find the most suitable model. Experimental results show that the proposed CNN model based on VGG16 was able to accurately diagnose COVID-19 patients with 97.84% accuracy, 97.90% precision, 97.89% sensitivity, and 97.89% of F1-score. Evaluation of the test data shows that the proposed model produces the highest accuracy among CNNs and seems to be the most suitable choice for COVID-19 classification. We believe that in this pandemic situation, this model will support healthcare professionals in improving patient screening.Entities:
Keywords: COVID‐19 detection; VGG16; chest X‐rays; deep CNN; medical image analysis; transfer learning
Year: 2022 PMID: 35945966 PMCID: PMC9353436 DOI: 10.1111/exsy.13099
Source DB: PubMed Journal: Expert Syst ISSN: 0266-4720 Impact factor: 2.812
FIGURE 1Overall workflow of the proposed approach for three‐class problem.
FIGURE 2The architecture of our transfer learning models from the classification of COVID‐19.
FIGURE 3VGG16 architecture designed for multiclass classification.
FIGURE 4DenseNet201 architecture designed for multiclass classification.
FIGURE 5MobileNetV2 architecture designed for multiclass classification.
FIGURE 6ResNet50 architecture designed for multiclass classification.
FIGURE 7Xception architecture designed for multiclass classification.
FIGURE 8EfficientNetB0 architecture designed for multiclass classification.
FIGURE 9Sample of chest X‐ray from the dataset. The first row represents COVID‐19 images, the second row represents normal images, and the third row represents viral pneumonia images.
Chest X‐ray image dataset belonging to each class.
| Class | Number of images |
|---|---|
| COVID‐19 | 1200 |
| Viral pneumonia | 1345 |
| Normal | 1341 |
| Total | 3886 |
Parameters used to train the models.
| Performance measures | VGG16 | DenseNet201 | MobileNetV2 | ResNet50 | Xception | EfficientNetB0 |
|---|---|---|---|---|---|---|
| Batch Size | 64 | 64 | 64 | 64 | 64 | 64 |
| Layers | 16 | 201 | 53 | 50 | 71 | 237 |
| Optimizer | Adam | Adam | Adam | Adam | Adam | Adam |
| Parameters (M) | 138 | 20.2 | 3.4 | 25.6 | 22.9 | 5.3 |
| Activation function | Softmax | Softmax | Softmax | Softmax | Softmax | Softmax |
| Learning rate | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 |
| Custom input size | 224 × 224 | 224 × 224 | 224 × 224 | 224 × 224 | 224 × 224 | 224 × 224 |
| Testing accuracy | 0.978 | 0.957 | 0.942 | 0.974 | 0.937 | 0.959 |
FIGURE 10Confusion matrix.
Class‐wise sensitivity, F1‐score and precision for all the models.
| Model and class | Precision | Sensitivity |
| Accuracy |
|---|---|---|---|---|
| VGG16 | ||||
| COVID‐19 | 0.99 | 0.99 | 0.99 | |
| Viral pneumonia | 0.97 | 0.97 | 0.97 | |
| Normal | 0.98 | 0.97 | 0.97 | |
| Macro average | 0.98 | 0.98 | 0.98 | 0.978 |
| DenseNet201 | ||||
| COVID‐19 | 0.99 | 0.95 | 0.97 | |
| Viral pneumonia | 0.95 | 0.94 | 0.94 | |
| Normal | 0.94 | 0.98 | 0.96 | |
| Macro average | 0.96 | 0.96 | 0.96 | 0.957 |
| MobileNetV2 | ||||
| COVID‐19 | 1.00 | 0.93 | 0.96 | |
| Viral pneumonia | 0.89 | 0.96 | 0.92 | |
| Normal | 0.95 | 0.94 | 0.95 | |
| Macro average | 0.95 | 0.94 | 0.94 | 0.942 |
| ResNet50 | ||||
| COVID‐19 | 1.00 | 0.99 | 0.99 | |
| Viral pneumonia | 0.95 | 0.97 | 0.96 | |
| Normal | 0.97 | 0.96 | 0.97 | |
| Macro average | 0.98 | 0.97 | 0.98 | 0.974 |
| Xception | ||||
| COVID‐19 | 1.00 | 0.94 | 0.97 | |
| Viral pneumonia | 0.89 | 0.94 | 0.92 | |
| Normal | 0.94 | 0.93 | 0.93 | |
| Macro average | 0.94 | 0.94 | 0.94 | 0.937 |
| EfficientNetB0 | ||||
| COVID‐19 | 0.99 | 0.98 | 0.98 | |
| Viral pneumonia | 0.98 | 0.91 | 0.94 | |
| Normal | 0.92 | 0.99 | 0.96 | |
| Macro average | 0.96 | 0.96 | 0.96 | 0.959 |
Comparison of classification results of different models.
| Models | Accuracy | Precision | Sensitivity |
| MCC |
|---|---|---|---|---|---|
| VGG16 | 0.978 | 0.979 | 0.978 | 0.978 | 0.967 |
| DenseNet201 | 0.957 | 0.959 | 0.957 | 0.958 | 0.936 |
| MobileNetV2 | 0.942 | 0.946 | 0.941 | 0.943 | 0.914 |
| ResNet50 | 0.974 | 0.975 | 0.974 | 0.975 | 0.961 |
| Xception | 0.937 | 0.941 | 0.937 | 0.938 | 0.906 |
| EfficientNetB0 | 0.959 | 0.962 | 0.960 | 0.960 | 0.940 |
FIGURE 11Accuracy, precision, F1‐score, Matthew's correlation coefficient (MCC) and sensitivity for the proposed models.
FIGURE 12Confusion matrices for all deep CNN models (a) proposed VGG16 model, (b) DenseNet201, (c) MobileNetV2, (d) ResNet50, (e) Xception, (f) EfficientNetB0.
Comparison of computation time.
| Models | Training time (s) | Testing time (s) | Time per epoch |
|---|---|---|---|
| VGG16 | 952.20 | 17.31 | 47–48 |
| DenseNet201 | 1381.47 | 22.31 | 69–71 |
| MobileNetV2 | 808.99 | 16.36 | 40–41 |
| ResNet50 | 1010.64 | 17.80 | 50–51 |
| Xception | 2389.72 | 26.97 | 119–120 |
| EfficientNetB0 | 1169.24 | 16.64 | 58–59 |
Performance comparison with and without data augmentation.
| Technique | Accuracy | Precision | Sensitivity |
| MCC |
|---|---|---|---|---|---|
| With augmentation | 0.978 | 0.979 | 0.978 | 0.978 | 0.967 |
| Without augmentation | 0.966 | 0.968 | 0.966 | 0.967 | 0.949 |
Comparison of performance among different optimizers.
| Optimizers | Accuracy | Precision | Sensitivity |
| MCC |
|---|---|---|---|---|---|
| Adam | 0.978 | 0.979 | 0.978 | 0.978 | 0.967 |
| SGD | 0.951 | 0.953 | 0.952 | 0.952 | 0.927 |
| RMSProp | 0.955 | 0.958 | 0.956 | 0.956 | 0.933 |
| AdaDelta | 0.952 | 0.955 | 0.952 | 0.953 | 0.929 |
Performance comparison of proposed model with different batch sizes.
| Batch size | Accuracy | Precision | Sensitivity |
| MCC |
|---|---|---|---|---|---|
| 16 | 0.954 | 0.958 | 0.955 | 0.956 | 0.932 |
| 32 | 0.970 | 0.971 | 0.970 | 0.970 | 0.955 |
|
|
|
|
|
|
|
| 128 | 0.961 | 0.964 | 0.961 | 0.962 | 0.943 |
Note: Bold indicates the best values.
Accuracy comparison between the proposed CNN model and other existing state‐of‐the‐art methods.
| Author | Method | Dataset | Class | Accuracy |
|---|---|---|---|---|
| Wang et al. ( | COVID‐Net |
53 COVID‐19 5526 Non‐COVID‐19 and 8066 Normal | 3 | 0.933 |
| Apostolopoulos & Mpesiana ( | VGG19 |
224 COVID‐19 700 Pneumonia 504 Healthy | 3 | 0.934 |
| National Health Commission of People's Republic of China (2020) (He, | ResNet50 + SVM |
25 COVID‐19 25 Normal | 2 | 0.953 |
| Loey et al. ( | AlexNet |
79 COVID‐19 69 Normal 79 Pneumonia | 3 | 0.851 |
| Ozturk et al. ( | DarkNet |
127 COVID‐19 500 Normal 500 Pneumonia | 3 | 0.870 |
| Keles et al. ( | COV19‐ResNet |
210 COVID‐19 350 Normal 350 Pneumonia | 3 | 0.976 |
| Oh et al. ( | Patch‐Based CNN |
8851 Normal 6012 Pneumonia 180 COVID‐19 | 3 | 0.889 |
| Elzeki et al. ( | CXRVN |
221 COVID‐19 148 Pneumonia 234 Normal | 3 | 0.930 |
| El Asnaoui & Chawki ( |
VGG‐16 Inception_Resnet_V2 |
2780 bacterial pneumonia 231 Covid19 1583 normal | 3 |
0.921 0.748 |
| Khan et al. ( | CoroNet Xception |
310 Normal 327 Viral pneumonia 284 COVID‐19 | 3 | 0.896 |
| Jain et al. ( | ResNet101 |
440 COVID‐19 480 Viral pneumonia | 2 | 0.977 |
| Nigam, et al. ( | VGG16, Xception, EfficientNet |
795 COVID‐19 795 Normal 711 Others | 3 | 0.790, 0.880, 0.934 |
| Alhudhaif et al. ( | DenseNet201 |
368 COVID‐19 850 Other Pneumonia | 2 | 0.949 |
| Gilanie et al. ( | CNN |
7021 Pneumonia Images 7021 Normal Images 1066 Covid‐19 Images | 3 | 0.966 |
| Fayemiwo et al. ( | VGG16 |
1300 Pneumonia 1300 COVID‐19 1300 Normal | 3 | 0.938 |
| Gaur et al. ( |
VGG16 EfficientNetB0 |
1345 Viral Pneumonia 420 COVID‐19 1341 Normal | 3 | 0.878 |
| Proposed method |
VGG16 ResNet50 |
1200 COVID‐19 1341 Normal 1345 Viral Pneumonia | 3 |
0.978 0.974 |