Skip to content
PetalEdgeDocs

Data Preparation

Labeling and splitting recordings

Check every recording, fix its label, and keep a fair split between training and testing data.

Try it in Studio
On this page

Goal

By the end of this page every recording has the right label, and your testing set is a fair sample of your data.

How Motion labels work

In a Motion project, one recording has one label. When Studio cuts the recording into windows later, every window gets the recording's label. So a recording labelled wave should contain only waving.

Steps

Create your labels

  1. Open Data labeling.
  2. In Gesture labels, type a name such as wave and select Add gesture label.
  3. Add one label per movement, including one for "doing nothing", for example idle.

Check each recording

  1. Use the Training and Testing tabs to choose which set to look at.
  2. In Recording sessions, select a recording to open the signal viewer. It shows the signal of each axis, plus the recording's Frequency, Duration, Channels, Split and Collected time.
  3. If the label is wrong, change it in the viewer.
  4. If a recording is empty or the movement was done badly, delete it.

Change many recordings at once

  1. Tick the recordings you want to change.
  2. Use Edit labels... to give them all the same label, Move to... to move them to Training or Testing, or delete them.

A good split

CheckWhy
About 80 % training, 20 % testingEnough data to learn from, and enough to test fairly
Every label in both setsOtherwise the test can't tell you how well that label works
Similar number of recordings per labelSo the model doesn't simply favour the biggest label
Different recordings in training and testingTesting on data the model has seen gives results that look better than they are

Result

Your recordings are labelled and split, and you are ready to design an impulse.

What next?