Downloads · 30 days
18
22% of all-time downloads
bbureau12/QuietHorizon
QuietHorizon is a audio classification model from bbureau12. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as mit.
A convolutional neural network for detecting anthropogenic noise vs natural soundscapes.
Downloads · 30 days
18
22% of all-time downloads
All-time downloads
81
Public
Repo size
10.2 MB
Likes
0
Public
Click a slice to open those files.
.h55.1 MB · 50%
From the Hugging Face model README
A convolutional neural network for detecting anthropogenic noise vs natural soundscapes.
QuietHorizon is a lightweight environmental audio classifier that identifies whether a 1–2 second audio clip contains anthropogenic (human-made) noise or natural sounds.
It is designed to support wildlife monitoring, soundscape conservation, noise-pollution mapping, and bioacoustic filtering pipelines.
0 = natural1 = anthropogenicEvaluated on an unseen test set.
| Metric | Score |
|---|---|
| Accuracy | 0.95 |
| Precision | 0.95 |
| Recall | 0.96 |
| ROC-AUC | 0.99 |
This means the model is excellent at detecting contaminated audio and rarely misses anthropogenic noise.
Intended Applications
Not Intended For
import tensorflow as tf
import librosa
import numpy as np
model = tf.keras.models.load_model("quiet_horizon_cnn.keras")
def predict(path):
y, sr = librosa.load(path, sr=22050, mono=True)
mel = librosa.feature.melspectrogram(y=y, sr=sr, n_mels=128)
logmel = librosa.power_to_db(mel)
logmel = np.expand_dims(logmel, axis=(0, -1)) # shape: (1, H, W, 1)
pred = model.predict(logmel)[0][0]
return float(pred), "anthro" if pred > 0.5 else "nature"
score, label = predict("example.wav")
print(score, label)