BattyBirdNET-Belgium
A bat species classifier head for Belgium and north-west Europe. It runs on top of the frozen
BirdNET v2.4 embedding network, in the format used by BattyBirdNET (R. D. Zinck). It has 21 bat
species outputs and one noise output.
Licence: CC BY-NC-SA 4.0. Non-commercial use only. See Licence.
1. What it is
The model is a small classifier head. It does not read audio itself. The pipeline is:
- Resample the recording to 256 kHz (real time). For a recording stored with ×10 time expansion, the real rate is 10 × the header rate (the training code treats any header below 100 kHz this way).
- Cut windows of 144,000 samples: 0.5625 s of real time at 256 kHz. Evaluation
(
scripts/embed.py --eval) uses every window of the first 30 s with a hop of 72,000 samples (50 % overlap) and zero-pads the last one; training uses a few selected windows per file from the same 72,000-sample grid (section 3). - Feed each window to the BirdNET v2.4 embedding network as its normal input. BirdNET expects 144,000 samples = 3 s at 48 kHz, so a 0.5625 s ultrasonic window is played to it 256/48 ≈ 5.33 times slower, which brings 15–120 kHz calls down to about 2.8–22.5 kHz. The network returns a 1024-dimensional embedding per window.
- Feed the embeddings to this head. It returns 22 raw logits per window; apply a sigmoid to get scores.
Files
| File | Size (bytes) | SHA-256 |
|---|---|---|
BattyBirdNET-Belgium-256kHz_fp32.onnx |
5,360,999 | dbfc88a53e10249b3a8681190758c08a2225cee850f684ee026caeae84bae6f3 |
BattyBirdNET-Belgium-256kHz_Labels.txt |
788 | fd92c8d9c28864c9bc15927562982ccff10cb7b15f13f9d04ff478aa045ffcac |
export_info.json |
1,415 | export settings, parity check, sha256 of the two files above |
credits_recordings.csv |
per-recording credits (see Credits) |
The embedding network is not in this repository. The head was trained and tested on embeddings from
the file birdnet-v2.4-embeddings-fp32-dfttrunc.onnx of https://huggingface.co/tphakala/BattyBirdNET-onnx
(58,763,257 bytes, SHA-256 b91139d3c63d55d742779a56531078bc88366a09bcc9bd6a9b703d425914c380; the
build host stored it under the name birdnet-v24-embeddings.onnx). The file named
birdnet-v24-embeddings.onnx in that repository is a different file (the untruncated fp32 model,
66,932,350 bytes, SHA-256 b6b8f24d…); the head was not tested with it. Inputs and outputs of the
file used: input [batch, 144000]; outputs [batch, 6522] (BirdNET bird logits, unused) and
[batch, 1024] (the embedding).
ONNX graph
- Input
input: float32[batch, 1024](BirdNET v2.4 embeddings, not standardised; the standardisation used in training is folded into the weights). - Output
output: float32[batch, 22], raw logits. There is no sigmoid in the graph. - Graph:
Gemm (1024 → 1280) → Relu → Gemm (1280 → 22), opset 13. - It is a 5-seed ensemble (each member: 1024 → 256 hidden units, ReLU, dropout 0.5 in training →
- folded exactly into one wider MLP: the hidden units of the five members are concatenated (5 × 256 = 1280) and the output weights are divided by 5, so the output equals the mean of the five members' logits.
- ONNX vs PyTorch on real embeddings: max absolute difference 1.9e-5. Head cost: 0.41 ms per batch of 8 on the build host (the embedding network is the real cost, see section 4.6).
Outputs (order of BattyBirdNET-Belgium-256kHz_Labels.txt)
Labels are Scientific name_Common name, one per output, noise last:
| # | Species | # | Species |
|---|---|---|---|
| 0 | Barbastella barbastellus (Western barbastelle) | 11 | Nyctalus noctula (Common noctule) |
| 1 | Eptesicus serotinus (Serotine) | 12 | Pipistrellus kuhlii (Kuhl's pipistrelle) |
| 2 | Myotis bechsteinii (Bechstein's bat) | 13 | Pipistrellus nathusii (Nathusius' pipistrelle) |
| 3 | Myotis brandtii (Brandt's bat) | 14 | Pipistrellus pipistrellus (Common pipistrelle) |
| 4 | Myotis dasycneme (Pond bat) | 15 | Pipistrellus pygmaeus (Soprano pipistrelle) |
| 5 | Myotis daubentonii (Daubenton's bat) | 16 | Plecotus auritus (Brown long-eared bat) |
| 6 | Myotis emarginatus (Geoffroy's bat) | 17 | Plecotus austriacus (Grey long-eared bat) |
| 7 | Myotis myotis (Greater mouse-eared bat) | 18 | Rhinolophus ferrumequinum (Greater horseshoe bat) |
| 8 | Myotis mystacinus (Whiskered bat) | 19 | Rhinolophus hipposideros (Lesser horseshoe bat) |
| 9 | Myotis nattereri (Natterer's bat) | 20 | Vespertilio murinus (Parti-coloured bat) |
| 10 | Nyctalus leisleri (Lesser noctule) | 21 | noise |
Eptesicus nilssonii, Hypsugo savii and Myotis alcathoe are not outputs. Their recordings were used as negatives (every output trained towards 0), so expect them to score low or to be reported as a similar species.
2. Intended use
- Identifying bat echolocation calls in ultrasonic recordings (≥ 192 kHz capture) from Belgium and neighbouring regions, by hobbyists and home users.
- Recommended threshold: 0.7 on the sigmoid score, one global value for all outputs. A file or detection is reported as the highest-scoring bat output if that score is ≥ 0.7. No per-species thresholds or calibration are applied (see Limitations).
- Not intended for: commercial use (licence), regulatory or impact assessments without expert review of the calls, species that are not outputs, regions far from north-west Europe, social calls (not trained on).
In BirdNET-Go
A catalog entry for BirdNET-Go's bat models (the BattyBirdNET format, which already provides the
256 kHz resampling, 144,000-sample windows, the shared BirdNET v2.4 embedding model and the
sigmoid) is planned in a pull request to https://github.com/alexbelgium/birdnet-go. Until then
this model is not in BirdNET-Go's catalog. The file names follow the BattyBirdNET convention
BattyBirdNET-<Region>-256kHz_fp32.onnx / _Labels.txt.
Standalone with onnxruntime
Requirements: numpy, scipy, soundfile, onnxruntime, huggingface_hub. Download the
embedding model that was used in training and the two files of this repository:
pip install numpy scipy soundfile onnxruntime huggingface_hub
huggingface-cli download tphakala/BattyBirdNET-onnx birdnet-v2.4-embeddings-fp32-dfttrunc.onnx --local-dir .
huggingface-cli download alexbelgium/BattyBirdNET-Belgium BattyBirdNET-Belgium-256kHz_fp32.onnx BattyBirdNET-Belgium-256kHz_Labels.txt --local-dir .
sha256sum birdnet-v2.4-embeddings-fp32-dfttrunc.onnx # b91139d3c63d55d742779a56531078bc88366a09bcc9bd6a9b703d425914c380
import numpy as np, soundfile as sf, onnxruntime as ort
from math import gcd
from scipy.signal import resample_poly
SR, WIN, HOP = 256_000, 144_000, 72_000 # 0.5625 s windows, 50 % overlap
THRESHOLD = 0.7
emb = ort.InferenceSession("birdnet-v2.4-embeddings-fp32-dfttrunc.onnx")
emb_out = [o.name for o in emb.get_outputs() if o.shape[-1] == 1024][0] # the 1024-d embedding
head = ort.InferenceSession("BattyBirdNET-Belgium-256kHz_fp32.onnx")
labels = [l.strip() for l in open("BattyBirdNET-Belgium-256kHz_Labels.txt") if l.strip()]
x, rate = sf.read("recording.wav", dtype="float32", always_2d=True)
x = x[:, 0]
if rate < 100_000: # x10 time-expanded file: the header holds 1/10 of the real rate
rate *= 10
g = gcd(int(rate), SR)
x = resample_poly(x, SR // g, int(rate) // g).astype(np.float32) # real time, 256 kHz
# 144,000 samples at 256 kHz go into BirdNET's 3 s / 48 kHz input unchanged:
# BirdNET hears the window 256/48 = 5.33 times slower.
x = x[:int(30 * SR)] # evaluation used the first 30 s of each file
starts = range(0, max(1, len(x) - WIN + HOP), HOP)
frames = np.stack([np.pad(x[s:s + WIN], (0, max(0, WIN - len(x[s:s + WIN])))) for s in starts])
E = np.concatenate([emb.run([emb_out], {"input": frames[i:i + 8]})[0] # batches of 8, as in embed.py
for i in range(0, len(frames), 8)])
logits = head.run(["output"], {"input": E.astype(np.float32)})[0]
p = 1.0 / (1.0 + np.exp(-logits)) # [windows, 22]
for s, row in zip(starts, p):
k = int(row[:-1].argmax()) # best bat output (noise is last)
if row[k] >= THRESHOLD:
print(f"{s / SR:7.3f} s {labels[k]} {row[k]:.2f}")
This follows the evaluation code (scripts/embed.py --eval): first 30 s of real time, polyphase
resampling to 256 kHz (scipy.signal.resample_poly), every window at a 72,000-sample hop with the
last one zero-padded, no gain change. One difference: embed.py also rounds the resampled signal to
16-bit before embedding. File-level results in section 4 take the maximum score over a file's
windows. On a test file this example gave file-level scores within 0.0011 of the stored test scores
(those were computed from embeddings cached as float16). BirdNET-Go resamples 16-bit PCM with its
own resampler, so its scores can differ slightly.
3. Training data
Sources
22,460 files were used for training, cross-validation and the locked test set (CREDITS.md, from the training index). 20,162 of them are training and cross-validation files; 2,298 are the locked test set.
| Source | Files | Licences as indexed | Use | Weight in the loss |
|---|---|---|---|---|
DaSA, human-checked labels (dasa) |
8,332 | CC BY-NC (5,727), CC0 (2,605) | train, CV, locked test | 1.0 |
DaSA, labels checked with BioSonic (bs_*) |
2,083 | CC0 (1,431), CC BY-NC (652) | train only | 1.0 (agreement) or CV-chosen external weight |
| BatSpot full recordings (Denmark) | 709 | CC BY 4.0 | train only | 1.0 |
| Own recordings (alexbelgium, BirdNET-Go) | 1,343 | own recordings, released with the model | train, CV, locked test | 1.0 |
| BattyBirdNET Bavaria training set | 2,101 | CC BY-NC-SA 4.0 | train only | external (0.25, chosen by CV) × geography (all 1.0: Germany) |
| Xeno-canto | 1,417 | CC BY-NC-SA 4.0 (1,273), CC BY-SA 4.0 (87), CC0 1.0 (54), CC BY-NC 4.0 (3) | train only | external (0.25) × geography |
| UGent AudioMoth | 3,891 | CC0 1.0 | train only | 0.75 × geography |
| ChirosetEurope | 1,373 | CC BY-NC-SA (1,146), CC BY-SA (227) | train only | 0.5 × geography |
| GBIF (iNaturalist, Estonian Naturalists' Society) | 1,211 | CC BY-NC 4.0 (824), CC BY 4.0 (159), CC BY-SA 4.0 (142), CC0 1.0 (86) | train only | external × 0.5 × geography |
BioSonic tiers in detail: bs_resolve 938, bs_agree 860, bs_partial 157, bs_override 108,
bs_genus 20 (bs_agree trains at 1.0, the other four at the external weight). Geography factor
(Xeno-canto, Bavaria, UGent, ChirosetEurope, GBIF): 1.0 for Belgium and neighbours (NL, LU, DE, UK,
France north of 46° N; GBIF has no coordinates, so its French rows count as neighbours), 0.75
elsewhere, 0.5 elsewhere for labels involving Rhinolophus or Pipistrellus.
Licences by family (all 22,460 files): CC0 8,067; CC BY 868; CC BY-SA 456; CC BY-NC 7,206; CC BY-NC-SA 4,520; model author's own recordings 1,343.
Labels in the training and cross-validation files (20,162)
Species-labelled files per output (all sources, before weighting):
| Output | Files | Output | Files |
|---|---|---|---|
| B. barbastellus | 658 | N. noctula | 1,533 |
| E. serotinus | 1,162 | P. kuhlii | 475 |
| M. bechsteinii | 36 | P. nathusii | 1,052 |
| M. brandtii | 81 | P. pipistrellus | 3,386 |
| M. dasycneme | 195 | P. pygmaeus | 947 |
| M. daubentonii | 1,532 | P. auritus | 324 |
| M. emarginatus | 383 | P. austriacus | 50 |
| M. myotis | 301 | R. ferrumequinum | 404 |
| M. mystacinus | 537 | R. hipposideros | 440 |
| M. nattereri | 432 | V. murinus | 323 |
| N. leisleri | 1,015 | noise (incl. 44 insect) | 2,350 |
Also: 2,197 group-labelled files (e.g. Myotis sp., Nyctaloid, Pipistrellus sp., multiple species), trained as "at least one of the group", and 349 negatives (E. nilssonii 238, H. savii 101, M. alcathoe 10).
Training method (short)
- Windows for training (
scripts/embed.py, label-agnostic, first 30 s of each file, candidate windows on the 72,000-sample grid): bat and group files, the 3 non-adjacent windows with the highest 95th-percentile 15–120 kHz frame energy; noise files, the top window plus 1 random other window; BatSpot, up to 6 non-adjacent windows holding the most Raven-annotated calls. Each bandwidth variant gets its own random gain (−10…+6 dB) and 16-bit quantisation. Every file whose real rate is above 192 kHz is also used as a simulated 192 kHz capture (cap192: native → 192 kHz → 256 kHz), the rate of the author's microphone. - File-level multiple-instance learning: each (file, variant) is one bag, its windows' logits pooled by a normalised log-sum-exp (sharpness 5); noise files are scored per window. Group labels as at-least-one (noisy-OR, weight 0.5 for the loose groups that may hold a non-output species); other species in a species-labelled file get target 0 at weight 0.3; class balance 1/√(training files per label).
- Configuration chosen from 6 configurations by 4-fold cross-validation grouped by DaSA site / own
month (Xeno-canto, Bavaria, BatSpot and the other training-only sources always train and are never
scored): 256 hidden units,
dropout 0.5, weight decay 0.001, external weight 0.25, 20 epochs (CV score, macro average precision
averaged over
fullandcap192: 0.555). Then 5 seeds trained on all training and CV files; the shipped file is exactly that tested ensemble.
Split policy (locked test set)
The test set was fixed before the first build (data/split_lock.json, with the SHA-256 and label
of every test file) and did not change between builds:
- DaSA test sites: whole DaSA site groups (DaSA locations less than 1 km apart are merged into one group), added until about 20 % of the DaSA files are in test (a file share, not a group share; no label with more than 50 % of its DaSA files in test; every label with ≥ 15 files represented). Human-checked (HUM) labels only. 2,031 files: 1,329 species, 247 group, 451 noise, 4 negative; 63 site groups.
- Own test block: every own recording from the nights 2025-04-01 to 2026-04-30, with a 7-day gap on each side (files in the gap are unused). 267 files: 98 species, 69 group, 100 noise; 12 months.
No training or CV file shares a group with a test file (checked on the index: 0 rows). In detail:
BioSonic-labelled DaSA files at a test site are dropped; a UGent AudioMoth cluster within 1 km of a
DaSA test site is dropped; Belgian Xeno-canto and Belgian GBIF recordings are dropped (they could
not be placed relative to DaSA sites, and may duplicate DaSA); own files from the test block are
test, and own files within 7 days of it are unused (2 files). Xeno-canto, Bavaria, BatSpot,
ChirosetEurope and non-Belgian GBIF files have no DaSA site; they are training-only and never
scored. A file added later at a locked test site or in the own test block gets role quarantine
(neither trained on nor scored); there were none in this build.
4. Evaluation
All figures are on the locked test set with production-style windows (every window of the first
30 s, no gain change), file level (maximum over windows). "Species correct" = the highest bat output
is ≥ the threshold and is the labelled species (species-labelled files only). "Noise alarm" = any
bat output ≥ the threshold on a noise file. "Bat detected" = any bat output ≥ the threshold, with
two denominators: in the build's test report (train.py, section 4.1 bullet "test report") over
species-labelled files only; in the benchmark (bench/an3.py, all tables of 4.2 and 4.3) over
species- and group-labelled files (DaSA: 1,329 + 247).
Macro averages are over species with at least 5 test files in that subset. Numbers are for the full
bandwidth; the simulated 192 kHz capture gives almost the same DaSA results (macro AP 0.689 vs 0.688).
What the two test blocks measure:
- DaSA test sites: human-checked labels from Belgian passive monitoring. This is the block the headline claims rest on.
- Own test block (biased): every file is a clip that BirdNET-Go had already detected as a bat, so the block only holds sounds a BirdNET-Go bat model already fired on, and says nothing about bats it missed. Labels were then assigned with BioSonic, not by a human: 95 of the 98 species files by BioSonic agreement (3 by a peak-frequency rule), 52 of the 69 group files by BioSonic (17 widened to 'Nyctaloid' where BirdNET-Go and BioSonic named different nyctaloid species), and all 100 noise files are clips BioSonic classified as noise, not hand-reviewed. One home site, one microphone (captured at 192 kHz, stored by BirdNET-Go at 256 kHz). The block measures agreement with BioSonic on BirdNET-Go-preselected clips; it is not ground truth.
4.1 Headline (DaSA test sites, all 63 groups, threshold 0.7)
- Macro average precision 0.688.
- Species correct: macro 66 %, micro 50 %. Noise alarm 6 %.
- Bat detected: 66 % of the 1,329 species-labelled files (test report); 68 % of the 1,576 species- and group-labelled files (benchmark).
- 95 % cluster bootstrap over sites (test report, species-labelled files): macro species correct 56–78 %, bat detected 45–93 %, noise alarm 2–16 %.
4.2 DaSA site 118 (sensitivity check)
One DaSA test site group (dasa-site-118, a single deployment in June 2023, 503 test files) holds
458 of the 564 E. serotinus DaSA test files (counts and all site-118 figures below:
site118_check.py, output site118_check.txt; the script
first checks that it reproduces reports/benchmark.md byte for byte). The model gets 0 of its 483 species files right at
0.7 (458 E. serotinus, 15 N. leisleri, 8 N. noctula, 2 P. nathusii); 131 of the 483 get a bat
output ≥ 0.7, all with another species. Elsewhere it gets 88 of 106 E. serotinus files right. The
labels or recordings of this deployment are likely wrong (a spectrogram check is pending). The
locked test set keeps it: the headline includes site 118, and the figures without it are a
sensitivity check only.
New head, DaSA, threshold 0.7 (benchmark definitions):
| DaSA subset | Files (species / group / noise) | Species correct macro | Species correct micro | Bat detected | Noise alarm |
|---|---|---|---|---|---|
| All 63 groups (headline) | 1,329 / 247 / 451 | 66 % | 50 % | 68 % | 6 % |
| Without site 118 (62 groups) | 846 / 243 / 435 | 73 % | 79 % | 86 % | 3 % |
4.3 Comparison with other bat models (benchmark harness)
Compared models: BatSpot m09, BSG-BAT r1 and BattyBirdNET Bavaria. BatSpot and BSG-BAT were run
through this project's benchmark harness (re-implemented front ends, as in their BirdNET-Go ports),
not through their original software, so their figures are harness comparisons, not official
results. BattyBirdNET Bavaria uses the same embeddings as this head. Each model is scored at its own
live threshold (marked *) and at its 5 % operating point: per model, the smallest threshold t with
noise false-alarm rate ≤ 5 % on that block's noise files; a positive counts only if its score ≥ that
same t (thresholds printed as in reports/benchmark.md).
"All" counts species a model does not cover as wrong; "covered" uses only the species it covers.
DaSA test sites, all groups (headline)
| Model | Thr. | Bat detected | Species macro (all) | Species micro (all) | Species macro (covered) | Noise alarm |
|---|---|---|---|---|---|---|
| BatSpot m09 (13/20 species) | 0.50* | 92 % | 43 % | 37 % | 64 % | 68 % |
| BSG-BAT r1 (13/20) | 0.90* | 55 % | 30 % | 35 % | 45 % | 15 % |
| BattyBirdNET Bavaria (19/20) | 0.70* | 59 % | 42 % | 33 % | 45 % | 19 % |
| BattyBirdNET-Belgium (20/20) | 0.70* | 68 % | 66 % | 50 % | 66 % | 6 % |
| BatSpot m09 | 0.9943791 (5 % OP) | 35 % | 26 % | 23 % | 40 % | 5 % |
| BSG-BAT r1 | 0.95962942 (5 % OP) | 42 % | 22 % | 28 % | 32 % | 5 % |
| BattyBirdNET Bavaria | 0.9791463 (5 % OP) | 36 % | 26 % | 21 % | 28 % | 5 % |
| BattyBirdNET-Belgium | 0.81712574 (5 % OP) | 64 % | 64 % | 49 % | 64 % | 5 % |
DaSA test sites without site 118 (sensitivity check; reproduced by site118_check.py, output in site118_check.txt)
| Model | Thr. | Bat detected | Species macro (all) | Species micro (all) | Species macro (covered) | Noise alarm |
|---|---|---|---|---|---|---|
| BatSpot m09 | 0.50* | 88 % | 48 % | 57 % | 72 % | 67 % |
| BSG-BAT r1 | 0.90* | 68 % | 35 % | 55 % | 53 % | 13 % |
| BattyBirdNET Bavaria | 0.70* | 74 % | 47 % | 52 % | 50 % | 17 % |
| BattyBirdNET-Belgium | 0.70* | 86 % | 73 % | 79 % | 73 % | 3 % |
| BatSpot m09 | 0.98958337 (5 % OP) | 48 % | 33 % | 40 % | 50 % | 5 % |
| BSG-BAT r1 | 0.94866967 (5 % OP) | 57 % | 28 % | 47 % | 42 % | 5 % |
| BattyBirdNET Bavaria | 0.95043349 (5 % OP) | 51 % | 35 % | 40 % | 38 % | 5 % |
| BattyBirdNET-Belgium | 0.55881602 (5 % OP) | 90 % | 74 % | 81 % | 74 % | 5 % |
Own test block (BirdNET-Go-preselected clips, labels and all 100 noise files from BioSonic; see above)
| Model | Thr. | Bat detected | Species macro (all) | Species micro (all) | Noise alarm |
|---|---|---|---|---|---|
| BatSpot m09 (7/7 species) | 0.50* | 82 % | 58 % | 67 % | 20 % |
| BSG-BAT r1 (6/7) | 0.90* | 37 % | 16 % | 22 % | 10 % |
| BattyBirdNET Bavaria (7/7) | 0.70* | 92 % | 82 % | 73 % | 48 % |
| BattyBirdNET-Belgium (7/7) | 0.70* | 92 % | 73 % | 84 % | 5 % |
| BatSpot m09 | 0.72709852 (5 % OP) | 77 % | 57 % | 66 % | 5 % |
| BSG-BAT r1 | 0.93233752 (5 % OP) | 29 % | 13 % | 20 % | 5 % |
| BattyBirdNET Bavaria | 0.99925441 (5 % OP) | 34 % | 25 % | 28 % | 5 % |
| BattyBirdNET-Belgium | 0.63647801 (5 % OP) | 93 % | 73 % | 84 % | 5 % |
The own macro covers only 4 species with ≥ 5 files.
At live thresholds, BatSpot detects more bats on the DaSA test sites (92 % vs 68 % of species- and group-labelled files; 88 % vs 86 % without site 118), with a much higher noise alarm rate (68 % vs 6 %). The difference is not statistically clear: the paired 95 % interval of BattyBirdNET-Belgium minus BatSpot is −19.6 [−47.4, +3.9] points (−1.4 [−9.0, +5.2] without site 118), and both include zero. On the own block this head detects more (92 % vs 82 %; +10.5 [+3.1, +21.1]).
Paired 95 % cluster bootstrap, BattyBirdNET-Belgium minus reference (1,000 resamples over DaSA sites or own months, thresholds held fixed at the values from the full data; species correct at each model's own 5 % operating point; last column at live thresholds; macro over a fixed species set: 15 DaSA species, 4 own species):
| Block | Reference | Macro (all) | Macro (ref-covered) | Micro (all) | Bat detected, live thr. |
|---|---|---|---|---|---|
| DaSA | BatSpot m09 | +37.7 [+28.5, +46.9] | +23.2 [+10.5, +36.3] | +29.1 [+10.7, +50.2] | −19.6 [−47.4, +3.9] |
| DaSA | BSG-BAT r1 | +42.4 [+34.8, +50.7] | +36.1 [+25.2, +48.5] | +24.2 [+10.4, +40.5] | +14.4 [+8.1, +22.8] |
| DaSA | BattyBirdNET Bavaria | +37.6 [+29.0, +44.3] | +40.3 [+31.0, +47.3] | +30.6 [+11.7, +50.3] | +9.4 [+4.4, +16.5] |
| DaSA without 118 | BatSpot m09 | +40.1 [+32.9, +49.6] | +23.1 [+13.6, +35.5] | +40.4 [+30.2, +51.4] | −1.4 [−9.0, +5.2] |
| DaSA without 118 | BSG-BAT r1 | +45.3 [+38.6, +52.7] | +36.9 [+27.2, +45.9] | +34.3 [+26.6, +44.4] | +18.4 [+13.8, +24.9] |
| DaSA without 118 | BattyBirdNET Bavaria | +38.6 [+31.9, +45.1] | +41.1 [+34.2, +46.9] | +41.0 [+32.8, +48.4] | +12.1 [+6.8, +17.4] |
| Own | BatSpot m09 | +16.0 [+5.8, +29.2] | +16.0 [+5.8, +29.2] | +17.6 [+7.5, +29.1] | +10.5 [+3.1, +21.1] |
| Own | BSG-BAT r1 | +60.7 [+52.0, +73.5] | +60.7 [+52.0, +73.5] | +62.4 [+43.9, +78.7] | +54.6 [+36.1, +69.7] |
| Own | BattyBirdNET Bavaria | +50.3 [+41.4, +62.9] | +50.3 [+41.4, +62.9] | +55.9 [+45.8, +63.6] | −0.2 [−4.8, +3.8] |
Percentage points.
4.4 Per species (threshold 0.7, species correct / test files)
The file-level 95 % Wilson lower bound ignores site clustering, so it is optimistic.
| Species | DaSA, all sites (Wilson lower bound) | DaSA without site 118 | Own block | Status |
|---|---|---|---|---|
| B. barbastellus | 2 / 3 | 2 / 3 | – | too few to claim |
| E. serotinus | 88 / 564 (lower bound 13 %) | 88 / 106 | 25 / 27 | |
| M. bechsteinii | 0 / 1 | 0 / 1 | – | unvalidated |
| M. brandtii | 0 / 5 | 0 / 5 | – | unvalidated |
| M. dasycneme | 0 / 1 | 0 / 1 | – | unvalidated |
| M. daubentonii | 125 / 141 (82 %) | 125 / 141 | 1 / 1 | |
| M. emarginatus | 11 / 22 (31 %) | 11 / 22 | – | |
| M. myotis | 7 / 7 | 7 / 7 | – | too few to claim |
| M. mystacinus | 27 / 40 (52 %) | 27 / 40 | – | |
| M. nattereri | 34 / 42 (67 %) | 34 / 42 | 0 / 1 | |
| N. leisleri | 50 / 131 (30 %) | 50 / 116 | – | |
| N. noctula | 10 / 24 (24 %) | 10 / 16 | 24 / 24 | |
| P. kuhlii | no test files | no test files | – | unvalidated |
| P. nathusii | 78 / 88 (80 %) | 78 / 86 | – | |
| P. pipistrellus | 164 / 169 (93 %) | 164 / 169 | 31 / 36 | |
| P. pygmaeus | 8 / 12 | 8 / 12 | 0 / 2 | too few to claim |
| P. auritus | 15 / 18 | 15 / 18 | 1 / 7 | too few to claim |
| P. austriacus | 2 / 4 | 2 / 4 | – | too few to claim |
| R. ferrumequinum | 26 / 27 (82 %) | 26 / 27 | – | |
| R. hipposideros | 22 / 28 (60 %) | 22 / 28 | – | |
| V. murinus | 0 / 2 | 0 / 2 | – | unvalidated |
"Too few to claim" = fewer than 20 test files. P. kuhlii, V. murinus, M. brandtii, M. dasycneme and M. bechsteinii are unvalidated: no or almost no test files and no correct test result; treat any detection of them as a candidate for manual review.
Per-output false positives at 0.7 on the DaSA test sites (each output thresholded on its own) are
highest for P. pipistrellus (173), M. mystacinus (22), E. serotinus (21) and N. noctula (20);
the full TP/FP/FN tables are in reports/test_report.txt of the build.
4.5 Noise on the home site
On the 100 own noise files (0.11 h of audio), bat outputs ≥ 0.7 fire in 145 windows per hour of noise audio (190 at 0.5, 100 at 0.9). These are BioSonic-classified noise clips among BirdNET-Go bat detections, so they are hard cases, not a random sample of a night. There is no false-alarm figure per night yet.
4.6 CPU cost
886.5 ms CPU per second of audio (process CPU time over 3 onnxruntime threads, resampling included) on the build host. Nearly all of it is the BirdNET v2.4 embedding step, which BattyBirdNET-Belgium and BattyBirdNET Bavaria share: the figure was measured on the Bavaria run and applies to both (the heads differ only in the small dense layers). For comparison, in the same harness: BatSpot m09 673.3 ms, BSG-BAT r1 653.2 ms.
5. Limitations and biases
- Rare species are not validated. See the per-species table. They are learned mostly from non-Belgian sources (Bavaria, Xeno-canto, GBIF, ChirosetEurope) recorded with other equipment.
- Nyctalus and Eptesicus are weak. N. leisleri 50/131 and N. noctula 10/24 on DaSA at 0.7. The E. serotinus figure depends heavily on site 118.
- Over-calling of P. pipistrellus. It is the most common label in training (3,386 files) and has the most false positives on the DaSA test sites.
- One global threshold, no calibration. Scores are not calibrated probabilities. Per-species thresholds were not set (they would have to come from cross-validation, never from the test set).
- Own test block is not independent ground truth. Every file was preselected by BirdNET-Go (bats it missed are not in it); labels and all 100 noise files come from BioSonic, not a human review; it covers few species (mostly P. pipistrellus, N. noctula, E. serotinus) at one site.
- Labelling aids in training. BioSonic labels (2,083 DaSA files and the own recordings) and model-assisted Bavaria labels can carry systematic errors into the model.
- Geography and equipment. Test data are Belgian only. Training includes Danish, Scandinavian, Mediterranean, Balkan and other recordings at reduced weight, and analogue tape recordings (ChirosetEurope, Skiba). Performance outside north-west Europe is unknown.
- Time expansion is inferred from the header rate (< 100 kHz ⇒ ×10); there is no flag in the data.
- Echolocation only. Social calls were excluded from training.
- Not outputs: E. nilssonii, H. savii, M. alcathoe (negatives) and species never used (T. teniotis, M. schreibersii, R. euryale, M. crypticus).
- Duplicates across sources were removed by SHA-256 (0 duplicate SHA-256 among used files), plus source-specific rules: Bavaria files whose original file name carries the XC number of a used Xeno-canto file, and Belgian Xeno-canto/GBIF recordings, were dropped. Re-encoded copies that these rules do not catch may remain.
6. Credits
Model and head training: alexbelgium. The full credit file with every collection and recordist
is CREDITS.md; the per-recording list (source, role, SHA-256, label, credit, licence,
original licence, URL or ID) is credits_recordings.csv. Items marked
(verify) could not be confirmed from local files.
Upstream models and software
- BirdNET v2.4, the frozen embedding network. Kahl, S., Wood, C. M., Eibl, M., Klinck, H. (2021).
BirdNET: A deep learning solution for avian diversity monitoring. Ecological Informatics 61:
- https://doi.org/10.1016/j.ecoinf.2021.101236. Developed by the K. Lisa Yang Center for Conservation Bioacoustics at the Cornell Lab of Ornithology in collaboration with Chemnitz University of Technology (https://github.com/birdnet-team/BirdNET-Analyzer). Licence of the model: the BirdNET-Analyzer README states that BirdNET 2.4 and older models are CC BY-NC-SA 4.0; the Zenodo deposit "BirdNET Model V2.4" (https://zenodo.org/records/15050749, 2025-03-19) lists CC BY-NC 4.0. Both are non-commercial; this head follows the stricter CC BY-NC-SA 4.0, which is also the licence stated for the ONNX conversion below.
- BirdNET v2.4 embedding model in ONNX by Tomi P. Hakala (tphakala), distributed at
https://huggingface.co/tphakala/BattyBirdNET-onnx (model card licence CC BY-NC-SA 4.0). The file
used is
birdnet-v2.4-embeddings-fp32-dfttrunc.onnxfrom that repository (SHA-256 matched against the repository's file listing). That it was made with https://github.com/tphakala/birdnet-onnx-converter is (verify). - BattyBirdNET by R. D. Zinck (https://github.com/rdz-oss/BattyBirdNET-Analyzer): the original approach (BirdNET embeddings of 256 kHz audio with a regional bat classifier head), whose format this model uses. Its Bavaria training set is part of the training data and its Bavaria model was a comparison baseline.
- BirdNET-Go by Tomi P. Hakala and contributors (https://github.com/tphakala/birdnet-go): the runtime this head is built for and the recorder of the model author's own clips.
- BioSonic: labelling aid (DaSA files without a human label, and the own clips).
- BTO Acoustic Pipeline: pre-screened the UGent AudioMoth recordings before expert verification.
- Benchmark references: BatSpot (see below) and BSG-BAT.
Data
- DaSA, Digital Animal Sound Archive, Royal Belgian Institute of Natural Sciences (https://dasa.naturalsciences.be/): 10,415 files from 37 collections (8,332 human-checked, 2,083 labelled with BioSonic). Collections and people credited in CREDITS.md section 4.1, among them RBINS (Yves Laurent, Robin Brabant), Natuurpunt Studie vzw (Wout Willems, Kris Boers) and Natagora-Plecotus (Claire Brabant, Romain Bruffaerts and many recordists). CC0 or CC BY-NC per collection.
- BatSpot: 709 full Danish recordings with Raven call tables, Aarhus University, Department of Ecoscience, https://doi.org/10.5281/zenodo.18977979, CC BY 4.0. Article: Smeele, S. Q., Hauer, C., Bergler, C., Dechmann, D. K. N., Dietzer, M. T., Elmeros, M., Fjederholt, E. T., Fogato, A., Kohles, J. E., Nöth, E., Brinkløv, S. M. M. (2026). BatSpot. Biological Conservation 321: 111975, https://doi.org/10.1016/j.biocon.2026.111975 (verify). 634 of these files are also on Xeno-canto under CC BY-SA 4.0; they were obtained from the Zenodo deposit (CC BY 4.0).
- BattyBirdNET Bavaria training set (R. D. Zinck; contributors R. Zinck and K. Richards; sources Xeno-canto, ChiroVox and Tierstimmenarchiv Berlin (verify)): 2,101 files, CC BY-NC-SA 4.0. Originals identified include Phil Riddett (Tierstimmenarchiv Berlin, 433 files, (verify)), Reinald Skiba (205) and several Xeno-canto recordists; 1,120 files could not be traced to an original recordist.
- ChiroVox, Péter Estók: 276 of the Bavaria files were identified, from their file names, as ChiroVox recordings by Péter Estók. The original licence of ChiroVox recordings is CC BY-NC-ND 4.0 (checked on chirovox.org for example record A003921); the Bavaria archive redistributes them as CC BY-NC-SA 4.0. The match of each of the 276 files to a ChiroVox record was not verified individually. They were kept for training (train only, external weight 0.25) and the model is released for non-commercial use only. On the rights holder's request these files will be removed and the model retrained. ChiroVox: Görföl, T., Huang, J. C.-C., Csorba, G., et al. (2022). ChiroVox: a public library of bat calls. PeerJ 10: e12445. https://doi.org/10.7717/peerj.12445
- Xeno-canto (https://xeno-canto.org): 1,417 recordings by 109 recordists, each listed in CREDITS.md section 4.4 and with its XC number in the CSV.
- UGent AudioMoth: Human-verified bat acoustics: bat calls and noise, Jari Vandendriessche, Bob Vandendriessche, Marc Van De Sijpe, https://doi.org/10.5281/zenodo.24526102, CC0 1.0 (3,891 files). Affiliations Ghent University and Natuurpunt Studie (verify).
- ChirosetEurope v1.0, Baier et al., https://doi.org/10.5281/zenodo.20773227 (full author list in CREDITS.md, (verify)): 1,373 files; Reinald Skiba (Tierstimmenarchiv Berlin, CC BY-NC-SA, 1,146) and Maike Schuchmann (CC BY-SA, 227).
- GBIF (https://www.gbif.org): 1,211 sound recordings from iNaturalist (1,121) and the Estonian Naturalists' Society (90). Dataset DOIs https://doi.org/10.15468/ab3s5x and https://doi.org/10.15468/bmk3ab (verify). Rights holders listed in CREDITS.md section 4.7; each occurrence URL and media licence is in the CSV.
- Own recordings: 1,343 clips recorded by alexbelgium with a home microphone through BirdNET-Go (2025 and 2026 seasons), labelled with BioSonic, released with the model.
Licence
This model is released under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/), for non-commercial use only, because:
- the BirdNET v2.4 model it depends on is CC BY-NC-SA 4.0;
- a large part of the training data is non-commercial (CC BY-NC, 7,206 files) or non-commercial share-alike (CC BY-NC-SA, 4,520 files: the Bavaria archive, most Xeno-canto, ChirosetEurope Skiba);
- 276 recordings identified as ChiroVox carry a non-commercial, no-derivatives original licence (CC BY-NC-ND 4.0; see above).
CC0 and CC BY data are compatible with this. CC BY-SA data (456 files): Creative Commons does not list CC BY-NC-SA as compatible for adaptations of CC BY-SA material. Whether trained weights are an adaptation of individual training recordings is not settled; the files are credited per file and flagged in CREDITS.md so the position can be revisited (the model would then need retraining without them). CC BY-NC-ND data (276 files): likewise, whether the no-derivatives term of the original ChiroVox licence reaches model weights trained on those recordings is unresolved. The release relies on the CC BY-NC-SA 4.0 licence under which the Bavaria archive distributes them, and the files will be removed and the model retrained on the rights holder's request. No audio is redistributed with the model; each recording's own licence keeps governing that recording.
7. Citation
@misc{alexbelgium2026battybirdnetbelgium,
author = {alexbelgium},
title = {{BattyBirdNET-Belgium}: a bat species classifier head on {BirdNET} v2.4 embeddings for {Belgium} and north-west {Europe}},
year = {2026},
howpublished = {\url{https://huggingface.co/alexbelgium/BattyBirdNET-Belgium}},
note = {ONNX model, CC BY-NC-SA 4.0}
}
Please also cite BirdNET:
@article{kahl2021birdnet,
author = {Kahl, Stefan and Wood, Connor M. and Eibl, Maximilian and Klinck, Holger},
title = {{BirdNET}: A deep learning solution for avian diversity monitoring},
journal = {Ecological Informatics},
volume = {61},
pages = {101236},
year = {2021},
doi = {10.1016/j.ecoinf.2021.101236}
}