This repository provides codes with datasets for the generation of synthesis images of Covid-19 Chest X-ray using DCGAN as generator and ResNet50 as discriminator from a set of raw covid-19 chest x-ray images, which are enhanced and segmented before passing through the DCGAN model.
Cite this paper Phukan, S., Singh, J., Gogoi, R., Dhar, S., Jana, N.D. (2022). COVID-19 Chest X-ray Image Generation Using ResNet-DCGAN Model. In: Mohanty, M.N., Das, S. (eds) Advances in Intelligent Computing and Communication. Lecture Notes in Networks and Systems, vol 430. Springer, Singapore. https://doi.org/10.1007/978-981-19-0825-5_24
The folder named 1. Image Enhancement contains following contents
- code file (in .ipynb format) of covid-19 Chest X-ray image enhancement using Histogram Equalization techinque.
- Sample of input of the above mentioned code (i.e. Covid-19 Chest X-ray raw grayscale images)
- Sample of output of the above mentioned code (i.e. Covid-19 Chest X-ray enhanced images)
The folder named 2. Image Segmentation contains following contents
-
code file (in .ipynb format) of covid-19 Chest X-ray segmentaed images using 3 different Segmentation techniques. These are:
-
Sample of output of each segmentation techniques.
The folder named 3.Improvised DCGAN+ResNet50 contains following contents
- code file (in .ipynb format) for generation of covid-19 Chest X-ray images.
- Models used:
In this work, all the experiments are implemented in python 3.6.9 using two python frameworks, tensorflow 1.15.0 and keras 2.3.1. For the visualization of the image samples python library matplotlib 3.4.3 is used. Moreover, numpy 1.15 is used to perform the intermediate operations in the code implementation. Furthermore, cv2, PIL, glob, sklearn python packages are also used in the code implementation. Finally, the whole process is executed in Dell precision 7820 workstation configured with ubuntu 18.04 64 bit Operating System, Intel Xeon Gold 5215 2.5GHz processor, 96GB RAM, and Nvidia 16GB Quadro RTX5000 graphics.
- Image enhancement is performed to improve the quality and information content of original data before processing on Covid-19 Chest X-ray raw grayscale images. Some sample images are shown below:
- For that purpose, We have used the Histogram Equalization method. Some sample of Enhanced images are shown below:
- The enhanced images are then segmented using three different clustering methods to focus on the relevant parts of the images.. The methods are:
- Some sample output of each Segmentation techniques are shown below:
- In our model, we have used ResNet50 as Discriminator and DCGAN as generator.
- Additionally, RAdam optimizer is used instead of Adam optimizer in DCGAN (Generator).
- Trained the model with Segmented images of Covid-19 Chest X-ray using K-means clustering method as we achieved better accuracy with K-means Clustering method as compared to other merthods.
- Some sample of generated images are shown below:
Raw Covid-19 chest X-ray images are available in the given google drivelink provided below:
https://drive.google.com/drive/folders/1G_CwpObng9r2XVrLi5ou37IqFcZ6Bu42?usp=sharing
-
Using Histogram Equalization
-
Dataset Link:
https://drive.google.com/drive/folders/106uANtZvTQzx7SdBIASJuqq3TBT8iWy3?usp=sharing