/Covid-19-Detector

Covid-19 Detection in X-ray images

Primary LanguagePython

Covid-19-Detector

Description

It is very much evident what Deep Learning can achieve in the Medical field, hence in view of the current situation of pandemic and for education purpose, I have created a Web Application that could detect Covid-19 in X-ray images. Obtained following performance metrics:

  1. Accuracy: 98%
  2. Sensitivity: 95%
  3. Specificity: 100%

Installation

pip install the following libraries:

  1. pandas
  2. numpy
  3. scikit-learn
  4. tensorflow
  5. keras
  6. flask
  7. opencv-python
  8. Pillow

Dataset: 1) link for Covid-19 X-ray images 2) link for Healthy persons X-ray images

Above datasets can be found in this repository in the Covid-19_model/covid-chestxray-dataset-master folder (For Covid-19 patients) and in the Covid-19_model/chest_xray folder (For Healthy persons).

Usage

covid_positive_dataset.py and kaggle_normal.py files are used to extract images from the above mentioned datasets folder and copy it in Covid-19_model/dataset folder.

covid_model.py file contains the actual code of model creation and covid_initial.h5 contain the saved model.

For running the Web application, run the predict_app.py (Flask application) file in the flask_app folder.

This is how the Web Application looks and work.

Covid_19_GIF Normal_GIF