Chapter 6 · 31 pages · Part: Wearable Sensors
GPS Watches and Motion Sensors
The watch says 10.14 km. The course was measured at 10.00 km. Did the runner run farther, or did the watch?
Read online PDF 951 kB Notebook + data 96 kB Markdown
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.
Apps
Sections
- 6.1Finding Position from Satellites
- 6.2From Fixes to Distance and Pace
- 6.3Activity Files
- 6.4Motion Sensing
- 6.5Pace, Economy and the Speed–Duration Curve
- 6.6Load over Weeks
- 6.7How Good Is the Number?
- 6.8Telling the Coach
- 6.9Build Step B-6: An Activity File on a Map
- 6.10Summary
- 6.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.
Satellites, Files and Steps
Class 11, sections 6.1–6.6 · 28 slides · about 35.5 min
Trust, Load and the Coach
Class 12, sections 6.7–6.11 · 26 slides · about 33 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-7 Critical speed from a watch archive case study, 60 min
- Q-16 Open an activity file and list its fields quick tutorial, 15 min
- Q-17 Split a run into laps quick tutorial, 15 min
- Q-18 Count steps from an accelerometer quick tutorial, 15 min
- Q-40 Export a run from the running simulator and read it quick tutorial, 20 min
Code listings
- Listing 6.1 Haversine distance, checked by hand, then summed over the run code/distance.py
- Listing 6.2 Synthetic track: the same 3 m error, independent or wandering code/noise.py
- Listing 6.3 How long a smoothed pace takes to show a surge code/lag.py
- Listing 6.4 Elevation gain from a noisy altitude trace code/gain.py
- Listing 6.5 A repeated time stamp, found and handled by a stated rule code/zero_interval.py
- Listing 6.6 Read a FIT file and print what it holds code/read_fit.py
- Listing 6.7 Timer time, splits per kilometer and per mile code/splits.py
- Listing 6.8 Cadence, step length and running dynamics from the file code/cadence.py
- Listing 6.9 Steps while running and breaths lying still, from a chest accelerometer code/chest.py
- Listing 6.10 Critical speed and $D'$ by a straight-line fit code/critical_speed.py
- Listing 6.11 Critical speed as a regression: units, residuals and a mean baseline code/cs_regression.py
- Listing 6.12 Load per run, per week, two averages and the 7/28 ratio code/load.py
- Listing 6.13 Haversine, cumulative distance and splits in JavaScript (`code/track.js`) code/track.js
- Listing 6.14 Fixes to canvas pixels (`code/project.js`) code/project.js
- Listing 6.15 Known-answer tests (run with `node track.test.js`) code/track.test.js
- Listing 6.16 Load a GPX file in the page, report splits and draw the route (`code/load-gpx.js`) code/load-gpx.js
The listings and their data are in the notebook download above.
Exercises
25 exercises; 8 are CORE. Answers to selected exercises are at the back of the book.
Concept check
- 6.1 CORE Foundation, 2 min
A walker's watch adds 0.4 km to a 3 km walk that a runner's watch measures within 1% on the same path. What is the most likely reason? Options: Walkers swing their arms more, which blocks the satellites.Position errors… - 6.2 CORE Foundation, 2 min
A FIT file from a running watch shows a cadence of 86 for most of a run. What was the runner's cadence? Options: 86 steps a minute, a slow shuffle.43 steps a minute.172 steps a minute.86 steps a minute per kilometer. - 6.3 Core, 2 min
Which of these watch outputs is modeled rather than measured or derived? Options: Distance, summed from position fixes.Cadence, from accelerometer peaks.Elevation gain, summed from a barometer.Running power in watts… - 6.4 Core, 3 min
The acute:chronic ratio is the mean daily load of the last 7 days divided by the mean of the last 28 days, which include those 7. What is the largest value it can take? Options: 4.1.7.It has no upper limit.
Hand calculation
- 6.5 CORE Foundation, 10 min
parts Two fixes differ by 0.0002 of latitude and nothing in longitude. How far apart are they? 22.2 m. Two fixes at 40 of latitude differ by 0.0001 of longitude only. How far apart are they? 8.52 m. A FIT file stores a… - 6.6 Core, 10 min
A runner's two best efforts this season are 1600 m in 5:20 and 4800 m in 18:00. parts Find critical speed and $D'$, keeping the fraction. 4.2105 m/s; 252.6 m. What is $D'$ if you round CS to 4.21 first? 252.8 m. Give… - 6.7 Extension, 12 min
Six short calculations from one training week. parts Eight laps in lane 1 read 3.15 km. What is the watch's error? $-1.6%$. You count 46 steps in 15 seconds. What is the cadence, and what would a FIT file store? 184… - 6.23 Core, 12 min
Two watch files hold the same six records except one distance. Times (s): 10, 11, 12, 12, 13, 14. Distances (m), file A: 30.0, 33.0, 36.0, 36.0, 39.0, 42.0; file B: 30.0, 33.0, 36.0, 37.5, 39.0, 42.0. parts Compute the…
App lab
- 6.8 CORE Foundation, 30 min
Your own run in the Watch dashboard. App: Watch dashboard, https://apopt.com/watch. Input: the FIT file (or GPX or TCX) of one of your own runs of 20 to 60 minutes, exported from your watch or phone. steps Enter your… - 6.9 Extension, 25 min
Load and its labels. App: Watch dashboard, https://apopt.com/watch. Input: at least five weeks of your own runs (a ZIP of FIT files works). parts Read the latest workload ratio and its label, and the fitness, fatigue…
Python analysis
- 6.10 CORE Foundation, 25 min
Your own file, three ways. Run Listings 6.1, 6.7 and 6.8 on data/run.csv. Known answers: 4840 m from positions against 4836 m from the device over 1492 steps; kilometer splits 298.3, 288.0, 303.8, 354.0 and 301.9 s;… - 6.11 Core, 45 min
Chest motion: steps and breaths (strap exercise H-14). Equipment: the chest strap with the Heart app's Live Capture (https://apopt.com/heart), or a phone held flat on the sternum by an elastic band with a sensor-logging… - 6.12 Extension, 30 min
Noise, correlation and lag. Start from Listings 6.2 and 6.3. parts Change the loop to for rho in (0.0, 0.9, 0.99):. How does the distance error change with $$? About $+85%$, $+9%$, $+1%$. For $ = 0.9$, how long must a… - 6.22 Core, 25 min
Core. Start from Listing 6.11 and the three trials: 1200 m in 240 s, 2200 m in 480 s, 3600 m in 800 s. parts Fit $d = CS\,t + D'$ and give both numbers with units, and the RMSE. 4.291 m/s; 159 m; RMSE 13.4 m. Fit the… - 6.24 Core, 45 min, case-file data
Case file: use your case-file athlete's watch archive (see https://apopt.com/data/athletes) to fit a speed--duration line. parts For every running activity, find the greatest distance covered in any window of 3, 6, 10… - 6.25 Core, 35 min, case-file data
Case file: chart weekly training load from your case-file athlete's watch archive (see https://apopt.com/data/athletes). parts Score every activity with Equation ch06-gps-motion:eq:load as in Listing 6.12, using timer…
Body science
- 6.13 Foundation, 5 min
An accelerometer lying still on a table reads $1\,g$ upward. In free fall it reads zero. Explain both in two sentences each, and say why this lets a chest sensor see breathing when you lie still but makes it harder to… - 6.14 Core, 8 min
A runner can hold 4.2 m/s for an hour but 4.5 m/s for only about 13 minutes. Her critical speed is 4.29 m/s. Explain, for a reader who has not studied physiology, what changes in her body between the two speeds and why…
Science of the sport
- 6.15 Foundation, 8 min
A 60 kg runner races a half marathon (21.0975 km) on a level course. parts Using 3.40 J/kg/m, how much energy does the run cost, in kJ and kcal? 4304 kJ; 1029 . Her watch says 1350 calories. Give two reasons for the… - 6.16 Extension, 10 min
The runner of Example 6.6 (CS 4.2857 m/s, $D'$ 171.4 m) plans $400$ m repeats at 5.0 m/s. parts How long does each repeat take, and how much of $D'$ does it use? 80 s; 57.1 m. With no recovery at all, how many repeats…
Field collection
- 6.17 CORE Foundation, 40 min
Track check of your watch. Equipment: your watch or phone, a 400 m track you are allowed to use, a stopwatch. steps Check that the track is free for laps and that you may use lane 1. Warm up for ten minutes, easy. Start… - 6.18 Core, 30 min
Cadence three ways. With a teammate. Equipment: a watch that records cadence, a phone on a tripod, a metronome app. steps Get your teammate's written consent on the form of Appendix E (Section E.2) to film them and…
Build
- 6.19 CORE Core, 90 min
Build step B-6: an activity file on a map (W-6, W-7). Work in your Vite project from earlier weeks. Prompt your AI assistant for each part, then test it. parts Load a GPX file and compute cumulative distance with the…
Communicate
- 6.20 CORE Core, 30 min
A weekly summary for a coach. Use four or more weeks of your own runs in the Watch dashboard (or the synthetic season of Listing 6.12, week 11). Write a summary of the latest week for a coach: three numbers, one chart,…
Check the AI
- 6.21 Core, 10 min
An AI assistant wrote this to compute the distance of a route from a GPX file: quoted = np.hypot(np.diff(lat), np.diff(lon)) 111195 # metres per degree total = d.sum() quote On a route at 40 north that goes 0.01 north…
How to cite
Hedengren, J. (Ed.) (2027). Chapter 6: GPS Watches and Motion Sensors. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 151–181). IRSRI Sports Research Institute. https://apopt.com/book/pdf/06-gps-watches-and-motion-sensors.pdf
BibTeX
@incollection{hedengren2027ch6gpsmotion,
editor = {Hedengren, John},
title = {Chapter 6: GPS Watches and Motion Sensors},
booktitle = {Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data},
chapter = {6},
pages = {151--181},
publisher = {IRSRI Sports Research Institute},
year = {2027},
note = {CC BY 4.0},
url = {https://apopt.com/book/pdf/06-gps-watches-and-motion-sensors.pdf}
}
RIS
TY - CHAP ED - Hedengren, John TI - Chapter 6: GPS Watches and Motion Sensors T2 - Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data SP - 151 EP - 181 PB - IRSRI Sports Research Institute PY - 2027 N1 - CC BY 4.0 UR - https://apopt.com/book/pdf/06-gps-watches-and-motion-sensors.pdf ER -