Skip to content

nourhansowar/COVID-19-Detection-using-NLP-Deep-Learning-Internship

Repository files navigation

COVID-19-Detection-using-NLP

Presentation Link: https://www.youtube.com/watch?v=uSDq2PNSypE

In this blog, we have focused in distinguish the cough to determine if the person is infected with coronavirus or not.

We start by importing the packages and configuring some settings.

image

Loading Data

We read the data set coughvid from the virufy repo.

image

It contains a CSV file that contains the patient ids and some information about the patient health.

image

Visualizing dataset

image

Audio Preprocessing

Using the trim method from libsora library, we have implemented the trim_silence function to trim silence from the audio signal and its intervals. image

Get mel spectrogram using libsora method and convert it to DB and save the result as image .png.

image

Get raw MFCC feature and get the label of every patient.

image

Then implement and filter data set to extract necessary features in JSON files.

image

The JSON file contains a dictionary of dictionary patient ID, mel spectrum image. MFCC coefficients, and labels.

image

Approach 1 using MFCC Coff and labels:

Work on JSON files and create a CSV file contains only patient ID, rawMFCC, and labels.

image

- Model Architecture:

Implement logistic regression architecture: image

And the result is :

image

Approach 2:

In this approach, we have worked on images generated from mel scale and labels

-Preprocessing to extract images and their labels:

image

Using ImageGenerator to overcome unbalanced data:

image

Then, Implement a CNN model image

Using Mobilenet architecture and adam optimization image

The result is :

image

Then using Resnet 50 and use 20 epochs to train :

image

Getting the result :

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published