In this post
Watch a confident writer and you can almost hear the tempo, a brisk dash along a stem, an easing into a loop. That tempo is velocity, and it's one of the most telling signals a pen can capture.
Speed hides inside acceleration
The IMU reports acceleration, how quickly the pen's motion is changing, not how fast it is going. The two are linked by calculus: velocity is the running sum (the integral) of acceleration over time. Speed up, and acceleration is positive; coast, and it returns to zero even though you're still moving. So to know speed, the pen has to accumulate acceleration moment by moment.
Integrating without runaway drift
Accumulating noisy measurements is dangerous. Each sample carries a tiny error, and summing thousands of them per second lets those errors compound into drift, a phantom speed that grows even when the pen is still. Left unchecked, the velocity estimate becomes useless within seconds.
The key trick is to use moments the pen knows the true velocity. When the tip lifts or pauses at the start or end of a stroke, the real speed is essentially zero. Detecting those instants, often called zero-velocity updates, lets the system reset the running total and erase accumulated drift. Combined with filtering and the dual-IMU geometry that separates real motion from rotation, this keeps the velocity signal honest stroke after stroke.
The velocity fingerprint of fluency
Velocity reveals fluency like little else. A practised hand modulates speed smoothly, accelerating on simple strokes and decelerating precisely where a curve or junction demands control. A struggling hand tends to move at a uniform, effortful crawl, or in jerky bursts, because every stroke takes deliberate attention. The analyser reads these patterns to gauge how automatic, how fluent, the writing has become, and tracks improvement as a learner's tempo grows more natural.
Velocity across Indic curves
Speed control is doubly important in Indic scripts. The aksharas of Telugu and Kannada are dense with loops; Malayalam is famously round; Tamil mixes loops with sharp turns; Devanagari (Hindi) joins letters under a continuous head-line. Each tight curve is a place where a fluent writer instinctively slows, and a learner often doesn't, overshooting the loop or flattening it.
Because these scripts pack many curves into every character, the velocity signal is rich with coachable moments. Vahini can point to exactly where a writer is rushing a curve, advice that's far more actionable than a vague "write more neatly."
Key takeaways
- The pen measures acceleration; velocity is its integral over time.
- Naive integration drifts, so the estimate is reset at moments of known-zero speed (pen-lifts, pauses).
- Smooth speed modulation, fast straights, slow curves, is a hallmark of fluent writing.
- Curve-dense Indic scripts make velocity an especially rich, coachable signal.