All Projects → kaushikjadhav01 → Covid 19 Detection Flask App Based On Chest X Rays And Ct Scans

kaushikjadhav01 / Covid 19 Detection Flask App Based On Chest X Rays And Ct Scans

COVID-19 Detection Chest X-rays and CT scans: COVID-19 Detection based on Chest X-rays and CT Scans using four Transfer Learning algorithms: VGG16, ResNet50, InceptionV3, Xception. The models were trained for 500 epochs on around 1000 Chest X-rays and around 750 CT Scan images on Google Colab GPU. A Flask App was later developed wherein user can upload Chest X-rays or CT Scans and get the output of possibility of COVID infection.

Projects that are alternatives of or similar to Covid 19 Detection Flask App Based On Chest X Rays And Ct Scans

Numpy neural network
仅使用numpy从头开始实现神经网络,包括反向传播公式推导过程; numpy构建全连接层、卷积层、池化层、Flatten层;以及图像分类案例及精调网络案例等,持续更新中... ...
Stars: ✭ 339 (+413.64%)
Mutual labels:  jupyter-notebook, vgg
Pytorch Image Classification
Tutorials on how to implement a few key architectures for image classification using PyTorch and TorchVision.
Stars: ✭ 272 (+312.12%)
Mutual labels:  jupyter-notebook, vgg
Food Recipe Cnn
food image to recipe with deep convolutional neural networks.
Stars: ✭ 448 (+578.79%)
Mutual labels:  jupyter-notebook, vgg
Tianchi Medical Lungtumordetect
天池医疗AI大赛[第一季]:肺部结节智能诊断 UNet/VGG/Inception/ResNet/DenseNet
Stars: ✭ 314 (+375.76%)
Mutual labels:  jupyter-notebook, vgg
Keras Idiomatic Programmer
Books, Presentations, Workshops, Notebook Labs, and Model Zoo for Software Engineers and Data Scientists wanting to learn the TF.Keras Machine Learning framework
Stars: ✭ 720 (+990.91%)
Mutual labels:  jupyter-notebook, vgg
Blogposts
Code collection for published blog posts
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Pydata Pandas Workshop
Material for my PyData Jupyter & Pandas Workshops, I'm also available for personal in-house trainings on request
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Segregation
Segregation Analysis, Inference, and Decomposition
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Quantum Machine Learning
Notebooks from University of Toronto's Quantum ML MOOC
Stars: ✭ 66 (+0%)
Mutual labels:  jupyter-notebook
Cs231n
cs231n assignments sovled by https://ghli.org
Stars: ✭ 1,139 (+1625.76%)
Mutual labels:  jupyter-notebook
Learningdataminingwithpython
Updated code for the Learning Data Mining With Python book
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Dscourses18
ECON 5970: Data Science for Economists, University of Oklahoma (Spring 2018)
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Pybkb v3
Python scripts that help me be a successfull meteorologist. (Python 3)
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Duke Tsinghua Mlss 2017
Duke-Tsinghua Machine Learning Summer School 2017
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Python
Jupyter notebooks and datasets for the interesting pandas/python/data science video series.
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Exampleplots.jl
Collection of examples and recipes for Plots.jl
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Eda1
Stars: ✭ 64 (-3.03%)
Mutual labels:  jupyter-notebook
Learning Deep
All my deep learning notes: contains v1 of machine learning with Jeremy Howard, and v1 of Fastai Deep Learning 2018 part 1
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Radio Hacking Scripts
Scripts to aid in the manipulation of electromagnetic radiation (for use with gnu_radio and SDR).
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook
Etymap
Interactive visualization of Wiktionary words and etymologies.
Stars: ✭ 65 (-1.52%)
Mutual labels:  jupyter-notebook

COVID-19-Detection-Flask-App-based-on-Chest-X-rays-and-CT-Scans

COVID-19 Detection based on Chest X-rays and CT Scans using four Transfer Learning algorithms: VGG16, ResNet50, InceptionV3, Xception. The models were trained for 500 epochs on around 1000 Chest X-rays and around 750 CT Scan images on Google Colab GPU. After training, the accuracies acheived for the model are as follows:

                InceptionV3  VGG16   ResNet50   Xception
Chest X-rays    96%          94%      83%       92%

CT Scans        93%          93%      80%       95%

A Flask App was later developed wherein user can upload Chest X-rays or CT Scans and get the output of possibility of COVID infection.

The article for the project was selected and published in Towards Data Science:
https://towardsdatascience.com/covid-19-detector-flask-app-based-on-chest-x-rays-and-ct-scans-using-deep-learning-a0db89e1ed2a

NOTE ----- DO THIS BEFORE SETUP -----

The dataset and models of the repository have been moved to Google Drive due to expiry of my Github LFS. So please download the zip file from here, extract it and replace the above data and models folder with these. Make sure you follow these steps otherwise Flask App will not work properly. Also make sure you have PYTHON V 3.8.5. Other versions might not be supported

Dataset

The dataset for the project was gathered from two sources:

  1. Chest X-ray images (1000 images) were obtained from: https://github.com/ieee8023/covid-chestxray-dataset
  2. CT Scan images (750 images) were obtained from: https://github.com/UCSD-AI4H/COVID-CT/tree/master/Data-split 80% of the images were used for training the models and the remaining 20% for testing

Evaluation and Results

Sample output of test images


Classification Reports for Chest X-rays: VGG, InceptionV3, ResNet50, Xception

Confusion Matrix for Chest X-rays: VGG, InceptionV3, ResNet50, Xception

Classification Reports for CT Scans: VGG, InceptionV3, ResNet50, Xception

Confusion Matrix for CT Scans: VGG, InceptionV3, ResNet50, Xception

Screenshots of Flask App

For more screenshots, please visit the screenshots folder of my repo, or click here

Technical Concepts

ImageNet is formally a project aimed at (manually) labeling and categorizing images into almost 22,000 separate object categories for the purpose of computer vision research.
More information can be found here

ResNet50 ResNet-50 is a convolutional neural network that is 50 layers deep. You can load a pretrained version of the network trained on more than a million images from the ImageNet database. The pretrained network can classify images into 1000 object categories, such as keyboard, mouse, pencil, and many animals. Unlike traditional sequential network architectures such as AlexNet, OverFeat, and VGG, ResNet is instead a form of “exotic architecture” that relies on micro-architecture modules.
More information can be found here

VGG16 is a convolutional neural network model proposed by K. Simonyan and A. Zisserman from the University of Oxford in the paper “Very Deep Convolutional Networks for Large-Scale Image Recognition”. The model achieves 92.7% top-5 test accuracy in ImageNet, which is a dataset of over 14 million images belonging to 1000 classes.
More information can be found here

Inception-V3 is a convolutional neural network that is 48 layers deep. You can load a pretrained version of the network trained on more than a million images from the ImageNet database. The pretrained network can classify images into 1000 object categories, such as keyboard, mouse, pencil, and many animals. As a result, the network has learned rich feature representations for a wide range of images. The network has an image input size of 299-by-299.
More information can be found here

Xception is a convolutional neural network that is 71 layers deep. You can load a pretrained version of the network trained on more than a million images from the ImageNet database. The pretrained network can classify images into 1000 object categories, such as keyboard, mouse, pencil, and many animals. As a result, the network has learned rich feature representations for a wide range of images. The network has an image input size of 299-by-299.
More information can be found here

How to use Flask App

  • Download repo, change to directory of repo, go to command prompt and run pip install -r requirements.txt
  • The dataset and models of the repository have been moved to Google Drive due to expiry of my Github LFS. So please download the zip file from here, extract it and replace the above data and models folder with these. Also make sure you have PYTHON V 3.8.5. Other versions might not be supported
  • On command prompt, run python app.py
  • Open your web browser and go to 127.0.0.1:5000 to access the Flask App

How to use Jupyter Notebooks

  • Download my repo and upload the repo folder to your Google Drive
  • Go to the jupyter notebooks folder in my repo, right click the notebook you want to open and select Open with Google Colab
  • Activate free Google Colab GPU for faster execution. Go to Runtime -> Change Runtime Type -> Hardware Accelerator -> GPU -> Save

Authors

Kaushik Jadhav

  • Github:https://github.com/kaushikjadhav01
  • Medium:https://medium.com/@kaushikjadhav01
  • LinkedIn:https://www.linkedin.com/in/kaushikjadhav01/
  • Portfolio:http://kaushikjadhav01.github.io/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].