Hydrofon wikiThe manual of an underwater listening app 文A eesti

Manual:Labels and provenance

Other languages: eesti English

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:

  1. Loud does not mean interference. The label depends on the sound source, not RMS/dBFS level. A loud nearby boat is engine; calm water recorded with high preamp gain (20–40 dB) is still background.
  2. Quiet does not mean background. A distant or low-gain engine does not become background because its signal is weak.
  3. Uncertain is ignore, never negative. If listener and field log cannot confirm the source, mark ignore with a note. Calling a doubtful clip background or interference corrupts false-alarm metrics and penalises true detections.
  4. 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 from Wolfset_Index.csv notes or a field log (e.g. override A02000T00N01, labelled engine only for 0–190 s).
  • heuristic — derived from a signal rule. On Wolfset's 36 transient files (currently the only source of background), a 200 Hz 4th-order Butterworth high-pass and 20 ms RMS frames mark frames > +15 dB over the 10th-percentile floor dilated by ±0.98 s as interference, regions at least 0.98 s away from any > +6 dB frame as background, and the in-between margin as ignore. 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 a 0.5–2 s reaction delay).
  • reviewed — checked and confirmed by at least one human (reviewed_by required).
  • disputed — disagreement between two reviewers or unresolved edge case; treated as ignore during 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.

  1. O1 — Scope of engine: watercraft propulsion only (default; pumps and generators = interference) vs any rotating motor (engine) vs unswitchable pool pump as background.
  2. O2 — Passing boats and sonar in field trials: confirmed audible passing boat = engine (or ignore in a negative control) and stationary sonar = interference (default) vs counting only the test boat as engine.
  3. O3 — Electric motor status: part of engine with separate subgroup reporting (default) vs combustion outboards only as main target.
  4. O4 — Idle out of gear: engine, as in Wolfset today (default) vs in-gear only.
  5. O5 — Distant / low-SNR engine boundary: engine when confirmed and audible/visible, inaudible spans = ignore (default) vs every physically running moment regardless of SNR.
  6. 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 as interference on a moving platform.

See also

This page has not been saved yet.

The Hydrofon project · volli.page