Does walking slowly make a person's gait more individual? A participant-level statistical study of 2,544 knee-flexion cycles from 52 healthy adults at five speeds says no: slow walking makes gait more variable, not more distinctive.
- Slow walking does not make gait more individual. One knee cycle identifies its owner among 52 people 63 % of the time at spontaneous speed and 51 % at slow speed (paired difference −11.9 points, 95 % CI −19.9 to −3.6).
- The drop itself is not robust. With each cycle's offset removed, or with DTW, no slow-speed difference excludes zero, so the data do not show that slow walking makes gait less individual either.
- It makes gait more variable at both levels. From spontaneous to very slow speed, the within-participant SD of knee flexion rises from 2.8° to 4.5° and the between-participant SD from 4.0° to 6.5°, so the ICC stays between 0.64 and 0.68 at every speed; no ICC difference from spontaneous speed excludes zero.
- The "first bump" is a large speed effect. The loading-response excursion grows by 10.5° per m/s within a participant (95 % CI 9.8 to 11.3), in all 52 participants; at very slow speed it averages 4.4° and 37 % of cycles have no local peak.
- One cycle predicts the speed class 70 % of the time (FPCA + logistic regression, participant-grouped CV, chance 20 %; stance duration alone 55 %). A cycle-level split would have flattered 1-NN DTW by 11 points, because it recognises the person, not the speed.
- Unsupervised clustering does not rediscover the speeds: ARI 0.15 against the speed labels at k = 5, and only k = 2 is stable under participant resampling.
Clinical gait analysis compares a patient's curves with a reference band. If a protocol change (here, asking people to walk slowly) were to make each person's pattern more distinctive, it could help to expose individual abnormalities. This study tests that idea on healthy adults before it shapes a protocol, and finds that slow walking adds stride-to-stride noise at both levels without making individual signatures more distinctive. Any comparison with a reference also has to be speed-matched: a signature recorded at one speed recognises the same person at another speed only 3–46 % of the time.
- Data. Five MATLAB files, one per speed instruction (C1 0–0.4 m/s, C2 0.4–0.8 m/s, C3 0.8–1.2 m/s, C4 self-selected, C5 self-selected fast), with knee flexion time-normalised to 101 samples per cycle and spatio-temporal parameters. Participants are keyed by their block position, because one label (
SS2014004) is shared by two different people, and 16 very-slow strides exported twice are removed. - Is gait more individual at slow speed? Leave-one-cycle-out 1-nearest-neighbour re-identification at each speed and across speeds, with four distances (Euclidean on raw curves, offset removed, toe-off registered; DTW with a Sakoe-Chiba band). Unbalanced one-way variance components and a pointwise ICC curve along the cycle. All intervals come from a participant-level bootstrap (2,000 resamples), paired across speeds.
- How does speed deform the curve? Mean curves with 95 % bands, the loading-response excursion (maximum knee flexion in the 0–25 % window minus flexion at heel strike, per cycle; defined even when no local peak exists) tested between adjacent speeds (Wilcoxon signed-rank, Holm correction) and as a within-participant slope on measured speed, and functional PCA.
- Can one cycle tell the speed? Four models (stance duration only, FPCA + logistic regression, gradient boosting, 1-NN DTW) under participant-grouped 5-fold CV repeated three times, with the leaky cycle-level split run only to measure the gap.
- Clustering, revisited. DTW k-medoids for k = 2…8 with silhouette, ARI against the speed labels and participant-bootstrap stability, plus a re-run of the original 2024 pipeline.
Same-speed re-identification, paired on the same participants (difference from spontaneous speed C4, points, 95 % CI). Only raw curves show a clear slow-speed drop; no representation shows a gain.
| Representation | C1 very slow | C2 slow | C3 medium | C5 fast |
|---|---|---|---|---|
| Euclidean, raw curves | −9.5 (−19.3 to +0.2) | −11.9 (−19.9 to −3.6) | −9.7 (−16.7 to −2.5) | −0.7 (−8.4 to +6.8) |
| Euclidean, offset removed | −8.5 (−18.9 to +1.8) | −6.0 (−16.4 to +3.8) | −1.0 (−10.3 to +8.0) | −1.4 (−9.0 to +6.2) |
| Euclidean, toe-off registered | −5.7 (−14.8 to +3.6) | −5.8 (−13.8 to +2.4) | −8.0 (−15.0 to −0.5) | +3.0 (−4.9 to +10.8) |
| DTW, band 10 % | +0.1 (−9.5 to +10.3) | −4.3 (−12.6 to +3.9) | +1.4 (−5.0 to +8.3) | +1.2 (−6.6 to +9.1) |
Where in the cycle the person shows: at medium to fast speed, most in loading response (ICC 0.81–0.85 around 12 % of the cycle) and least in terminal swing (0.43–0.48 near 90 %). At very slow speed the profile is flatter (0.54 to 0.77) and the early peak no longer stands out (0.72–0.74 around 10 % of the cycle, maximum 0.77 at mid-cycle), as the loading bump itself shrinks.
Faster walking raises loading-response and peak swing flexion and moves toe-off earlier (stance lasts 74 % of the cycle at very slow speed, 61 % when fast).
Every adjacent step in speed raises the mean excursion (Holm-adjusted p ≤ 3 × 10⁻⁷; 43 to 52 of 52 participants increase at each step), and the within-participant slope on measured speed is positive for all 52. The excursion averages 4.4° at very slow speed and 17.9° when fast; over the same window the mean curves rise 2.6° and 17.7°, so the per-cycle window maximum adds about 2° of stride noise at very slow speed and almost nothing when fast.
A gait signature transfers only between C3 and C4, whose speed ranges overlap (C3 is 0.8–1.2 m/s, spontaneous speed averages 1.15 m/s): 42–46 %. Every other pair, neighbours included, is at 3–20 % (13 % on average off the diagonal).
Sensitivity analysis (band chosen post hoc on the same data, not tuned on held-out data): a 2 % band raises re-identification at every speed, by 0.4 to 11 points over Euclidean (a 5 % band helps at C1–C3 only); at 10 % and wider, DTW is at best level with Euclidean (+1.2 points at C3) and 8–10 points worse at C4–C5 (52.9 % vs 62.8 % at C4), which suggests that timing differences are part of a person's signature. The 10 % band used for the DTW re-identification row, 1-NN speed classification and clustering is a common default that was not tuned on these data, so those DTW results are not DTW at its best. At 2 % the slow-speed gap shrinks to 4–5 points (C1 58.9 %, C2 58.2 %, C4 63.2 %).
Errors fall almost only between neighbouring speeds, mostly C3 and C4, whose instructions overlap (C3 is 0.8–1.2 m/s; spontaneous speed averages 1.15 m/s).
| Model | Participant-grouped CV (95 % CI) | Cycle-level CV | Gap |
|---|---|---|---|
| Stance duration only (logistic) | 54.7 % (51.7–57.7) | 55.2 % | +0.5 pts |
| 8 FPCA scores (logistic) | 70.1 % (66.7–73.3) | 71.4 % | +1.4 pts |
| Gradient boosting, 101 samples | 66.7 % (63.8–69.7) | 72.9 % | +6.2 pts |
| 1-NN, DTW band 10 % | 48.4 % (45.6–51.0) | 59.5 % | +11.2 pts |
Clustering: strides of one participant at one speed mostly share a k = 5 cluster (77 %, against 51 % for random strides of the same speed), so the clusters follow people more than speed instructions; the scan over k is in docs/figures/clustering.png. Every chart, with hover values, is also in the interactive report.
make setup # uv sync --locked (Python 3.12)
make run # checksums, cycle cache, every analysis -> results/, figures -> docs/figures/
make report # site/index.html
make test # 76 tests on synthetic data, under 15 sThe 147 MB of .mat files are committed in Data/; make data checks their SHA-256 sums before anything runs. make run takes about 1 to 2 minutes on an Apple-silicon laptop with 3 threads, depending on machine load (THREADS=… to change) and writes about 50 MB of cache to cache/ (the full 2,544 × 2,544 DTW matrix). Every number in this README is read from results/.
Data/ the five speed-condition files (Norm_V1.mat ... Norm_V5.mat)
src/gait/
data.py loader: participant blocks, duplicate strides, checksums
dtw.py banded DTW (Numba), tested against explicit path enumeration
stats.py unbalanced one-way variance components, participant bootstrap, Holm
features.py toe-off registration, loading-response peak, FPCA
reid.py single-cycle re-identification with paired bootstrap CIs
classify.py speed classification with participant-grouped CV
clustering.py DTW k-medoids and bootstrap stability
legacy.py re-run of the 2024 course pipeline
pipeline.py end to end: cache -> results/
figures.py, report.py, cli.py
results/ small result tables behind every number quoted
docs/figures/ README figures
docs/legacy/ the 2024 course presentation
site/index.html the generated report
tests/ unit tests on synthetic data with known answers
- Healthy adults only. Nothing here measures or diagnoses pathology. Whether slow walking helps to expose an abnormality in patients is a different question that needs patient data; this study only shows that it does not make healthy gait more distinctive.
- One session per participant. Re-identification matches strides from the same session and the same marker placement, so part of a "signature" may be a placement offset. Removing each cycle's mean costs 4 to 13 points of accuracy depending on speed (10 on average), which bounds that effect without settling it.
- The loading-response excursion is a window maximum, so where no clear peak exists (37 % of very-slow cycles) it partly measures stride noise and is biased upward; the very-slow mean curve rises only 2.6° over the same window. The speed trend is far larger than that bias.
- Knee flexion only, one joint, one plane. Time-normalised cycles hide cycle duration, which by itself would reveal speed; the classifiers see only the shape and, for the baseline, stance duration.
- The speed classes overlap by design (C3 is 0.8–1.2 m/s and spontaneous speed averages 1.15 m/s), which caps classification accuracy and explains most confusions.
- Accuracy depends on gallery size. Re-identification is among 52 people with about 9 other strides each; the comparison across speeds is fair (same people, near-identical stride counts) but the absolute level would fall with a larger population. Re-identification CIs resample the query participants with the 52-person gallery held fixed; they are conditional on this gallery.
- Early stopping inside gradient boosting holds out cycles, not participants, within the training fold. The test fold stays participant-disjoint, so the reported accuracy is unaffected, but the number of boosting rounds may be slightly underestimated.
- The original pipeline is re-run in
legacy.pywith the same steps, but seeded, with the corrected participant index, without the duplicated very-slow strides and with this package's k-medoids. The original used Euclidean distances to the three medoids although its README called them DTW distances, and grouped participants by a label that merges two people. Its "within-person variance" ratio (26.88 vs 8.31, ratio 3.2) is reproduced in ratio (392 vs 133, ratio 2.9) but not in absolute value, and its "lowest at high speed" is not: the minimum is at C3–C4 (about 96). Scaled by the mean distance the spread is identical at both speeds (coefficient of variation 0.15 vs 0.16). - Provenance. The files match the protocol of Schreiber and Moissenet (2019): same five speed instructions, healthy adults aged 19–67, 101-sample normalisation. They come from a course distribution with 52 participants, against 50 in the public release; the exact correspondence was not verified.
This started as an M1 course project (SIC7002, Artificial intelligence for data science, 2024) with Maxime Adam and Othmane Lkhalidi (slides); the study above is a full rebuild.
- Schreiber C., Moissenet F. (2019). A multimodal dataset of human gait at different walking speeds established on injury-free adult participants. Scientific Data 6, 111. doi:10.1038/s41597-019-0124-4
- Sakoe H., Chiba S. (1978). Dynamic programming algorithm optimization for spoken word recognition. IEEE Transactions on Acoustics, Speech, and Signal Processing 26(1), 43–49.
- Ramsay J. O., Silverman B. W. (2005). Functional Data Analysis, 2nd ed. Springer.
- McGraw K. O., Wong S. P. (1996). Forming inferences about some intraclass correlation coefficients. Psychological Methods 1(1), 30–46.
- Searle S. R., Casella G., McCulloch C. E. (1992). Variance Components. Wiley.
Built by Pierre Chambet — decision science for operations under uncertainty.






