Gesture Test
on your watch from the Bangle App Loaderevent="left";
event="left";
for twitching your watch hand left and later on event="right";
for the opposite directionevent="<gesture>";
where <gesture>
is the hand movement you will collect;
!left.1.csv (StorageFile)
Save
(the floppy disc icon) for one file at a time and save the files to a folder of your choice, e.g. to c:\temp
PATENTS = ...
) with the full path and filename for the first file you want to split. I.e. the file you downloaded in previous steps.'timestamp, x, y, z'
in the original file and for each time (= sample) it finds, create a new file.left.1.csv (StorageFile)-15.csv
where -15
at the end is a running number.Accelerometer data
when asked for the type of data you are dealing with.Let's get started
Data acquisition
from the left hand menuUpload existing data
Choose files
left.1.csv (StorageFile)-0.csv
.Automatically split between training and testing
and Infer from filename
should both be selectedBegin upload
- this will now quickly upload the files to your project.
Done. Files uploaded successful: 85. Files that failed to upload: 0. Job completed
Upload sample data
left
and right
in this example) were automatically inferred from the filenames you used.Create impulse
Raw Data
processing blockClassification (Keras)
learning blockSave Impulse
Create impulse
Raw data
from the left hand menu
Save parameters
which will take you to the second tab.Generate features
Feature explorer
. This gives you a 3D view of how well your data can be clustered into different groups. In an ideal situation all similar samples should be clustered into same group with a clear distinction between groups. If that’s not the case, no worries at this point, the neural network algorithm will in many cases still be able to do a very good job!Feature Explorer
NN Classifier
from the left hand menuNumber of training cycles
to 100. This is another parameter to tweak, the higher this number is, the longer time the training will take, but also the better the network will perform, at least until it can’t improve anymore.Start training
Training Performance
Dashboard
from the left hand menuDownload block output
and click on the icon next to NN Classifier model TensorFlow Lite (int8 quantized)
Upload File
Upload a file
.tfmodel
and click Ok
left,right
.tfnames
and click Ok
left
or right
, will be shown in the left window in Espruino Web IDE as well as on your watch display.