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 |
|---|---|---|---|
| 1 | 0.221 | 0.146 | 0.66 |
| 2 | 0.441 | 0.350 | 0.79 |
| 4 | 0.883 | 0.821 | 0.93 |
| 8 | 1.766 | 1.762 | 1.00 |
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.
| Metric | Change | Median ratio | Effect size (dz) | People who swayed more |
|---|---|---|---|---|
| Path length | Open/Firm → Closed/Firm | 1.08x | 0.34 | 67% |
| Path length | Open/Firm → Open/Foam | 3.02x | 2.57 | 100% |
| Path length | Open/Foam → Closed/Foam | 1.25x | 1.19 | 92% |
| RMS, front-back | Open/Firm → Closed/Firm | 1.05x | 0.21 | 61% |
| RMS, front-back | Open/Firm → Open/Foam | 2.42x | 2.29 | 99% |
| RMS, front-back | Open/Foam → Closed/Foam | 1.09x | 0.47 | 78% |
| RMS, side-to-side | Open/Firm → Closed/Firm | 0.99x | 0.00 | 49% |
| RMS, side-to-side | Open/Firm → Open/Foam | 2.86x | 2.58 | 99% |
| RMS, side-to-side | Open/Foam → Closed/Foam | 1.13x | 0.73 | 78% |
| 95% ellipse area | Open/Firm → Closed/Firm | 1.06x | 0.07 | 56% |
| 95% ellipse area | Open/Firm → Open/Foam | 7.10x | 1.90 | 99% |
| 95% ellipse area | Open/Foam → Closed/Foam | 1.23x | 0.58 | 81% |
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.
| Model | Accuracy (mean ± sd) | Macro-F1 (mean ± sd) | Parameters |
|---|---|---|---|
| Sway features + XGBoost (baseline) | 55.7% ± 4.0% | 0.556 ± 0.040 | n/a |
| 1D CNN on the raw signal (PyTorch) | 58.4% ± 2.6% | 0.582 ± 0.026 | 15,124 |
| Small GRU on the raw signal (PyTorch) | 55.2% ± 4.3% | 0.533 ± 0.035 | 10,324 |
Where each model goes wrong
| True condition ↓ / predicted → | Open/Firm | Closed/Firm | Open/Foam | Closed/Foam | Recall |
|---|---|---|---|---|---|
| Open/Firm | 267 | 204 | 18 | 0 | 55% |
| Closed/Firm | 213 | 245 | 23 | 6 | 50% |
| Open/Foam | 6 | 8 | 280 | 186 | 58% |
| Closed/Foam | 0 | 3 | 188 | 283 | 60% |
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.