COVID-19 Detection Using Deep Learning
COVID-19 Detection Using Deep Learning
I. IINTRODUCTION
Abstract— The 2019 novel coronavirus disease (COVID-
19), with a starting point in China, has spread rapidly The coronavirus disease (COVID-19) pandemic emerged in
among people living in other countries, and is Wuhan, China in December 2019 and became a serious
approaching approximately 34,986,502 cases worldwide
public health problem worldwide [1,2]. Until now, no specific
according to the statistics of European Centre for Disease
Prevention and Control. There are a limited number of drug or vaccine has been found against COVID-19 [2]. The
COVID-19 test kits available in hospitals due to the virus that causes COVID-19 epidemic disease is called severe
increasing cases daily. Therefore, it is necessary to acute respiratory syndrome coronavirus-2 (SARS-CoV-2)
implement an automatic detection system as a quick [3]. Coronaviruses (CoV) is a large family of viruses that
alternative diagnosis option to prevent COVID-19 cause diseases such as Middle East Respiratory Syndrome
spreading among people. The aim of the study is to (MERS-CoV) and Severe Acute Respiratory Syndrome
evaluate performance of state-of-the-art pre-trained
(SARS-CoV). COVID-19 is a new species discovered in
model ResNet-50 using mixed precision and fine tuning.
1000 Chest X-ray and 750 CT images were used as dataset 2019 and has not been previously identified in humans [4].
for training and testing purposes. 95% and 82% COVID-19 causes lighter symptoms in about 99% of cases,
accuracies were obtained for Chest X-ray and CT according to early data, while the rest is severe or critical [5].
datasets individually. As of 4th October 2020, the total number of worldwide cases
of Coronavirus is 35,248,330. Of these, 1,039,541 (4%)
people were deaths and 26,225,235 (96%) were recovered.
Keywords— CNN, Deep Learning, Chest X-ray, The number of active patients is 7,983,554. Of these,
Transfer Learning, CT. 7,917,287 (99%) had mild disease while 66,267 (1%) had
more severe disease [6]. Nowadays the world is struggling
with the COVID-19 epidemic. Deaths from pneumonia
developing due to the SARS-CoV-2 virus are increasing day
by day.
The dataset for the project was gathered from two sources: • Train the target model on a target dataset, such as a chair
dataset. We will train the output layer from scratch, while the
A. Chest X-ray images (1000 images) were obtained from: parameters of all remaining layers are fine-tuned based on the
https://github.com/ieee8023/covid-chestxray-dataset. parameters of the source model.
B. PROPOSED METHODOLOGY
PRE- RESNET -
DATASET
PROCESSING 50
C
Fig 2. Fine Tuning
E. FAST AI V2
Fastai is a deep learning library which provides practitioners Parameter Type/ Value
with high-level components that can quickly and easily Name
provide state-of-the-art results in standard deep learning
Epochs 10
domains, and provides researchers with low-level
components that can be mixed and matched to build new Batch Size 32
approaches. It aims to do both things without substantial
compromises in ease of use, flexibility, or performance. This Num_workers 0
is possible thanks to a carefully layered architecture, which
expresses common underlying patterns of many deep Input Size 100*100*3
learning and data processing techniques in terms of
decoupled abstractions. These abstractions can be expressed Table 1: Hyper parameters details
concisely and clearly by leveraging the dynamism of the
underlying Python language and the flexibility of the By using cnn_learner and learn.fine_tune the mixed precision
PyTorch library [35]. Fastai includes: and fine tuning were done. In learner command we mentioned
the training to be carried out in 16-bit floating point half
A new type dispatch system for Python along with a precision format so that training time is reduced without any
semantic type hierarchy for tensors loss of information. By using half precision format lowers the
required memory enabling training of larger models or
A GPU-optimized computer vision library which training with larger mini-batches.
can be extended in pure Python
By using fine tuning models training time is greatly reduced.
An optimizer which refactors out the common Since using pre-trained weights, the model's first few layers
functionality of modern optimizers into two basic are already very effective. We just need to train the final
pieces, allowing optimization algorithms to be layers of your model and hence the model is free of problems
implemented in 4–5 lines of code like overfitting and activation exploding.
F. RESNET-50
[15] Jaiswal A, Gianchandani N, Singh D, Kumar V, and [28] Jamil M, and Hussain I. Automatic Detection of COVID-
Kaur M. Classification of the COVID-19 infected patients 19 Infection from Chest X-ray using Deep Learning.
using DenseNet201 based deep transfer learning. Journal of medRxiv, https://doi.org/10.1101/2020.05.10.20097063,
Biomolecular Structure and Dynamics, 1-8, 2020.
https://doi.org/10.1080/07391102.2020.1788642, 2020.
[29] Barstugan M, Ozkaya U, and Ozturk S. Coronavirus
[16] Apostolopoulos ID, and Mpesiana TA. Covid-19: (COVID-19) Classification using CT Images by Machine
automatic detection from x-ray images utilizing transfer Learning Methods. arXiv:2003.09424, 2020.
learning with convolutional neural networks. Physical and
Engineering Sciences in Medicine, 43:635-640, 2020. [30] Punn NS, and Agarwal S. Automated diagnosis of
COVID-19 with limited posteroanterior chest X-ray images
[17] Zhang J, Xie Y, Li Y, Shen C, and Xia Y. COVID-19 using fine-tuned deep neural networks. arXiv:2004.11676v2,
Screening on Chest X-ray Images Using Deep Learning 2020.
based Anomaly Detection. arXiv:2003.12338v1, 2020.
[31] Afshar P, Heidarian S, Naderkhani F, Oikonomou A,
[18] Singh D, Kumar V, and Kaur M. Classification of Plataniotis KN, and Mohammadi A. COVID-CAPS: A
COVID-19 patients from chest CT images using multi- Capsule Network-based Framework for Identification of
objective differential evolution-based convolutional neural COVID-19 cases from X-ray Images. ArXiv: 2004.02696v2,
networks. European Journal of Clinical Microbiology 2020.
InfectiousDiseases,https://doi.org/10.1007/s10096-020-
03901-z, 2020. [32] Pan, S.J., Fellow, Q.Y., 2009. A Survey on Transfer
Learning, pp. 1–15.
[19] Chen X, Yao L, and Zhang Y. Residual Attention U-Net
for Automated Multi-Class Segmentation of COVID-19 [33] Mohanty, S.P., Hughes, D.P., Salathé, M., 2016. Using
Chest CT Images. arXiv:2004.05645v1, 2020. deep learning for image-based plant disease detection. Front.
Plant Sci. 7 (September), 1–7.
[20] Adhikari NCD. Infection Severity Detection of
CoVID19 from X-Rays and CT Scans Using Artificial [34] https://www.tensorflow.org/guide/mixed_precision.
Intelligence. International Journal of Computer (IJC),
38(1):73-92, 2020. [35] https://docs.fast.ai/.
[22] Khan AI, Shah JL, and Bhat MM. Coronet: A deep
neural network for detection and diagnosis of COVID-19
from chest x-ray images. Computer Methods and Programs
in Biomedicine, 196:105581, 2020.