integrated cycle detection with accelerometer