Figure 1 contains a flowchart to achieve an online system. The main outcomes are lung engagement with the disease, patient status, and therapeutic guidelines.
First, VGG16, VGG19, Inception V3, and ResNet50 were trained on confirmed COVID-19 X-ray images and normal lung images, then the trained model with the highest efficiency deployed on Google Cloud Platform (GCP) and utilized via a python based API. Images and results transferred using JSON. Specific details will be discussed in the following.
2.1 Train Model
A public dataset provided by Cohen et al. [8] contains confirmed lung images with COVID-19 along with images from hospitals of the Ardabil province of Iran that were used to create a dataset for the machine learning model. Fine-tuned VGG16, VGG19, Inceptionv3, and ResNet50 CNNs were assessed.
VGG16 and VGG19 were proposed by Simonya and Zisserman [9]. These models stacked convolutional layers together. VGG16 has 138.4 million parameters, while VGG19 has 143.7 million parameters. With respect to the size of parameters, training these networks on the small size of the COVID-19 dataset is not efficient. So Fine- tuning these networks helps to develop models sufficient for this study.
He et al. [10] suggested ResNet50 in 2015 with 25.6 million parameters and 152 layers, which is 8x deeper than VGG networks.
Inception-V3 was proposed by Szegedy et al. [11] in 2015, Around 23 million parameters created this network, which achieved 5.6% top-5 error for single frame evaluation on ImageNet Large Scale Visual Recognition Challenge (ILSVRC) 2012 challenge.
Fully connected layer added on top of the pre-trained models. Four hundred confirmed positive COVID-19 subjects with 1000 healthy lungs X-ray images from Radiological Society of North America (RSNA) pneumonia detection challenge [12] created the first version of the model.
2.2 API
The backbone of this system is uploaded on the Google Cloud Platform (GCP), which provides serverless computing services. This feature helps to create and execute models efficiently. The connection between back-end and front-end maintained by JSON. To avoid storage problems, input images do not restore. The structure of API is easy to understand. When an encoded image fed into API, python core will decode and preprocess image. This image will be analysed, and three outputs will be shown on the website: lung engagement with the disease, patient status, and therapeutic guidelines. The main core reports the lung engagement with the disease, and based on this key outcome, other analyses will be done and shown to the user.