Devices tab with the device connected to the remote management interface.
updown
, the sample length to 10000
, the sensor to Built-in accelerometer
and the frequency to 62.5Hz
. This indicates that you want to record data for 10 seconds, and label the recorded data as updown
. You can later edit these labels if needed.
Record new data screen.
Updown movement recorded from the accelerometer.
2000
(you can click on the 2000 ms.
text to enter an exact value), the window increase to 80
, and add the ‘Spectral Analysis’ and ‘Classification (Keras)’ blocks. Then click Save impulse.
First impulse, with one processing block and one learning block.
Spectral features parameters
Spectral features - Generate features
wave
(one the classes). When defining the neural network all these connections are initialized randomly, and thus the neural network will make random predictions. During training, we then take all the raw data, ask the network to make a prediction, and then make tiny alterations to the weights depending on the outcome (this is why labeling raw data is important).
This way, after a lot of iterations, the neural network learns; and will eventually become much better at predicting new data. Let’s try this out by clicking on NN Classifier in the menu.
1
. This will limit training to a single iteration. And then click Start training.
Training performance after a single iteration. On the top-right, is a summary of the accuracy of the network, and in the middle, a confusion matrix. This matrix shows when the network made correct and incorrect decisions. You see that idle is relatively easy to predict. Why do you think this is?
2
and you’ll see performance go up. Finally, change ‘Number of training cycles’ to 30
and let the training finish.
You’ve just trained your first neural networks!
Neural network trained with 30 epochs
10000
(10 seconds), click Start sampling and start doing movements. Afterward, you’ll get a full report on what the network thought you did.
Classification result. Showing the conclusions, the raw data and processed features in one overview.
⋮
, then selecting Move to training set. Make sure to update the label under ‘Data acquisition’ before training.200
and see if performance increases (the classified file is stored, and you can load it through ‘Classify existing validation sample’).Shake data is easily separated from the training data.
Add anomaly detection block to Create impulse tab
32
.Known clusters in blue, the shake data in orange. It's clearly outside of any known clusters and can thus be tagged as an anomaly.