Skip to main content
Inference results include timestamped detections with confidence scores. This guide explains how to interpret and use these results effectively.

Detection format

Each detection contains:

Confidence scores

The confidence score indicates how certain the model is about a detection:

Threshold tuning

The threshold parameter in inference config controls which detections are returned:

Finding the right threshold

Start with the default (0.5) and adjust based on your needs:
  1. Too many false positives? Raise the threshold
  2. Missing real artifacts? Lower the threshold
  3. Unsure? Return more detections and add human review
Python

Working with detections

Filtering by type

Python

Sorting detections

Python

Calculating duration

Python

Detection merging

The merge_window_ms parameter combines adjacent detections: Without merging:
With merge_window_ms: 200:
This is useful when:
  • The model detects multiple pieces of a single artifact
  • You want to count distinct artifacts rather than fragments

Integrating results into your pipeline

Flag problematic audio

Python

Generate quality score

Python

Create audio markers

Generate markers for audio editing software:
Python

JSON export

Python

Handling edge cases

No detections

An empty detection list means no artifacts were found above the threshold:
Python

Processing failures

Check file status before accessing detections:
Python

Overlapping detections

Different artifact types can overlap (e.g., a glitch during a pause):
Python

Metrics and monitoring

Track detection rates

Python

Monitor over time

Track detection patterns to identify issues:
Python