Generalization in birdsong classification: impact of transfer learning methods and dataset characteristics
Burooj Ghani, Vincent J. Kalkman, Bob Planqué, Willem-Pier Vellinga, Lisa Gill, Dan Stowell
TL;DR
This study evaluates transfer learning strategies for birdsong classification, comparing deep fine-tuning, shallow finetuning, and knowledge distillation (including cross-model distillation) across CNN and Transformer architectures on European bird data. Using Xeno-canto and Dawn Chorus datasets, it shows that cross-model distillation yields strong in-domain performance, while shallow finetuning often generalizes best to diverse soundscapes. Labeling practices, particularly incorporating background labels and temporal details, significantly influence performance, with secondary labels boosting recall and AUROC but sometimes reducing precision. The results guide practical reuse of pretrained models for automatic bioacoustic recognition and motivate improvements in data labeling to enhance robustness in biodiversity monitoring.
Abstract
Animal sounds can be recognised automatically by machine learning, and this has an important role to play in biodiversity monitoring. Yet despite increasingly impressive capabilities, bioacoustic species classifiers still exhibit imbalanced performance across species and habitats, especially in complex soundscapes. In this study, we explore the effectiveness of transfer learning in large-scale bird sound classification across various conditions, including single- and multi-label scenarios, and across different model architectures such as CNNs and Transformers. Our experiments demonstrate that both fine-tuning and knowledge distillation yield strong performance, with cross-distillation proving particularly effective in improving in-domain performance on Xeno-canto data. However, when generalizing to soundscapes, shallow fine-tuning exhibits superior performance compared to knowledge distillation, highlighting its robustness and constrained nature. Our study further investigates how to use multi-species labels, in cases where these are present but incomplete. We advocate for more comprehensive labeling practices within the animal sound community, including annotating background species and providing temporal details, to enhance the training of robust bird sound classifiers. These findings provide insights into the optimal reuse of pretrained models for advancing automatic bioacoustic recognition.
