Skip to main content
Once you have a published annotation set, you can train a custom model to detect artifacts in new audio.

Prerequisites

Before training, ensure:
  • Annotation set is published: Draft sets cannot be used for training
  • All audio is processed: Every file must have processing_status: ready
  • Sufficient data: At least 5 minutes of total audio
  • Coverage per type: At least 1 annotation per artifact type you want to detect

Creating a training job

Python

Training configuration

Choosing artifact types

You can train on all artifact types in your dataset or a subset:
Python

Epochs

More epochs can improve accuracy but risks overfitting:
  • Small datasets (< 30 minutes): 10-20 epochs
  • Medium datasets (30-120 minutes): 20-40 epochs
  • Large datasets (> 120 minutes): 30-50 epochs

Validation split

A portion of your data is held out to measure model performance:
  • 0.2 (20%): Good default for most datasets
  • 0.1 (10%): Use for very large datasets
  • 0.3 (30%): Use for small datasets to get reliable metrics

Learning rate

Controls how aggressively the model updates:
  • 0.001: Good default
  • 0.0001: For fine-tuning or unstable training
  • 0.01: For faster training on large datasets

Batch size

Larger batches train faster but use more memory:
  • 32: Good default
  • 16: For limited memory
  • 64-128: For large datasets

Monitoring training

Job status

Poll the training job to check progress:
Python

Training job statuses

Understanding metrics

After training completes, the job includes evaluation metrics:

Key metrics

Interpreting results

  • High precision, low recall: Model is conservative, missing some artifacts
  • Low precision, high recall: Model is aggressive, flagging too much
  • Both high: Good model performance
  • Both low: Need more training data or different hyperparameters

Working with models

List models

After training completes, a model is automatically created:
Python

Get model details

Python

Update model

Add a name and description for easier identification:
Python

Active vs inactive

Models can be marked active or inactive:
Python

Delete model

Deleting archives the model (soft delete):
Python

Cancelling training

Cancel a pending or running job:
Python

When to retrain

Consider retraining when:
  • Adding new artifact types: Train a new model with the additional types
  • Model performance drops: Audio characteristics may have changed
  • More data available: More examples generally improve accuracy
  • Tuning thresholds isn’t enough: If you’re constantly adjusting inference thresholds, the model may need improvement

Troubleshooting

”Annotation set must be published"

Python

"Not enough audio data”

Ensure you have at least 5 minutes of processed audio:
Python

“Audio files not ready”

Wait for all audio to finish processing:
Python