Code Monkey home page Code Monkey logo

covidrecognizer's Introduction

CovidRecognizer ·

version version version

The colab notebooks of this project can be accessed from the models folder of this repository.

AIM:

Classifying whether the the patient is covid positive or negative based on their lung's CT Scan analysis. Performing lung and infection segmentation if the patient is covid positive.

DATASET:

This dataset contains 20 images of covid positive patients along with thier lung mask and infection mask in the Nifti format.

DATA PREPROCESSING:

The data pre-processing step includes the contrast enhancement as well as cropping the CT-scan images such that they focus only on the lung part. To achieve this we used CLAHE enhancer for contrast improvements. To crop the images we first binarised the image and performed bio-medical imaging techniques such as erosion and dilation. Using K-means found clusters and drew bound box around it and cropped the CT-scan.


CLAHE Contrast enhancements


Dataset cropping process


Final preprocessed dataset

CLASSIFICATION:

The pre-processed 2d ct-scans are labeled as Covid-19 positive or negative based on their infection masks. The labeled dataset is then used to train a CNN model which gives a value between 0 and 1. Threshold is decided using ROC curve and the prediction is converted to binary values. A confusion matrix is created which is used to calculate precision, recall and F1 score.



LUNG SEGMENTATION:

The pre-processed 2d ct-scans and the lung masks are used to train a CNN model which marks the lung area in the ct-scans. A U-net is implemented for this task. Dice coefficient is used to judge the efficiency of the model. Exponential decay is used to change the learning rate during training.



INFECTION SEGMENTATION:

We implemented a U-net with dice coefficient along with Cosine Annealing Learning Rate Schedule for state of the art segmentation achieving a dice-coefficient of 0.8217 and validation-dice-coefficient 0.7821.


Infection segmentation model accuracy and lose along with mask predictions

ACKNOWLEDGEMENTS:

[1] - Paiva, O., 2020. CORONACASES.ORG - Helping Radiologists To Help People In More Than 100 Countries! Coronavirus Cases. See here

[2] - Kaggle dataset available here

covidrecognizer's People

Contributors

immahbus avatar lostmartian avatar sarthakverma12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.