Skip to content

Complete Project Workflow

Motion workflow

Every step of a Motion project in Studio, from the first recording to a deployed model.

Try it in Studio
On this page
  1. 1Data acquisitionUpload or record
  2. 2Data labelingCheck labels and split
  3. 3Create impulseWindows and blocks
  4. 4Processing blockGenerate features
  5. 5Learning blockTrain the model
  6. 6EvaluationCheck and test
  7. 7DeploymentBuild a package
A Motion project, step by step

Each heading below matches an item in Studio's left menu.

1. Data acquisition

Add sensor recordings to your project:

  • Upload CSV or JSON files. Each file is one recording. By default, the text before the first . in the file name becomes the label, so wave.01.csv is labelled wave.
  • Record from a connected device, or stream over USB from an Arduino UNO Q (the USB option is on the Data labeling page).

Leave the category on automatic and Studio puts about 80 % of the recordings in the training set and 20 % in the testing set.

2. Data labeling

Check that every recording has the right label, and look at the signal to make sure it recorded correctly. Each recording has one label.

3. Create impulse

An impulse is the recipe that turns raw recordings into predictions. Set:

SettingMeaningDefault
Input axesWhich sensor columns to useaccX, accY, accZ
Window (ms)Length of each piece of signal the model looks at1000
Increase (ms)How far the window moves before the next piece starts500
Frequency (Hz)Sampling rate used by the Raw Data block62.5
Zero PaddingRecordings shorter than one window: pad them with zeros, or skip themZero-pad short recordings

Then use Add a processing block (for example Spectral Analysis) and Add a learning block (for example Classification), and select Save Impulse.

4. Processing block

Your processing block now appears in the left menu. Open it:

  1. On the Parameters tab, check the settings and select Save parameters.
  2. On the Generate features tab, select Generate features. Studio runs the block on every window.
  3. Look at the feature explorer. If the labels form separate groups, the model will find them easier to learn.

5. Learning block

Open the learning block in the left menu (for example Classification). Set Training cycles, Learning rate, Batch size and Validation split, then select Start training. You can follow progress in the training log.

6. Evaluation

  • Evaluation shows how well the model did on windows and on whole recordings.
  • Model testing runs the model on your testing set.
  • Live classification runs the model on new data from a connected device.

7. Deployment

Open Deployment, choose your device and precision, and build the package.

What next?