Data / tutorials / cs13-peak-force
Tutorial CS-13: Predicting peak left-leg force
Tutorial
Reproduce the course regression of peak left-foot force from gait measures, then find out why its R² of 0.94 does not hold for a new runner, and what physics adds.
Files for the tutorial Predicting peak left-leg force (https://apopt.com/course/tutorials/cs13-peak-force/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.
Files
| File | Size | Rows | What it is |
|---|---|---|---|
| clean/biomechanics_clean.csv | 219.0 KB | 2,568 rows | Cleaned copy written by the tutorial |
| clean/change_log.csv | 134 B | 3 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 2.3 KB | Everything the tutorial prints, cell by cell | |
| raw/biomechanics.txt | 212.1 KB | one row per left-foot step on an instrumented treadmill, nine gait measures and the peak force (2,625 rows) | |
| raw/biomechanics2.txt | 1.0 MB | the same kind of steps with both legs and 49 columns, for the challenge (2,975 rows) |
Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.
Preview of clean/biomechanics_clean.csv
| speed | lgt | sr | sl | lkneeswing | lhipflex | lhipext | lcmvert | lkneesep | lcmtoe | lpeakforce | trial | runner |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.35 | 0.22083 | 1.47239 | 2.27521 | 96.7956 | 41.4798 | -8.88041 | 0.10011 | 0.17483 | 0.30648 | 2.853 | 1 | 1 |
| 3.35 | 0.21667 | 1.49068 | 2.24729 | 100.488 | 43.7456 | -8.45414 | 0.09074 | 0.17382 | 0.30648 | 2.992 | 1 | 1 |
| 3.35 | 0.23333 | 1.45455 | 2.30313 | 99.1766 | 42.9101 | -8.01754 | 0.09697 | 0.20828 | 0.32225 | 2.891 | 1 | 1 |
| 3.35 | 0.21667 | 1.49068 | 2.24729 | 98.1313 | 42.2504 | -8.87356 | 0.08913 | 0.18735 | 0.30384 | 2.915 | 1 | 1 |
| 3.35 | 0.22917 | 1.45455 | 2.30312 | 98.5547 | 42.8724 | -8.70448 | 0.09568 | 0.20593 | 0.32034 | 2.916 | 1 | 1 |
| 3.35 | 0.21667 | 1.48148 | 2.26125 | 99.5056 | 42.731 | -8.66638 | 0.0867 | 0.19313 | 0.29969 | 2.9 | 1 | 1 |
| 3.35 | 0.22083 | 1.46341 | 2.28917 | 98.9573 | 43.1627 | -7.91673 | 0.09182 | 0.20917 | 0.31915 | 2.909 | 1 | 1 |
| 3.35 | 0.22083 | 1.46341 | 2.28917 | 98.6214 | 41.8463 | -8.92574 | 0.09535 | 0.18736 | 0.31273 | 2.948 | 1 | 1 |
First 8 of 2,568 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
speed | m/s | treadmill speed |
lgt | s | left-foot ground contact time |
sr | strides/s | stride rate |
sl | m | stride length |
lkneeswing | degrees | left knee angle at peak swing flexion |
lhipflex | degrees | left hip peak flexion |
lhipext | degrees | left hip peak extension |
lcmvert | m | vertical travel of the center of mass |
lkneesep | m | distance between the knees at toe-off |
lcmtoe | m | center of mass to toe at contact |
lpeakforce | body weights | left-foot peak vertical force (target) |
Where it came from
- Source: Data-Driven Engineering course, Biomechanic Regression case study (apmonitor.com/dde); data courtesy of Iain Hunter, BYU Biomechanics
- Removed: nothing; the files are published by the course as they are. The name and e-mail columns of biomechanics2.txt hold only placeholders
- Permission: Published with the course under CC BY 4.0
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs13-peak-force/clean/biomechanics_clean.csv")const text = await (await fetch("https://apopt.com/data/tutorials/cs13-peak-force/clean/biomechanics_clean.csv")).text();Or download load.py / load.js.
How to cite
Tutorial CS-13: Predicting peak left-leg force. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs13-peak-force/