apopt.com

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

FileSizeRowsWhat it is
clean/biomechanics_clean.csv219.0 KB2,568 rowsCleaned copy written by the tutorial
clean/change_log.csv134 B3 rowsCleaned copy written by the tutorial
expected/printed-output.txt2.3 KBEverything the tutorial prints, cell by cell
raw/biomechanics.txt212.1 KBone row per left-foot step on an instrumented treadmill, nine gait measures and the peak force (2,625 rows)
raw/biomechanics2.txt1.0 MBthe 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

speedlgtsrsllkneeswinglhipflexlhipextlcmvertlkneeseplcmtoelpeakforcetrialrunner
3.350.220831.472392.2752196.795641.4798-8.880410.100110.174830.306482.85311
3.350.216671.490682.24729100.48843.7456-8.454140.090740.173820.306482.99211
3.350.233331.454552.3031399.176642.9101-8.017540.096970.208280.322252.89111
3.350.216671.490682.2472998.131342.2504-8.873560.089130.187350.303842.91511
3.350.229171.454552.3031298.554742.8724-8.704480.095680.205930.320342.91611
3.350.216671.481482.2612599.505642.731-8.666380.08670.193130.299692.911
3.350.220831.463412.2891798.957343.1627-7.916730.091820.209170.319152.90911
3.350.220831.463412.2891798.621441.8463-8.925740.095350.187360.312732.94811

First 8 of 2,568 rows.

Data dictionary

ColumnUnitMeaning
speedm/streadmill speed
lgtsleft-foot ground contact time
srstrides/sstride rate
slmstride length
lkneeswingdegreesleft knee angle at peak swing flexion
lhipflexdegreesleft hip peak flexion
lhipextdegreesleft hip peak extension
lcmvertmvertical travel of the center of mass
lkneesepmdistance between the knees at toe-off
lcmtoemcenter of mass to toe at contact
lpeakforcebody weightsleft-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/