Learn R Programming

birdnetR

birdnetR integrates BirdNET, a state‐of‐the‐art deep learning classifier for automated (bird) sound identification, into an R-workflow. This package will simplify the analysis of (large) audio datasets from bioacoustic projects, allowing researchers to easily apply machine learning techniques—even without a background in computer science.

birdnetR is an R wrapper around the birdnet Python package. It provides the core functionality to analyze audio using the pre-trained 'BirdNET' model or a custom classifier, and to predict bird species occurrence based on location and week of the year. However, it does not include all the advanced features available in the BirdNET Analyzer. For advanced applications, such as training custom classifiers and validation, users should use the 'BirdNET Analyzer' directly. birdnetR is under active development, and changes may affect existing workflows.

Installation

Install the released version from CRAN:

install.packages("birdnetR")
pak::pak("birdnet-team/birdnetR")

Example use

This is a simple example using the tflite BirdNET model to predict species in an audio file.

# Load the package
library(birdnetR)

# Initialize a BirdNET model
model <- birdnet_model_tflite()

# Path to the audio file (replace with your own file path)
audio_path <- system.file("extdata", "soundscape.mp3", package = "birdnetR")

# Predict species within the audio file
predictions <- predict_species_from_audio_file(model, audio_path)

# Get most probable prediction within each time interval
get_top_prediction(predictions)

Citation

Feel free to use birdnetR for your acoustic analyses and research. If you do, please cite as:

@article{kahl2021birdnet,
  title={BirdNET: A deep learning solution for avian diversity monitoring},
  author={Kahl, Stefan and Wood, Connor M and Eibl, Maximilian and Klinck, Holger},
  journal={Ecological Informatics},
  volume={61},
  pages={101236},
  year={2021},
  publisher={Elsevier}
}

License

Please ensure you review and adhere to the specific license terms provided with each model. Note that educational and research purposes are considered non-commercial use cases.

Funding

This project is supported by Jake Holshuh (Cornell class of '69) and The Arthur Vining Davis Foundations. Our work in the K. Lisa Yang Center for Conservation Bioacoustics is made possible by the generosity of K. Lisa Yang to advance innovative conservation technologies to inspire and inform the conservation of wildlife and habitats.

The development of BirdNET is supported by the German Federal Ministry of Education and Research through the project “BirdNET+” (FKZ 01|S22072). The German Federal Ministry for the Environment, Nature Conservation and Nuclear Safety contributes through the “DeepBirdDetect” project (FKZ 67KI31040E). In addition, the Deutsche Bundesstiftung Umwelt supports BirdNET through the project “RangerSound” (project 39263/01).

Partners

BirdNET is a joint effort of partners from academia and industry. Without these partnerships, this project would not have been possible. Thank you!

Copy Link

Version

Install

install.packages('birdnetR')

Monthly Downloads

285

Version

0.3.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Felix Günther

Last Published

April 30th, 2025

Functions in birdnetR (0.3.2)

predict_species_at_location_and_time

Predict species for a given location and time
birdnetR

BirdNET for R
available_languages

Get Available Languages for BirdNET Model
birdnet_model_load

Initialize a BirdNET Model
predict_species_from_audio_file

Predict species within an audio file using a BirdNET model
get_top_prediction

Get the top prediction by confidence within time intervals
read_labels

Read species labels from a file
install_arrow

Install Apache Arrow
labels_path

Get Path to a Labels File