Skip to content

emmanueldufourq/PAM_TransferLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer learning for passive acoustic monitoring

In this study we describe the implementation of transfer learning to create bioacoustic classification models as a means to reduce the complexity of implementing deep learning algorithms from scratch. We compared 12 modern CNN architectures across 4 datasets and focus on scarce data issues when attempting to create a passive acoustic binary classification model with as few as 25 verified examples. The datasets contained vocalisations of: the critically endangered Hainan gibbon (Nomascus hainanus), the critically endangered black-and-white ruffed lemur (Varecia variegata), the vulnerable Thyolo alethe (Chamaetylas choloensis), and the Pin-tailed whydah (Vidua macroura).

Our goal was to demonstrate that transfer learning is a suitable and accessible approach to implementing CNNs which require less human expert knowledge in machine learning.

This code accompanies the paper ``Passive Acoustic Monitoring and Transfer Learning''.

Each folder contains two main code (fine tuning and no fine tuning) examples for 25 input samples. Both will contain a notebook in the form of "Training...ipynb" and "Predicting_...ipynb". The former is the notebook to train the model and the latter to predict on test cases. The easiest approach is to try out the code on Google Colab (see below) as those notebooks automatically download a subset of data. Alternatively, to run the code locally, download the appropriate dataset (see below).

Authors

Emmanuel Dufourq, Carly Batist, Ruben Foquet and Ian Durbach


Requirements

Install all requirements using pip install -r requirements.txt

The following packages were used in development and have been tested on Ubuntu 20.04.3 LTS running Python 3.8 (NVIDIA-SMI 470.103.01, CUDA Version: 11.2, cudnn: 8.1.1)

  • tensorflow==2.7.0
  • SoundFile==0.10.3.post1
  • scikit-learn==1.0.2
  • scipy==1.8.0
  • numpy==1.18.5
  • jupyter==1.0.0
  • pandas==1.4.1
  • librosa==0.8.0
  • yattag==1.14.0
  • matplotlib==3.3.3
  • Keras==2.7.0

Datasets

We provide a subset of data used in this study:

Executing code on Google Colab (easiest way to get started!)