Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021;2(4):300.
doi: 10.1007/s42979-021-00695-5. Epub 2021 May 26.

Chest X-ray Classification Using Deep Learning for Automated COVID-19 Screening

Affiliations

Chest X-ray Classification Using Deep Learning for Automated COVID-19 Screening

Ankita Shelke et al. SN Comput Sci. 2021.

Abstract

In today's world, we find ourselves struggling to fight one of the worst pandemics in the history of humanity known as COVID-2019 caused by a coronavirus. When the virus reaches the lungs, we observe ground-glass opacity in the chest X-ray due to fibrosis in the lungs. Due to the significant differences between X-ray images of an infected and non-infected person, artificial intelligence techniques can be used to identify the presence and severity of the infection. We propose a classification model that can analyze the chest X-rays and help in the accurate diagnosis of COVID-19. Our methodology classifies the chest X-rays into four classes viz. normal, pneumonia, tuberculosis (TB), and COVID-19. Further, the X-rays indicating COVID-19 are classified on a severity-basis into mild, medium, and severe. The deep learning model used for the classification of pneumonia, TB, and normal is VGG-16 with a test accuracy of 95.9 %. For the segregation of normal pneumonia and COVID-19, the DenseNet-161 was used with a test accuracy of 98.9 %, whereas the ResNet-18 worked best for severity classification achieving a test accuracy up to 76 %. Our approach allows mass screening of the people using X-rays as a primary validation for COVID-19.

Supplementary information: The online version contains supplementary material available at 10.1007/s42979-021-00695-5.

Keywords: COVID-19; Chest X-ray; Severity-based classification.

PubMed Disclaimer

Conflict of interest statement

Conflict of InterestAuthors A. Shelke, M. Inamdar, V. Shah, A. Tiwari, A. Hussain, T. Chafekar and N. Mehendale declare that they have no conflict of interest.

Figures

Fig. 1
Fig. 1
Proposed system flow diagram. When a person passes through the X-ray screening machine, his X-ray image is passed as an input for further processing. The input chest X-ray image is passed through a VGG-16 model and labeled as either normal, tuberculosis, or pneumonia. Further, the pneumonia affected X-ray images are passed through a DenseNet-161 model and categorized as normal pneumonia or COVID-19. The COVID-19 images are passed through a ResNet-18 model and classified as severe, medium, or mild
Fig. 2
Fig. 2
Configuration and performance of VGG-16 a Model of VGG-16. The input size of the image is 64 × 64 × 1. After this, the image passes through a 2D convolution layer with dimensions 224x224. Then it passes through the next layer with dimensions 112 × 112. After this, it passes to consecutive convolution layers along with MaxPooling with dimension changes 56 × 56, 28 × 28, and 14 × 14. Then it goes to a Max Pooling layer with dimension change 7 × 7. After a series of 2500, 4096, and 4096 fully connected layers, the X-rays are classified into normal X-ray, Tuberculosis affected X-ray, and Pneumonia affected X-Ray. b The graph of the learning rate versus a loss in the range of 0.8 and 1.7 (red dot shows selected learning rate). c A total of 322 images were tested. 127 were correctly labelled as COVID-Pneumonia, 104 were correctly labelled as normal and 78 were correctly labelled as Tuberculosis
Fig. 3
Fig. 3
Configuration and performance of DenseNet-161 a Model of DenseNet-161. The input size of the image is 64 × 64 × 1 after which the image passes through a 2-D convolutional layer with dimensions 112 × 112. Then it passes through the next layer with dimensions 56 × 56 After passing through the consecutive layers the dimensions change from 56 × 56 to 28 × 28, 14 × 14, and finally 7 × 7. After 1000 fully connected layers, the X-rays are classified into normal pneumonia and COVID-19. b The graph of the learning rate versus a loss in the range of 0.5–0.9 (red dot shows selected learning rate). c Confusion matrix of the output for DenseNet-161. A total of 235 images were tested, out of which 232 were correctly classified as COVID, and 3 were found to be wrongly classified. From 150 images, 149 were correctly categorized as pneumonia whereas 1 was wrongly classified
Fig. 4
Fig. 4
Configuration and performance of ResNet-18 a Model of ResNet-18. The input size of the image is 64 × 64 × 1. After this, the image passes through a 2D convolution layer with dimensions 112 × 112 × 64. Then it passes through the next layer with dimensions 56 × 56 × 64. After this, it passes to consecutive 2D convolution layers with dimension changes 28 × 28 × 128, 14 × 14 × 256, and 7 × 7 × 512. After 1000 fully connected layers, the X-rays are classified into severe, medium, and mild. b The graph of the learning rate versus a loss in the range of 0.9 and 1.6 (red dot shows selected learning rate). c Confusion matrix of the output for ResNet-18. A total of 25 images were tested, out of which 7 were correctly labelled as a medium, 8 were correctly labelled as mild and 4 were correctly labelled as severe

Similar articles

Cited by

References

    1. Acter T, Uddin N, Das J, Akhter A, Choudhury TR, Kim S. Evolution of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) as coronavirus disease 2019 (COVID-19) pandemic: A global health emergency. Sci Total Environ. 2020:138996. - PMC - PubMed
    1. Zhang D, Hu M, Ji Q. Financial markets under the global pandemic of COVID-19. Finance Res Lett. 2020 Oct 1;36:101528. - PMC - PubMed
    1. Ye ZW, Yuan S, Yuen KS, Fung SY, Chan CP, Jin DY. Zoonotic origins of human coronaviruses. Int J Biol Sci. 2020;16(10):1686. - PMC - PubMed
    1. King DE. Dlib-ml: A machine learning toolkit. J Mach Learn Res. 2009 Dec 1;10:1755–8.
    1. Goodfellow I, Bengio Y, Courville A, Bengio Y. Deep learning, vol. 1. Cambridge: MIT Press; 2016.

LinkOut - more resources