← All notes

From position error to motion error

By · · 19 min read

Claim. Across 181 held-out recordings, a second calibrated camera cut median wrist position error from 324–388 mm to 73.2 mm, yet median error in 25–50 ms displacement stayed near 30 mm, and simply reporting no movement scored 13.9 mm. A position error shared by both frames cancels in a displacement and frame-to-frame jitter does not, so a motion error means little until it is split by how far the point actually moved.

Most systems that track a point in 3D are judged on where the point is. Most questions people ask of them are about how it moves: a hand path over a stroke, a joint angle over a step, a velocity at impact. It is tempting to assume that a system which places the point more accurately also measures its movement more accurately. In this study that assumption failed in an instructive way, and the reasons are simple enough to work through with a little vector algebra.

Where this started

The question grew out of an earlier study, A valid reconstruction can still be the wrong one (Pradeep, 20261). There I refined a shoulder–elbow–wrist chain seen by one camera. A pixel only fixes a ray: with a root 3 m from the camera and a 0.5 m segment, two depths on the same ray, 2.571 m and 3.369 m, both keep the length exactly and project to the same pixel. On recorded data, refinement with fixed segment lengths brought the image residual from 17.91 to 1.36 pixels while mean wrist error went from 78.3 to 80.3 mm. The fit improved and the 3D answer did not.

The most useful result came from a control. When I replaced detected keypoints with projections of the reference skeleton, wrist error fell from 80.4 to 39.3 mm. That moved the problem from the constraint to the observation, but the control changed where the pixel was and what the pixel meant at the same time. Two questions were left. Does an error in position carry over into an error in movement? And "wrist error" assumes we agree on what the wrist is. This study follows both through two calibrated cameras, held-out recordings and an optical marker reference. The full report, code and aggregate tables are in the repository.

Letting the recordings choose the endpoint

Before fixing a question, I ran a pilot on recordings kept out of the main study, with its thresholds frozen before a second confirmation sample. Its first job was to find which joints had a reference I could trust without filling gaps.

LandmarkRecordings with the markersMedian frame coverageMedian distance to fitted joint
Wrist, styloid midpoint100% / 99.7%99.9% / 99.6%22.8 / 24.8 mm
Elbow, epicondyle midpoint86.0% / 69.3%5.6% / 10.0%14.1 / 22.3 mm
Shoulder, surface marker100% / 100%100% / 100%100.1 / 83.2 mm

Values are left / right across 349 recordings. Elbow markers existed in most recordings but were visible in only 6–10% of frames at the median. Shoulder markers were always there, but sat 83–100 mm from the fitted shoulder, so they describe skin above the joint. Only the paired radial and ulnar styloid markers were both present and continuously visible, so the wrist became the endpoint.

The pilot also changed my wording. I had expected multi-view estimates to shrink real movement, and called the idea "plausibility erases signal". Across two non-overlapping samples, the slope of estimated on true displacement was 0.60 and then 1.09. That is not consistent shrinkage, so I dropped the word and asked a neutral question: how much of the true displacement transfers?

Setup

Eight infrared cameras tracked a full-body anatomical marker set of up to 57 markers, and the optical system fitted an articulated skeleton. Two calibrated 1920 × 1080 RGB cameras were 4.0–4.8 m apart, separated by 76–86° in azimuth around the capture origin. Participants performed fast whole-body sports movements, captured at 120 Hz, with one group at 240 Hz.

Of 349 recordings, 14 were used in the pilot and five lacked direct frame pairing. The remaining 330 were split by capture group before any outcome was scored: three groups for development (149 recordings) and four for confirmation (181). Each recording gave three windows, at 20%, 50% and 80% of its duration, placed without looking at the motion. Each window gave two six-frame wrist displacements, 50 ms at 120 Hz and 25 ms at 240 Hz.

Every condition used the same stock YOLO26n-pose wrist detections, taking the largest person box. The primary reference was the midpoint of the two styloid markers. The fitted hand origin and each single styloid marker were kept as separate targets, never pooled or used as a fallback.

Three estimates of one point

A detected pixel u\mathbf u, after undistortion, defines a ray from the camera centre c\mathbf c:

r(λ)=c+λ d,d∝R⊤K−1[u1].\mathbf r(\lambda)=\mathbf c+\lambda\,\mathbf d,\qquad \mathbf d\propto R^\top K^{-1}\begin{bmatrix}\mathbf u\\1\end{bmatrix}.

One pixel fixes d\mathbf d and leaves λ\lambda unknown, the same ambiguity as in the two-depth example above. The two single-camera conditions here are deliberately crude: each intersects its ray with the plane perpendicular to that camera's optical axis n\mathbf n through a fixed point x0\mathbf x_0, 1 m above the capture origin,

λ⋆=n⊤(x0−c)n⊤d.\lambda^\star=\frac{\mathbf n^\top(\mathbf x_0-\mathbf c)}{\mathbf n^\top\mathbf d}.

These fixed-depth estimates are geometric controls. They say nothing about how a trained monocular estimator would perform, but they make one property easy to see: whatever the wrist does along the ray, the estimate cannot follow it.

The two-camera estimate uses the classic midpoint method (Hartley and Sturm, 19972). Find the closest points on the two rays,

(λ1⋆,λ2⋆)=arg⁡min⁡λ1,λ2∥c1+λ1d1−c2−λ2d2∥2,(\lambda_1^\star,\lambda_2^\star)=\arg\min_{\lambda_1,\lambda_2}\big\|\mathbf c_1+\lambda_1\mathbf d_1-\mathbf c_2-\lambda_2\mathbf d_2\big\|^2,

and report their midpoint x^=12(p1+p2)\hat{\mathbf x}=\tfrac12(\mathbf p_1+\mathbf p_2). The distance g=∥p1−p2∥g=\|\mathbf p_1-\mathbf p_2\| is the ray gap. If both detections hit the same physical point and calibration were perfect, gg would be zero. The normal equations of this problem have determinant 1−(d1⊤d2)21-(\mathbf d_1^\top\mathbf d_2)^2 for unit directions, so near-parallel rays are ill-conditioned. With 76–86° between the cameras, that was not the limiting factor here.

Two outcomes from the same estimates

Position loss is ∥x^t−xt∥\|\hat{\mathbf x}_t-\mathbf x_t\|. For displacement over k=6k=6 frames, write Δ=xt+k−xt\boldsymbol\Delta=\mathbf x_{t+k}-\mathbf x_t for the reference and Δ^\hat{\boldsymbol\Delta} for the estimate. Displacement loss is ∥Δ^−Δ∥\|\hat{\boldsymbol\Delta}-\boldsymbol\Delta\|. For true displacements of at least 10 mm I also measured direction and signed gain,

cos⁡θ=Δ^⊤Δ∥Δ^∥ ∥Δ∥,γ=Δ^⊤Δ∥Δ∥2.\cos\theta=\frac{\hat{\boldsymbol\Delta}^\top\boldsymbol\Delta}{\|\hat{\boldsymbol\Delta}\|\,\|\boldsymbol\Delta\|},\qquad \gamma=\frac{\hat{\boldsymbol\Delta}^\top\boldsymbol\Delta}{\|\boldsymbol\Delta\|^2}.

The gain is the length of the estimate along the true direction, as a fraction of the true length.

The same estimates, scored on position and on displacement — Held-out groups, against the styloid midpoint, on matched observations. Switch the measure to compare the three conditions. (interactive figure)
ConditionPosition median (p90), mmDisplacement median (p90), mmMedian cosineGain
One view A324.1 (846.3)29.0 (148.6)0.7540.600
One view B388.2 (852.7)33.5 (158.8)0.7100.683
Two views73.2 (213.0)29.6 (139.0)0.8850.774

That two cameras improve 3D position is familiar, and against a fixed-depth control it is unsurprising. Position error fell in all seven capture groups. What surprised me was that the displacement medians barely moved.

Direction gave the first hint that the median was hiding something. Two views had the highest cosine in both splits. And the two-view gain of 0.774 sits beside a result that looks contradictory: on average the estimated displacements were 41.0 mm too long. Both are true at once. Split the estimate into a part along the truth and a part perpendicular to it, Δ^=γΔ+ϵ⊥\hat{\boldsymbol\Delta}=\gamma\boldsymbol\Delta+\boldsymbol\epsilon_\perp. Then

∥Δ^∥2=γ2∥Δ∥2+∥ϵ⊥∥2,\|\hat{\boldsymbol\Delta}\|^2=\gamma^2\|\boldsymbol\Delta\|^2+\|\boldsymbol\epsilon_\perp\|^2,

so an estimate can fall short along the true direction and still be longer overall, when much of its length points elsewhere. Over short intervals the true vector is small, and as the direction between two close noisy points shows, its direction is the first thing noise takes.

The estimator that does nothing

I had been reading the 30 mm figure as a property of the cameras. It is also a property of the sample. Windows were placed by time, and much of a recording is quiet. In the held-out groups, 45.5% of wrists moved less than 10 mm over the interval and the median true displacement was 13.9 mm.

So consider the rule Δ^=0\hat{\boldsymbol\Delta}=\mathbf 0. Its loss is ∥0−Δ∥=∥Δ∥\|\mathbf 0-\boldsymbol\Delta\|=\|\boldsymbol\Delta\|, so its median error is exactly the median true displacement, 13.9 mm. That is less than half the error of any camera condition. Against a 50 mm tolerance it fails on 671 of 2,016 pairs (33.3%), close to the 630 failures (31.3%) of the two-view estimate. On the statistic I had planned to report, the cameras lost to a constant.

Split by how far the wrist actually moved, the picture changes.

Displacement error against how far the wrist actually moved — Median error in each band of true displacement, plotted at the band's median true displacement. Values are the published aggregate tables; the held-out groups are the confirmation split. (interactive figure)
True displacementPairsMedian true, mmTwo views, mmOne view A, mmOne view B, mmTwo-view cosine
below 10 mm9181.620.315.414.7
10–25 mm21015.127.020.625.80.521
25–50 mm21739.027.932.136.40.857
50–100 mm34969.738.957.952.10.914
100–200 mm173143.255.886.877.80.956
200 mm and above149244.8111.5169.7157.40.940

When the wrist was nearly still, every camera reported 15–20 mm of movement against a true median of 1.6 mm. Once it moved at least 50 mm, two views were clearly better: a median error of 52.5 mm against 72.4 and 70.6 mm for the single views, and 96.1 mm for reporting no movement. The development groups showed the same ordering. So the second camera did preserve movement, once there was movement to preserve. Its benefit was far smaller than its benefit for position, and the pooled median hid it.

This breakdown was not in my plan. I ran it after the planned results were complete, on the same frozen rows, with no new score or cutoff, so it is descriptive. It is the same lesson as scoring perfect inputs before scoring a model, seen from the other side: here the floor is set by how little the sample moved, before any camera is involved.

Why a large position error can vanish from a displacement

Write the position errors at the two ends of a pair as e1\mathbf e_1 and e2\mathbf e_2. The displacement error is e2−e1\mathbf e_2-\mathbf e_1, so any offset shared by both endpoints cancels. Define the shared and changing parts

s=12(e1+e2),h=12(e2−e1).\mathbf s=\tfrac12(\mathbf e_1+\mathbf e_2),\qquad \mathbf h=\tfrac12(\mathbf e_2-\mathbf e_1).

By the parallelogram law,

∥e1∥2+∥e2∥2=2∥s∥2+2∥h∥2,\|\mathbf e_1\|^2+\|\mathbf e_2\|^2=2\|\mathbf s\|^2+2\|\mathbf h\|^2,

and the displacement error is exactly 2∥h∥2\|\mathbf h\|. Position accuracy is about s\mathbf s and h\mathbf h together. Displacement accuracy is about h\mathbf h alone.

With two views, 92.7% of squared position error was common to both endpoints, and the median shared offset was 72.2 mm. To see how much of the fixed-depth error behaves this way, I fed the single-view controls pixels projected from the marker midpoint in place of detections. Position stayed wrong by 277.8 and 330.5 mm, because the depth assumption was still wrong, while displacement error fell to 6.0 and 5.5 mm. With real detections it went back to 29.0 and 33.5 mm. The two-view projection round trip agreed to within 0.000002 mm, which rules out the implementation as the source of error at this scale.

What remains is the part that changes from frame to frame. Suppose it has covariance Σ\Sigma and is independent between the two frames. Then

E ∥Δ^−Δ∥2=2tr⁡Σ\mathbb E\,\|\hat{\boldsymbol\Delta}-\boldsymbol\Delta\|^2=2\operatorname{tr}\Sigma

whatever the true movement, and for a still wrist all of it is reported as movement. An estimator therefore has a jitter floor, below which it reports movement that did not happen, while the zero rule's error grows one-for-one with the true movement. Which of them wins depends on how much the sample moved. A fixed-depth estimate is confined to a plane, so its error has no component along the camera's optical axis. That removes one of the three directions that make up tr⁡Σ\operatorname{tr}\Sigma, and may be why the single views look quieter when the wrist is still.

The simplest model I could write down that behaves like the data has three numbers: a shared offset of length SS, isotropic jitter σ0\sigma_0 per axis at rest, and jitter that grows in proportion kk to the true displacement dd. With σ=σ0+kd\sigma=\sigma_0+kd, the displacement error ∥n2−n1∥\|\mathbf n_2-\mathbf n_1\| is σ2\sigma\sqrt2 times a chi variable with three degrees of freedom, whose median is about 1.538. The estimate beats doing nothing once

d>2.175 σ01−2.175 k,d>\frac{2.175\,\sigma_0}{1-2.175\,k},

and never, if the jitter grows faster than about 46% of the movement. The figure below runs this model in the browser. I set its presets by hand to sit near the published medians, shown as dots; nothing is fitted, and the model leaves out direction errors and detector failures.

Shared offsets cancel, frame-to-frame jitter does not — Move the shared offset and watch the position error change while the displacement curve stays put; move the jitter and watch the crossover with doing nothing. (interactive figure)

In the images, the detected wrist sat a median of 21.2 pixels from the projected marker midpoint, and its frame-to-frame motion differed from the reference's by 8.6 pixels. The median true motion in the image over the same interval was 3.8 pixels. The detector's frame-to-frame error is larger than the typical real motion it is trying to see, and a second camera triangulates that noise without removing it.

I checked whether gross failures explained the tail. Among observations where the two wrists were at least 60 pixels apart, 11.0% of detections fell nearer the opposite wrist, and 2.7% of all detections were more than 150 pixels from both. Pairs touched by either failure had a median displacement error of 111.3 mm, against 26.8 mm for the rest, but they accounted for only 21% of errors above 50 mm. Most large errors carried neither signature.

Ranking errors is easier than deciding with them

A useful system needs to say when not to trust an estimate. I tested two scores computable from video alone: the lowest wrist confidence across the two views, and the ray gap gg. For displacement, each took the worse of its two endpoints.

Ranking is measured with a risk–coverage curve (Geifman and El-Yaniv, 20173). Sort estimates from most to least trusted, keep the first fraction cc, and record the mean loss among those kept. The area under that curve, divided by the mean loss with no ranking, is 1 for a useless score and lower for a useful one. In the held-out groups the ray gap reached 0.56 for position and 0.55 for displacement. Confidence reached 0.83 and 0.68. Both scores rank errors, but not equally: the 5% of positions the detector was most confident about still had a mean error of 203.6 mm, against 142.6 mm for all scored positions.

Mean error of the estimates a score keeps — Held-out groups, two views, against the styloid midpoint. Each point keeps the most trusted share of scheduled estimates; the flat line is the mean of everything scored, on the same grid as the report's risk–coverage figure. (interactive figure)

A decision needs more than a ranking. I fitted one cutoff per score on the development groups: the widest that kept at least 10% of scheduled measurements with a mean failure rate of at most 20%, at tolerances of 100 mm for position and 50 mm for displacement. These tolerances are analytical choices with no clinical meaning. In confirmation, the 20% target had to hold within every held-out group, and nothing was refitted.

It did not. For the ray-gap position rule, the pooled failure rate was 19.8%, inside the target, while the worst held-out group reached 28.5%. Every two-view rule exceeded 20% in at least one group. At tighter tolerances of 50 and 25 mm, the ray-gap position rule found no feasible cutoff at all.

The movement breakdown explains part of this. A pooled failure rate is a mixture over bands of true movement,

F=∑bπb fb,F=\sum_b \pi_b\,f_b,

where πb\pi_b is the share of accepted pairs in band bb and fbf_b the failure rate there. The rule fixes something like fbf_b. The sample fixes πb\pi_b.

Failure among accepted displacement estimates, by true movement — Held-out groups, 50 mm tolerance. Both rules were fitted on development groups only. (interactive figure)
Accepted displacements, held-out groupsbelow 10 mm10–50 mm50 mm and above
Ray-gap rule, failure rate4.3%13.5%33.5%
Confidence rule, failure rate9.0%18.5%32.7%

A 50 mm tolerance is larger than the true movement in two thirds of pairs, so still wrists pass easily and pull the pooled rate down. The capture group that failed worst was also the one that moved most: its accepted wrists had a median true displacement of 49 mm and 25.6% failed, while a group with a median of 4.7 mm had 4.9%. A rule can meet its target largely because of what the participants happened to be doing.

I also tried using two-view disagreement during development to set a confidence cutoff for a single camera, which is what a one-camera deployment would want. Three of four fits found no feasible cutoff. The fourth accepted 880 verified displacements in confirmation, and 194 of them (22.0%) exceeded tolerance, with 42.9% in the worst group.

The same estimates against a different wrist

Last, I held every estimate and every decision fixed and changed only the target. If two reference definitions differ by an offset b\mathbf b that is nearly constant over the interval, displacement cannot see it:

(xt+k+b)−(xt+b)=Δ.(\mathbf x_{t+k}+\mathbf b)-(\mathbf x_t+\mathbf b)=\boldsymbol\Delta.

That is what happened. The marker midpoint and the fitted hand origin were 23.6 mm apart at the median, and each single styloid marker sat 44.1 mm from the midpoint, yet the displacement vectors of the midpoint and the fitted origin differed by only 1.39 mm. Switching between those two changed 203 of 3,062 position pass/fail labels and 37 of 2,016 displacement labels. Over short intervals, the choice of reference is mostly a position problem.

One set of accepted estimates, four definitions of the wrist — The 1,900 two-view positions accepted by the ray-gap rule in held-out groups, 100 mm tolerance. Only the reference changes. (interactive figure)

The same 1,900 accepted estimates failed at 19.8% against the midpoint, 21.1% against the fitted origin, 23.8% against the radial marker and 27.5% against the ulnar marker. The single markers are a deliberate stress test, since they move the target to one side of the wrist. The shift to the fitted origin is modest, and that rule had already failed within groups, but none of these targets is bone. The midpoint inherits marker placement and skin motion, and the fitted origin inherits registration, scaling and model fit, the problem Uchida and Seth (2022)4 quantified for marker-based inverse analyses.

What this does and does not show

A second calibrated view improved wrist position in all seven groups. It improved displacement when the wrist actually moved, in both splits, although that analysis was post hoc. Pooled displacement error did not describe camera quality, because it depended on how much the sample moved. Confidence and ray gap ranked errors in held-out groups, but no fixed cutoff held across groups and wrist definitions.

The limits are specific. The single-view conditions are fixed-depth controls, and no trained monocular estimator was tested. The cameras are one fixed pair in one kind of laboratory. Seven capture groups are not seven verified people, and repeated observations within a person would need an analysis like the one Bland and Altman (2007)5 describe, the same clustering problem as correlated samples counting as fewer. The midpoint, the single markers and the fitted origin all come from the same optical capture, so switching among them measures sensitivity to definition with no independent truth at the end. Timing relied on nominal frame pairing and a one-frame shift check, without hardware synchronisation. Fast sports movement in a laboratory says nothing direct about patients.

The sensitivity checks were reassuring. Shifting the reference by one frame either way kept the two-view held-out medians at 74.4–74.7 mm for position and 29.5–30.0 mm for displacement. A second run of the analysis reproduced the fitted policy and both split summaries byte for byte.

What I would change next time

The main change is the order of work. I began by asking how accurate an estimate was. I would now start by naming the displacement or joint coordinate that matters, the size of change that would alter its interpretation, and the target it is defined against, and then include the estimator that does nothing. That is close to the intended-use framing of Hicks et al. (2015)6, and to van der Kruk7 and Reijne's (2018) point that capture accuracy belongs to a setting and a movement. Having run the experiment, I read those arguments differently.

The evidence suggests a sequence, each step removing an ambiguity the previous one could not.

I would start with a known change. Neither of my controls could separate detector localisation from landmark definition. A rigid articulated phantom or robot with exactly defined landmarks would, as a humanoid robot did for marker registration in Dunne et al. (2021)8, and it would measure the jitter floor directly.

Then I would let the reference carry its own uncertainty. Moving from wrist position to joint coordinates means marker-based inverse kinematics in OpenSim (Seth et al., 20189), with registration and scaling error propagated in the manner of Uchida and Seth (2022). The target becomes a distribution, and an estimator can be judged against what the reference can resolve. My four wrist definitions are a crude, dependent version of that idea.

After that comes a trained single-camera estimator against one named outcome. Direct estimators of biomechanical coordinates (Bittner et al., 202310; Lin et al., 202411) are the real test of whether the fixed-depth results transfer. I would use verified participants held out from training, a separate setup for confirmation, synchronised capture, results stratified by movement size, and a zero-movement baseline.

The question I find most interesting comes last: whether an estimator keeps an unusual but valid movement strategy or pulls it toward typical movement. Van der Kruk et al. (2021)12 describe compensation as a response to the relation between capacity and task demand. Healthy participants performing a task with an instructed strategy would give a deviation of known direction, and the gain γ\gamma above could ask directly whether the model preserves it.

Code and data

The recordings were collected in an industrial research laboratory for experiments and publication. They show identifiable people, so the recordings and per-frame trajectories stay confidential and only aggregate results are released, with capture groups labelled generically. The report (PDF), the aggregate tables behind every number here, and the code and commands that produce them from comparable recordings are public. Automated tests check the projection, triangulation, window and metric definitions on synthetic data, including the parallelogram identity above.

References

  1. A valid reconstruction can still be the wrong one — Ajish Pradeep, ajishpradeep.com 2026
  2. Triangulation — Richard I. Hartley and Peter Sturm, Computer Vision and Image Understanding 1997
  3. Selective Classification for Deep Neural Networks — Yonatan Geifman and Ran El-Yaniv, NeurIPS 2017
  4. Conclusion or Illusion: Quantifying Uncertainty in Inverse Analyses From Marker-Based Motion Capture due to Errors in Marker Registration and Model Scaling — T. K. Uchida and Ajay Seth, Frontiers in Bioengineering and Biotechnology 2022
  5. Agreement between methods of measurement with multiple observations per individual — J. M. Bland and D. G. Altman, Journal of Biopharmaceutical Statistics 2007
  6. Is My Model Good Enough? Best Practices for Verification and Validation of Musculoskeletal Models and Simulations of Movement — J. L. Hicks, T. K. Uchida, A. Seth, A. Rajagopal and S. L. Delp, Journal of Biomechanical Engineering 2015
  7. Accuracy of human motion capture systems for sport applications; state-of-the-art review — E. van der Kruk and M. M. Reijne, European Journal of Sport Science 2018
  8. A marker registration method to improve joint angles computed by constrained inverse kinematics — J. J. Dunne, T. K. Uchida, T. F. Besier, S. L. Delp and A. Seth, PLOS ONE 2021
  9. OpenSim: Simulating musculoskeletal dynamics and neuromuscular control to study human and animal movement — A. Seth, J. L. Hicks, T. K. Uchida et al., PLOS Computational Biology 2018
  10. Towards Single Camera Human 3D-Kinematics — Marian Bittner, Wei-Tse Yang, Xucong Zhang, Ajay Seth, Jan van Gemert and Frans C. T. van der Helm, Sensors 2023
  11. 3D Kinematics Estimation from Video with a Biomechanical Model and Synthetic Training Data — Zhi-Yi Lin, Bofan Lyu, Judith Cueto Fernandez, Eline van der Kruk, Ajay Seth and Xucong Zhang, CVPR Workshops 2024
  12. Age-related compensation: Neuromusculoskeletal capacity, reserve & movement objectives — E. van der Kruk, A. K. Silverman, L. Koizia, P. Reilly, M. Fertleman and A. M. J. Bull, Journal of Biomechanics 2021