Git Product home page Git Product logo

covid-19-detection-with-pytorch-using-chest-x-ray's Introduction

Detecting COVID-19 with Chest XRay images

Deep learning model to classify Chest X Ray scan images between 3 classes including Viral pneumonia and COVID-19.

Project Statement This Coursera project aims to classify XRay scan images between 3 classes: Normal, Viral pneumonia and COVID-19. The project utilizes a dataset of images which can be found at Kaggle here. The dataset contains a total of 2,924 grayscale images with a significant class imbalance due to under-representation of the COVID-19 class.

  • 1,341 normal images
  • 1,345 viral pneumonia images
  • 219 COVID-19 images

Working

  • I first split the dataset so that to reserve a validation set of 30 images per classes (90 images total). This will allow to measure the accuracy of the model during training.

  • I use ResNet18 network, with weights pre-trained on ImageNet, only adjusting the final classification layer to predict between the 3 classes.

  • I allow to fine-tune all model parameters during training

  • Training conditions:

    • Adam optimizer with learning rate of 3e-5
    • Pytorch cross entropy loss function
    • Batch size of 6
    • Resized images to (224,224) and normalized as per model requierements
  • The model converges in less than one epoch and achieves an accuracy of over 98% on the validation images

Results

98% accuracy on average with 100% accuracy on COVID detection.

covid-19-detection-with-pytorch-using-chest-x-ray's People

Contributors

kush614 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.