Giter Club home page Giter Club logo

ai4covid's Introduction

AI4COVID

This project is a result of the WirVsVirus Hackathon. Our objective was to assist doctors in diagnosing COVID-19 patients by training a convolutional network to discriminate between patients with and without the disease, based on an X-ray image. We use a DenseNet121 pretrained on the CheXpert dataset and finetune it to the covid-chestxray-dataset. Furthermore, we implemented a simple prediction service that displays the diagnosis based on an X-ray image uploaded by the user.

alt text

How does it work?

  1. We first trained the COVID-19 classifier on Google Colab. See the notebook file covid_19.ipynb.
  2. We then implemented a simple backend server in Flask, that loads the classifier and performs inference on the X-ray image uploaded by the user.
  3. Finally, we developed a simple frontend server that allows user to upload an X-ray image and see the results of diagnosis: the predicted probability of patient having COVID-19 and the heatmap of critical regions on the X-ray that contributed to the diagnosis.

Setup

Requirements:

  • python >=3.7.6
  • NPM >=6.13.4

Running the application

  1. cd ai4covid -- Enter project root directory
  2. chmod +x setup.sh run.sh -- Add execute permission to the scripts
  3. ./setup.sh -- Install dependencies
  4. ./run.sh -- Run the backend and the frontend servers

ai4covid's People

Contributors

adrigru avatar dependabot[bot] avatar kweimann avatar arpithaupd 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.