<p>Have you considered that the "fast walking" and "fast walking + double tapping" signals might be too similar to differentiate using only accelerometer data? It may simply not be possible to achieve accuracy above a certain amount.</p>

<p>Otherwise, neural networks are probably a good choice for your data, and it still may be possible to get better performance out of them.</p>

<p>This very-useful paper (http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf) recommends that you whiten your dataset so that it has a mean of zero and unit covariance.</p>

<p>Also, since your problem is a classification problem, you should make sure that you are training your network using a cross-entropy criteria (http://arxiv.org/pdf/1103.0398v1.pdf ) rather than RMSE. (I have no idea whether Neuroph supports cross-entropy or not.)</p>

<p>Another relatively simple thing you could try, as other posters suggested, is transforming your data. Using an FFT or DCT to transform your data to the frequency domain is relatively standard for time-series classification.</p>

<p>You could also try training networks on different sized windows and averaging the results.</p>

<p>If you want to try some more difficult NN architectures, you could look at the Time-Delay-Neural-Network (just google this for the paper), which takes multiple windows into account in its structure. It should be relatively straightforward to use one of the Torch libraries (http://www.torch.ch/) to implement this, but it might be hard to export the network to an Android environment.</p>

<p>Finally, another method of getting better classification performance in time-series data is to consider the relationships between adjacent labels. Conditional Neural Fields (http://code.google.com/p/cnf/ - note:I have never used this code) do this by integrating neural networks into conditional random fields, and, depending on the patterns of behavior in your actual data, may do a better job.</p>
Neural Network to recognize accelerometer pattern
<p>I'm building an application for Android devices that requires it to recognize, by accelerometer data, the difference between walking noise and double tapping it. I'm trying to solve this problem using Neural Networks.</p>
<p>At the start it went pretty well, teaching it to recognize the taps from noise such as standing up/ sitting down and walking around at a slower pace. But when it came to normal walking it never seemed to learn even though I fed it with a large proportion of noise data.</p>
<p><strong>My question</strong>: Are there any serious flaws in my approach? Is the problem based on lack of data?</p>
<h3>The network</h3>
<p>I've choosen a 25 input 1 output multi-layer perceptron, which I am training with backpropagation. The input is the changes in acceleration every 20ms and output ranges from -1 (for no-tap) to 1 (for tap). I've tried pretty much every constallation of hidden inputs there are, but had most luck with 3 - 10.</p>
<p>I'm using Neuroph's easyNeurons for the training and exporting to Java.</p>
<h3>The data</h3>
<p>My total training data is about 50 pieces double taps and about 3k noise. But I've also tried to train it with proportional amounts of noise to double taps.</p>
<p>The data looks like this (ranges from +10 to -10):</p>
<p>Sitting double taps: <img src="https://i.stack.imgur.com/a7PDT.png" alt="Sitting double taps, fairly easy to determine." /></p>
<hr />
<p>Fast walking:
<img src="https://i.stack.imgur.com/ljRwp.png" alt="Fast walking and double tapping, not that easy" /></p>
<p>So to reiterate my questions: Are there any serious flaws in my approach here? Do I need more data for it to recognize the difference between walking and double tapping? Any other tips?</p>
<p><strong>Update</strong></p>
<p>Ok so after much adjusting we've boiled the essential problem down to being able to recognize double taps while taking a brisk walk. Sitting and regular (in-house) walking we can solve pretty good.</p>
<p>Brisk walk
<img src="https://i.stack.imgur.com/TwLJ1.png" alt="Brisk walk" /></p>
<p>So this is some test data of me first walking then stopping, standing still, then walking and doing 5 double taps while I'm walking.</p>
<p>If anyone is interested in the raw data, I linked it for the latest (brisk walk) data <a href="http://www.2shared.com/file/6I2niK0b/walkx3_5dt.html?" rel="nofollow noreferrer">here</a></p>