Downloads · 30 days
0
EarthSpeciesProject/esp-aves2-effnetb0-bio
esp-aves2-effnetb0-bio is a machine learning model from EarthSpeciesProject. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-sa-4.0.
esp-aves2-effnetb0-bio is a supervised bioacoustic encoder trained to produce transferable embeddings for downstream bioacoustic tasks. It follows the paper’s EfficientNet post-training recipe using a curated Bio bioa…
Downloads · 30 days
0
Access
Public
Updated Feb 2, 2026
Repo size
396 MB
Likes
0
Public
Click a slice to open those files.
.safetensors79.2 MB · 99%
From the Hugging Face model README
esp-aves2-effnetb0-bio is a supervised bioacoustic encoder trained to produce transferable embeddings for downstream bioacoustic tasks. It follows the paper’s EfficientNet post-training recipe using a curated Bio bioacoustics-only mix.
https://www.earthspecies.org/about-us#supporthttps://github.com/earthspecies/avexhttps://docs.pytorch.org/vision/main/models/generated/torchvision.models.efficientnet_b0.htmlesp-aves2-effnetb0-bio can be used directly as an embedding model for bioacoustic tasks such as species classification/detection, retrieval, clustering, individual ID, and repertoire analysis.
Use frozen embeddings with linear probes, or fine-tune on your target dataset. Suitable for deployment as a feature extractor.
Not a generative model; does not output text.
Loading this model requires the AVEX (Animal Vocalization Encoder) library avex to be installed.
pip install avex
Or with uv:
uv add avex
For more details, see https://github.com/earthspecies/avex.
from avex import load_model
model = load_model("esp_aves2_effnetb0_bio", device="cuda")
# Case 1: embedding extraction (features only)
backbone = load_model("esp_aves2_effnetb0_bio", device="cuda", return_features_only=True)
with torch.no_grad():
embeddings = backbone(audio_tensor)
# Shape: (batch, channels, height, width) for EfficientNet
# Pool to get fixed-size embedding
embedding = embeddings.mean(dim=(2, 3)) # Shape: (batch, channels)
# Case 2: supervised predictions (logits over label IDs; see label_map.json)
model = load_model("esp_aves2_effnetb0_bio", device="cuda")
with torch.no_grad():
logits = model(audio_tensor)
predicted_class = logits.argmax(dim=-1).item()
from avex.models.probes import build_probe_from_config
from avex.configs import ProbeConfig
# Load backbone for feature extraction
base = load_model("esp_aves2_effnetb0_bio", return_features_only=True, device="cuda")
# Define a probe head for your task
probe_config = ProbeConfig(
probe_type="linear",
target_layers=["last_layer"],
aggregation="mean",
freeze_backbone=True,
online_training=True,
)
probe = build_probe_from_config(
probe_config=probe_config,
base_model=base,
num_classes=10, # Your number of classes
device="cuda",
)
The class label mapping for this supervised learning model can be found at label_map.json in the Hugging Face repository.
esp-aves2-effnetb0-bio follows the paper’s supervised post-training recipe on Bio only, starting from ImageNet-pretrained EfficientNet-B0.
| Dataset | Description | Source | License | Size |
|---|---|---|---|---|
| Xeno-canto | birds | Link | CC (varies) | 10416 hours |
| iNaturalist | diverse taxa | Link | CC (varies) | 1539 hours |
| Watkins | marine mammals | Link | licensing agreement (paper) | 27 hours |
| Animal Sound Archive | diverse taxa | Link | See archive terms | 78 hours |
Training hyperparameters are specified in train_config.yaml.
The paper evaluates on:
https://github.com/earthspecies/beanshttps://huggingface.co/datasets/DBD-research-group/BirdSetAggregate results for linear probing (frozen base model) with esp-aves2-effnetb0-bio (from the provided LaTeX table):
| Benchmark | Task | Metric | Score |
|---|---|---|---|
| BEANS Classification | Probe | Accuracy | 0.786 |
| BEANS Classification | Retrieval | ROC AUC | 0.799 |
| BEANS Classification | Clustering | NMI | 0.563 |
| BEANS Detection | Probe | mAP | 0.365 |
| BEANS Detection | Retrieval | ROC AUC | 0.695 |
| BirdSet | Probe | mAP | 0.279 |
| BirdSet | Retrieval | ROC AUC | 0.704 |
| Individual ID | Probe | Accuracy | 0.457 |
| Individual ID | Retrieval | ROC AUC | 0.683 |
| Vocal Repertoire | Retrieval | ROC AUC | 0.806 |
| Vocal Repertoire | Clustering | NMI | 0.568 |
BibTeX:
@inproceedings{miron2025matters,
title={What Matters for Bioacoustic Encoding},
author={Miron, Marius and Robinson, David and Alizadeh, Milad and Gilsenan-McMahon, Ellen and Narula, Gagan and Chemla, Emmanuel and Cusimano, Maddie and Effenberger, Felix and Hagiwara, Masato and Hoffman, Benjamin and Keen, Sara and Kim, Diane and Lawton, Jane K. and Liu, Jen-Yu and Raskin, Aza and Pietquin, Olivier and Geist, Matthieu},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026}
}
Contact: [email protected], [email protected], [email protected], [email protected]