Skip to content

"Covid19-Detector" is a Django-ReactJS Web App with an Artificial Intelligence. It can detect COVID-19 from CT Scan Images using CNN based on DenseNet121 architecture.

Notifications You must be signed in to change notification settings

BitterOcean/Covid19-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😷 Covid19 Detector

Awesome Builed Static Badge Static Badge License

. .
Covid19DetectorLandingPage Covid19DetectorResultShow

In this project, I have a Python Django Web App which can detect COVID-19 from CT Scan Images.


Table of contents

📦 Dataset

. Covid Non-Covid
Dataset 1252 images 1230 images
samples output_13_0 output_15_0
Train Set (80%) Validation Set (20%)
1985 images 496 images

🦾🤖 Deep Learning Model

this is the architecture of DenseNet121

densenet121

🧐 Model Evaluation

Confusion Matrix Accuracy Curve Loss Curve
output_38_1 output_41_0 output_41_1
Metric Formula Proposed Model
Accuracy $$\frac{TP~+~TN}{TP~+~TN~+~FP~+~FN}$$ 94.36%
Sensitivity $$\frac{TP}{TP~+~FN}$$ 93.49%
Specificity $$\frac{TN}{TN~+~FP}$$ 95.23%

👩‍💻 Web App Backend

Pinned Repository

First of all clone the project :

git clone https://github.com/BitterOcean/Covid19-Detector-Backend.git

then, create a virtual enviroment and install python required packages :

  • Linux Users
cd Covid19-Detector-Backend
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
  • Windows Users

open a windows terminal and follow the instructions below:

cd Covid19-Detector-Backend
python3 -m venv .env
.env\Scripts\Activate.ps1
pip install -r requirements_win.txt

finally, go to the project directory and run the bachend django server :

python manage.py runserver

Now the server will run on http://127.0.0.1:8000/

👩‍💻 Web App Frontend

Pinned Repository

step 0 : having Node js 16.x and npm installed

For Debian and Ubuntu based Linux distributions :

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - \ &&
sudo apt-get install -y nodejs

for other platforms, take a look at Nodejs Official Website.

then, install npm :

For Debian and Ubuntu based Linux distributions :

sudo apt install npm
sudo npm -g install create-react-app

for other platforms, use Google to find the instructions. 🙂.

Main Steps:

First of all clone the project :

git clone https://github.com/BitterOcean/Covid19-Detector.git

then, go to the project directory and install required node modules :

npm i

if you got any errors try using --force flag.

npm i --force

after that, to use it locally, you have to change only one line in src/constants/routes.jsx, so :

cd Covid19-Detector/src/constants

and then change the first line, like below :

- export const API_ROOT = 'https://covid-19-detector-model.herokuapp.com';
+ export const API_ROOT = 'http://127.0.0.1:8000';

and finally :

npm start

Now the frontend will run on http://127.0.0.1:3000/Covid19-Detector.
Eventually, here is the point that everything is ready and you can start using the the "Covid19-Detector". 🙂.

📧 SUPPOERT

Reach out to me at one of the following places!

©️ LICENSE

License

About

"Covid19-Detector" is a Django-ReactJS Web App with an Artificial Intelligence. It can detect COVID-19 from CT Scan Images using CNN based on DenseNet121 architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published