Start by saving data and plotting it in different graphs to see if you see a template for this gesture. I had a similar problem, I wanted to detect when the user bit - and filter out other gestures such as cutting, drinking, etc.
I recorded 1 minute of data and took an exactly predetermined number of bites, and otherwise interacted normally. Then I smoothed the data a bit and looked at the chart to see if I could see a template with which to work with thresholds.
:
, ( 20 16 )
Y
, "" , , , , , , .
:
Y:)


, , , , , . , .

, , ( , ). , - .
, :) - ...?:
if (totaltime < maxTime)
( .X > -) if (reading.timestamp - itemsForCount.Last(). TimeStamp <= maxTimeBetweenShakes) itemsForCount.Add( ({....})
if (itemsFourCount.Count >= wishShakes) itemsFourCount.Clear();
if (totaltime > maxTime) itemsFourCount.Clear();
:
Leap, , js, , . Js-. # libs , lic. .
Hammer.js - OSS, , , - .
kinect, , , , , .