Hydrofon wikiThe manual of an underwater listening app 文A eesti

Manual:Comparing models

Other languages: eesti English

The Clip analysis suite runs several models on the same recording at once and plots their engine scores, class predictions and the recording's own ground-truth labels on one shared timeline. Use it to see where models agree, where false alarms happen, and whether a mismatch is a model error or a labelling mistake.

The Clip analysis suite: spectrogram, truth lane, three model lanes and the playhead window detail panel on the right.
The Clip analysis suite: spectrogram, truth lane, three model lanes and the playhead window detail panel on the right.

Opening a file and choosing models

  1. Open the Clip analysis suite tab in the main window.
  2. In the Models list at the top left, you see the built-in YAMNet (top 3) followed by every complete trained model in models/. New models start checked. Toggle check marks with the mouse or with Space while the list has focus.
  3. Press Open file… and pick a WAV or FLAC recording (the dialog starts in recordings/).

Opening a file automatically starts every checked model. The audio is read once using the shared channel policy (mono mean across channels, the same rule used in training), and each model runs in its own worker thread. Each lane appears on the timeline as soon as its model finishes.

If you tick another model later or retrain an existing one, press Refresh to scan models/ for new or updated models (models created or deleted in the Training suite refresh the list automatically) and then press Analyse to run the models that do not have a result yet. Results stay cached in memory by file version and model version (including YAMNet's configured engine classes) until the app closes, so switching back to a file or toggling check marks is instant.

Sample rate requirement for band models

Band-feature models require a sample rate of at least 35,919 Hz (see Model files). On a lower-rate file, only that model's lane shows an error; other models still run normally.

Next to Open file…, the header shows the file name, duration and how many ground-truth segments were found. If the companion JSON has saved segments, those are used; for an unsaved draft with only markers, segments are derived the same way Save derives them (The recording format).

Timeline and model lanes

At the top is an overview dBFS spectrogram of the whole file (up to 2,000 FFT columns, using the frequency range and colour scale from Preferences). Every lane below shares a linked time axis with the spectrogram, so zooming with the mouse wheel zooms all lanes together.

Truth (markers)
Shown directly below the spectrogram whenever the file has marked segments. Colours match the classes: red = engine, yellow = interference, green = background (any custom state added in settings is magenta). If the file has no ground truth, this plot is hidden.
Model lanes
Each checked model gets its own lane with three elements: - Blue curve: engine score (0–1) plotted at the centre of each analysis window. - Red dashed line: current alarm threshold (Settings → Detector → Alarm threshold (0–1), default 0.3). - Bottom colour strip (trained models only): the most likely class (argmax) of each window in the same class colours. Built-in YAMNet (top 3) does not output those three class probabilities, so it has no strip.

Above each lane sits a per-model status line. When ground truth is present, it displays accuracy X% (N windows) · engine found Y% · false alarms K (R/h). A dash (–) replaces the percentage or hourly rate if the recording has no engine windows or no non-engine time. Without ground truth, only the window count is shown.

Metrics here still use the legacy rule

Clip analysis still computes its summary line with the older app/analysis.py rule: for trained models, accuracy uses 3-class argmax while engine found and false alarms use the alarm threshold (score >= threshold), and the hourly rate divides by the raw sum of non-engine segment durations. The unified four-layer evaluation core (app/evaluation.py) exists in the codebase but is not yet wired into the GUI. See Metrics for details.

Windows at the playhead

The right-hand Windows at the playhead panel tracks the white vertical playhead line across all plots. At the top it prints the truth label at that timestamp (Truth here:), followed by every analysis window of each checked model that covers the playhead.

Because analysis windows overlap (YAMNet uses a 0.975 s window with a 0.48 s step; band models use a 1.0 s window with a 0.5 s step), 2–3 windows normally cover any given instant. Each box shows the window number, its start and end times in seconds, and an above threshold tag whenever the engine score reaches the alarm threshold.

  • Trained models list all three class probabilities (background, interference, engine) as bars, with the highest class in bold.
  • YAMNet lists its engine score (the highest probability among the configured engine classes) and YAMNet top 3: with its three highest-scoring sound classes.

Fixing a label and detaching the window

If comparing models reveals that the recording's own label is wrong, press Fix the label on the playback bar. Playback pauses and the same file opens in tab 2 · Mark & save at the exact playhead position (Reviewing and notes). If tab 2 holds unsaved edits to another file and you keep them, tab 2 stays on that other file. If a file open in Clip analysis is later moved or deleted from tab 2, Clip analysis releases the file automatically.

On a wide screen or dual-monitor setup, you can pop Clip analysis into its own window with Own window or by double-clicking its suite tab, keeping analysis and marking open side by side. Closing the detached window puts the suite back as a tab in the main window (Windows and screens).

Clip analysis detached into its own window. Closing the window re-attaches it to the main window.
Clip analysis detached into its own window. Closing the window re-attaches it to the main window.

Keyboard and mouse

Action Key or mouse
Play / pause Space (when focus is outside the Models list)
Jump 5 s back / forward ← / → (or −5 s and +5 s)
Check / uncheck a model Space while focus is in the Models list
Seek to a timestamp Left-click on the spectrogram or any lane
Zoom the time axis Mouse wheel on the spectrogram or any lane

See Keyboard shortcuts for all shortcuts across the app.

See also

This page has not been saved yet.

The Hydrofon project · volli.page