What was measured

Three checks: does the pipeline recover a movement we planted, does the metric code show known effects on lab data, and can a model read the test condition from sway alone.

1. Known-answer check through the real pose model

A still photo was slid side to side by an exact sine wave (0.4 Hz, 10 s at 30 fps) and passed through the real pose model and analysis code. The person in the photo was 320 px tall. Run on 2026-11-11, Chrome/152 on macOS (Apple silicon), GPU.

Planted sway (px)Planted RMS (% height)Measured RMS (% height)Measured / planted
10.2210.1460.66
20.4410.3500.79
40.8830.8210.93
81.7661.7621.00
Noise floor, side-to-side (frozen image)
0.011%
of body height, RMS. Small enough to see real sway above it.
Noise floor, front-back (frozen image)
0.617%
About 56 times worse. One camera cannot see depth.

Reading it: large movements come back almost exactly. Movements near one pixel are under-measured, because the pose model smooths its own output. The front-back axis is mostly noise. This is one photo on one machine, so treat it as a check of the pipeline, not a full accuracy study.

2. Does the metric code show known effects?

The same metric code was run on a public lab dataset: Human Balance Evaluation Database (Santos & Duarte, 2016). 1,930 force-plate trials from 163 people, 60 s each, standing with eyes open or closed on a firm or foam surface. Balance research says closing the eyes and standing on foam both increase sway. The table compares each person with themselves.

MetricChangeMedian ratioEffect size (dz)People who swayed more
Path lengthOpen/Firm → Closed/Firm1.08x0.3467%
Path lengthOpen/Firm → Open/Foam3.02x2.57100%
Path lengthOpen/Foam → Closed/Foam1.25x1.1992%
RMS, front-backOpen/Firm → Closed/Firm1.05x0.2161%
RMS, front-backOpen/Firm → Open/Foam2.42x2.2999%
RMS, front-backOpen/Foam → Closed/Foam1.09x0.4778%
RMS, side-to-sideOpen/Firm → Closed/Firm0.99x0.0049%
RMS, side-to-sideOpen/Firm → Open/Foam2.86x2.5899%
RMS, side-to-sideOpen/Foam → Closed/Foam1.13x0.7378%
95% ellipse areaOpen/Firm → Closed/Firm1.06x0.0756%
95% ellipse areaOpen/Firm → Open/Foam7.10x1.9099%
95% ellipse areaOpen/Foam → Closed/Foam1.23x0.5881%

Reading it: foam is a large, near-universal effect. Closing the eyes matters a lot on foam and only a little on a firm floor. That weak firm-floor effect is real, not a bug: healthy people balance well without vision when the floor is stable.

3. Can a model tell the four conditions apart?

Task: given one 60-second sway recording, say which of the four conditions it came from. Chance is 25%. All models were scored with 5-fold cross-validation split by person, so no person appears in both training and test data.

ModelAccuracy (mean ± sd)Macro-F1 (mean ± sd)Parameters
Sway features + XGBoost (baseline)55.7% ± 4.0%0.556 ± 0.040n/a
1D CNN on the raw signal (PyTorch)58.4% ± 2.6%0.582 ± 0.02615,124
Small GRU on the raw signal (PyTorch)55.2% ± 4.3%0.533 ± 0.03510,324

Where each model goes wrong

True condition ↓ / predicted →Open/FirmClosed/FirmOpen/FoamClosed/FoamRecall
Open/Firm26720418055%
Closed/Firm21324523650%
Open/Foam6828018658%
Closed/Foam0318828360%

Vision / surface. Counts are trials, summed over the five test folds.

These models were trained on force-plate data. They are not used in the webcam test. A force plate measures the centre of pressure under the feet in centimetres. A webcam estimates body position in pixels. A model trained on one cannot be trusted on the other without new data.

4. Is the webcam measurement repeatable?

Not run yet. This needs repeated real recordings of a person. The script is ready (study/reliability.py). Until it has been run, no repeatability claim is made.

Reproduce it

Study run on 2026-11-11 in 713 s on CPU (arm64), Python 3.12.2, PyTorch 2.15.0, XGBoost 3.4.1, seed 0. Data: Human Balance Evaluation Database (Santos & Duarte, 2016), doi.org/10.13026/C2WW2W, Open Data Commons Attribution License v1.0.