The DSP detector's held-out results in Part 2 showed why I needed a better evaluation design. I wanted to compare the hand-tuned DSP, a cloud model and an on-chip model on new data without letting any detector determine which labels counted. Designing the labelling process took much of the engineering effort.
Why recall is the expensive metric, not precision
Precision is relatively cheap to estimate. Sample clips that a detector flagged and check how many are sirens.
Recall requires finding sirens that a detector missed, including any missed by all three. Roughly 83% of this corpus fell below every detector's operating threshold. Those clips therefore needed inspection too, even though most contained no siren.
With only 10 minutes a day for labelling, uniform random sampling would spend most of the budget confirming negatives. I needed enough labels from the quiet region to estimate missed sirens, while reserving time for clips informative about precision and differences between detectors.
Two streams with separate purposes
I split the daily labels into two streams. One supports comparisons between detectors; the other supports estimates of their absolute performance.
Stream A — disagreement, ~6 clips/day. These are clips on which the detectors score differently. They help explain relative strengths and failures, but cannot by themselves establish absolute precision or recall. Selection depends on the detectors' scores, so this is not an independent sample of the corpus.
Stream B — stratified random, ~14 clips/day. This stream supplies the precision and recall estimates. Clips are grouped into strata using their scores relative to each detector's frozen operating threshold. Each stratum has a fixed daily quota and a known selection probability, allowing unequal sampling rates to be accounted for:
| Stratum (score relative to threshold) | Clips/day | Sampled/day | P(selected) | Why |
|---|---|---|---|---|
| ≥ 1.0 — above some detector's threshold | ~15 | 4 | 27% | Where precision is measured |
| 0.3 – 1.0 | ~16 | 3 | 19% | The ambiguous band |
| < 0.3 — below every detector, with margin | ~150 | 7 | 5% | Where missed sirens hide — this stratum determines recall |
The top stratum is small enough that four daily labels sample 27% of it. The much larger bottom stratum receives seven labels, but those cover only 5%. That larger absolute allocation is needed to look for missed sirens among many negatives. Every sampled clip records its stratum and selection probability. Precision and recall are then estimated for the corpus using inverse-probability weighting: a label from a less frequently sampled stratum carries more weight, so the bottom stratum is not under-represented.
Keep the sampling streams separate
A disagreement-selected label from Stream A does not have the same sampling basis as a random label from Stream B. Pooling their counts without accounting for selection would bias the performance estimates towards whichever disagreements were labelled most. In this design, only Stream B supplies those estimates.
Using simulation to size the quota
I chose the bottom stratum's 7-clips-a-day quota using a simulation. It asked how often a detector that misses 25% of real sirens would appear to clear a 90% recall requirement because too few low-stratum clips had been labelled.
| Low-stratum quota/day | Labels/month | False-CLEAR rate for a 75%-recall detector |
|---|---|---|
| 3/day | 90 | 13.7% |
| 5/day | 150 | 3.0% |
| 7/day (as specified) | 210 | 0.7% |
| 10/day | 300 | 0.7% |
| 15/day | 450 | 0.2% |
At low sample counts, the most likely individual outcome in the simulation was finding zero low-band sirens by chance. That could produce an apparent 100% recall and an unjustifiably tight confidence interval. At seven labels a day the simulated false-CLEAR rate fell to 0.7%; it rose quickly below that quota. If the daily budget had to shrink, I would protect the bottom-stratum allocation before the top two, because it supports the estimate of missed sirens.
The remaining uncertainty
I expected roughly 130 labelled positives over a full month, including only 4 to 12 bottom-stratum finds. That range came from two estimates intended to bracket the underlying value, rather than a precise forecast. With so few observations supporting the missed-siren estimate, confidence intervals would remain wide. Stratification makes better use of a limited budget; it does not remove the uncertainty from small counts.
The exit rule in Part 6 therefore includes requirements for both the point estimate and its lower confidence bound. A detector with 91% recall but a lower bound of 78% has not cleared it. The result is insufficiently precise, which is reported separately from either a clear pass or a clear failure.
Using the labels for model comparisons
The comparisons in Parts 4, 5 and 6 depend on knowing how labels were selected. A detector should not look better merely because it supplied more of the clips chosen for review. Keeping the streams separate and recording selection probabilities gives the later results an evaluation basis I can inspect.
Part 4 uses that basis to compare cloud-hosted models against the DSP baseline, including the cost of running each candidate.