Skip to content

Data Preparation

Labels and splits

Check your labels, keep a fair testing set and balance the dataset before you train.

Try it in Studio
On this page

Goal

By the end of this page every clip will have the right label, and your testing set will be a fair sample of every sound.

Why the split matters

Studio keeps two sets:

SetUsed for
TrainingTeaching the model
TestingChecking the model on sounds it has never heard

If the testing set is missing a label, or has very few clips, the test result does not tell you much. A good target is about 80 % training and 20 % testing for every label.

Steps

Check or change one clip

  1. Open Data acquisition and select a clip in the list.
  2. Play it to check it sounds right.
  3. To fix the label, choose another Class Label.
  4. To move it, select Switch to Test Set (20%) or Switch to Training Set (80%) under Dataset Split.
  5. To remove a bad recording (silence by mistake, cut-off word), delete it.

Rebalance the whole dataset

  1. Select the rebalance button on the Data acquisition page. The Rebalance Dataset Split window opens.
  2. Pick a ratio such as 80% / 20% (or set a Custom Target Ratio).
  3. Confirm. Studio splits each label separately, so every label ends up with the same share of clips in the testing set.

Result

Every label has clips in both sets, roughly in the ratio you chose.

Tips for a good audio dataset

Studio shows four recommendations in its guide on this page. In short:

  1. Include silence in "noise". Record 30–60 seconds of quiet room sound into a label called noise, together with normal background sounds. Without it, the model may think silence is one of your words.
  2. Match the clip length to the window. Clips should be about as long as the impulse Window size (1000 ms for 1-second clips). Use 1-Sec Auto-Split when recording.
  3. Balance the labels. Keep a similar number of clips per label, for example about 100 each. Use Clone & Multiply for a small label if needed.
  4. Keep 20 % for testing. Never train on the testing set.

What next?