/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Архитектура
AudioProtoNet · dense
Базовая модель
convnext-base-224-22k
Библиотека
transformers
Опубликована
3 апр 2025

AudioProtoPNet-1-BirdSet-XCL

Классификация текстаТекст → label3 профессии

Интерпретируемая модель для многометочной классификации видов птиц по звуковым записям с помощью изученных прототипов вокализаций.

75скачиваний за 30 дней1лайквеса обновлены18 сен 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

AudioProtoPNet-1-BirdSet-XCL — модель группы DBD-research-group для многометочной классификации видов птиц по их вокализациям. Она сочетает сверточную основу ConvNeXt Base, предварительно обученную на ImageNet-22k, с классификатором на прототипах: модель сопоставляет аудиозапись с изученными характерными паттернами и тем самым помогает интерпретировать предсказания. Для распознавания звука используются спектрограммы записей.

Модель обучена на обучающей части BirdSet, включающей записи тысяч видов птиц, и оценивалась на тестовых наборах из разных географических регионов. В README сообщается о среднем AUROC 0,90 и cmAP 0,42 для варианта AudioProtoPNet-5 и о результатах выше Perch и ConvNeXt на этих оценках. Версия модели в репозитории — AudioProtoPNet-1. Метаданные указывают библиотеку Transformers и формат safetensors. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но запрещает коммерческое использование.

Сценарии применения

  • определение видов птиц по полевым аудиозаписям
  • многометочная разметка записей с голосами нескольких видов
  • поиск характерных фрагментов вокализаций для объяснения предсказания
  • акустический мониторинг птиц в разных географических регионах
  • анализ ошибок классификатора птичьих голосов

Ограничения

Метрики приведены для наборов оценки BirdSet и могут не отражать качество на других регионах, видах или условиях записи. Модель распространяется по лицензии CC BY-NC 4.0, которая не допускает коммерческого использования.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

AudioProtoPNet: An Interpretable Deep Learning Model for Bird Sound Classification

Abstract

Deep learning models have significantly advanced acoustic bird monitoring by recognizing numerous bird species based on their vocalizations. However, traditional deep learning models are often "black boxes," providing limited insight into their underlying computations, which restricts their utility for ornithologists and machine learning engineers. Explainable models, on the other hand, can facilitate debugging, knowledge discovery, trust, and interdisciplinary collaboration.

This work introduces AudioProtoPNet, an adaptation of the Prototypical Part Network (ProtoPNet) designed for multi-label bird sound classification. AudioProtoPNet is inherently interpretable, leveraging a ConvNeXt backbone to extract embeddings and a prototype learning classifier trained on these embeddings. The classifier learns prototypical patterns of each bird species' vocalizations from spectrograms of instances in the training data.

During inference, recordings are classified by comparing them to learned prototypes in the embedding space, providing explanations for the model's decisions and insights into the most informative embeddings of each bird species.

Model Description

Training Data

The model was trained on the BirdSet training dataset, which comprises 9734 bird species and over 6800 hours of recordings.

Evaluation

AudioProtoPNet's performance was evaluated on seven BirdSet test datasets, covering diverse geographical regions. The model demonstrated superior performance compared to state-of-the-art bird sound classification models like Perch (which itself outperforms BirdNet). AudioProtoPNet achieved an average AUROC of 0.90 and a cmAP of 0.42, representing relative improvements of 7.1% and 16.7% over Perch, respectively.

These results highlight the feasibility of developing powerful yet interpretable deep learning models for the challenging task of multi-label bird sound classification, offering valuable insights for professionals in ornithology and machine learning.

Evaluation Results

Table 1: Mean Performance of AudioProtoPNet Models with Varying Prototypes

Mean performance of AudioProtoPNet models with one, five, ten, and twenty prototypes per class for the validation dataset POW and the seven test datasets, averaged over five different random seeds. The 'Score' column represents the average of the respective metric across all test datasets. Best values for each metric are bolded. While models with five, ten, and twenty prototypes performed similarly, the model with only one prototype per class showed slightly lower performance.

MetricPOWPERNESUHHHSNNBPSSWSNEScore
AudioProtoPNet-1cmAP0.490.300.360.280.500.660.400.320.40
AUROC0.880.790.920.850.910.920.960.840.88
T1-Acc0.870.590.490.420.640.710.640.700.60
AudioProtoPNet-5cmAP0.500.300.380.310.540.680.420.330.42
AUROC0.880.790.930.870.920.930.970.880.90
T1-Acc0.840.590.520.490.650.710.660.740.62
AudioProtoPNet-10cmAP0.500.300.380.300.540.680.420.340.42
AUROC0.880.800.940.860.920.930.970.860.90
T1-Acc0.850.590.520.470.640.720.670.740.62
AudioProtoPNet-20cmAP0.500.300.380.310.540.680.430.330.42
AUROC0.890.800.940.860.920.930.970.870.90
T1-Acc0.870.600.520.420.650.720.680.750.62

Table 2: Comparative Performance of AudioProtoPNet, ConvNeXt, and Perch

Mean performance of AudioProtoPNet-5, ConvNeXt, and Perch for the validation dataset POW and the seven test datasets, averaged over five different random seeds. The 'Score' column represents the average of the respective metric across all test datasets. Best values for each metric are bolded. AudioProtoPNet-5 notably outperformed both Perch and ConvNeXt in terms of cmAP, AUROC, and top-1 accuracy scores.

ModelMetricPOWPERNESUHHHSNNBPSSWSNEScore
AudioProtoPNet-5cmAP0.500.300.380.310.540.680.420.330.42
AUROC0.880.790.930.870.920.930.970.860.90
T1-Acc0.840.590.520.490.650.710.660.740.62
ConvNeXtcmAP0.410.210.350.250.490.660.380.310.38
AUROC0.830.730.890.720.880.920.930.830.84
T1-Acc0.750.430.490.430.600.690.580.620.56
PerchcmAP0.300.180.390.270.450.630.280.290.36
AUROC0.840.700.900.760.860.910.910.830.84
T1-Acc0.850.480.660.570.580.690.620.690.61

Example

This model can be easily loaded and used for inference with the transformers library.

from transformers import AutoFeatureExtractor, AutoModelForSequenceClassification
import librosa
import torch

# Load the model and feature extractor
model = AutoModelForSequenceClassification.from_pretrained("DBD-research-group/AudioProtoPNet-1-BirdSet-XCL",trust_remote_code=True)
feature_extractor = AutoFeatureExtractor.from_pretrained("DBD-research-group/AudioProtoPNet-1-BirdSet-XCL", trust_remote_code=True)
model.eval()

# Load an example audio file
audio_path = librosa.ex('robin')
label = "eurrob1"  # The eBird label for the European Robin.

# The model is trained on audio sampled at 32,000 Hz
audio, sample_rate = librosa.load(audio_path, sr=32_000)

mel_spectrogram = feature_extractor(audio)

outputs = model(mel_spectrogram)
probabilities = torch.sigmoid(outputs[0]).detach()

# Get the top 5 predictions by confidence
top_n_probs, top_n_indices = torch.topk(probabilities, k=5, dim=-1)

label2id = model.config.label2id
id2label = model.config.id2label

print(f'Selected species with confidence:')
print(f"{label:<7} - {probabilities[:, label2id[label]].item():.2%}")
print("\nTop 5 Predictions with confidence:")
for idx, conf in zip(top_n_indices.squeeze(), top_n_probs.squeeze()):
    print(f"{id2label[idx.item()]:<7} - {conf:.2%}")

Expected output

Selected species with confidence:
eurrob1 - 28.77%
Top 5 Predictions with confidence:
sablar2 - 52.56%
coatit2 - 40.92%
verdin  - 40.21%
blutit  - 39.58%
palwar5 - 35.82%

More Details

For more details refer to our paper at: https://www.sciencedirect.com/science/article/pii/S1574954125000901

Citation

@misc{heinrich2024audioprotopnet,
      title={AudioProtoPNet: An interpretable deep learning model for bird sound classification}, 
      author={René Heinrich and Lukas Rauch and Bernhard Sick and Christoph Scholz},
      year={2024},
      url={https://www.sciencedirect.com/science/article/pii/S1574954125000901}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
AudioProtoNetForSequenceClassification
Ревизия весов
d1fc87e

0 моделей