Code Monkey home page Code Monkey logo

experiment's Introduction

COVID-19 prediction from Cough Sound


As a first step,

  1. extract the Compare dataset into the 'dataset' folder and rename the folder as 'Compare-Data'. Then extract the CCS data in the 'Compare-Data' folder into that folder.

  2. Extract the Musan dataset into the 'dataset' folder and rename the folder as 'Musan-Data'.

The next step is as follows

  1. Run the code '1_Download_Dataset.ipynb', this code will download the Coswara and Coughvid datasets, then extract them into the 'dataset' folder

  2. Run the code '2_Create_CSV_Files.ipynb', this code will create csv data regarding the Coswara, Coughvid, and Compare datasets and will be saved into the 'csv_files' folder

  3. Run the code '3_Normalized.ipynb', this code will normalize the dataset to be used, and the normalization results will be in each folder in the dataset as in 'dataset/Coswara-Data/wav_normalized'. This code will also merge the 3 normalized datasets into one folder named 'dataset/Merge-Data' and also create CSV data related to the merged data in the 'csv_files/normalized_data' folder. In addition, CSV data will be created regarding train data, eval data, and test data into the 'csv_files/experiment_data' folder.

  4. Run the code '4_Training.ipynb', this code will train the combined dataset using 5 random seeds. In this code, seeds 9,30,41,42, and 46 are used because they have high yields. The training results will be saved in the 'results' folder.

  5. Run the code '5_Testing.ipynb', this code will test the model that has been trained using the test data. This test is carried out using 5 seeds that have been trained previously.

experiment's People

Contributors

zanjabil2502 avatar

Watchers

 avatar

experiment's Issues

Error: FileNotFoundError: [Errno 2] No such file or directory: 'csv_files/Coswara_positive_heavy_dataset.csv'

Mas @zanjabil2502 , saya coba replikasi eksperimen ini tapi muncul error pada step kedua (2_Create_CSV_Files.py)

s3prl-pt38) pc060066:CCS-experiment$ python 2_Create_CSV_Files.py 
100%|███████████████████████████████████████████████████████████████████████████████████████| 2133/2133 [00:09<00:00, 218.12it/s]
['healthy', 'no_resp_illness_exposed', 'positive_mild', 'positive_asymp', 'recovered_full', 'positive_moderate', 'resp_illness_not_identified']
100%|███████████████████████████████████████████████████████████████████████████████████████| 2217/2217 [00:10<00:00, 209.69it/s]
['symptomatic', 'healthy', 'COVID-19']
725it [00:01, 704.25it/s]
Traceback (most recent call last):
  File "2_Create_CSV_Files.py", line 111, in <module>
    PosData = pd.read_csv('csv_files/Coswara_positive_heavy_dataset.csv')
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 610, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 462, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 819, in __init__
    self._engine = self._make_engine(self.engine)
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 1050, in _make_engine
    return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 1867, in __init__
    self._open_handles(src, kwds)
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/parsers.py", line 1362, in _open_handles
    self.handles = get_handle(
  File "/home/bagus/.local/lib/python3.8/site-packages/pandas/io/common.py", line 642, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'csv_files/Coswara_positive_heavy_dataset.csv'

Ada yang terlewat sepertinya sebelum memanggil file csv berikut,

PosData = pd.read_csv('csv_files/Coswara_positive_heavy_dataset.csv')

File Coswara_positive_heavy_dataset.csv tidak ada dan belum pernah di-generate sebelumnya (tidak juga ada di step 1).

Mohon konfirmasinya.

Hasil untuk dua dataset saja

Mas @zanjabil2502,

Mohon ditambahkan satu file ipynb (6_test_dual_dataset.ipynb) lagi untuk mengevaluasi dua hal berikut:

  1. Coswara + Compare
  2. Coughvid + Compare

Pada dua kasus di atas, hanya data Compare Test saja yang dijadikan test, Compare Train dan Val masuk ke training data.

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.