GithubHelp home page GithubHelp logo

rcl_fs_bsed's Introduction

Regularized Contrastive Learning for Few-shot Bioacoustic Sound Event Detection

Authors: Ilyass Moummad, Romain Serizel, Nicolas Farrugia

This is the implementation of our paper accepted at ICASSP 2024
We improve over our previous work that ranked 2nd in the DCASE 2023 Challenge Task5 by adding a regularization term to the training loss, and by improving the inference strategy

args.py: contains default values for arguments

Data

Download the dataset from Zenodo: https://zenodo.org/records/6482837 To create the spectrograms of the training set:
create_train.py: with argument --traindir for the folder containing the training datasets

Training

To train the feature extractor:
train.py: with arguments --traindir (the same as above) --method: optional argument for the pretraining method scl for SupCon and ssl for SimCLR

Evaluation

To evaluate using finetuning:
eval_finetune: with arguments --valdir for the folder containing the validation datasets
To evaluate without finetuning (for faster inference):
eval_nofinetune: with arguments --valdir for the folder containing the validation datasets

To get the scores:
evaluation.py : with arguments --pred_file for the predictions csv file created by the eval script (the file is in : traindir/../../outputs/eval.csv'), --ref_files for the path of validation datasets (same as --valdir), and --save_path for the folder where to save the json file containing the scores

If you any question or a problem with the code/results do not hesitate to mail me on : [email protected] or open an issue on this repository, I am very responsive.


To cite our paper

@misc{moummad2023regularized,
      title={Regularized Contrastive Pre-training for Few-shot Bioacoustic Sound Detection}, 
      author={Ilyass Moummad and Romain Serizel and Nicolas Farrugia},
      year={2023},
      eprint={2309.08971},
      archivePrefix={arXiv},
      primaryClass={cs.SD}
}

rcl_fs_bsed's People

Contributors

ilyassmoummad avatar

Stargazers

Liam Kelley avatar superhero avatar Vincent Kather avatar  avatar Yann Bayle avatar  avatar

Watchers

Kostas Georgiou avatar  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.