<p>An easy way to get you started would be to create 161 columns (8 columns for each of the 20 time steps + the designated label). You would rearrange the columns like</p>

<pre><code>emg1_t01, emg2_t01, emg3_t01, ...,  emg8_t20, gesture_id
</code></pre>

<p>This will give you the right 2D format to use different algorithms in <a href="http://scikit-learn.org/stable/" rel="nofollow noreferrer">sklearn</a> as well as a feed forward neural network in CNTK. You would use the first 160 columns to predict the 161th one.</p>

<p>Once you have that working you can model your data to better represent the natural time series order it contains. You would move away from a 2D shape and instead create a 3D array to represent your data.</p>

<ul>
<li>The first axis shows the number of samples</li>
<li>The second axis shows the number of time steps (20)</li>
<li>The thirst axis shows the number of sensors (8)</li>
</ul>

<p>With this shape you're all set to use a 1D convolutional model (CNN) in CNTK that traverses the time axis to learn local patterns from one step to the next.</p>

<p>You might also want to look into RNNs which are often used to work with time series data. However, RNNs are sometimes hard to train and a <a href="https://arxiv.org/abs/1803.01271" rel="nofollow noreferrer">recent paper</a> suggests that CNNs should be the natural starting point to work with sequence data.</p>
Machine Learning for gesture recognition with Myo Armband
<p>I'm trying to develop a model to recognize new gestures with the Myo Armband. (It's an armband that possesses 8 electrical sensors and can recognize 5 hand gestures). I'd like to record the sensors' raw data for a new gesture and feed it to a model so it can recognize it.</p>

<p>I'm new to machine/deep learning and I'm using CNTK. I'm wondering what would be the best way to do it. </p>

<p>I'm struggling to understand how to create the trainer. The input data looks like something like <a href="https://i.stack.imgur.com/HeA7k.png" rel="nofollow noreferrer">that</a> I'm thinking about using 20 sets of these 8 values (they're between -127 and 127). So one label is the output of 20 sets of values.</p>

<p>I don't really know how to do that, I've seen tutorials where images are linked with their label but it's not the same idea. And even after the training is done, how can I avoid the model to recognize this one gesture whatever I do since it's the only one it's been trained for.</p>