Chapter 9 · 27 pages · Part: Video and Pose
Gait and Cyclic Sports
Is this runner overstriding, or is the camera angle making it look that way?
Read online PDF 851 kB Notebook + data 20 kB Markdown
Learning objectives
- Find the period of a repeating movement first, then detect the events inside each cycle, in a keypoint trace.
- Compute cadence, contact time, flight time, duty factor and step length, and say which of them need a scale.
- Explain the running form measures a coach asks about, and grade the evidence behind each.
- Apply the same method to walking, pedaling and swimming, and name the reference each sport gives you for free.
- Design a small study with a metronome and a tape measure, and turn its result into one cue for a runner.
Apps
RunningWalkingCyclingSwimmingHip drop
Sections
- 9.1Cycles and Events
- 9.2Running: Contact and Flight
- 9.3Running: Shape
- 9.4Sprinting Is a Different Movement
- 9.5Walking
- 9.6Cycling
- 9.7Swimming
- 9.8How Good Is the Number?
- 9.9Telling the Runner
- 9.10Summary
- 9.11Exercises
Lecture slides
Two decks for this chapter, one for each class of the week. Each has a speaker script; text CC BY 4.0.
Find the Period, Then the Events
Class 17, sections 9.1–9.6 · 25 slides · about 33.5 min
How Good Is a Gait Number?
Class 18, sections 9.7–9.11 · 24 slides · about 29 min
Tutorials
From a raw file to an action, with every step runnable in the browser. Case studies are also printed in Part V.
- CS-12 The body-weight force of each foot plant case study, 60 min
- CS-13 Predicting peak left-leg force case study, 75 min
- Q-25 Find foot contacts in an ankle trace quick tutorial, 15 min
- Q-26 Cadence from a cycle length quick tutorial, 15 min
- Q-27 An asymmetry index, three definitions quick tutorial, 15 min
Code listings
- Listing 9.1 Two ankle traces from a running clip.
- Listing 9.2 Find the period first, then the events. code/period_first.py
- Listing 9.3 An event detector for the student app (`peaks.js`). code/peaks.js
- Listing 9.4 Contact time and duty factor with a percentile stance rule. code/stance.py
- Listing 9.5 Modeled peak force per foot plant (`code/foot_force.py`). code/foot_force.py
- Listing 9.6 Move the stance threshold on a real clip (first part of `thresholds.py`). code/thresholds.py
- Listing 9.7 Cadence against a metronome on synthetic traces (the functions are reused by Listing 9.8). code/metronome.py
- Listing 9.8 A three-cadence table (main loop of `three_cadence.py`). code/three_cadence.py
The listings and their data are in the notebook download above.
Exercises
26 exercises; 8 are CORE. Answers to selected exercises are at the back of the book.
Concept check
- 9.1 CORE Foundation, 1 min
Which of these running measures cannot be computed without a scale from pixels to meters (or a known speed)? Options: CadenceDuty factorStep lengthFlight time - 9.2 CORE Foundation, 2 min
On a 30 fps clip, the median step time gives 164 steps/min but 43 steps counted over 15.23 s give 169 steps/min. Why do they differ? Options: Steps last a whole number of frames, so the median picks one rounded value… - 9.3 Core, 2 min
A student's script reports a duty factor of 70% for a runner at an easy pace. What is the most likely explanation? Options: The runner is sprintingThe runner is overstridingThe camera was too far awayContact time was… - 9.4 Core, 2 min
Which statement about running cadence is best supported by the studies in Section 9.3? Options: About 180 steps/min is the optimal cadence for every runnerRaising step rate by 5 to 10% at the same speed reduces loading…
Hand calculation
- 9.5 CORE Foundation, 8 min
A runner on a treadmill at 3.2 m/s is filmed at 60 fps. Contacts of alternate feet are 20 frames apart, each contact lasts 12 frames, and a stride is 40 frames. parts Cadence. 180 steps/min. Contact time and duty… - 9.6 Core, 10 min
The frame budget. parts How many frames does a 0.18 s contact span at 30, 60 and 240 fps? 5.4, 10.8, 43.2. At 60 fps with a 0.70 s stride, how many duty-factor percentage points is one frame? 2.4. At 60 fps, what… - 9.7 Extension, 12 min
Pedals and pools. parts A rider's bottom positions are 38 frames apart at 60 fps. Cadence? 94.7 rpm. From the rider's video, thigh $a=0.42 m$, shank $b=0.44 m$ and knee angle at the bottom $=150$. Find $r$ and the… - 9.25 Core, 15 min
A runner filmed from the side at 60 fps has a contact of 0.20 s and a flight of 0.10 s on one foot (Section 9.2.4). parts Find the modeled peak force of that plant in body weights. 2.36 body weights. Recompute it with…
App lab
- 9.8 CORE Foundation, 20 min
Analyze yourself running (the five-step pattern). steps Film yourself from the side, phone still on a tripod at hip height, whole body in frame, 15 to 30 seconds of steady easy running, at 60 fps or more. Note the… - 9.9 Core, 25 min
Walking speed against the ten-meter walk test. steps Tape a 14\,m straight path with marks at 2\,m and 12\,m; the middle 10 m is timed, the ends are for speeding up and slowing down. A partner times you from the 2\,m to… - 9.10 Core, 20 min
Hip drop from a waist band. steps Wear a bright band flat around the waist, in a color nothing else in the frame shares. Fix the phone level (use its level or a bubble level) behind you on a tripod at waist height, with…
Python analysis
- 9.11 CORE Foundation, 20 min
Download form1_ankles.csv (this chapter's data) and run Listing 9.2 with an AI assistant's help. parts Before running, predict the stride period in frames from Figure 9.1. Change the listing to estimate cadence from a… - 9.12 Core, 25 min
The autocorrelation gives the period in whole frames. Refine it: fit a parabola through the peak lag $k$ and its two neighbours and take its vertex, \[ k^ = k + 12\,R(k-1)-R(k+1)R(k-1)-2R(k)+R(k+1). \] Apply it to both… - 9.13 Extension, 30 min
Imitate a 30 fps camera by keeping every second sample of the synthetic 60 fps traces of Listing 9.8, and rerun the cadence and contact-time analysis (use a 2-sample smoothing window). Which measure survives the lower… - 9.23 Core, 60 min, case-file data
Case file: can contact time be predicted from cadence for a runner the model has never seen? Fit a straight line and score it with a split by athlete. parts A known answer first. Make synthetic data: six athletes, each… - 9.26 Extension, 30 min
Start from Listing 9.5 on the running example. parts Move every left toe-off one frame later (left contact one frame longer, the following flight one frame shorter) and recompute the asymmetry index. Then move it one…
Body science
- 9.14 Foundation, 5 min
In two or three sentences each, for a reader with no physiology: (a) why does walking have double support and running a flight phase? (b) What does the stance leg do in running that it does not do in walking? - 9.15 Core, 6 min
Which muscle group holds the pelvis level when you stand on one leg, and on which side is it? Why can a 17-keypoint pose model measure pelvic drop only roughly, even from behind?
Science of the sport
- 9.16 Foundation, 6 min
A swimmer's 25 m freestyle lengths, timed on the pace clock with cycles counted from the deck: easy, 16 cycles in 20.0 s; hard, 19 cycles in 17.0 s. Compute speed, stroke rate and distance per cycle for each, and say… - 9.17 Core, 6 min
A sprint coach runs the running app in its default Distance mode on a 10 m/s sprint and gets “Good” for contact time (95 ms) and duty factor (26%). Explain to the coach, using what decides top speed, why the grade is…
Field collection
- 9.18 CORE Foundation, 60 min
Three cadences and a taped 20\,m. Equipment: phone and tripod, metronome app, tape measure, floor tape or chalk, a flat path of about 40\,m. Consent: if you film a teammate, get their written consent on the Appendix E… - 9.19 Extension, 60 min
The bicycle as a ruler: a 10\,mm saddle change. Equipment: stationary bicycle or a bicycle on a trainer, ruler, tape, phone and tripod, metronome. Consent and safety: if the rider is not you, the rider's written consent…
Build
- 9.20 CORE Core, 75 min
Build step B-9: an event detector in your page. parts Add peaks.js (Listing 9.3) to your project. It finds local maxima at or above a level and at least minGap samples apart, and reports events per minute from the first…
Communicate
- 9.21 CORE Core, 25 min
Using the clip and results from the three-cadence field exercise (or the running example in this chapter), write a message of at most 120 words to the runner. Give one cue, what to do, how often, for how long, and a… - 9.24 Core, 30 min, case-file data
Case file: turn the previous exercise into a two-slide pitch for the coach of one of your case-file athletes. Slide 1: the user (the coach), the decision the model would help with, and the data. Slide 2: one chart of…
Check the AI
- 9.22 Core, 8 min
An assistant wrote this function and said “tested, duty factor for your runner is 58%, which suggests too much time on the ground.” def duty_factor(contacts, toe_offs, fps):\\ 2emtc = np.median(toe_offs - contacts) /…
How to cite
Hedengren, J. (Ed.) (2027). Chapter 9: Gait and Cyclic Sports. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 236–262). IRSRI Sports Research Institute. https://apopt.com/book/pdf/09-gait-and-cyclic-sports.pdf
BibTeX
@incollection{hedengren2027ch9gait,
editor = {Hedengren, John},
title = {Chapter 9: Gait and Cyclic Sports},
booktitle = {Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data},
chapter = {9},
pages = {236--262},
publisher = {IRSRI Sports Research Institute},
year = {2027},
note = {CC BY 4.0},
url = {https://apopt.com/book/pdf/09-gait-and-cyclic-sports.pdf}
}
RIS
TY - CHAP ED - Hedengren, John TI - Chapter 9: Gait and Cyclic Sports T2 - Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data SP - 236 EP - 262 PB - IRSRI Sports Research Institute PY - 2027 N1 - CC BY 4.0 UR - https://apopt.com/book/pdf/09-gait-and-cyclic-sports.pdf ER -