# Tutorial CS-12: The body-weight force of each foot plant

Estimate the peak force under each foot from contact and flight times alone, compare left with right, carry one frame of error through, and check the model against a force-measuring treadmill.

Address: https://apopt.com/data/tutorials/cs12-foot-plant-force/  
License: CC BY 4.0 (tutorial); biomechanics.txt is redistributed from the Data-Driven Engineering course with credit  
Prepared: 2026-12-03

## Description

Files for the tutorial *The body-weight force of each foot plant* (https://apopt.com/course/tutorials/cs12-foot-plant-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 | description |
|---|---|---|---|
| [clean/foot_plants.csv](https://apopt.com/data/tutorials/cs12-foot-plant-force/clean/foot_plants.csv) | 1.4 KB | 43 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/cs12-foot-plant-force/expected/printed-output.txt) | 2.0 KB |  | Everything the tutorial prints, cell by cell |
| [raw/biomechanics.txt](https://apopt.com/data/tutorials/cs12-foot-plant-force/raw/biomechanics.txt) | 212.1 KB |  | one row per left-foot step on an instrumented treadmill, with contact time, stride rate and measured peak force (2,625 rows) |
| [raw/form1_ankles.csv](https://apopt.com/data/tutorials/cs12-foot-plant-force/raw/form1_ankles.csv) | 24.9 KB | 464 rows | both ankles' image position and confidence in every frame of a treadmill run filmed from behind at 30 frames per second (464 rows) |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Columns

| column | unit | meaning |
|---|---|---|
| frame | count | frame number from 0 |
| t | s | time from the first frame |
| l_ankle_y, r_ankle_y | pixels | ankle image height; y grows downward |
| l_ankle_c, r_ankle_c | 0 to 1 | the pose model's confidence |
| lgt | s | left-foot ground contact time (treadmill file) |
| sr | strides/s | stride rate (treadmill file) |
| lpeakforce | body weights | measured left peak vertical force (treadmill file) |

## Provenance

- Source: Chapter 9 example table (Data-Driven Athletics) and the Data-Driven Engineering course, Biomechanic Regression case study (apmonitor.com/dde); treadmill data courtesy of Iain Hunter, BYU Biomechanics
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 9: Gait and Cyclic Sports](https://apopt.com/book/ch09-gait/)
- Course: [Week 9 lesson](https://apopt.com/course/week/9/)
- Homework H18: [https://apopt.com/course/assess/h18/](https://apopt.com/course/assess/h18/)
- Homework P19: [https://apopt.com/course/assess/p19/](https://apopt.com/course/assess/p19/)

## How to cite

Tutorial CS-12: The body-weight force of each foot plant. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs12-foot-plant-force/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs12-foot-plant-force/raw/form1_ankles.csv")
```
