Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.20627490Description author: Garance Barbier Context & recordings I recorded ants in laboratory conditions, 10-minute long recordings can be found in this dataset as .wav files. I extracted from those recordings sound samples when the ant performed one specific behaviour, and labeled each sound samples with the corresponding behaviour as shown in the annotation table. Recordings starting with "140423" come from colony recordings, done in the lab using a contact microphone with a waveguide planted in the soil and last 30 minutes. To control for the background noise I added samples titled "background" that are random ant colony noise. All other recordings were from individual recordings, where ants were put on a piece of paper with a contact microphone under the paper. From those samples I extracted acoustic features that were plotted on an ordination space to see that behaviours could be distinguished from one another. The same acoustic features were also used as input to train a random forest classifier, showing the acoustic signature of behaviours could be exploited by a machine learning program to identify behaviours from the audio features. Script The script is the file with the name starting with "markdown" and runs on R Studio. It shows the feature extraction and selection pipeline, plots the ordinations, tests the scores of the different behaviours, runs the random forest. Comments explain what decisions were made and why. Some parts of this code are adapted from code examples available online, the relevant parts are preceded with a citation to the original source. Packages required to run are all at the very beginning of the code, and installation of the packages may be needed if they are not already downloaded. Installing a package only needs to be done once, before running the "library" commands. Downloading a package can be done with the following command: "install.packages("exact_package_name")". The script requires the recordings and the annotation table to run. Recordings should all be in the same folder. Most functions use the working directory as the path by default when looking for recordings, but for clarity I have given explanatory names in the script, for instance "path_to_annotation_table" and "path_to_folder_with_the_recordings". The script contains codes to calculate features and make plots that did not make it in the final version of the paper. We decided to keep these extra features because we believe they can help answer auxiliary questions. For those unfamiliar with markdown mode in R Studio: This mode allows the output to be always visible after running the chunk once, meaning there is no need to rerun the code to see the figures. This mode might give an error when you run the chunk of code that changes the working directory, saying that the working directory will be set back to the default between chunks. In this case, you would need to go into the "Tools" menu at the top of the R Studio window, then go to "Global Options". If you go into the R Markdown tab, you will see an option called "Evaluate chunks in directory", set it to the "Project" option in the drop down menu and now the working directory should not change between code chunks.
Keyword(s):
ant; behavior; behaviour; bioacoustics; feature engineering.
MeSH Term(s):
Grants and Funding:
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)