Data Preparation
Labels and splits
Check your labels, keep a fair testing set and balance the dataset before you train.
Try it in StudioOn 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:
| Set | Used for |
|---|---|
| Training | Teaching the model |
| Testing | Checking 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
- Open Data acquisition and select a clip in the list.
- Play it to check it sounds right.
- To fix the label, choose another Class Label.
- To move it, select Switch to Test Set (20%) or Switch to Training Set (80%) under Dataset Split.
- To remove a bad recording (silence by mistake, cut-off word), delete it.
Rebalance the whole dataset
- Select the rebalance button on the Data acquisition page. The Rebalance Dataset Split window opens.
- Pick a ratio such as 80% / 20% (or set a Custom Target Ratio).
- 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:
- 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.
- 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.
- 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.
- Keep 20 % for testing. Never train on the testing set.