Given 3D accelerometer data, compute the frequency of rhythmic motion and predict the next beat