Skip to content

A CNN Model to predict if a person is affected with COVID-19 using the x-ray images. The model has been trained on about 300 images and the accuracy of the model currently is 73.19 %. [ Dataset: https://github.com/ieee8023/covid-chestxray-dataset ]

License

Notifications You must be signed in to change notification settings

umarkhan29/COVID-19

Repository files navigation

COVID-19

A CNN Model to predict if a person is affected with COVID-19 using the x-ray images. The model has been trained on about 300 images and the accuracy of the model currently is 73.19 %.

Dataset

https://github.com/ieee8023/covid-chestxray-dataset

select_covid_patient_X_ray_images.py

This code finds all x-ray images of patients of COVID-19 and stores selected image to an COVID directory

  • It uses metadata.csv for searching and retrieving images name
  • Using ./images folder it selects the retrieved images and copies them in covid folder Code can be modified for any combination of selection of images

select_normal_patient_X_ray_images.py

This code finds all x-ray images of normal patients and stores selected image to an normal-images directory

  • It uses metadata.csv for searching and retrieving images name
  • Using ./images folder it selects the retrieved images and copies them in normal-images folder Code can be modified for any combination of selection of images

X-RAY Image (COVID-19)

INPUTS

[Data Set Image]



Accuracy

INPUTS

[Accuracy: 73.19%]



Plotting Accuracy

INPUTS

[Accuracy]



Plotting Loss

INPUTS

[Loss]



GetCovidtoCSV.py

GetCovidtoCSV creates a CSV format of data set with resized images of your defined size (Height, Width)
We got labels for every image from metadata.csv and in new creted dataset, first attribute defines the label label == 1 defines COVID-19 and Label == 0 defines all others
Since Excel contains XFD as last column and XFD equals 16384. Thus we have to look for the resized height and width
In this example we took 40 x 40 with 3 channels making total row size (40x40x3)+1 +1 is added because label is stored as first attribute of image

This will be used for some users who want to work with CSV dataset and not the images directly

About

A CNN Model to predict if a person is affected with COVID-19 using the x-ray images. The model has been trained on about 300 images and the accuracy of the model currently is 73.19 %. [ Dataset: https://github.com/ieee8023/covid-chestxray-dataset ]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages