Winston-Salem Bird Station

Friday, December 04, 2026 — 05:11 PM

Raspberry Pi 4 · Ecowitt WittBoy 7-in-1 Weather Station · Cornell Lab BirdNET-Pi Acoustic Recognition

Questions or feedback: [email protected]

Model Training & Fit Performance

Predicted vs Actual — by Hour of Day

Averaged across every date in the training data, so this shows the daily activity shape rather than a specific day.

Weather Effects on Detection Rate

WittBoy Variable Correlation Heatmap

tempfhumiditybaromrelinwinddirwindspeedmphwindgustmphsolarradiationuvrainratedailyrain
tempf 1.0 -0.35 -0.34 0.13 0.13 0.23 0.44 0.41 0.01 0.04
humidity -0.35 1.0 -0.08 -0.08 -0.24 -0.4 -0.41 -0.37 0.08 0.19
baromrelin -0.34 -0.08 1.0 -0.04 -0.11 -0.15 -0.05 -0.05 -0.03 -0.18
winddir 0.13 -0.08 -0.04 1.0 0.03 0.05 0.09 0.09 -0.01 -0.02
windspeedmph 0.13 -0.24 -0.11 0.03 1.0 0.61 0.3 0.28 0.04 0.05
windgustmph 0.23 -0.4 -0.15 0.05 0.61 1.0 0.39 0.35 0.06 0.1
solarradiation 0.44 -0.41 -0.05 0.09 0.3 0.39 1.0 0.99 -0.03 -0.04
uv 0.41 -0.37 -0.05 0.09 0.28 0.35 0.99 1.0 -0.03 -0.04
rainrate 0.01 0.08 -0.03 -0.01 0.04 0.06 -0.03 -0.03 1.0 0.16
dailyrain 0.04 0.19 -0.18 -0.02 0.05 0.1 -0.04 -0.04 0.16 1.0

Model Version History

VersionRowsModel Fit ScorePromoted
v110_20261117_031655 45900 -0.4772
v109_20261113_020714 40756 -0.5079
v108_20261112_020918 40388 -0.5079
v107_20261111_015402 40020 -0.5071
v106_20261110_021116 39652 -0.5057
v105_20261109_023611 39284 -0.5047
v104_20261108_015218 37224 -0.5225
v103_20261107_021841 35196 -0.5386
v102_20261106_012543 34860 -0.5371
v101_20261105_013013 34524 -0.5348

About This Model

This dashboard is powered by a Bayesian hierarchical Negative Binomial model, fit using PyMC via MCMC sampling (NUTS), on the top 20 most-detected species. The outcome is the number of detections for a given species within a given hourly window, including true zeros for hours when nothing was heard. A negative binomial likelihood was chosen over Poisson because detection counts are highly overdispersed — some species (like Carolina Wren and Gray Catbird) call in bursts, producing far more variance than a Poisson model can explain. Temperature, humidity, pressure, and rainfall enter as standardized fixed effects shared across all species. Time of day enters as a quadratic curve, letting each species peak at its own hour rather than sharing one shape — species is treated as a random intercept and random time-of-day slope on the log scale, letting each species have its own baseline calling rate and its own peak timing, with sparse species pulled toward the group average. The model is retrained daily as new detections accumulate, and a new version is only promoted to production if it has a better estimated out-of-sample fit (via LOO cross-validation) than the current one. The current formulation is shown below, where count is assumed to follow a Negative Binomial distribution with mean μ and dispersion α.
log(μ) = β0 + β1·Temp + β2·Humidity + β3·Pressure + β4·Rain + (β5+b5,species)·TimeOfDay + (β6+b6,species)·TimeOfDay² + uspecies

count ∼ NegBinomial(μ, α)
uspecies ∼ Normal(μspecies, σ²species)
b5,species, b6,species ∼ Normal(0, σ²time)

What "hierarchical" actually means

Each species' baseline calling rate is pulled toward the group average — pulled hard when a species has little data, barely at all when it has a lot. This is what lets sparse species (like Common Grackle) get a stable, sensible estimate instead of an overfit one, while common species (like Gray Catbird) are trusted almost entirely on their own data.

Group average calling rate Gray Catbird n = 6,552 Barely moves Fish Crow n = 1,806 Small pull Great Crested Flycatcher n = 76 Moderate pull Common Grackle n = 33 Pulled hardest Raw estimate → model estimate Coefficients and predictions shown above reflect the current production model version.