Validation¶
What has been measured, on which data, and what is not verified yet. Patient recordings used during development stay private; the numbers on this page come from public or synthetic data.
The whole pipeline on public recordings¶
Three able-bodied adults from the public gait dataset of Van Criekinge et al. (2023): full-body Plug-in Gait (33 markers, with SACR instead of the PSIS markers), four force plates, one static and three walking trials each, labeled and processed in Vicon Nexus. Each trial was unlabeled synthetically (gaps, pieces of two markers joined into one trajectory, ghost markers), then run through OpenMotionLabel: the static auto-labeled from scratch, the walking trials auto-labeled with it, gaps filled, events detected, and the result written, read back and compared with Nexus's labels, positions and events.
| Step | Result |
|---|---|
| Static auto-labeling | 81 % to 91 % of samples labeled as in Nexus. The errors are the wrist and finger markers (WRA, WRB and FIN mixed up within a hand) and, in this lab's marker set without RBAK, T10 labeled as RBAK. Pelvis, legs, trunk and head were right. |
| Walking trials, with that static | 75 % to 91 % of samples labeled as in Nexus, with the same markers wrong (they follow the static), plus the right knee and shank markers in one trial; some pieces stay unlabeled rather than getting a doubtful label. |
| Gap filling | Fills of correctly labeled markers within 2.6 mm of Nexus's positions (median 0.004 to 2.3 mm per trial). The fills tens of millimetres off (up to 96 mm) were all of mislabeled markers. |
| Gait events | 120 of 124 Nexus events found. Force-plate events within one frame for 35 of 36 contacts; marker events on average 2 frames off, 82 % within 3 frames. |
| Writing | Every written file read back identically by ezc3d and by py-c3d (an independent reader): labels, frames, analog channels, force-plate parameters, first frame and events. |
| Speed | About 0.7 s to label a 340-frame walking trial. |
So the pipeline itself is sound, and the weak spot is labeling the hands. Until that improves, check the hand markers of each static by eye; walking trials follow the static.
To repeat it (it downloads about 11 MB: three subjects' entries from the dataset's 463 MB zip):
python tools/public_pipeline/fetch_van_criekinge.py /path/outside/the/repo --subjects 3
python tools/public_pipeline/run_pipeline.py /path/outside/the/repo/138_HealthyPiG_10.05 /path/to/work
Dataset: T. Van Criekinge, W. Saeys, S. Truijen, L. Vereeck, L. H. Sloot and A. Hallemans (2023), A full-body motion capture gait dataset of 138 able-bodied adults across the life span and 50 stroke survivors, Scientific Data 10, 852, doi:10.1038/s41597-023-02767-y; files on figshare (C3D files: CC0).
Synthetic data¶
- The example session (
oml example): the static and both walking trials are labeled with no wrong and no unlabeled sample, and the whole pipeline runs in the test suite. - Benchmarks with synthetic unlabeling and ground truth (
oml eval-static,eval-dynamic,eval-fill,eval-events) can be run on your own labeled trials.
Tests¶
About 300 automated tests (pytest) cover C3D reading and writing, the labeling model and its
edit commands, auto-labeling, gap filling, filtering, force plates, events, the server and its
security checks, uploads, and the pyCGM2 bridge (against a stand-in, and against a real pyCGM2
with OpenSim on request: pytest -m pycgm2). The interface has its own tests (vitest).
pyCGM2¶
pyCGM2 gives the same results through OpenMotionLabel's BTK layer over ezc3d as through BTK itself, on the same files: calibration and joint angles identical, forces, moments and powers within rounding. The layer writes the TRC files that pyCGM2 hands OpenSim byte for byte as BTK does. CGM1.0, 1.1, 2.1, 2.4 and 2.5 (with OpenSim's inverse kinematics) run through the bridge on macOS.
Not verified yet¶
- Windows and Linux: the test suite runs on both in continuous integration, which has not run yet for this release candidate. Everything above was measured on macOS.
- Vicon Nexus: opening files written by OpenMotionLabel in Nexus.
- Firefox and Safari: the interface is developed in Chrome and Edge.
- Remote access through a real Cloudflare tunnel.
- Static auto-labeling still misses its own targets on some statics (hands, unusual poses); improving it is the main work after 1.0.