Coder Social home page Coder Social logo

ronylpatil / covid-19-detection-using-deep-hybrid-learning Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 6.0 3.97 MB

Image classification using XGBOOST by extracting features using VGG16 ImageNet. This project explains the process of using XGBOOST for image classification using pre-trained weights (VGG16) as feature extractors.

License: MIT License

Python 100.00%
deep-hybrid-learning hybrid-model machine-learning deep-learning

covid-19-detection-using-deep-hybrid-learning's Introduction

Covid-19-Detection-WebApp-using-Deep-Hybrid-Learning

Profile Visits :

Visitors

Drawing

Description : Covid-19 Detection from MRI's or CT Scan Images using Deep Hybrid Learning Technique. Here in this project, I am combining best of the both world's, one is traditional Machine Learning and Deep Learning to create a solution that works amazingly well especially when we have a limited training dataset. Here I used VGG16 Pre-trained Network for extracting useful features of image dataset and finally used XGBOOST for classifying the images.

XGBoost is optimized version of gradient boosting and it is a much evolved version of random forest, actually XGBoost optimize speed and possibly accuracy. Suppose we don't have millions or thousands of images that required for deep learning then I found that the accuracy that I got with tens of images with XGBoost is far superior to what we would get with deep learning. So anytime if we work with limited data, always think about XGBoost as first option and if it doesn't work great then of course try deep learning. I am sure that sometime deep learning will not be enough if we have limited data. We can also engineer our own feature extractor but here I'm going to use VGG16 pretrained architecture which make it easy for us to extract these features without defining alot of code.

At the end these fusion trained on 1000 MRI's or CT scans images (500 each COVID-19 & NORMAL) and finally achieved 98.32% accuracy and it took only 21.89 seconds to train this model. This fusion learning reduce the training time of our model, in general deep larning it usually takes a lot of time for training a model, but this hybrid technique reduced the training time and at the same time gave very good accuracy.

Folder Structure :

                    X-ray       --> main folder
                      ----| train      
                          ----| COVID-19
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg
                          ----| NORMAL
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg
                      ----| test
                          ----| COVID-19
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg
                          ----| NORMAL
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg 
                      ----| valid
                          ----| COVID-19
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg
                          ----| NORMAL
                              ----| img1.jpg
                              ----| img2.jpg
                              ----| img3.jpg
                              ----| img4.jpg 

Network Architecture :

Drawing

Confusion Matrix :

Drawing

Classification Report :

Drawing

Dataset Source : https://www.kaggle.com/fusicfenta/chest-xray-for-covid19-detection

Sample Output :

Drawing

Made with โค by ronil

covid-19-detection-using-deep-hybrid-learning's People

Contributors

ronylpatil avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

covid-19-detection-using-deep-hybrid-learning's Issues

wich step missing here?

SNAG-0860

git clone https://github.com/ronylpatil/Covid-19-Detection-using-Deep-Hybrid-Learning.git
cd Covid-19-Detection-using-Deep-Hybrid-Learning/
pip install xgboost
streamlit run webapp3.py

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.