Literature DB >> 33250589

CoroDet: A deep learning based classification for COVID-19 detection using chest X-ray images.

Emtiaz Hussain1, Mahmudul Hasan1, Md Anisur Rahman2, Ickjai Lee3, Tasmi Tamanna4, Mohammad Zavid Parvez1.   

Abstract

BACKGROUND AND
OBJECTIVE: The Coronavirus 2019, or shortly COVID-19, is a viral disease that causes serious pneumonia and impacts our different body parts from mild to severe depending on patient's immune system. This infection was first reported in Wuhan city of China in December 2019, and afterward, it became a global pandemic spreading rapidly around the world. As the virus spreads through human to human contact, it has affected our lives in a devastating way, including the vigorous pressure on the public health system, the world economy, education sector, workplaces, and shopping malls. Preventing viral spreading requires early detection of positive cases and to treat infected patients as quickly as possible. The need for COVID-19 testing kits has increased, and many of the developing countries in the world are facing a shortage of testing kits as new cases are increasing day by day. In this situation, the recent research using radiology imaging (such as X-ray and CT scan) techniques can be proven helpful to detect COVID-19 as X-ray and CT scan images provide important information about the disease caused by COVID-19 virus. The latest data mining and machine learning techniques such as Convolutional Neural Network (CNN) can be applied along with X-ray and CT scan images of the lungs for the accurate and rapid detection of the disease, assisting in mitigating the problem of scarcity of testing kits.
METHODS: Hence a novel CNN model called CoroDet for automatic detection of COVID-19 by using raw chest X-ray and CT scan images have been proposed in this study. CoroDet is developed to serve as an accurate diagnostics for 2 class classification (COVID and Normal), 3 class classification (COVID, Normal, and non-COVID pneumonia), and 4 class classification (COVID, Normal, non-COVID viral pneumonia, and non-COVID bacterial pneumonia).
RESULTS: The performance of our proposed model was compared with ten existing techniques for COVID detection in terms of accuracy. A classification accuracy of 99.1% for 2 class classification, 94.2% for 3 class classification, and 91.2% for 4 class classification was produced by our proposed model, which is obviously better than the state-of-the-art-methods used for COVID-19 detection to the best of our knowledge. Moreover, the dataset with x-ray images that we prepared for the evaluation of our method is the largest datasets for COVID detection as far as our knowledge goes.
CONCLUSION: The experimental results of our proposed method CoroDet indicate the superiority of CoroDet over the existing state-of-the-art-methods. CoroDet may assist clinicians in making appropriate decisions for COVID-19 detection and may also mitigate the problem of scarcity of testing kits.
© 2020 Elsevier Ltd. All rights reserved.

Entities:  

Keywords:  Accuracy; COVID-19; Confusion matrix; Convolutional neural network; Deep learning; Pneumonia-bacterial; Pneumonia-viral; X-ray

Year:  2020        PMID: 33250589      PMCID: PMC7682527          DOI: 10.1016/j.chaos.2020.110495

Source DB:  PubMed          Journal:  Chaos Solitons Fractals        ISSN: 0960-0779            Impact factor:   5.944


Introduction

COVID-19 pandemic started officially as soon as the pneumonia of unknown causes was reported in Wuhan city of Hubei province of China on December 31, 2019 [1], [2], [3]. The infectious disease was at first called SARS-CoV-2, and later it was named COVID-19 by World Health Organization (WHO). This new virus took only 30 days to spread from Wuhan to other parts of China [4]. At the initial stage, the COVID outbreak was declared to be a Public Health Emergency of International Concern on 30 January, 2020 [5] and later on 11 March, 2020, it was declared as a Pandemic by WHO. There are total 14,892,577 cases of C0VID-19 where active cases are 89,45,979 killing 6,14,208 people worldwide till 21st July, 2020 [6]. The United States of America observed it’s first seven cases on January 20, 2020 [7], which is now the most affected country by COVID-19 with total 39,63,376 cases and 1,43,889 deaths reported on 21st July 2020 [8]. Although this virus is commonly found among animals such as bats and cats, because of its zoonotic nature, the virus was transmitted from wild animals to the human body and later spread through human to human contact. Previously, two families of coronaviruses, namely severe acute respiratory syndrome virus (SARS-CoV) and the Middle East respiratory syndrome virus (MERS-CoV) caused severe respiratory diseases and deaths in humans [9]. COVID-19 genome has mutated quite a number of times in its lifetime till now. A study from University College London (UCL) identified 198 recurring mutations to the virus [10]. A study from the University of Glasgow, which also analyzed mutations, said these changes did not amount to different strains of the virus, but they advised that only one type of the virus is currently circulating [11]. The most common symptoms of COVID-19 are fever, sneezing, cough, sore throat, throat swelling, headache, weakness, malaise, and breathlessness [12]. The mostly used technique for COVID-19 detection is a real-time reverse transcription-polymerase chain reaction (RT-PCR), even though immunological tests are also available in many countries. Radiological images of the chest, such as computed tomography (CT) scanning and X-ray images, have rendered important roles in the rapid diagnosis to early management of this disease [13]. As the RT-PCR has a low sensitivity of 60%–70%, and it is also a time-consuming method, detecting pathological effects of COVID-19 by examining images of lungs of patients can ensure early treatment [14], [15]. It is to be noted that CT scanning is a more sensitive technique to detect pneumonia of COVID-19 and can be utilized as a screening tool along with RT-PRC [16]. Pathological changes of lungs CT scan can be observed for a long duration after the first appearance of the symptoms [17]. In a study, it was indicated that the survivors COVID-19 pneumonia, which is the most significant lung disease caused by this infection, started showing changes in their CT scan images ten days after the symptoms started [18]. The beginning of this pandemic, many countries, including China, are fighting insufficiency test kits as well as a scarcity of skilled laboratory technologists, resulting in a production of a high rate of false-negatives. As a result, doctors are encouraged to make decisions only based on X-ray and chest CT results [17], [19]. CT and X-ray images are widely used for COVID-19 detection in countries with a shortage of testing kits. Researchers claim that combination of clinical image features and laboratory results may help in early detection of COVID-19 [9], [16], [20], [21], [22]. Some studies have shown that they noticed changes in chest X-ray and CT scan images even before the appearance of clinical features of COVID-19 [23]. Significant discoveries have been made in studies by investigating X-RAY and CT scan results. For example, Kong et al. [9] claimed about opacities at the right infrahilar space found in a COVID-19 patient. Zu et al. [13] and Chung et al. informed that 33% of chest CT scans have reported round lung opacities. Zhao et al. [21] discovered ground-glass opacities (GGO) or mixed GGO in most of the patients with consolidation and vascular dilation in the lesions of some patients. Furthermore, Li and Xia [22] reported GGO and consolidation, thickening of interlobular septa and air bronchogram sign, with or without increased broncho-vascular markings to be the common CT findings in COVID-19 patients. Moreover, Yoon et al. [24] presented that one in three patients under study had a single nodular opacity in the left lower lung region, the other two had four and five irregular opacities in both lungs. Convolutional Neural Network (CNN) has become one of the most popular methods in Artificial intelligence (AI) in recent years. CNN has been successfully used in medical image analysis such as MRI [25], X-ray [26], CT scans [27], Ultrasonography [28] etc. CNN has also been very successful in natural language processing [29], computer vision [30], audio recognition [31] and speech recognition [32]. Furthermore, a neural network is a series of algorithms that recognize relationships in a set of data through a process that is very similar to human brain operation. This algorithm is very effective for pattern recognition and image processing. It takes images as input and builds a model that processes the images to extract the features from those images [33] and recognizes a pattern [34]. By using the pattern, CNN identifies the similarities of new inputs as accurately as possible. This algorithm is very popular because of its simple structure, adaptability, reduced training parameters, and low complexity of the network model. COVID-19 detection using CNN has become a well-established research technique after it has become a global pandemic. We have found excellent CNN based research works using both X-ray images and CT scan images to detect and classify COVID-19. Though these CNN techniques have achieved extraordinary results, they are not an alternative to actual testing methods yet. These techniques are very helpful in association with actual testing methods, but there is huge room for research and improvement before commercial use. A large number of researchers and data scientists are putting their efforts into building highly accurate and reliable deep learning-based detection techniques for detecting COVID-19. Researchers are focusing on deep learning techniques to specify features from both X-ray and CT images of COVID-19 patients. Ioannis et al. [35] proposed CNN architecture VGG19 to classify COVID-19 positive, COVID-19 negative, Normal patients, and achieved an accuracy of 93.48% using X-ray images. In another study, Wang and Wong [36] proposed a model known as COVID-Net for similar 3 class classification, which achieved an accuracy of 92.4% in X-ray images. Sethy et al. [37], in their research work, used ResNet50+SVM to classify COVID-19 and Normal and achieved an accuracy of 95.38%. Hemdan et al. [38] proposed a model COVIDX-net for 2 class classification which achieved an accuracy of 90.0%. In another research, Narin et al. [39] achieved an accuracy of 98% with their Deep CNN ResNet-50 model for 2 class classification. Ying et al. [40] proposed DRE-Net and classified COVID vs. non-COVID patients with an accuracy of 86% using CT scan images. Wang et al. [41] proposed a model M-Inception which achieved 82.9% accuracy for 2 class classifications in CT scan images. Zheng et al. [42] proposed a Unet+3D Deep Network, which achieved an accuracy of 90.8%. Their model was also performed on CT images. Xu et al. [43] proposed ResNet+Location Attention for 3 class classification (COVID-19, Pneumonia-viral, and Normal) which achieved an accuracy of 86.7% using CT images. Except for these works, there are some other works which were conducted based on CNN using CT images [44], [45]. Ozturk et al. [46] used X-ray images and proposed a model known as DarkCovidNet, which achieved an accuracy of 98.08% for 2 class and 87.02% for 3 class classification. In their study, they proposed a 17 layer CNN model. Most recently, Khan et al. [47] proposed a CNN model Coronet, which is based on Xception, has been used for 2 class, 3 class, and 4 class classification using X-ray images. They achieved an accuracy of 99%, 95%, and 89.6%, respectively. In this study, a 22-layer CNN model is proposed, which performs better than previously published CNN models in terms of 2 class, 3 class, and 4 class classification using X-ray images. Our proposed CNN model is based on a 22-layer network, which consists of convolutional, max pooling, dense layer, flatten layer, and three activation functions, namely Sigmoid, ReLU, and Leaky ReLU. We have evaluated the performance of our proposed model in terms of accuracy, precision, recall, F1 score, specificity, sensitivity, and confusion matrix. Though it is not replaceable against the existing testing methods, it can be very helpful to assist in the identification of COVID-19. The main contributions of the paper are as follows: A 22-layer CNN architecture, which has achieved an accuracy of 99.1% for 2 class classification, 94.2% for 3 class classification, and 91.2% for 4 class classification. To the best of our knowledge, the accuracy of our proposed CoroDet method is higher than the state-of-the-art-methods for COVID detection; A demonstration of the same model for both 2 class, 3 class, and 4 class classification; Construction of the largest X-ray image database for COVID-19 classification and experiments with the database. The rest of the paper is organized as follows. In Section II, we have described our proposed model of work for the whole study. In Section III, we have presented the experimental results and discussion. Finally, we conclude our study with future plans in Section IV.

Corodet: our proposed method for COVID detection

This section discusses our proposed method called CoroDet, which consists of a new 22-layer CNN model for COVID detection using chest X-ray and CT images. The model performance is evaluated based on accuracy, precision, recall, F1 score, specificity, sensitivity, and confusion matrix for 2 class classification, 3 class classification, and 4 class classification. Fig. 1 shows workflow of our proposed CoroDet method to demonstrate the workflow from the beginning to end. The details on every step of CoroDet is given below.
Fig. 1

A flowchart of our proposed CoroDet method.

A flowchart of our proposed CoroDet method.

Generating dataset called COVID-R

In this study, we generated one of the biggest datasets for COVID-19 detection, using both X-ray and CT images. A brief introduction on the dataset is given in Table 1 . From Table 1, we can see that the dataset has 2843 COVID-19 images. There are 3108 normal images and 1439 pneumonia (both viral and bacterial) images. Therefore, the total images in the COVID-R dataset are 7390.
Table 1

A brief introduction on the COVID-R dataset.

ClassNumber of images
COVID-192843
Normal3108
Pneumonia (Viral + Bacteria)1439
A brief introduction on the COVID-R dataset. Our COVID-R dataset is prepared by combining and modifying the eight different publicly available data repositories namely Covid-chestxray-dataset [48], COVID-CT [49], Figure1-COVID-chestxray-dataset [50], Actualmed-COVID-chestxray-dataset [51], SARS-COV-2 Ct-Scan Dataset [52], COVID-19 Xray Dataset (Train & Test Sets) with COVID-19 CNN Pneumonia Detector [53], COVID-19 Radiography Database [54], and COVID-19 Patients Lungs X Ray Images 10,000 [55]. The four sample images from the COVID-R dataset are shown in Fig. 2, Fig. 3, Fig. 4, Fig. 5 . From each class, we selected one image and added it to the figures. These images are discussed in the experimental result section. Fig. 2 shows the P-A view of the chest radiograph of a COVID patient showing hyperlucent lung fields that indicate lungs hyperinflation due to obstruction of small airways (caused by bronchiolitis or bronchitis). Multiple patchy opacities are seen in both lung fields representing consolidations caused by bacterial co-infection. Blunting of costo-phrenic angles is seen suggesting para-pneumonic pleural effusion. Fig. 3 shows the normal chest radiograph or P-A chest film showing the normal size and shape of the chest wall with normal position and appearance of the trachea, heart, and mediastinum. There is no focal opacity, air-fluid level, hyperlucency, or increased bronco-vascular markings. Costo-phrenic and cardio-phrenic angles are free as well. In Fig. 4, an X-ray image of non-COVID viral pneumonia is shown that shows diffuse bilateral Ground Glass Opacities (GGO), indicating diffuse alveolar damage and septal thickenings. Fig. 5 shows an X-ray image of bacterial pneumonia in which a focal opacity is indicating consolidation (without cavitation) on the upper lobe of the right lung is seen while costo-phrenic and cardio-phrenic angles are free with no air-fluid level.
Fig. 2

COVID-19 sample.

Fig. 3

Normal sample.

Fig. 4

Pneumonia-viral sample.

Fig. 5

Pneumonia-bacterial sample.

COVID-19 sample. Normal sample. Pneumonia-viral sample. Pneumonia-bacterial sample.

Data labelling

After the dataset generation process, we prepare three subsets from the COVID-R dataset for 2 class classification, 3 class classification, and 4 class classification that we use to train our proposed CNN model. We considered different sets of images for 2 class classification, 3 class classification, and 4 class classification and then labeled the images accordingly. The tables from Table 2, Table 3, Table 4 show the number of images that we used from the COVID-R dataset for 4 class classification, 3 class classification, and 2 class classification, respectively. Note that, due to hardware limitations, we choose a small number of images for training purposes. From the tables, we can notice that for both 2 class, 3 class, and 4 class classification, the number of COVID-19 images and normal images is 500 and 800, respectively. However, for 4 class classification, the number of images for Pneumonia-viral and Pneumonia-bacteria are both 400. For the 3 class classification, the number of Pneumonia-bacteria image is 800.
Table 2

The number of images used to train the model for 4 class classification.

ClassNumber of images
COVID-19500
Normal800
Pneumonia-viral400
Pneumonia-bacteria400
Table 3

The number of images used to train the model for 3 class classification.

ClassNumber of images
COVID-19500
Normal800
Pneumonia-bacteria800
Table 4

The number of images used to train the model for 2 class classification.

ClassNumber of images
COVID-19500
Normal800
The number of images used to train the model for 4 class classification. The number of images used to train the model for 3 class classification. The number of images used to train the model for 2 class classification.

Our proposed 22-layer CNN model

In this section, we discuss our proposed 22-layer CNN model for the detection and classification of COVID-19 using X-ray and CT scan images. Our proposed model is based on five basic components, namely convolutional layer, pooling layer, flatten layer, dense layer, and activation function. The components are used in different layers of our proposed model. A detailed discussion of each basic component is given below.

Convolutional layer

This is the layer where the convolution process happens, and the CNN model learns. This layer performs most of the computations for a CNN model. It is the most important component of a convolutional network. It has some parameters and hyperparameters, namely filters, kernels, and K. Convolution layers extract features using these filters and then learns from them. For this reason, this layer is also known as the feature extraction layer. The input images are compared segment by segment to distinguish the similarities and the differences among them. The segments are called features. The convolution layer extracts one or more features from the input images, and then using the image matrix, it creates a dot product and produces one or more matrix. If we have an image of size and the pixel values of the images are either 0 or 1, and the size of the filter matrix is then the filter matrix will be multiplied by image matrix, which is known as a feature map. The filter moves from left to right with a specific stride value until it parses the full width. Then it moves down to the beginning left side of the image with the same stride and repeats the process until the full image is traversed [56]. The main goal of this convolution layer is to extract high-level features like edges. Moreover, various operations are performed in this layer, including blur, sharpen, edge detection, by applying various filters. If we have a volume of size W1 H1 D1 then we need four hyper parameters namely number of filters K, their spatial extent F, the stride S, and the amount of zero padding P [57]. Then an output of size W2 H2 D2 is produced by convolutional layer. The equations for W2, H2, and D2 in convolutional layer are given below: Note that we have used nine conv2D layers in our proposed CoroDet model.

Pooling layer

The pooling layer is used repeatedly in convolution net to reduce the size of the volume when the image size is too large. This layer makes the computation fast, prevents from overfitting, and reduces memory. There are various kinds of pooling layers, such as max pooling, average pooling, and sum pooling. Max pooling takes the largest value from the feature map, average pooling takes the average by calculating for each patch of the feature map, and sum pooling takes the sum of all elements in the feature map. The most popular and common type of pooling layer is max pooling. The two hyperparameters are required for the pooling layer, namely filter (F) and stride (S). If the volume of an input image is W1 H1 D1 then an output of size W2 H2 D2 is produced by pooling layer [57]. The equations for W2, H2, and D2 in pooling layer are given below: Note that, for every Conv2D layer, we have used one Maxpool2D layer. Therefore, we have used nine MaxPool2D layers in our proposed model.

Flatten layer

In our model, after using the pooling layer, we used a flatten layer to flat the whole network. The flatten layer transforms the entire pooled feature map matrix into a single column. Then this is being passed to the neural network for further processing.

Dense layer

After the flatten layer, we have used two dense layers. The dense layer is also known as a fully connected layer. In this layer, the input from the past layers is flattened from a matrix into a vector. After flattening, the volume of the previous layer is given input to the fully connected layer like a neural network. By looking at the output of the previous layer, this layer decides which features mostly match a particular class. It works on high-level features that have specific weights. For this reason, a fully connected layer provides the correct probabilities for the different classes as it computes the products between the weights and the previous layer. By using the activation function, the outputs are classified.

Activation function

We have used Sigmoid function as shown in Eq. (7) with another dense layer and ReLU function as shown in Eq. (8). We have also used an activation function Leaky ReLU as shown in Eq. (9) which has proved to give best performance with Maxpooling2D. The three activation functions are shown as follows: In the above equations, is a real-valued number, and is a small constant. The value of the Sigmoid function ranges from 0 to 1. The Sigmoid function is an S-shaped curve. It is comparatively easy, but it has a vanishing gradient problem. The output is not centered at zero; as a result, the gradient updates go too far in different directions, which makes the optimization harder. On the other hand, ReLU is an efficient and straightforward activation function as it avoids the vanishing gradient problem. Leaky ReLU has been used to solve the “dying ReLU” problem. Instead of the function being 0 where <0, a Leaky ReLU will have a small negative slope.

Discussion on 22-layer CNN model

In Table 5 and Fig. 6 , we present a summary on our proposed 22-layer CNN model. From Table 5 and Fig. 6, we can see that our proposed 22-layer CoroDet model has nine Conv2d layers and nine maxpool2d layers. We have used batch normalization (BatchNorm) to increase the stability of the model by using standardized input size. We have also used the Adam optimizer for weight updates, cross-entropy loss function, and selected learning rate. The most challenging part for us to build the model was to put all the layers, activation functions, and optimizer values together to achieve the best outcome from our proposed model in terms of accuracy and other evaluation criteria. We build the model through a rigorous testing process by adding layers, changing activation functions, and changing the value of the optimizers. We aim to find out what gives us the best possible outcome of the model. For example, at the beginning, we started with a simple 12-layer CNN model, which gave us an accuracy of 81% for 4-class classification.
Table 5

A summary on our proposed 22-layer model.

LayerOutput ShapeParameter
conv2d_1 (Conv2D)(64, 37, 37)25,340
Max_pooling2d_1 (MaxPooling)(64, 18, 18)0
conv2d_2 (Conv2D)(128, 19, 19)19,696
Max_pooling2d_2 (MaxPooling)(128, 9, 9)0
conv2d_3 (Conv2D)(64, 21, 21)75,956
Max_pooling2d_3 (MaxPooling)(64, 10, 10)0
conv2d_4 (Conv2D)(128, 21, 21)296,168
Max_pooling2d_4 (MaxPooling)(128, 10, 10)0
conv2d_5 (Conv2D)(256, 13, 13)73,728
Max_pooling2d_5(MaxPooling)(256, 6, 6)0
conv2d_6 (Conv2D)(128, 15, 15)296,168
Max_pooling2d_6 (MaxPooling)(128, 7, 7)0
conv2d_7 (Conv2D)(256, 17, 17)73,728
Max_pooling2d_7 (MaxPooling)(256, 8, 8)0
conv2d_8 (Conv2D)(128, 15, 15)32,768
Max_pooling2d_8 (MaxPooling)(128, 7, 7)0
conv2d_9 (Conv2D)(256, 15, 15)296,168
Max_pooling2d_9 (MaxPooling)(256, 7, 7)0
Flatten_1 (Flatten)40720
Dense_1(Dense)5121,683,376
Leaky_relu_1 (LeakyReLU)5120
Dense_1 (Dense)1513
Fig. 6

Architecture of proposed 22 layer CNN model.

A summary on our proposed 22-layer model. Architecture of proposed 22 layer CNN model. Note that we used ReLu as an activation function with the pooling layer instead of LeakyReLu at the beginning. Later, we observed that LeakyRelu might give us a better output; therefore, we replaced ReLu with LeakyReLu in the pooling layer. After identifying which activation functions and optimizer values work the best, then we focused on adding more Conv2D as a convolutional layer to make the model deeper and to obtain a better outcome. We kept adding Conv2D layer and Maxpool2D layer with our basic 12-layer model and noticed the improvement of accuracy for 4-class, 3-class, and 2-class classification. An empirical justification for our 22-layer model is given in the experimental result section. The combination of the layers, activation functions, and optimizer values made our model a unique model. We built the model by trying every possible combination of the layers, activation functions, and optimizer values and determine which combination works better and then finalized the model that can capture such small changes in features of the images. Our model is shown better than the previously published and predefined models that we discussed in the experimental result section, although most of the existing methods have deeper layers and more parameters than our proposed model.

Train our proposed CNN model

We trained our proposed model using the labeled data that we prepared in Step 2. A model on 4 class classification is built to identify chest X-ray images of four categories, namely COVID-19, Pneumonia-bacterial, Pneumonia-viral, and Normal. We then build two other models for 3 class (COVID-19, Pneumonia, and Normal) classification, and 2 class (COVID-19 and Normal) classification. We implemented the proposed model using Keras and Tensorflow 2.0. ImageNet dataset was used to pre-train the model. The experiment was carried out on the Google Colaboratory Ubuntu server that has a Tesla K80 graphics card. We retrain the model using our prepared dataset and Adam optimizer. The value for the learning rate is 0.0001, the size of the batch is 10, and the value for the epoch is 50. Data shuffling was enabled for training. Note that data shuffling was performed before every epoch. The 5-fold cross-validation approach is used to assess the performance of 4 class, 3 class, and 2 class classification. We randomly divide the training set into 5 subsets, where each subset has the same number of records. 4 out of 5 subsets were considered to train the CNN model, and the other subset was considered for validation. This approach of validation is repeated 5 times by shifting the validation and training sets. The average result is calculated based on the result of each individual fold.

Performance evaluation

In order to analyze the performance of our proposed CNN model, we calculated precision, recall, F1 score, accuracy, sensitivity, specificity, and confusion matrix for each fold. At first, we computed these for 4 class 5 folds, and then the process is repeated for 2 and 3 class classification as well. The definitions of accuracy, F1 score, precision, and recall can be obtained in [58]. Tables 6 –8 show the performance of our proposed CNN model in terms of precision, recall, F1 score, accuracy, sensitivity, specificity, and confusion matrix. At first, the performance for each fold has been demonstrated, and then we computed the average of the 5 folds. The process is repeated for 4 class classification, 3 class classification, and 2 class classification.
Table 6

Evaluation based on 4 class classification for 5 fold.

SensitivitySpecificityPrecisionRecallF1 scoreAccuracy
Fold 194.795.896.593.692.492.4
Fold 290.191.492.193.291.291.6
Fold 393.295.393.292.290.193.5
Fold 489.691.691.290.489.290.3
Fold 591.293.387.290.187.388.2
Average91.7693.4892.0491.990.0491.2
Table 8

Evaluation based on 2 class classification for 5 fold.

SensitivitySpecificityPrecisionRecallF1 scoreAccuracy
Fold 196.798.797.596.697.499.1
Fold 295.197.198.197.295.499.5
Fold 397.299.297.293.297.198.8
Fold 496.699.696.294.496.298.6
Fold 591.292.299.295.198.399.6
Average95.3697.3697.6495.396.8899.12
Evaluation based on 4 class classification for 5 fold. Evaluation based on 3 class classification for 5 fold. Evaluation based on 2 class classification for 5 fold. In order to obtain the overall performance for each classification, we have also computed average class wise precision, recall, and F1 score as shown in Table 9, Table 10, Table 11 . All the results represent a very good performance of our proposed model for all the classes. In Fig. 7, Fig. 8, Fig. 9 we have plotted the confusion matrix for each fold to evaluate the model for each shuffle. For almost all the folds, the model has shown a very good performance for 4 class classification, 3 class classification, and 2 class classification.
Table 9

Average class wise precision, recall and F1 score for 4 class classification.

ClassPrecisionRecallF1 score
COVID-1994.2796.1797.51
Normal96.2595.1595.35
Pneumonia Viral87.8586.8587.85
Pneumonia Bacteria86.1584.2787.95
Table 10

Average class wise precision, recall and F1 score for 3 class classification.

ClassPrecisionRecallF1 score
COVID-1995.3797.4798.62
Normal97.2596.1596.45
Pneumonia88.8587.8588.95
Table 11

Average class wise precision, recall and F1 score for 2 class classification.

ClassPrecisionRecallF1-score
COVID-1999.2798.1798.51
Normal98.2597.1597.35
Fig. 7

Confusion matrix for each fold in 4 class classification.

Fig. 8

Confusion matrix for each fold in 3 class classification.

Fig. 9

Confusion matrix for each fold in 2 class classification.

Average class wise precision, recall and F1 score for 4 class classification. Average class wise precision, recall and F1 score for 3 class classification. Average class wise precision, recall and F1 score for 2 class classification. Confusion matrix for each fold in 4 class classification. Confusion matrix for each fold in 3 class classification. Confusion matrix for each fold in 2 class classification. In order to demonstrate the better performance of our proposed 22-layer CNN model, we have also plotted model accuracy in Fig. 10 and model loss in Fig. 11 for our 50 epochs for 4 class classification. These figures show that our proposed 22-layer CNN model is trained perfectly, and the model is not either under-fit or over-fit. This explains why we achieved better results in terms of accuracy, precision, recall, F1 score, specificity, sensitivity, and confusion matrix. These figures explain how accurately the model has been trained. We also obtained a similar accuracy and loss graph results for 3 class classification and 2 class classification.
Fig. 10

Model accuracy graph for 4 class classification.

Fig. 11

Model loss graph for 4 class classification.

Model accuracy graph for 4 class classification. Model loss graph for 4 class classification.

Experimental results and discussion

This section includes the experimental results and discussion on the performance of our proposed method. We compare the accuracy of our proposed CoroDet method with previously published techniques for 4 class classification, 3 class classification, and 2 class classification for COVID-19 detection. We also provide an empirical justification for our proposed 22-layer model. Moreover, the outcomes of the CoroDet method is evaluated by a physician in order to demonstrate the performance of CoroDet more precisely. From the discussion in Introduction, we can see that researchers from all over the world proposed a number of techniques for the detection of COVID-19. Some of the proposed models are for multi class classification, some of them are for 2 class classification, and some of them for both multi class and 2 class classification. Table 12 shows the accuracy comparison between our proposed CoroDet method and ten existing techniques for 2 class classification, 3 class classification, and 4 class classification. Note that, the models in Table 12 were trained using different number of images from different data sources. However, our proposed CoroDet model was trained by using the combined images from all the data sources.
Table 12

Accuracy comparison our proposed model vs. existing models.

Model4 class3 class2 classNumber of Images
Ioannis et al. [35]N/A93.48%N/A224, 700, 504
Wang and Wong [36]N/A92.4%N/A53, 5526, 8066
Sethy and Behr [37]N/AN/A95.38%25, 25
Hemdan et al [38]N/AN/A90%25, 25
Narin et al [39]N/AN/A98%50, 50
Wang et al [41]N/AN/A82.9%195, 258
Zheng et al [42]N/AN/A90.8%313, 229
Xu et al [43]N/A86.7%N/A219, 224, 175
Ozturk et al [46]N/A87.02%98.08%125, 500, 500
Khan et al. [47]89.6%95%99%284, 327, 330, 310
CoroDet91.2%94.2%99.1%500, 400, 400, 800
Accuracy comparison our proposed model vs. existing models. The number of images used to train the models can be seen from the last column of Table 12. In that column, the first number indicates the number of COVID-19 images used to train a model. If there are two values in the number of images column then the first value indicates the number of COVID-19 images, and the second value indicates the number of normal images which are used to train the model. If there are three values in the number of images column then the first value indicates the number of COVID-19 images, the second value indicates the number of Pneumonia images, and the third value indicates the number of normal images which are used to train the model. If there are four values in the number of images column then the first value indicates the number of COVID-19 images, the second value indicates the number of Pneumonia-viral images, the third value indicates the number of Pneumonia-bacteria images, and the fourth value indicates the number of normal images which are used to train the model. For 2 class classification of Ozturk et al [46], 125 COVID-19 images and 500 normal images are used to train the model. For 2 class classification of Khan et al. [47], 284 COVID-19 images and 310 normal images are used to train the model. For 3 class classification of Khan et al. [47], 284 COVID-19 images, 657 Pneumonia images, and 310 normal images are used to train the model. It is worth to mention that we have used the highest number (i.e. 500) of COVID-19 images to train our CoroDet model compared to the existing models. For 4 class classification, we used 500 COVID-19, 400 Pneumonia-viral, 400-Pneumonia-bactria, and 800 normal images to train our CoroDet model. For 3 class classification, we used 500 COVID-19, 800 Pneumonia, and 800 normal images to train our CoroDet model. For 2 class classification, we used 500 COVID-19, and 800 normal images to train our model. Table 12 illustrates that our proposed CoroDet method shows better accuracy than all the existing techniques for 2 class classification and 4 class classification. Khan et al. [47] achieved slightly higher accuracy than CoroDet for 3 class classification. However, for 3 class classification, the accuracy of CoroDet is better than the rest of the existing techniques. For 2 class classification, CoroDet achieved 99.1% accuracy which is the highest accuracy for 2 class classification to the best of our knowledge.

Empirical justification on our proposed 22-layer model

In this section, we have provided some empirical analysis on our 22-layer proposed model where the number of layers in the model is not more than or less than 22. We prepare 12-layer, 16-layer, 18-layer, 20-layer, and 22-layer models for 2 class, 3 class, and 4 class classifications. Note that, for every model, we use the same parameters and factors such as activation function and optimizer values. Table 13 shows accuracy for 12-layer, 16-layer, 18-layer, 20-layer, and 22-layer for 2 class, 3 class, and 4 class classifications. From Table 13, we can see that accuracy for the 22-layer model is better than others.
Table 13

A justification on our proposed 22-layer model.

Layer2 class3 class4 class
12-layer81.5%85.6%87.5%
16-layer83.8%88.8%91.3%
18-layer86.5%91.5%94.1%
20-layer89.4%93.2%96.5%
22-layer91.2%94.2%99.1%
A justification on our proposed 22-layer model. Note that, after 22-layer, we stopped adding more Conv2D layer and Maxpool2D layers as the model was not giving us better accuracy. The accuracy became constant after our 22-layer model for all the classes. It is worth mentioning that, if we reduce the layers from our 22-layer model, then the accuracy of the model decreases through all the other factors of the model are the same. That is why we decided to use 22 layers in our proposed model.

Clinical evaluation of CoroDet

Our proposed CoroDet was prepared with the impression that it may help clinicians and assist them in making appropriate decisions for diagnosis. To demonstrate the performance of CoroDet to the clinicians, we randomly selected some X-ray images from the COVID-R dataset and gave them input to the model and obtained output on the images as shown in Fig. 12, Fig. 13, Fig. 14, Fig. 15 .
Fig. 12

An example on COVID detection using a randomly selected test image.

Fig. 13

An example of Non-COVID detection using a randomly selected test image.

Fig. 14

An example of pneumonia-viral detection using a randomly selected test image.

Fig. 15

An example on pneumonia-bacterial detection using a randomly selected test image.

An example on COVID detection using a randomly selected test image. An example of Non-COVID detection using a randomly selected test image. An example of pneumonia-viral detection using a randomly selected test image. An example on pneumonia-bacterial detection using a randomly selected test image. The images are explained by a clinician. Fig. 12 shows lung hyperinflation, which is evident by increased transparency of the lungs field and reduced broncho-vascular markings than the normal lungs. It is caused by obstructed air in the lungs, which may be due to small airway obstruction in the case of bronchitis and/or bronchiolitis associated with COVID-19 infection. Hyperinflated lungs are larger than the normal lungs, while the gap between the ribs is also raised. Fig. 13 shows normal translucency with normal broncho-vascular markings and cardiothoracic ratio with free cardio-phrenic and costo-phrenic angles. The trachea is centrally placed, and stomach gas is visible under the left diaphragm. So this figure represents a normal chest radiogram. Fig. 14 shows increased opacity distributed bilaterally, giving ground glass appearance, which is the feature commonly found in viral pneumonia. Fig. 15 shows a round space area lower segment of the right upper lobe indicating consolidation with increased broncho-vascular markings on the same side. This image directs the diagnosis of bacterial pneumonia. Note that the images from Fig. 12 to Fig. 15 are correctly detected by the CoroDet model that shows the usability of the model. The clinician makes the following comments on the outcome of the model: Opacities in the images became more obvious and clearly demarcated after performing this model especially consolidation of bacterial pneumonia and scattered opacities of COVID-19 became easier to notice. However, no significant change was observed in the case of GGO of viral pneumonia and normal chest radiogram. This is probably because of haziness throughout the lung fields in case of GGO has nothing to show more markedly, which is also true for a normal chest X-ray; The model can detect COVID-19, Normal, Pneumonia-Viral, and Pneumonia-Bacterial separately and put a label of which one it is based on the percentage of the detection; Model performed poorly for the low-quality X-ray images. Though we achieved extraordinary results compared to other existing techniques, in the opinion of the physician, it is not ready yet to replace the traditional testing techniques for COVID-19 detection. However, it can certainly be very helpful to assist the clinicians to take proper decisions on COVID-19 detection. In the future, we intend our model to be more effective and accurate. We hope to train our model with a large number of images. We also want to try different feature extraction techniques to evaluate for which feature extraction our model gives the most accurate result.

Conclusion

COVID-19 has caused a serious negative impact on our day-to-day lives, including public health systems to the global economy. In this paper, we presented a new CNN model to detect COVID-19 using chest X-ray and CT images. The proposed model called CoroDet is capable of providing accurate diagnostics for 2 class classification (COVID and Normal), 3 class classification (COVID, Normal, and Pneumonia), and 4 class classification (COVID, Normal, non-COVID viral pneumonia, and non-COVID bacterial pneumonia). The classification accuracy of the proposed model is 99.1% for 2 classes, 94.2% for 3 class cases, and 91.2% for 4 classes classification, which is the highest achieved accuracy to the best of our knowledge on the datasets used in the experiments. Another contribution in the paper is the largest dataset preparation for the evaluation of classification algorithms. The performance of CoroDet is shown to be better than ten existing techniques in terms of accuracy. The performance of our proposed method indicates the superiority of this method over the existing state-of-the-art-methods. An empirical justification for our 22-layer model is presented. The outcome of the model was explained and accepted by a clinician. Our future goal is to overcome hardware limitations allowing us to use larger image sets to train our proposed CoroDet method and compare the performance of CoroDet with a greater number of existing methods. It is assumed that the use of further images in the training stage may help us to improve the performance of the model in the future.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Table 7

Evaluation based on 3 class classification for 5 fold.

SensitivitySpecificityPrecisionRecallF1 scoreAccuracy
Fold 194.796.797.594.692.695.7
Fold 291.192.191.191.293.493.3
Fold 392.294.293.292.290.193.4
Fold 491.693.694.291.489.294.4
Fold 594.296.294.293.191.394.2
Average92.7694.5694.0492.591.3294.2
  20 in total

Review 1.  A Review of Coronavirus Disease-2019 (COVID-19).

Authors:  Tanu Singhal
Journal:  Indian J Pediatr       Date:  2020-03-13       Impact factor: 1.967

2.  Clinical features of patients infected with 2019 novel coronavirus in Wuhan, China.

Authors:  Chaolin Huang; Yeming Wang; Xingwang Li; Lili Ren; Jianping Zhao; Yi Hu; Li Zhang; Guohui Fan; Jiuyang Xu; Xiaoying Gu; Zhenshun Cheng; Ting Yu; Jiaan Xia; Yuan Wei; Wenjuan Wu; Xuelei Xie; Wen Yin; Hui Li; Min Liu; Yan Xiao; Hong Gao; Li Guo; Jungang Xie; Guangfa Wang; Rongmeng Jiang; Zhancheng Gao; Qi Jin; Jianwei Wang; Bin Cao
Journal:  Lancet       Date:  2020-01-24       Impact factor: 79.321

3.  Emergence of genomic diversity and recurrent mutations in SARS-CoV-2.

Authors:  Lucy van Dorp; Mislav Acman; Damien Richard; Liam P Shaw; Charlotte E Ford; Louise Ormond; Christopher J Owen; Juanita Pang; Cedric C S Tan; Florencia A T Boshier; Arturo Torres Ortiz; François Balloux
Journal:  Infect Genet Evol       Date:  2020-05-05       Impact factor: 3.342

4.  Chest Radiographic and CT Findings of the 2019 Novel Coronavirus Disease (COVID-19): Analysis of Nine Patients Treated in Korea.

Authors:  Soon Ho Yoon; Kyung Hee Lee; Jin Yong Kim; Young Kyung Lee; Hongseok Ko; Ki Hwan Kim; Chang Min Park; Yun Hyeon Kim
Journal:  Korean J Radiol       Date:  2019-02-26       Impact factor: 3.500

5.  A new coronavirus associated with human respiratory disease in China.

Authors:  Fan Wu; Su Zhao; Bin Yu; Yan-Mei Chen; Wen Wang; Zhi-Gang Song; Yi Hu; Zhao-Wu Tao; Jun-Hua Tian; Yuan-Yuan Pei; Ming-Li Yuan; Yu-Ling Zhang; Fa-Hui Dai; Yi Liu; Qi-Min Wang; Jiao-Jiao Zheng; Lin Xu; Edward C Holmes; Yong-Zhen Zhang
Journal:  Nature       Date:  2020-02-03       Impact factor: 49.962

6.  Diagnosis of the Coronavirus disease (COVID-19): rRT-PCR or CT?

Authors:  Chunqin Long; Huaxiang Xu; Qinglin Shen; Xianghai Zhang; Bing Fan; Chuanhong Wang; Bingliang Zeng; Zicong Li; Xiaofen Li; Honglu Li
Journal:  Eur J Radiol       Date:  2020-03-25       Impact factor: 3.528

7.  CoroNet: A deep neural network for detection and diagnosis of COVID-19 from chest x-ray images.

Authors:  Asif Iqbal Khan; Junaid Latief Shah; Mohammad Mudasir Bhat
Journal:  Comput Methods Programs Biomed       Date:  2020-06-05       Impact factor: 5.428

8.  No evidence for distinct types in the evolution of SARS-CoV-2.

Authors:  Oscar A MacLean; Richard J Orton; Joshua B Singer; David L Robertson
Journal:  Virus Evol       Date:  2020-05-14

9.  Covid-19: automatic detection from X-ray images utilizing transfer learning with convolutional neural networks.

Authors:  Ioannis D Apostolopoulos; Tzani A Mpesiana
Journal:  Phys Eng Sci Med       Date:  2020-04-03

10.  COVID-Net: a tailored deep convolutional neural network design for detection of COVID-19 cases from chest X-ray images.

Authors:  Linda Wang; Zhong Qiu Lin; Alexander Wong
Journal:  Sci Rep       Date:  2020-11-11       Impact factor: 4.379

View more
  47 in total

1.  How to discern external acoustic waves in a piezoelectric neuron under noise?

Authors:  Ying Xie; Jun Ma
Journal:  J Biol Phys       Date:  2022-08-10       Impact factor: 1.560

Review 2.  A Comprehensive Review of Machine Learning Used to Combat COVID-19.

Authors:  Rahul Gomes; Connor Kamrowski; Jordan Langlois; Papia Rozario; Ian Dircks; Keegan Grottodden; Matthew Martinez; Wei Zhong Tee; Kyle Sargeant; Corbin LaFleur; Mitchell Haley
Journal:  Diagnostics (Basel)       Date:  2022-07-31

3.  FWLICM-Deep Learning: Fuzzy Weighted Local Information C-Means Clustering-Based Lung Lobe Segmentation with Deep Learning for COVID-19 Detection.

Authors:  R Rajeswari; Veerraju Gampala; Balajee Maram; R Cristin
Journal:  J Digit Imaging       Date:  2022-07-05       Impact factor: 4.903

4.  Non-iterative learning machine for identifying CoViD19 using chest X-ray images.

Authors:  Sahil Dalal; Virendra P Vishwakarma; Varsha Sisaudia; Parul Narwal
Journal:  Sci Rep       Date:  2022-07-13       Impact factor: 4.996

5.  X-Ray Equipped with Artificial Intelligence: Changing the COVID-19 Diagnostic Paradigm during the Pandemic.

Authors:  Mustafa Ghaderzadeh; Mehrad Aria; Farkhondeh Asadi
Journal:  Biomed Res Int       Date:  2021-08-22       Impact factor: 3.411

6.  The effects of temperature on the dynamics of the biological neural network.

Authors:  Mohammad B Jabbari; Mahdi Rezaei Karamati
Journal:  J Biol Phys       Date:  2022-01-21       Impact factor: 1.365

7.  A fuzzy-enhanced deep learning approach for early detection of Covid-19 pneumonia from portable chest X-ray images.

Authors:  Cosimo Ieracitano; Nadia Mammone; Mario Versaci; Giuseppe Varone; Abder-Rahman Ali; Antonio Armentano; Grazia Calabrese; Anna Ferrarelli; Lorena Turano; Carmela Tebala; Zain Hussain; Zakariya Sheikh; Aziz Sheikh; Giuseppe Sceni; Amir Hussain; Francesco Carlo Morabito
Journal:  Neurocomputing       Date:  2022-01-21       Impact factor: 5.719

8.  An optimized transfer learning-based approach for automatic diagnosis of COVID-19 from chest x-ray images.

Authors:  Waleed M Bahgat; Hossam Magdy Balaha; Yousry AbdulAzeem; Mahmoud M Badawy
Journal:  PeerJ Comput Sci       Date:  2021-05-27

9.  An optimized KELM approach for the diagnosis of COVID-19 from 2D-SSA reconstructed CXR Images.

Authors:  Figlu Mohanty; Chinmayee Dora
Journal:  Optik (Stuttg)       Date:  2021-07-07       Impact factor: 2.443

10.  A comparative study of multiple neural network for detection of COVID-19 on chest X-ray.

Authors:  Anis Shazia; Tan Zi Xuan; Joon Huang Chuah; Juliana Usman; Pengjiang Qian; Khin Wee Lai
Journal:  EURASIP J Adv Signal Process       Date:  2021-07-27
View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.