Today's firmware update changes one input to the velocity calculation. It looks like a small edit, but it changes how the sensor behaves on every deadlift, so here is what we found and why we changed it.
A filter that did its job too well
Before the sensor uses the accelerometer and gyroscope readings, it passes them through a 5-sample median filter. A median filter is good at removing an isolated bad sample, such as a one-off electrical glitch, while leaving real, sustained movement almost untouched.
The trouble is that it treats any short spike as a glitch, and some short spikes are real. When a deadlift bar lands on the floor, the impact lasts 20 to 30 milliseconds. On a recorded deadlift set the unfiltered vertical acceleration showed a sharp spike at each landing. After the median filter, the same moments showed only a fraction of it.
That spike is the force that stops the bar. Remove it, and the integrated velocity never comes back to zero. In that recording, with the bar resting on the floor, the velocity still read well below zero, and the error grew with every landing. The drift correction then spread that error across the whole rep, which also pushed up the peak velocity reported just before the landing.
The change
Velocity is now integrated from the acceleration before the median filter. Replaying the same deadlift recording on a computer through the same tracking engine, the velocity returns close to zero after every landing, and the drift correction no longer has a big step to spread over the rep.
There is a second effect. The median filter delays its output by two samples, about 20 milliseconds. Velocity no longer goes through it, so velocity no longer carries that delay.
The filtered signal is still used where it helps: for the orientation estimate, for deciding whether the bar is still, and for the reported peak and mean acceleration. Those stay as smooth as before.
What it does not fix
We want to be precise about the limits:
- It does not reduce drift in general. On one squat set the unfiltered integral needed a larger correction than the filtered one. The gain is about short impulses such as landings, not slow drift.
- Some results we can't fully explain yet. On three of five recorded squat sets, replaying with the unfiltered input found reps that the filtered input had missed. It never found fewer. We have not worked out why, and we say so in the documentation.
- Not every attempt worked. We had already tried holding the previous value during a spike, and removed it again: on a recording of continuous shaking it made drift worse.
All of this was checked by replaying recorded sets on a computer, not against a reference instrument. The sensor is not yet validated, and nothing in this update is an accuracy claim.
Get the update
The app offered the new firmware as an over-the-air update; the firmware and the latest app are also in the repository ↗. The measurements behind this change are in the Mechanical shocks ↗ section of the firmware documentation, and the velocity integration ↗ section explains where the new input fits.