Data / tutorials / cs05-walk-jog-run
Tutorial CS-5: Phone in a pocket: walk, jog, or run?
Tutorial
Profile, clean and window eight phone accelerometer logs (Part 1), then classify walk, jog and run for a person the model has never seen, against the majority-class baseline, with balancing applied to the training rows only (Part 2).
Files for the tutorial Phone in a pocket: walk, jog, or run? (https://apopt.com/course/tutorials/cs05-walk-jog-run/). 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/change_log.csv | 83 B | 2 rows | Cleaned copy written by the tutorial |
| clean/samples_clean.csv | 1.2 MB | 73,150 rows | Cleaned copy written by the tutorial |
| clean/windows.csv | 6.0 KB | 289 rows | Cleaned copy written by the tutorial |
| clean/windows_features.csv | 9.4 KB | 289 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 3.0 KB | Everything the tutorial prints, cell by cell | |
| raw/diary.csv | 651 B | 56 rows | the start of each part of each session (stand, walk, jog, run), in whole seconds, as the person wrote it (SYNTHETIC) |
| raw/phone_P1.csv | 375.0 KB | 9,350 rows | one of eight SYNTHETIC phone accelerometer logs (P1 to P8), about three minutes at about 50 samples a second; time in ns, x, y, z in m/s² along the phone's axes |
| raw/phone_P2.csv | 351.4 KB | 8,930 rows | Input file the tutorial opens |
| raw/phone_P3.csv | 329.2 KB | 8,550 rows | Input file the tutorial opens |
| raw/phone_P4.csv | 347.3 KB | 9,100 rows | Input file the tutorial opens |
| raw/phone_P5.csv | 354.9 KB | 9,250 rows | Input file the tutorial opens |
| raw/phone_P6.csv | 363.6 KB | 9,250 rows | Input file the tutorial opens |
| raw/phone_P7.csv | 354.6 KB | 9,150 rows | Input file the tutorial opens |
| raw/phone_P8.csv | 360.1 KB | 9,600 rows | Input file the tutorial opens |
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 raw/diary.csv
| person | start_s | activity |
|---|---|---|
| P1 | 0 | stand |
| P1 | 8 | walk |
| P1 | 57 | jog |
| P1 | 84 | walk |
| P1 | 120 | run |
| P1 | 139 | walk |
| P1 | 171 | stand |
| P2 | 0 | stand |
First 8 of 56 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
time | ns since 1970 (UTC) | sample time |
x, y, z | m/s² | acceleration along the phone's own axes |
person | text | who carried the phone (diary) |
start_s | s from the start of the log | second the part began |
activity | text | what the person was doing |
Where it came from
- Source: Data-Driven Athletics tutorials (IRSRI, 2027): synthetic phone accelerometer logs and diary made by prepare.py; no real person
- Removed: nothing; the data are synthetic
- 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/cs05-walk-jog-run/raw/diary.csv")const text = await (await fetch("https://apopt.com/data/tutorials/cs05-walk-jog-run/raw/diary.csv")).text();Or download load.py / load.js.
How to cite
Tutorial CS-5: Phone in a pocket: walk, jog, or run?. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs05-walk-jog-run/