birdnetR

Is geared towards providing a robust workflow for ecological data analysis in bioacoustic projects.
https://github.com/birdnet-team/birdnetr

Category: Biosphere
Sub Category: Bioacoustics and Acoustic Data Analysis

Keywords

bioacoustics birds sound

Last synced: about 11 hours ago
JSON representation

Repository metadata

This is a wrapper for the birdnet Python package for automated bird sound ID

README.md

birdnetR

Lifecycle: stable
R-CMD-check
CRAN status

[!CAUTION]
Version 1.0.0 is currently in development and will be a breaking release.
Several functions have been renamed or removed. If you are upgrading from
0.x, see the Upgrading from birdnetR 0.x
section below.

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 or accessing the broader BirdNET feature set, refer to the BirdNET Analyzer directly.

Installation

Install the released version from CRAN:

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

Example use

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

# Load the package
library(birdnetR)

# Load a BirdNET acoustic model
model <- load_birdnet()

# 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(model, audio_path)

# Convert predictions to a data frame
df <- as.data.frame(predictions)

Working with prediction results

predict() returns a lightweight Python-backed object — not an R data frame.
Use as.data.frame() when you need the results in R for further analysis.
For file-based pipelines (especially with large datasets), it is more efficient
to skip conversion and write results directly:

predictions <- predict(model, audio_path)

# More efficient for large runs — stays in Python:
write_predictions(predictions, "results.parquet")

# Only when you need results in R:
df <- as.data.frame(predictions)

Upgrading from birdnetR 0.x

Version 1.0 is a breaking release. The table below maps removed functions to
their replacements:

Removed Replacement
birdnet_model_tflite(...) load_birdnet(..., backend = "tf", library = "tflite")
birdnet_model_protobuf(...) load_birdnet(..., backend = "pb")
birdnet_model_meta(...) load_birdnet(type = "geo")
birdnet_model_custom(...) load_custom(...)
predict_species_from_audio_file(model, ...) predict(model, files = ...)
predict_species_at_location_and_time(model, ...) predict(model, latitude = ..., longitude = ...)
labels_path() / read_labels() get_species_list(model)
available_languages() supported_languages()
get_top_prediction() Removed; use dplyr or birdnetTools

See NEWS.md for the full changelog.

The BirdNET ecosystem

birdnetR is part of a set of related tools:

  • BirdNET-Analyzer — the upstream desktop/CLI application for custom classifier training and advanced BirdNET features.
  • birdnetTools — an R package for post-processing and validating BirdNET predictions: filtering, visualisation, and interactive threshold setting.

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

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 Research, Technology and Space (FKZ 01|S22072), the German Federal Ministry for the Environment, Climate Action, Nature Conservation and Nuclear Safety (FKZ 67KI31040E), the German Federal Ministry of Economic Affairs and Energy (FKZ 16KN095550), the Deutsche Bundesstiftung Umwelt (project 39263/01) and the European Social Fund.

Partners

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

Our partners


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 16 days ago

Total Commits: 176
Total Committers: 4
Avg Commits per committer: 44.0
Development Distribution Score (DDS): 0.227

Commits in past year: 5
Committers in past year: 1
Avg Commits per committer in past year: 5.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
fegue f****r@g****m 136
Sunny Tseng s****g@g****m 24
Stefan Kahl k****t@h****e 15
Melissa Weidlich-Rau 1****x 1

Committer domains:


Issue and Pull Request metadata

Last synced: 17 days ago

Total issues: 34
Total pull requests: 20
Average time to close issues: 7 days
Average time to close pull requests: 8 days
Total issue authors: 4
Total pull request authors: 2
Average comments per issue: 0.59
Average comments per pull request: 1.0
Merged pull request: 20
Bot issues: 0
Bot pull requests: 0

Past year issues: 15
Past year pull requests: 3
Past year average time to close issues: about 18 hours
Past year average time to close pull requests: 3 days
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 0.6
Past year average comments per pull request: 0.0
Past year merged pull request: 3
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/birdnet-team/birdnetr

Top Issue Authors

  • fegue (31)
  • jaymwin (1)
  • vjjan91 (1)
  • r02ls22 (1)

Top Pull Request Authors

  • fegue (18)
  • SunnyTseng (2)

Top Issue Labels

  • enhancement (13)
  • chore (1)
  • release (1)

Top Pull Request Labels


Package metadata

proxy.golang.org: github.com/birdnet-team/birdnetr

proxy.golang.org: github.com/birdnet-team/birdnetR

cran.r-project.org: birdnetR

Deep Learning for Automated (Bird) Sound Identification

  • Homepage: https://birdnet-team.github.io/birdnetR/
  • Documentation: http://cran.r-project.org/web/packages/birdnetR/birdnetR.pdf
  • Licenses: MIT + file LICENSE
  • Latest release: 0.3.2 (published about 1 year ago)
  • Last Synced: 2026-06-15T00:03:05.046Z (15 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 359 Last month
  • Rankings:
    • Dependent packages count: 26.659%
    • Dependent repos count: 32.854%
    • Average: 48.743%
    • Downloads: 86.718%
  • Maintainers (1)

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • reticulate * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests

Score: 10.855917331026156