Skip to content

As part of NSC2024 competition, MosWing Streamlit is a webpage for running detecting mosquito wingbeat from recorded audio.

License

Notifications You must be signed in to change notification settings

ACitronella/nsc2024-moswing

Repository files navigation

MosWing Streamlit

Install Dependencies

We only tested on python 3.10.12, however the python official website does not provide an installer for this version. So, we suggest you install from conda and install the rest of dependencies in pip.

conda create -n moswing python=3.10.12
conda activate moswing
pip install -r requirements.txt

Run

By default streamlit has a constrain that it restricts the size of uploaded file to 200 MB. We can change that by adding a tag server.maxUploadSize to something else beside 200.

streamlit run main.py --server.maxUploadSize 200

Note: There is a constrain that the model only works on the sound with length modulo of 10 (10s, 20s, 30s). If the sound with non-modulo of 10 is present, the model will cut of the non-divisible duration of the sound and only predict on the first divisible chunk. For instance, the sound with 105 seconds will be used by the model only 100 seconds and leave the 5 seconds untouch.

Webpage on Action

Users can select the model setting in the top dropdown and select sound files (specifically .wav files) to the file uploader.

webpage

After the sound has been uploaded, the model will give prediction in the interactive plot with x-axis is time and y-axis represents species (x, y). If the dot is present in (17, An.Dirus.M), meaning the model predicted that there is (an) anopheles mosquito(es) presents at 17 seconds in the recording.

webpage

About

As part of NSC2024 competition, MosWing Streamlit is a webpage for running detecting mosquito wingbeat from recorded audio.

Topics

Resources

License

Stars

Watchers

Forks

Languages