Wrist as Input: StretchGoGo's Apple Watch Motion Classifier

How we run a five-class motion classifier on Apple Watch's neural engine and deliver the right stretch in under a hundred milliseconds.

StretchGoGo's iPhone app does the heavy lifting on posture classification, but the watch is the first thing the user feels. A stretch that arrives in 100 ms feels like a coach reminding you to sit up. A stretch that arrives in 400 ms feels like a notification you should swipe away. The watch side of the architecture exists for one reason: to make the latency short enough that the user trusts the prompt and acts on it. This post is the engineering story behind that latency, and the on-watch inference pipeline that gets us there.

1. The Hardware: Apple Watch Motion

Apple Watch Series 6 and later expose three motion streams to apps: accelerometer, gyroscope, and the device-motion fused estimate that combines both with the magnetometer. The accelerometer samples at up to 100 Hz. The gyroscope samples at up to 100 Hz. The device-motion estimate is computed by the motion coprocessor at the same rate and includes a gravity-subtracted linear acceleration vector plus a rotation rate vector.

Desk worker kinetic micro-mobility routines and spinal decompression exercises
Desk worker kinetic micro-mobility routines and spinal decompression exercises

For the classifier we use the device-motion estimate. The fusion step removes the gravity vector for us, and the rotation rate vector is already in the device's coordinate frame. Sampling at 50 Hz is enough to catch the arm position transitions that matter for stretch classification, and it cuts the inference cost in half compared to 100 Hz.

2. The Classifier: Five Arm Positions

The classifier produces one of five labels at every inference: raised, lowered, typing, driving, and sleeping. The labels are not a general posture model. They are specific to the watch's view of the world, which is the arm the watch is on and the orientation of the wrist relative to the body.