| Literature DB >> 32501424 |
Mohammad Rahimzadeh1, Abolfazl Attar2.
Abstract
In this paper, we have trained several deep convolutional networks with introduced training techniques for classifying X-ray images into three classes: normal, pneumonia, and COVID-19, based on two open-source datasets. Our data contains 180 X-ray images that belong to persons infected with COVID-19, and we attempted to apply methods to achieve the best possible results. In this research, we introduce some training techniques that help the network learn better when we have an unbalanced dataset (fewer cases of COVID-19 along with more cases from other classes). We also propose a neural network that is a concatenation of the Xception and ResNet50V2 networks. This network achieved the best accuracy by utilizing multiple features extracted by two robust networks. For evaluating our network, we have tested it on 11302 images to report the actual accuracy achievable in real circumstances. The average accuracy of the proposed network for detecting COVID-19 cases is 99.50%, and the overall average accuracy for all classes is 91.4%.Entities:
Keywords: COVID-19; Chest X-ray images; Convolutional neural networks; Coronavirus; Deep feature extraction; Deep learning; Transfer learning
Year: 2020 PMID: 32501424 PMCID: PMC7255267 DOI: 10.1016/j.imu.2020.100360
Source DB: PubMed Journal: Inform Med Unlocked ISSN: 2352-9148
Fig. 1The architecture of the concatenated network.
Composition of the number of allocated images to training and validation set in both datasets.
| Dataset | COVID-19 | Pneumonia | Normal |
|---|---|---|---|
| covid chestxray dataset | 180 | 42 | 0 |
| rsna pneumonia detection challenge | 0 | 6012 | 8851 |
| Total | 180 | 6054 | 8851 |
| Training Set | 149 | 1634 | 2000 |
| Validation Set | 31 | 4420 | 6851 |
Fig. 3The flowchart of the proposed method for training set preparation.
Fig. 2Examples of the images in our dataset.
In this table, we have listed the parameters and functions we used in the training procedure.
| Training Parameters | Xception | ResNet50V2 | Concatenated |
|---|---|---|---|
| Learning Rate | 1e-4 | 1e-4 | 1e-4 |
| Batch Size | 30 | 30 | 20 |
| Optimizer | Nadam | Nadam | Nadam |
| Categorical | Categorical | Categorical | |
| Epochs per each | 100 | 100 | |
| Horizontal/Vertical flipping | Yes | Yes | |
| Zoom Range | 5% | 5% | 5% |
| Rotation Range | 0–360° | 0–360° | 0–360° |
| Width/Height | 5% | 5% | |
| Shift Range | 5% | 5% | 5% |
| Re-scaling | 1/255 | 1/255 | 1/255 |
Fig. 4This figure shows the confusion matrix of the network for fold 1 and 3.
This table reports the number of true and false positives and false negatives for each class.
| Fold | Network | COVID-19 | COVID-19 | COVID-19 | PNEUMONIA | PNEUMONIA | PNEUMONIA | NORMAL | NORMAL | NORMAL |
|---|---|---|---|---|---|---|---|---|---|---|
| Xception | 26 | 5 | 101 | 3983 | 437 | 569 | 6245 | 606 | 378 | |
| ResNet50V2 | 27 | 4 | 96 | 3858 | 562 | 480 | 6334 | 517 | 507 | |
| Concatenated | 26 | 5 | 68 | 3745 | 675 | 309 | 6526 | 325 | 628 | |
| Xception | 23 | 8 | 42 | 3874 | 546 | 409 | 6426 | 425 | 528 | |
| ResNet50V2 | 22 | 9 | 67 | 3659 | 761 | 501 | 6340 | 511 | 713 | |
| Concatenated | 23 | 8 | 27 | 3913 | 507 | 434 | 6413 | 438 | 492 | |
| Xception | 21 | 9 | 28 | 3942 | 478 | 436 | 6411 | 440 | 463 | |
| ResNet50V2 | 22 | 8 | 97 | 3770 | 650 | 392 | 6433 | 418 | 587 | |
| Concatenated | 25 | 5 | 35 | 3847 | 573 | 342 | 6502 | 349 | 550 | |
| Xception | 22 | 9 | 42 | 3818 | 602 | 433 | 6411 | 440 | 576 | |
| ResNet50V2 | 22 | 9 | 78 | 4015 | 405 | 758 | 6065 | 786 | 364 | |
| Concatenated | 26 | 5 | 77 | 3860 | 560 | 480 | 6340 | 511 | 519 | |
| Xception | 21 | 10 | 41 | 4041 | 379 | 502 | 6335 | 516 | 362 | |
| ResNet50V2 | 21 | 10 | 42 | 3604 | 816 | 284 | 6549 | 302 | 802 | |
| Concatenated | 24 | 7 | 43 | 3941 | 479 | 390 | 6442 | 409 | 462 |
Some of the evaluation metrics have been reported in this table.
| Fold | Network | Accuracy | COVID-19 | PNEUMONIA | NORMAL | COVID-19 | PNEUMONIA | NORMAL | COVID-19 | PNEUMONIA | NORMAL | COVID-19 | PNEUMONIA | NORMAL |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Xception | 90.72 | 83.87 | 90.11 | 91.15 | 99.1 | 91.73 | 91.51 | 99.06 | 91.10 | 91.29 | 20.47 | 87.50 | 94.29 | |
| ResNet50V2 | 90.41 | 87.09 | 87.28 | 92.45 | 99.15 | 93.03 | 88.61 | 99.12 | 90.78 | 90.94 | 21.95 | 88.93 | 92.58 | |
| Concatenated | 91.10 | 83.87 | 84.72 | 95.25 | 99.4 | 95.51 | 85.89 | 99.35 | 91.29 | 91.57 | 27.65 | 92.37 | 91.22 | |
| Xception | 91.33 | 74.19 | 87.64 | 93.79 | 99.63 | 94.06 | 88.14 | 99.56 | 91.55 | 91.57 | 35.38 | 90.45 | 92.40 | |
| ResNet50V2 | 88.66 | 70.96 | 82.78 | 92.54 | 99.41 | 92.72 | 83.98 | 99.33 | 88.83 | 89.17 | 24.71 | 87.95 | 89.89 | |
| Concatenated | 91.56 | 74.19 | 88.52 | 93.60 | 99.76 | 93.69 | 88.95 | 99.69 | 91.67 | 91.77 | 46 | 90.01 | 92.87 | |
| Xception | 91.79 | 70 | 89.18 | 93.57 | 99.75 | 93.66 | 89.6 | 99.67 | 91.91 | 92.01 | 42.85 | 90.04 | 93.26 | |
| ResNet50V2 | 90.47 | 73.33 | 85.29 | 93.89 | 99.14 | 94.30 | 86.81 | 99.07 | 90.78 | 91.11 | 18.48 | 90.58 | 91.63 | |
| Concatenated | 91.79 | 83.33 | 87.03 | 94.90 | 99.69 | 95.03 | 87.64 | 99.65 | 91.90 | 92.04 | 41.66 | 91.83 | 92.20 | |
| Xception | 90.70 | 70.96 | 86.38 | 93.57 | 99.63 | 93.71 | 87.06 | 99.55 | 90.84 | 91.01 | 34.37 | 89.81 | 91.75 | |
| ResNet50V2 | 89.38 | 70.96 | 90.83 | 88.52 | 99.31 | 88.99 | 91.82 | 99.23 | 89.71 | 89.82 | 22 | 84.11 | 94.33 | |
| Concatenated | 90.47 | 83.87 | 87.33 | 92.54 | 99.32 | 93.03 | 88.34 | 99.27 | 90.8 | 90.89 | 25.24 | 88.94 | 92.43 | |
| Xception | 91.99 | 67.74 | 91.42 | 92.46 | 99.64 | 92.71 | 91.87 | 99.55 | 92.20 | 92.23 | 33.87 | 88.95 | 94.59 | |
| ResNet50V2 | 90.01 | 67.74 | 81.53 | 95.59 | 99.63 | 95.87 | 81.98 | 99.54 | 90.27 | 90.23 | 33.33 | 92.69 | 89.08 | |
| Concatenated | 92.08 | 77.41 | 89.16 | 94.03 | 99.62 | 94.33 | 89.62 | 99.56 | 92.31 | 92.29 | 35.82 | 90.99 | 93.30 | |
| Xception | 91.31 | 73.35 | 88.95 | 92.91 | 99.55 | 93.17 | 89.63 | 99.48 | 91.52 | 91.62 | 33.39 | 89.35 | 93.26 | |
| ResNet50V2 | 89.79 | 74.02 | 85.54 | 92.60 | 99.33 | 92.98 | 86.64 | 99.26 | 90.07 | 90.25 | 24.09 | 88.85 | 91.50 | |
| Concatenated | 91.40 | 80.53 | 87.35 | 94.06 | 99.56 | 94.32 | 88.09 | 99.50 | 91.60 | 91.71 | 35.27 | 90.83 | 92.40 |