In this section, the proposed framework has been explained. First, the used chest X-ray dataset has been described. Then, the developed framework, which includes pre-processing phase and the Classification using CNN models based on transfer learning phase, has been illustrated. Two different approaches have been used to train pre-trained CNN models using transfer learning. The first approach uses whole chest X-ray images, while the other approach uses lung-segmented images.
In this research, the data obtained from the COVID-19 Radiography Database has been used to apply the proposed framework. The database contains thousands of publicly available benchmark X-ray images and corresponding lung masks. The X-ray images are provided in Portable Network Graphics (PNG) format with a resolution of 299299 pixels. The database includes 10,192 Normal cases, 3616 positive COVID-19 cases, 1345 Viral Pneumonia cases, and 6012 Lung Opacity images as shown in Table1. This database was developed by a team from Qatar University, Dhaka University, Bangladesh with cooperators from Malaysia and Pakistan and cooperators of medical doctors26. Figure1 illustrates samples from different classes in the COVID-19 Radiography Database.
Samples from COVID-19 radiography chest database representing different classes.
The purpose of the pre-processing phase is to prepare the X-ray images for classification using CNN pre-trained models. In this phase, different pre-processing steps are applied to improve the performance of the classification. The pre-processing steps can be summarized as follows:
Enhancing images is a significant step for the correct classification. It increases image contrast in order to improve classification performance. Different techniques can be applied to enhance the images. In this research, some of these techniques have been applied to the original X-ray images before introducing them to the classification models, they are as follows:
Histogram Equalization (HE): The purpose of histogram equalization (HE) is to spread the gray levels inside the image. It modifies the brightness and contrast of the images to improve the image quality27. The original X-ray images intensity has been enhanced using histogram equalization (HE).
Contrast Limited Adaptive Histogram Equalization (CLAHE): It originated from Global Histogram Equalization (GHE), it is based on dividing the image into non-overlapping blocks, and after that, the histogram of each block is gotten using a pre-specified value28. In this research, CLAHE has been used to enhance the contrast of original X-ray images.
Image Complement: The complement or inverse of X-ray images transforms the dark positions to lighter and the light positions to darker. As this is a standard process, which is similar to that used by radiologists, it may aid a deep learning model for improving classification performance. The complement of the binary image can be obtained by changing the zeros to ones and ones to zeros. Whereas for a grayscale image, each pixel is subtracted from 255.
Figure2 shows an original X-ray image and its enhanced versions after applying HE, CLAHE and image complement on the original image with the corresponding histogram plots for each version.
An X-ray image and its enhanced versions after applying HE, CLAHE and complement to the original image and the corresponding histogram plots.
In the segmentation step, the regions of interest (ROI), which are the lungs region in our case, are cropped from the associated image. In this research, the ground truth lungs masks which are provided by the database have been used. A modified U-Net model was applied by the authors of the database on the X-ray images to get the lung masks associated with the full X-ray images. In this research, multiplication between each original image and the associated lung mask has been applied to get the segmented lungs. The same process of multiplication between different enhanced image versions and the associated masks has been applied to get different versions of segmented datasets with different enhancements. All these versions are introduced to CNN models as segmented versions of data. Figure3 shows the segmented images of the original image and of the different enhanced images for one of the COVID samples.
X-ray original image and its enhanced versions and the segmented lung region of each version.
Resizing the images is an essential process to satisfy the requirement of CNN of equally sized input images. In this research, the process of resizing X-ray images has been done to fit all X-ray images to the input size of the used pre-trained CNN models which are VGG19 and EfficientNetB0. Therefore, all images versions either full or segmented versions were resized to fit the CNNs input image size which is 224224 pixels. To expedite the training process, it was found that the size of 112112 pixels expedited the training without affecting the performance metrics.
In this research, different versions of either full or segmented chest X-ray images have been introduced to CNN models to train the classifiers. Different experiments have been carried out on the original and segmented lung X-ray images both with their different enhanced versions. The classification has been done using VGG1914 and EfficientNetB016 pre-trained CNN models. After the calculation of different performance metrics, the best model has been selected as the adopted model. The next subsections give a brief description of the used pre-trained models.
VGG19 is a variant of the VGG CNN model which was created by Visual Geometry Group (VGG) at Oxford University. VGG19 was one of the winners of the Image Net Large Scale Visual Recognition Challenge (ILSVRC) in 2014. The size of the input image to VGG19 is (224 224). VGG19 contains 16 convolution layers, 5 max-pooling layers and 3 fully connected layers. The convolution layers are with (3 3) filters' size, stride of 1 pixel and padding of 1 pixel. The max-pooling layers are with a size of 2 2 and a stride of 2. The rectification (ReLU) activation function is utilized for all hidden layers. Then, the first 2 fully connected layers with 4096 channels each are uitilized followed by the last layer of 1000 channels to represent the different 1000 classes of the ImageNet with soft-max activation function15.
Google research group designed a family of models, called EfficientNets using a scaling method and achieved better efficiency and accuracy than previous ConvNets. EfficientNet is based on scaling CNNs and reaching better performance by balancing network width, depth, and resolution. Therefore, the focus is to present a scaling method to uniformly scale the 3 dimensions with a simple highly effective compound coefficient. Thus, it can be considered as an optimization problem to find the best coefficients for depth, width, and resolution that maximizes the accuracy of the network given the constraints of the available resources. The primary building block of the EfficientNet models is MBConv. The network's dimension equation was used to get the family of neural networks EfficientNet-B0 to B716. In this research, EfficientNetB0 was used for the classification of the chest X-ray images. Figure4 sums up the framework of the adopted methodology in this research.
The framework of the used methodology for Chest X-ray images classification.
This article does not contain any studies with human participants or animals performed by the author.
Read the original here:
COVID19 detection from chest X-ray images using transfer learning | Scientific Reports - Nature.com
- Coronavirus Scam Alert: Watch Out For These Risky COVID-19 Websites And Emails - Forbes [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID19: Broome County Executive expected to sign executive orders on virus - WBNG-TV [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Houston-based company ready to test COVID-19 'vaccine candidate,' but doesn't have the funds - KHOU.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID19 Mesa County Public Health [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Coronavirus Disease 2019 (COVID-19) | SCDHEC [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Coronavirus disease 2019 - Wikipedia [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Hackers are jumping on the COVID-19 pandemic to spread malware - TechCrunch [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID-19 can last a few days on surfaces, according to new experiment findings - ABC News [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- The Guardian view on the UKs Covid-19 response: confused and hesitant - The Guardian [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- The COVID-19 Coronavirus Pandemic Highlights The Importance Of Scientific Expertise - Forbes [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- WHO Expert: Aggressive Action Against Coronavirus Cuts Down On Spread : Goats and Soda - NPR [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- 2 new cases of COVID-19 at Chicago schools - WGN TV Chicago [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Will Gargling with Salt Water or Vinegar 'Eliminate' the COVID-19 Coronavirus? - Snopes.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Worried about dying from COVID-19? You might be a millennial | TheHill - The Hill [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Startups developing tech to combat COVID-19 urged to apply for fast-track EU funding - TechCrunch [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Why do dozens of diseases wax and wane with the seasonsand will COVID-19? - Science Magazine [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- WHO, UN Foundation and partners launch first-of-its-kind COVID-19 Solidarity Response Fund - World Health Organization [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Covid-19: PM to address nation tonight - New Straits Times [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID-19: Where every sport lies after mass disruption - RTE.ie [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID-19: Facts, myths and hypotheses | TheHill - The Hill [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Hong Kong Has Largely Survived COVID-19. Can New York and The US Do It Too? - BuzzFeed News [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- UPDATE: Case of COVID-19 confirmed in Wilson County - WITN [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Is This Train Car Carrying 'COVID-19'? - Snopes.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Coronavirus pandemic: facts, updates and what to do about COVID-19 - The Verge [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- DHS: 34 people test positive for COVID-19 in Wisconsin - WBAY [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- COVID-19 by the numbers; plus key resources to help you stay informed - Berkeleyside [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- The Covid-19 puzzles that scientists are still trying to answer - The Guardian [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- What's the COVID-19 end game? - The San Diego Union-Tribune [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- The Covid-19 coronavirus is not the flu. Its worse. - Vox.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Phones Could Track the Spread of Covid-19. Is It a Good Idea? - WIRED [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- NIH Reports First Known Employee with COVID-19 Infection - National Institutes of Health [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Newborn tests positive for COVID-19 in London - Livescience.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Covid-19: Malaysia's pandemic action plan activated for the coronavirus - The Star Online [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- How Bad Will The COVID-19 Coronavirus Epidemic Get In The U.S.? Health Experts Weigh In - Forbes [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- Can People Who Recover from COVID-19 Become Reinfected? - Snopes.com [Last Updated On: March 16th, 2020] [Originally Added On: March 16th, 2020]
- THE LATEST: 41 test positive for COVID-19 in the state - WFSB [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Twelve new cases of COVID-19 announced in Illinois; bringing total to 105 - KWQC-TV6 [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Eagle County outlines shift for COVID-19 testing, Vail Health shifts operations - Vail Daily News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- 7th positive COVID-19 case announced in Hawaii, all cases related to travel - KHON2 [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Canada tightens borders over coronavirus will it curb COVID-19s spread? - Global News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- As health care workers prepare for COVID-19, medical students pitch in on the homefront - Minnesota Public Radio News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coronavirus First positive case of COVID-19 confirmed in Geauga County Kaylyn Hlavaty 7:58 AM - News 5 Cleveland [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- 2nd presumptive case of COVID 19 reported in Bell County - KWTX [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- New confirmed cases of COVID-19 in Wisconsin - WKOW [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Hawaii National Guard ready to step in against spread of COVID-19 - KHON2 [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Alberta orders all classes cancelled, daycares closed as COVID-19 cases rise to 56 in the province - Global News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Has Italy Stopped Treating the Elderly in the COVID-19 Pandemic? - Snopes.com [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coronavirus testing: Information on COVID-19 tests according to state health departments - NBCNews.com [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Working from home because of COVID-19? Here are 10 ways to spend your time - Science Magazine [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Two positive COVID-19 cases announced in Fairbanks, bringing Alaska's confirmed total to 3 - Anchorage Daily News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- 8 more positive cases of COVID-19 brings Michigan total to 33 - FOX 2 Detroit [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- COVID-19: Who Is Infectious? - Forbes [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- The Guardian view on the latest Covid-19 steps: a recipe for isolation - The Guardian [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Government publishes updated COVID-19 industry guidance - GOV.UK [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- NIH clinical trial of investigational vaccine for COVID-19 begins - National Institutes of Health [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Expanding Colorado's COVID-19 Testing Capacity Proves Frustrating to Polis, Doctors And The Public - Colorado Public Radio [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Microsoft Bing launches interactive COVID-19 map to provide pandemic news - The Verge [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coronavirus tips: How to slow the spread of COVID-19 with hand-washing, social distance - USA TODAY [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- See Which Countries are Flattening their COVID-19 Curve - Visual Capitalist [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- With launch of COVID-19 data hub, the White House issues a call to action for AI researchers - TechCrunch [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- COVID-19 - Cabinet for Health and Family Services [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coronavirus Disease 2019 (COVID-19) | AustinTexas.gov [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- First COVID-19 case in Waterbury is confirmed - Waterbury Republican American [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Covid-19 reveals the alarming truth that many children cant wash their hands at school - The Guardian [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Statement on COVID-19 Panel Discussion Notes That Were Attributed to UCSF - UCSF News Services [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Covid-19 coronavirus testing in the US has been absurdly sluggish. That puts us at risk. - Vox.com [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Regal is closing all theaters until further notice over COVID-19 fears - TechCrunch [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Amazon limiting shipments to certain types of products due to COVID-19 pandemic - TechCrunch [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coralville company to produce millions of kits to test for COVID-19 - KCRG [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Number of COVID-19 cases in Erie County rises to 11, new case confirmed in Wyoming County - WIVB.com - News 4 [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Coronavirus tips and symptoms: What everyone should know about getting the new coronavirus - Vox.com [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Tech giants are getting creative to manage the COVID-19 crisis - The Verge [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- COVID-19: Mental health in the age of coronavirus - UN News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- White House provides an update on COVID-19 testing in the U.S., says theres been a dramatic ramp - TechCrunch [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Covid-19: How long does the coronavirus last on surfaces? - BBC News [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Hospital in Boston will be converted into Covid-19 treatment center - STAT [Last Updated On: March 18th, 2020] [Originally Added On: March 18th, 2020]
- 78 cases of COVID-19 confirmed in Tennessee - NewsChannel5.com [Last Updated On: March 18th, 2020] [Originally Added On: March 18th, 2020]
- COVID 19: Tennessee confirmed cases reaches 52, Dept of Health releases age ranges of those infected - Clarksville Now [Last Updated On: March 18th, 2020] [Originally Added On: March 18th, 2020]
- Housing associations under pressure to offer Covid-19 rent holidays - The Guardian [Last Updated On: March 18th, 2020] [Originally Added On: March 18th, 2020]
- Sacramento woman dead from COVID-19 attended church with others who have virus - KCRA Sacramento [Last Updated On: March 18th, 2020] [Originally Added On: March 18th, 2020]