Manual:Labels and provenance
A model is only as trustworthy as the ground-truth labels used to train and score it. This page sets out Hydrofon's research question, its four labels (background, interference, engine, ignore), the classification matrix of sound sources, label provenance and review status, and the open scope decisions (sources: docs/target_definition.md and docs/label_policy.md).
Research question and scope¶
In the TID programme, Hydrofon investigates how well existing classifiers distinguish a running target engine from no engine under documented conditions, and how performance changes with a new engine, recording chain, distractor or environment.
- Primary task: engine presence detection (binary: target engine running vs not running). Splitting the negative side into background and interference exists for error analysis, so we can tell whether false alarms come from quiet ambient sound or local distractors such as bubbles or water flow.
- Out of scope for now: identifying a specific engine model, adding a 4th class for electric vs combustion motors (Wolfset contains only one electric source), and estimating distance or bearing from a single hydrophone's score.
The four labels and core rules¶
The three model classes are fixed in code (app/models.py) in the order ("background", "interference", "engine"). Annotations add a fourth label, ignore:
| Label | UI name | Role | Meaning |
|---|---|---|---|
background |
background | negative class (0) |
No target engine and no local distractors; ordinary ambient floor. |
interference |
interference | negative class (1) |
No target engine, but a distinct non-target sound (bubbles, water flow, impacts). |
engine |
engine | positive target class (2) |
Target engine running — even when noise or impacts occur at the same time. |
ignore |
(excluded) | not a model class (-1) |
Excluded from training and window scoring (transitions, uncertain source, technical fault, disputed segment). |
Every dataset, split and experiment must report the excluded duration (ignore, disputed or unlabelled) in seconds and as a share of total audio rather than hiding it. An analysis window receives a label only when it lies wholly inside one segment (1e-6 s tolerance); boundary-straddling windows are skipped, and overlapping segments inside one recording are disallowed.
Four core labelling rules apply everywhere:
- Loud does not mean
interference. The label depends on the sound source, not RMS/dBFS level. A loud nearby boat isengine; calm water recorded with high preamp gain (20–40 dB) is stillbackground. - Quiet does not mean
background. A distant or low-gain engine does not become background because its signal is weak. - Uncertain is
ignore, never negative. If listener and field log cannot confirm the source, markignorewith a note. Calling a doubtful clipbackgroundorinterferencecorrupts false-alarm metrics and penalises true detections. - Model predictions are never ground truth. Manual review is done blind, without seeing model scores or class predictions.
Sound-source classification matrix¶
Under the current working default (until project lead Karl confirms open decisions O1–O6), engine means watercraft propulsion running, not stationary pumps or generators.
| Sound source / phenomenon | Default label | Notes |
|---|---|---|
| Combustion outboard (in gear, forward/reverse) | engine |
Core target source (Wolfset motors 1–4). |
| Engine idling out of gear | engine |
Positive in Wolfset; tracked as a subgroup (decision O4). |
| RC model-ship electric motor | engine |
Wolfset motor 5; always reported separately as a subgroup (O3). |
| Distant or weak engine | engine or ignore |
engine if confirmed by independent evidence and audible/visible on spectrogram; inaudible or doubtful → ignore (O5). |
| Distant / passing unrelated boat | engine or ignore |
Confirmed audible boat in real-water monitoring → engine; unwanted passing boat during a negative control → ignore (O2). |
| Pump (pool, bilge, shore) and other motors/generators | interference |
Not engine under the watercraft default (older README.md text listed pumps as background, which conflicts with tonal pump noise; O1). |
| Water flow, bubbles, splashes, bucket drops, impacts | interference |
Wolfset N and T noises plus hydrophone flow noise. |
| Rain and waves | background or interference |
Calm lapping or light steady rain → background; breaking surf or heavy downpour → interference (O6). |
| People / swimmers | interference |
Splashing and swim strokes are local distractors, not background (O6). |
| Other boats' sonar / depth sounder | interference or ignore |
interference when that boat's engine is definitely off; otherwise ignore (O2). |
| 50 Hz mains hum and harmonics | qc_flags (or ignore) |
Measurement-chain artefact, not an acoustic class. |
| Recording-chain self-noise or fault | background floor / ignore |
Normal quiet self-noise belongs to the background floor; clipping, dropouts or hardware faults → qc_flags + ignore. |
| Own hydrophone cable / handling noise | ignore + qc_flags |
Operator-induced artefact (O6). |
Provenance (source) and review status (review_status)¶
Every segment record carries source (where the label came from) and review_status (whether a human verified it).
Provenance (source):
filename— derived from a Wolfset file name code (A#####T##N##; rule: engine + noise =engine).index— derived fromWolfset_Index.csvnotes or a field log (e.g. overrideA02000T00N01, labelledengineonly for0–190 s).heuristic— derived from a signal rule. On Wolfset's 36 transient files (currently the only source ofbackground), a200 Hz4th-order Butterworth high-pass and20 msRMS frames mark frames> +15 dBover the 10th-percentile floor dilated by±0.98 sasinterference, regions at least0.98 saway from any> +6 dBframe asbackground, and the in-between margin asignore. Because those thresholds were chosen from plots without listening, these are always weak labels (audit F07).manual— listened to and confirmed by a human reviewer.
Review status (review_status):
unreviewed— automatic label or live REC key marker before review in tab 2 (live presses carry a0.5–2 sreaction delay).reviewed— checked and confirmed by at least one human (reviewed_byrequired).disputed— disagreement between two reviewers or unresolved edge case; treated asignoreduring scoring until resolved.
Never mix weak labels and verified truth
Weak labels (filename, index, heuristic or unreviewed) and manually confirmed truth (manual + reviewed) are never combined into one headline metric. Label versioning (annotation_version) is also kept separate from FEATURE_VERSION: correcting labels does not force audio features to be recomputed, while still binding every model and evaluation run to the exact label revision.
In your own recordings (Reviewing and notes), each state marker (1 = engine, 2 = background, 3 = interference) means "state X starts here" and runs until the next state marker. Audio before the first state marker stays unlabelled (ignore), and custom notes (M) do not split segments. To close uncertain spans cleanly, the policy recommends adding 4 = ignore in settings.
Open decisions for Karl¶
Six scope decisions depend on the project's intended use case and belong to project lead Karl. Until confirmed, each item uses the working default noted below.
- O1 — Scope of
engine: watercraft propulsion only (default; pumps and generators =interference) vs any rotating motor (engine) vs unswitchable pool pump asbackground. - O2 — Passing boats and sonar in field trials: confirmed audible passing boat =
engine(orignorein a negative control) and stationary sonar =interference(default) vs counting only the test boat asengine. - O3 — Electric motor status: part of
enginewith separate subgroup reporting (default) vs combustion outboards only as main target. - O4 — Idle out of gear:
engine, as in Wolfset today (default) vs in-gear only. - O5 — Distant / low-SNR engine boundary:
enginewhen confirmed and audible/visible, inaudible spans =ignore(default) vs every physically running moment regardless of SNR. - O6 — Cable handling noise, swimmers and heavy weather: own cable handling =
ignore+qc_flags, swimmers and heavy surf =interference(default) vs labelling recurring cable/flow noise asinterferenceon a moving platform.
See also¶
- Manual review: blind listening workflow and Cohen's kappa
- The evaluation contract: rules frozen before the final test
- Reviewing and notes: placing and refining markers on own recordings
- Wolfset: Wolfset file-name codes
- Glossary: definitions of technical terms