Large-Scale Bird Sound Classification using Convolutional Neural Networks

Stefan Kahl, Thomas Wilhelm-Stein, Hussein Hussein, Holger Klinck, Danny Kowerko, Marc Ritter, Maximilian EiblCLEF (Working Notes) 2017

Abstract

Automated wildlife monitoring generates vast amounts of audio data, making manual identification of bird species impractical. This paper details a deep learning approach developed for the BirdCLEF 2017 challenge, achieving second place with a Mean Average Precision (MAP) of 0.605. The methodology involves converting audio into high-resolution spectrograms and training relatively shallow Convolutional Neural Networks (CNNs) using specialized data augmentation and geographic metadata.

Introduction

The classification of bird species in real-world field recordings is a significant challenge due to massive datasets (1,500 species), severe class imbalances, overlapping vocalizations, and heavy background noise. Unlike standard image datasets, audio recordings often contain unlabeled background species, creating "noisy" training signals. This work treats audio classification as an image recognition task by transforming sound into spectrograms, then applying optimized CNN architectures.

Methodology

Spectrogram Generation and Preprocessing

Audio recordings are divided into 5-second segments and converted into high-resolution magnitude spectrograms (512x256 pixels). To handle the "empty" space common in field recordings, a heuristic filters out chunks containing only background noise. Maintaining high resolution was found to be critical for preserving high-frequency details necessary for species differentiation.

A grayscale spectrogram representing bird vocalizations, used as input for the CNN models.

Data Augmentation Strategies

Standard image augmentations like horizontal flipping are unsuitable for audio data. Instead, the authors employed:

  • Pitch-shifting: Implemented as a vertical roll of the spectrogram.
  • Noise Injection: Synthetic Gaussian noise and actual "rejected" noise samples (from the heuristic filter) were added to training batches to improve robustness.
  • Batch Augmentation: Multiple spectrograms within a batch were randomly combined to create multi-label targets, simulating natural soundscapes with simultaneous singers.

Network Architecture

Contrary to trends in computer vision toward ultra-deep networks, this study found that shallower CNNs performed better on spectrogram data. The models utilized large receptive fields in early layers (7x7 and 5x5 kernels), Batch Normalization, and ELU activations.

Comparison of the three CNN architectures used in the study, highlighting their relatively shallow depth and layer configurations.

Results and Discussion

Performance Metrics

The final ensemble of seven independently trained CNNs achieved a MAP of 0.605 overall and 0.687 for foreground species in the BirdCLEF 2017 challenge.

Key Insights

  • Shallow vs. Deep: Shallow architectures outperformed complex models like ResNets. Spectrograms' homogenous nature and sparse information density mean deep feature extraction often leads to overfitting.
  • Geographic Specialization: One of the most effective strategies was filtering species by geographic metadata. A model specialized for birds in Loreto, Peru, achieved a 0.158 MAP on regional soundscapes, vastly outperforming general 1,500-class models.
  • Robustness through Noise: Training on actual environmental noise samples significantly improved model performance and training speed compared to using only synthetic noise.

Conclusion and Future Work

While successful, the approach is limited by the computational cost of training large-input ensembles and the presence of unlabeled background species in training data. Future research directions include replacing heuristic noise filters with dedicated neural networks, exploring 3D-Convolutions to capture temporal sequences, and utilizing Snapshot Ensembles to reduce training time while maintaining performance.

Summary updated

BibTeX
@inproceedings{kahl2017large,
  author = {Stefan Kahl and Thomas Wilhelm-Stein and Hussein Hussein and Holger Klinck and Danny Kowerko and Marc Ritter and Maximilian Eibl},
  title = {{Large-Scale Bird Sound Classification using Convolutional Neural Networks}},
  booktitle = {CLEF (Working Notes)},
  year = {2017},
}
Figure