The recent emergence of a highly infectious and contagious respiratory viral disease known as COVID-19 has vastly impacted human lives and greatly burdened the health care system. Therefore, it is indispensable to develop a fast and accurate diagnostic system for timely identification of COVID-19 infected patients and to control its spread. This work proposes a new X-ray based COVID-19 classification framework consisting of (i) end-to-end classification module and (ii) deep feature-space based Machine Learning classification module. In this regard, two new custom CNN architectures, namely COVID-RENet-1 and COVID-RENet-2 are developed for COVID-19 specific pneumonia analysis by systematically employing Region and Edge base operations along with convolution operations. The synergistic use of Region and Edge based operations explores the region homogeneity, textural variations and region boundary; it thus helps in capturing the pneumonia specific pattern. In the first module, the proposed COVID-RENets are used for end-to-end classification. In the second module, the discrimination power is enhanced by jointly providing the deep feature hierarchies of the COVID-RENet-1 and COVID-RENet-2 to SVM for classification. The discrimination capacity of the proposed classification framework is assessed by comparing it against the standard state-of-the-art CNNs using radiologist’s authenticated chest X-ray dataset. The proposed classification framework shows good generalization (accuracy: 98.53%, F-score: 0.98, MCC: 0.97) with considerable high sensitivity (0.99) and precision (0.98). The exemplary performance of the classification framework suggests its potential use in other X-ray imagery based infectious disease analysis.
In this repository, we provide the MATLAB GUI and Testing Code for the Coronavirus Disease Analysis using Chest X-ray Images for the research community to use our research work.
In this work, a new classification framework is developed based on deep learning and classical ML techniques for automatic discrimination of COVID-19 infected patients from healthy individuals based on chest X-ray images. The proposed classification framework is constituted of two modules: (i) Proposed COVID-RENet based end-to-end Classification, and (ii) Deep Concatenated Feature-space based ML classification. In the experimental setup, initially, training samples were augmented to improve the generalization. These augmented samples were used to train the two proposed modules. Fig. 1. (A) shows the modules of the proposed COVID-19 classification framework, whereas (B) gives the detailed overview of the workflow.
Trained Model is available at COVID-RENet-1 and COVID-RENet-2 links.
We built a new dataset consisting of X-ray images of COVID-19 pneumonia and healthy individuals in this work. X-ray images were collected from Open Source GitHub repository and Kaggle repository called “pneumonia”
Dataset will be available on request, contact at hengrshkhan822@gmail.com
Panel (A) and (B) show COVID-19 infected and healthy images, respectively.
Performance comparison of the proposed COVID-RENet-1, COVID-RENet-2 and DCFS-MLC with standard existing CNNs.
Detection and misclassification rate analysis of the proposed COVID-RENet-1, COVID-RENet-2, DCFS-MLC and ResNet.
Performance metrics for the state-of-the-art CNN models that are trained from scratch and TL-based fine-tuned pre-trained on the augmented dataset.
Performance metrics for the deep feature extraction from custom layers of state-of-the-art training from scratch and TL-based fine-tuned pre-trained CNN on the augmented dataset.
COVID-19 (panel a & b) and Healthy (panel c & d) images, which are misclassified.
Feature visualization of the proposed COVID-RENet-1, COVID-RENet-2, DCFS-MLC and the best performing standard existing CNN (ResNet) on test dataset.
Panel (a) shows the original chest X-ray image. Panel (b) shows the radiologist defined COVID-19 infected regions highlighted by yellow circle or black arrow. The resulted heat map of the proposed COVID-RENet-2 and COVID-RENet-1 is shown in panels (c & d), respectively. Panel (e) shows the heat map of the standard existing ResNet model.
ROC curve for the proposed approach (DCFS-MLCS), proposed models (COVID-RENet-1 and COVID-RENet-2), and standard existing CNN models. The values in square bracket show a standard error at the 95% confidence interval.
- Matlab 2019b.
- Deep Learning library.
- NVIDIA GeForce GTX Titan X Computer.
- Clone this repo.
git clone https://github.com/PRLAB21/Coronavirus-Disease-Analysis-using-Chest-X-Ray-Images.git
- Download model and place it in following structure.
Coronavirus-Disease-Analysis-using-Chest-X-Ray-Images
|__ models
|__ net_RENet_VGG_Modified1.mat
|__ net_RENet_VGG_Modified2.mat
-
Testing images are downloaded along with this repo and are present inside "test-dataset" directory.
-
Run testing code using below mentioned methods.
- Open MATLAB.
- Change MATLAB Working Directory to this repository's folder from top panel.
- Now add each folder to MATLAB path from Current Folder panel by right clicking on each folder and selecting Add to Path > Selected Folder and Subfolders.
- Run any of the two test model using following files.
-
test_code_RENet_VGG_Modifier1.m: Use this file for testing the model "net_RENet_VGG_Modified1".
-
test_code_RENet_VGG_Modifier2.m: Use this file for testing the model "net_RENet_VGG_Modified2".
Prof. Asifullah Khan,
Department of Computer and Information Sciences (DCIS),
Pakistan Institute of Engineering and Applied Sciences (PIEAS).
Email: asif@pieas.edu.pk
faculty.pieas.edu.pk/asifullah/
Khan, Saddam Hussain, Anabia Sohail, Muhammad Mohsin Zafar, and Asifullah Khan. "Coronavirus Disease Analysis using Chest X-ray Images and a Novel Deep Convolutional Neural Network." (2020), 10.13140/Rg. 2.2. 35868.64646 April (2020): 1-31.