Giter Site home page Giter Site logo

covid19-sounds-kdd20's Introduction

covid19-sounds-kdd20

This repo is for our KDD paper Exploring Automatic Diagnosis of COVID-19 from Crowdsourced Respiratory Sound Data. arXiv preprint arXiv:2006.05919.

Dataset

We do release our dataset used in this paper for research purpose. To obtain this, please visit our website https://www.covid-19-sounds.org/en/blog/data_sharing.html for more details.

Basically, the dataset consists of ten groups of samples:

  • covidandroidnocough,
  • covidandroidwithcough,
  • covidwebnocough,
  • covidwebwithcough,
  • healthyandroidnosymp,
  • healthyandroidwithcough,
  • healthywebnosymp,
  • healthywebwithcough,
  • asthmaandroidwithcough,
  • asthmawebwithcough.

Since we have two applications to collect the data, we use 'web' and 'android' to distinguish them. Also, in the name format, 'nocough' and 'withcough' indicate whether the user reported a dry or wet cough symptom, while 'nosymp' means that the user had no symptoms at that time. In each Android file, cough and breath samples are presented separately, and thus a .json file named as android_breath2cough.json is provided to match cough with breath of the same user. For example, "breaths_CNz7PwFNQz_1588140467902.wav": "cough_CNz7PwFNQz_1588140467941.wav" indicates those two audios were contributed by "the same" user CNz7PwFNQz.

Unzip all the folds in this dataset before using it to this model!

Codes

Our model is implemented by Python3 with Tensorflow. To reproduce the results, codes are provided.

Dependencies (others may also work)

Training

To train and evaluate our model, please sh run_experiments.sh $path. $path is the dataset path (use the full path).

Specifically, this bash executes all the python scripts sequentially as follows,

python 01_extract_handcraft_features.py $path

This code is to extract 477-dimensional handcraft features for each breathing or cough audio file. The returned tensor is a combination of features for corresponding breathing and cough pairs (dimension = 477 * 2 = 954).

python 02_extract_vgg_features.py $path

It is to obtain vggish features (dimension = 128 * 2 = 256): from a pretrained VGG network (Codes are in vggish folder).

python 03_classification_without_augmentation.py

In this script, we research a variety of feature fusion strategies and hype-parameters to get the best performance for three tasks, respectively. Results are saved as readable CSV files.

python 04_classification_with_augmentation.py

This code is only for task2 and task3, where we add some augmented sounds to improve the performance of classification.

After parameter tuning, we represent the best model in Table1. The implemetation can be found in show_results.ipynb.

Besides, feature analysis process as shown in Figure1 is given in feature_visulization.ipynb.

Issues

This code project is developed by Tong Xia with Github account XTxiatong. Any problem, please contact me by [email protected].

covid19-sounds-kdd20's People

Contributors

xtxiatong avatar

Watchers

James Cloos 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.