Learning Blocks
1D Convolutional (CNN)
A convolutional network that finds patterns along time in raw motion windows.
Try it in StudioOn this page
What is this learning block?
1D Convolutional (CNN) is a neural network that slides small filters along the time axis of a window. In Studio it appears as 1D Convolutional (CNN) in the Add a learning block list, described as recommended for motion signals.
What does it do?
It looks at one window and gives a score for every label, such as idle 0.02, wave 0.95, shake 0.03. The label with the highest score is the prediction.
How does it learn?
Each filter is a short pattern, a few samples long. During training the network adjusts its filters until they react to the parts of a movement that tell the labels apart, such as a sharp turn or a steady swing. It learns the same way as Classification: guess, measure the loss, adjust (Adam optimizer), and stop early if validation accuracy stops improving for 20 training cycles.
What model architecture does it use?
The default network for a Motion project is:
- 1InputWindow samples × axes
- 2Conv1D 32Kernel 3, ReLU, then MaxPooling1D 2
- 3Conv1D 64Kernel 3, ReLU, then MaxPooling1D 2
- 4Conv1D 128Kernel 3, ReLU
- 5GlobalAveragePooling1DOne value per filter
- 6Dense 64 + Dropout 0.2Combines the patterns
- 7OutputOne score per label
- Kernel size 3 means each filter looks at 3 samples at a time.
- MaxPooling1D halves the length of the sequence, so later filters see a longer stretch of time.
- GlobalAveragePooling1D turns each filter's output into one number.
You can change these layers in the architecture editor on the training page. Use Revert to default topology to go back.
What settings can I configure?
| Setting | Default | What it does |
|---|---|---|
| Training cycles | 60 | Passes over the training data |
| Learning rate | 0.001 | Size of each weight adjustment |
| Processor | CPU | Where training runs (GPU only if your server offers it) |
| Batch size (Advanced Settings) | 32 | Windows per weight adjustment |
| Validation split (Advanced Settings) | 0.2 | Share of training data kept aside to check progress |
| Architecture | Default topology above | Layers, filters, kernel sizes |
What problems can it solve?
- Gestures with a clear shape over time: circle, swipe, tap.
- Movements where the order of events matters.
Simple example
You record idle, swipe left and swipe right at 100 Hz, and use a 1000 ms window with Raw Data. The input is 100 × 3. The first filters learn to spot a quick push left or right; the later filters learn that "push then stop" means a swipe.
How do I understand the training results?
The same as for Classification: accuracy per window and per recording, a confusion matrix, and loss and accuracy graphs. See Evaluating a Motion model.