Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,81 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: bsg-bird-model-license
|
| 4 |
-
license_link: >-
|
| 5 |
-
https://raw.githubusercontent.com/plauha/BSG_classifier_builder/refs/heads/main/BSG%20-%20Bird%20Model%20License
|
| 6 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: bsg-bird-model-license
|
| 4 |
+
license_link: >-
|
| 5 |
+
https://raw.githubusercontent.com/plauha/BSG_classifier_builder/refs/heads/main/BSG%20-%20Bird%20Model%20License
|
| 6 |
+
---
|
| 7 |
+
# BSG Finnish Birds Model – ONNX Optimized
|
| 8 |
+
|
| 9 |
+
Optimized [ONNX](https://onnx.ai/) conversions of the **BSG – Finnish Birds Model**, a pretrained bird sound classification model fine-tuned for Finland. The original model was developed at the **University of Jyväskylä** and is based on the [BirdNET](https://github.com/kahst/BirdNET-Analyzer) model architecture.
|
| 10 |
+
|
| 11 |
+
## Model Description
|
| 12 |
+
|
| 13 |
+
The BSG Finnish Birds Model uses an **EfficientNet-B0** backbone (from BirdNET-Analyzer) with a custom classification head trained on vocalizations of **263 Finnish bird species**, covering all breeders, non-breeding migrants, and most common vagrants.
|
| 14 |
+
|
| 15 |
+
**Key characteristics:**
|
| 16 |
+
|
| 17 |
+
- Processes audio in **3-second overlapping segments** (spectrogram-based)
|
| 18 |
+
- Outputs species-wise detection probabilities, calibrated per species via logistic regression
|
| 19 |
+
- Predictions are filtered by species' seasonal and geographic plausibility to reduce misclassifications
|
| 20 |
+
|
| 21 |
+
## Files
|
| 22 |
+
|
| 23 |
+
| File | Description | Recommended Use |
|
| 24 |
+
|------|-------------|-----------------|
|
| 25 |
+
| `BSG_birds_Finland_v4_4_fp32.onnx` | Full precision (FP32) | GPU (CUDA/TensorRT), Desktop CPU |
|
| 26 |
+
| `BSG_birds_Finland_v4_4_fp16.onnx` | Half precision (FP16) | RPi 5, Modern GPUs |
|
| 27 |
+
| `BSG_birds_Finland_v4_4_labels_fi.txt` | Labels (Scientific name_Finnish name) | Class index mapping |
|
| 28 |
+
|
| 29 |
+
## ONNX Optimization
|
| 30 |
+
|
| 31 |
+
The ONNX models were converted from the original TFLite model and optimized for efficient inference using [birdnet-onnx-converter](https://github.com/thakala/birdnet-onnx-converter). ONNX enables deployment across a wide range of runtimes and hardware platforms including CPU, GPU, and edge devices via [ONNX Runtime](https://onnxruntime.ai/).
|
| 32 |
+
|
| 33 |
+
## Training Data
|
| 34 |
+
|
| 35 |
+
Training data combined:
|
| 36 |
+
|
| 37 |
+
- Expert-annotated clips from [Xeno-canto](https://xeno-canto.org/)
|
| 38 |
+
- Finnish soundscapes
|
| 39 |
+
- Targeted field recordings
|
| 40 |
+
- Selected mobile phone recordings
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
The code for running inference with the model is available at: **[luomus/bird-identification](https://github.com/luomus/bird-identification)**
|
| 45 |
+
|
| 46 |
+
For building locally fine-tuned classifiers, see the BSG classifier builder: **[plauha/BSG_classifier_builder](https://github.com/plauha/BSG_classifier_builder)**
|
| 47 |
+
|
| 48 |
+
## License
|
| 49 |
+
|
| 50 |
+
Usage is limited to **non-commercial purposes**. See the [LICENSE](LICENSE) file for details.
|
| 51 |
+
|
| 52 |
+
## Citation
|
| 53 |
+
|
| 54 |
+
If you use this model, please cite:
|
| 55 |
+
|
| 56 |
+
```bibtex
|
| 57 |
+
@article{nokelainen2024mobile,
|
| 58 |
+
title={A Mobile Application–Based Citizen Science Product to Compile Bird Observations},
|
| 59 |
+
author={Nokelainen, O. and Lauha, P. and Andrejeff, S. and H{\"a}nninen, J. and Inkinen, J. and Kallio, A. and Lehto, H.J. and Mutanen, M. and Paavola, R. and Schiestl-Aalto, P. and Somervuo, P. and Sundell, J. and Talaskivi, J. and Vallinm{\"a}ki, M. and Vancraeyenest, A. and Lehti{\"o}, A. and Ovaskainen, O.},
|
| 60 |
+
journal={Citizen Science: Theory and Practice},
|
| 61 |
+
volume={9},
|
| 62 |
+
number={1},
|
| 63 |
+
pages={24},
|
| 64 |
+
year={2024},
|
| 65 |
+
doi={10.5334/cstp.710}
|
| 66 |
+
}
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
```bibtex
|
| 70 |
+
@article{lauha2025bsg,
|
| 71 |
+
title={Bird Sounds Global - model builder: An end-to-end workflow for building locally fine-tuned bird classifiers},
|
| 72 |
+
author={Lauha, Patrik and Rannisto, Meeri and Somervuo, Panu and others},
|
| 73 |
+
journal={Authorea},
|
| 74 |
+
year={2025},
|
| 75 |
+
doi={10.22541/au.176599468.88578746/v1}
|
| 76 |
+
}
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Acknowledgments
|
| 80 |
+
|
| 81 |
+
This model was developed at the University of Jyväskylä. The ONNX conversion and optimization were performed independently to enable broader deployment options.
|