# How Good Is a Gait Number?

Class 18, Chapter 9: Gait and Cyclic Sports. 24 slides, about 29 minutes.

## 1. Title

Slide up while people sit down; homework eighteen, the three-cadence run, is due now. Keep your table out. Tuesday we found the events; today we ask how good the numbers are, finish with swimming, and practise the hardest part: telling a runner one thing.

## 2. Swimming speed: rate times distance  (2.5 min)

Swimming speed is how often the arms turn over times how far the body travels per turnover. Stroke rate in cycles per minute, distance per cycle in metres, divide by sixty. The stroke index rewards holding a long stroke at speed. One trap: in freestyle and backstroke, one cycle is a full turn of both arms, and some coaches count single pulls, which doubles the number. [Everyone works the box, one minute.] A cycle of one point two five seconds is forty eight a minute. At one point six metres a second, two metres per cycle, and a stroke index of three point two. Check it in the pool: count cycles over a length and time it on the pace clock.

## 3. The swimming app: one wrist, and the pool as the ruler  (2 min)

The swimming app follows the same three steps. In breaststroke and butterfly the arms move together, so the gap between the wrists peaks once a cycle. In freestyle and backstroke the arms alternate, so the app follows one wrist. That detail matters: switching to whichever wrist is visible would add half cycles and double the rate, a plausible-looking wrong number. Each of its fifty one measures declares where it applies, and a measure that cannot be seen from your camera is not shown at all rather than guessed. Speed needs a scale, and the pool supplies one: two marks a known distance apart along the lane.

## 4. Error sources and a free check for each  (2 min)

Chapter 8 sorted results into three levels of trust, and gait measures fall neatly into them. Here are the main error sources with a typical size and, in the last column, a check that costs nothing. The frame grid: film the same run at two rates. The event threshold: two people count frames. The wrong frame rate: a stopwatch or the pace clock in the frame. The scale: steps over a taped twenty metres. Camera yaw: film square, then twenty degrees off, and compare. Look at the second row. The threshold alone moves contact time by a factor of two. We will look at that next.

## 5. The frame budget  (1.5 min)

The frame budget. A distance runner's contact of about a fifth of a second spans six or seven frames at thirty frames a second, thirteen at sixty, fifty three at two hundred and forty. At thirty, every contact time you read is one of a handful of values, and one frame is fifteen percent of the answer. Cadence is far more forgiving. It comes from the interval between many events, and if every event is placed one frame late, the offset cancels. That is why reviews find step rate from video reliable, and why agreement on angles is much more variable. If you care about contact time, film at sixty or more.

## 6. Where does stance end?  (2.5 min)

Where does stance end? On a video there is no force plate to say. The app's rule ends it when the foot rises out of the bottom thirty percent of its range. [Take guesses: ten percent change? fifty?] Move that line a little either way on the same real clip. [Click.] At the sixtieth percentile the contact is about a quarter of a second; at the eightieth, an eighth. Twice as long, from one reasonable choice. Without a reference you cannot say which is right, only that each is consistent with itself. So use contact time to compare a runner with themselves, filmed the same way, and check its absolute value against a high-speed clip counted frame by frame.

## 7. A metronome is an exact reference  (2.5 min)

A metronome does not drift and needs no calibration, so a runner who matches it gives you a known cadence. Listing 9.6 makes synthetic ankle traces at three metronome settings, adds noise, finds the contacts, and fits a straight line through all the contact times; the slope is seconds per step. The traces are made up; the method is the one you used on your own video for homework eighteen. Every setting lands within half a step a minute. With your own videos you will not know the true contact time, but the metronome column is exact. [Ask:] whose app cadence matched their metronome? Whose did not, and what explained it?

## 8. Check the AI: ``tested, duty factor 58%''  (2 min)

[Pairs, one minute: find the flaw.] The assistant said the code was tested. With both feet in the contacts list, the difference between neighbours is a step, not a stride. So it divides by the wrong denominator, and fifty eight percent is twice the true value of twenty nine. The number itself should have raised a flag: over fifty percent means the stances overlap, and that is walking. Then there is the sentence. Too much time on the ground is an interpretation that no evidence supports for one runner; duty factor is descriptive and changes with speed. A test with a known answer, a synthetic trace with a set contact and stride, would have caught both.

## 9. The same runner on many days  (2 min)

A measure is useful for tracking only if it changes less between two days when nothing changed than when something did. Here is real data from the instructor's watch: one dot per run, mean cadence against pace. Two things to see. Cadence rises on faster runs, as the chapter says it should, so compare runs at the same pace. And at similar paces the dots still scatter by a few steps a minute. That scatter is the noise any change must beat. The standard way to state it is the typical error: for a test and a retest, the standard deviation of the differences divided by root two. Chapter 11 turns it into a smallest detectable change.

## 10. Which one needs a scale?  (1.5 min)

[Hands up, fast.] C, step length. It is sixty times speed over cadence, and speed needs a scale or a belt. The other three are times or ratios of times. This is why a treadmill is convenient for filming: the runner stays in the frame and the belt gives you the speed with no scale at all. The cost is that treadmill running is not identical to running over ground, so compare a runner with themselves on the same surface. And remember which view gives what: the side gives events, timing and sagittal angles; the back gives hip drop and step width. Neither gives both.

## 11. One measure, one cue, one date  (2.5 min)

A report on a run can list twelve numbers. A runner can act on one. Pick the one that is outside this runner's usual range and backed by evidence that changing it changes something. Cadence is the obvious candidate. [Read the message aloud.] Look at its parts. The number in the runner's words. One change, five percent from the runner's own value, which is the size the studies tested. Exactly how: a metronome, two easy runs a week, five minutes at a time, same pace. What the evidence says, and what it does not: lab loading, not injury. A stop rule. And a retest date with the same camera spot.

## 12. The poor message  (2 min)

Now the poor message. [Let them read it and call out problems before you reveal the list.] Seven numbers and two instructions, with no way to carry them out, and decimals the measurement cannot support. It calls a textbook figure, a hundred and eighty, a target, though no study shows one cadence suits every runner; the evidence supports changes of five to ten percent from the runner's own value. Going from a hundred and sixty to a hundred and eighty is twelve and a half percent, and a runner who forces it may lose the economy they had found for themselves. It promises less injury. And good one of three is actually the lowest grade.

## 13. Build Lab B-9: an event detector  (3 min)

This build step puts the method in your page. Peaks finds local maxima at or above a level and at least min gap samples apart. Read the else line: a taller peak inside the gap replaces the earlier one, so a doubled dip counts once. Rate per minute uses the span from the first event to the last, not a median, for the reason we saw on Tuesday. Specify first, including one input that should fail, like fewer than two events. Write the test before the code: a one and a half hertz wave for twenty seconds must give thirty peaks and ninety a minute. Then run it on the ankle file; a page that reports a hundred and eighty or a hundred and sixty four is using one interval.

## 14. Chapter 9 in five lines  (1.5 min)

Chapter 9 in five lines. Find the period first, then the events, in every sport: running, walking, pedaling, swimming. Timing measures need no scale; anything in metres does. A rate comes from the span of many events, because a median of rounded intervals is still rounded. Contact time depends on the frame rate and on where you draw the stance line; cadence hardly depends on either, which makes it the most trustworthy number in a running video. And no form measure predicts injury for one runner, so tell the runner one thing, with a date to film again. Next week, single movements: jumps, throws, and the one frame that matters.

## 15. Before Class 19  (1.5 min)

P nineteen is due at the start of Tuesday's class, and it is the first assignment tied to the project. Two parts. A regression: predict peak force or contact time from gait measures, and score it with a split by athlete, so no runner is in both the fit and the test. Otherwise you are testing on people the model has already seen. And presentation two: a two-slide project pitch. One slide for the user and the decision they need to make, one for the data that would inform it. Teams form on Tuesday, so the pitch is how you find people who want the same project. Read Chapter 10, sections one to six.
