A free textbook with browser apps · First edition, 2027
Data-Driven Athletics
Measuring, Modeling and Coaching Human Performance with Video and Wearable Data
Edited by John Hedengren · IRSRI Sports Research Institute
Every athlete now carries a camera and a set of sensors. This book teaches how to turn what they record into decisions. Work from raw video and wearable signals through checks and uncertainty to a recommendation an athlete can use.
Fourteen chapters, one a week, take a reader from the first question to a coaching decision. Each chapter is free to read here, to download, and to reuse under CC BY 4.0. The movement apps, the Heart app and the Watch dashboard the chapters use are free at apopt.com, and they run in the browser: videos and files stay on your own device.
What do you want to decide, and what would you need to measure to decide it?
Learning objectives
State a performance question as a decision someone will make.
Tell a measured quantity from a derived one and a modeled one.
Define accuracy, precision, validity and reliability, with an example of each.
Make a first measurement two ways and compare them.
Describe the rules for handling another person's data.
Describe a working method for using an AI assistant.
Three ways to measure a jumpStanding reach comes from a flat-footed mark. Compare the reach difference with height derived from manually counted airborne frames and the app’s separate hip-rise estimate. Match takeoff and landing posture when using flight time. The equipment scene is a generated illustration. Print figure
You wore a chest strap and a watch for the same interval session. The two files have gaps, a few impossible beats, and clocks that do not agree. What was your heart rate, second by second, and how do you know?
Learning objectives
Write a notebook someone else can run: restart and run all, stated versions, a fixed seed, and functions checked against known cases.
Load a table, a time series and a folder of app results files into pandas, and put every time stamp on one clock; describe each file in a data dictionary.
Find missing values, spikes, flat lines, duplicates and unit mix-ups with rules you wrote down before you looked; keep the raw file, and log every change.
Resample two devices onto one grid, find the offset between their clocks by cross-correlation, and join tables on a key with a check after every join.
Smooth a signal with a moving average, a median filter and a low-pass filter, and state the lag each one costs; explain why a derivative amplifies noise.
Describe a disagreement with a bias and limits of agreement, show a distribution, and draw a chart that makes one point without misleading.
Use an AI assistant to write the code, and a hand-computed answer to check it.
Two devices on the same runner disagree by 15 beats a minute in the middle of an interval session. Which one is right, and how would you know?
Learning objectives
Explain how a chest-strap ECG sensor and an optical sensor each detect a heartbeat, and why they fail in different ways.
Convert between RR interval and heart rate, and compute RMSSD, SDNN and pNN50 by hand for a short series.
Compare two devices with bias, mean absolute error, mean absolute percentage error and limits of agreement.
Describe how heart rate responds to the start of exercise, to steady work and to recovery, and fit a time constant to each.
Set heart-rate zones three ways and compute a training-load score.
Report a heart-rate finding to an athlete without overstating it.
Chest strap and wrist watchA chest strap detects electrical activity through the skin-facing electrodes. Its transmitter sits at the center of the band. Name the signal and time reference before comparing it with the watch. The ECG sketch illustrates the RR interval. The equipment scene is a generated illustration. Print figure
The watch says 10.14 km. The course was measured at 10.00 km. Did the runner run farther, or did the watch?
Learning objectives
Explain how a satellite receiver finds its position and why one fix a second limits what pace can show.
Compute the distance between two fixes by hand, and explain why summed distance runs long when moving slowly and short on tight turns.
Read an activity file, resample it and clean it, and handle a zero-length time step by an explicit, tested rule.
Explain what an accelerometer measures and how cadence, contact time and vertical oscillation are derived from it.
Fit critical speed from two or three time trials as a linear regression, with the slope in units, the residuals and a mean baseline, and use it to set training paces.
Describe training load over weeks and give a coach a defensible summary.
The app drew a skeleton over my video. How far is each dot from the real joint, and which of the numbers can I act on?
Learning objectives
Explain frame rate, shutter and resolution, and choose them for a task.
Tell the stored frame rate of a clip from the rate it was filmed at, and correct every time and speed for the difference.
Explain what a pose model returns and what its confidence does and does not mean.
Run a pose model on a clip in Python, put the keypoints in a table and draw the skeleton.
Set a scale from pixels to meters and state its error.
Name the four levels of error between a real joint and a reported number, and sort results into three levels of trust.
Set up a side-on running videoSet the lens at about hip height and square to the running line. Put the reference in the runner’s plane. Four metres is an example distance. Adjust it so the whole body and space ahead and behind fit. Record the capture frame rate. The equipment scene is a generated illustration. Print figureSet up a rear-view running videoCenter a fixed camera behind the runner, with the lens about hip height. Check that both feet and the pelvis remain visible through the section being analyzed. Print figure
Is this runner overstriding, or is the camera angle making it look that way?
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.
Find contact and flight in videoInitial contact is the first frame with visible ground contact. At midstance the body passes over the support foot. Toe-off is the last support instant before both feet clear the ground. The four phases are shown schematically and are equally spaced for comparison. Print figure
The athlete jumped 2 cm higher than last month. Is that training, or noise?
Learning objectives
Measure your own typical error from a test and a retest, set a smallest worthwhile change, and judge one athlete's result with a decision rule that ends in words.
Compare two devices or two methods with bias and limits of agreement, and explain why a high correlation does not show that they agree.
Put a range on a mean or a median by resampling the independent unit, and report a group result as a size with an interval.
Say what a p-value and a fitted slope do and do not tell a coach, name the likely confounders, and write a one-page experiment plan.
Fit and check a regression on real running data, compare it with a shallow tree and a mean baseline, and fit simple models to one athlete.
Train and test a classifier without leaking information, choose its threshold from precision and recall, and judge a forecast against persistence with a chronological split.
Say what ten athletes, or ten sessions, can and cannot support.
A coach says: “My runners record their heart in the morning, and the files sit on their phones. I just want to know whether this morning's file is good enough to use, and what the number is. Can you make me something?” What is the smallest tool that answers that one question?
Learning objectives
Reduce a coach's question to a one-page specification of the smallest tool that answers it.
Name the parts of a browser app (page, script, worker, canvas, build tool, static host) and say what each one does.
Direct an AI assistant to build an app in small steps, test what it builds against answers you worked by hand, and test that it survives normal, missing and invalid input.
Keep a user's data on their own device, and say on the page what the tool cannot do.
Run a user test with five people and three tasks, and change the app because of what you saw.
What can be trusted now, what is coming, and what is yours to decide?
Learning objectives
Say, for each quantity in the book, how it is measured, how to check it for free, how large its error is, and how far to trust it.
Choose a sensor or a camera, a protocol and a check for a coach's question.
Tell a sourced claim about coming technology from an opinion.
Divide work between an AI agent and yourself, and name what stays with a person.
Pick a gap in the field and start a project on it.
Name the engineering use of each method in the book, from sensor validation to leakage.
Repeat your first measurement and say what changed: in you, in the number and in how you read it.
Plan the retest before coachingRepeat the Week 1 test with the same protocol and compare any change against repeat-to-repeat scatter. Plan the retest and state the decision rule before looking at the new result. The equipment scene is a generated illustration. Print figure
Each case study goes from a raw file to an action an athlete can take, three pages in print. The online version runs every step in the browser, with the data, a notebook and a challenge: apopt.com/course/tutorials.
Hedengren, J. (Ed.) (2027). Case Study CS-1: How high did I jump?. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 402–404). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-2: A step test and a first straight line. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 405–407). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-3: Predict the arc of a jump. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 408–410). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-4: A messy watch export to a clean table. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 411–413). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-5: Phone in a pocket: walk, jog, or run?. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 414–416). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-6: From a chest-strap recording to a recovery number. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 417–419). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-7: Critical speed from a watch archive. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 420–422). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-8: Find a lactate threshold, and see if it moved. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 423–425). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-9: A season of load: fitness, fatigue, and a taper. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 426–429). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-10: Pose estimation, frame by frame. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 430–432). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-11: From keypoints to a knee angle over a stride. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 433–435). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-12: The body-weight force of each foot plant. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 436–439). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-13: Predicting peak left-leg force. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 440–442). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-14: The arc of a shot or a throw. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 443–445). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-15: Is the change real? One test, twelve weeks. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 446–449). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-16: Forecast next week, and beat "same as last week". In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 450–452). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-17: From a notebook to a page an athlete can open. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 453–455). IRSRI Sports Research Institute.
Hedengren, J. (Ed.) (2027). Case Study CS-18: A one-page progress report. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 456–458). IRSRI Sports Research Institute.
This appendix collects the mathematics the chapters use, at the level they use it. Each section gives the idea, the formula and one worked number from the book's examples. If a section is familiar, skip it; if a chapter's Engineer's note lost you, start here.…
This atlas gives the names the book uses for the parts of the body and the ways they move, so that an engineer can read a coaching note and a coach can read a pose file. It covers the planes of motion, directional terms, the major bones and joints, the…
Every app opens its chapter at the page where it is used, and every app has a Chapter button that comes back here. The apps are free, need no account, and analyze videos and files in your browser.
Cite the chapter you used. Each chapter ends with a “How to cite this chapter” box, and its Cite button here gives the same reference with BibTeX and RIS. For the whole book:
Hedengren, J. (Ed.) (2027). Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data. IRSRI Sports Research Institute. https://apopt.com/book/