apopt.com

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

FileSizeRowsWhat it is
clean/change_log.csv83 B2 rowsCleaned copy written by the tutorial
clean/samples_clean.csv1.2 MB73,150 rowsCleaned copy written by the tutorial
clean/windows.csv6.0 KB289 rowsCleaned copy written by the tutorial
clean/windows_features.csv9.4 KB289 rowsCleaned copy written by the tutorial
expected/printed-output.txt3.0 KBEverything the tutorial prints, cell by cell
raw/diary.csv651 B56 rowsthe start of each part of each session (stand, walk, jog, run), in whole seconds, as the person wrote it (SYNTHETIC)
raw/phone_P1.csv375.0 KB9,350 rowsone 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.csv351.4 KB8,930 rowsInput file the tutorial opens
raw/phone_P3.csv329.2 KB8,550 rowsInput file the tutorial opens
raw/phone_P4.csv347.3 KB9,100 rowsInput file the tutorial opens
raw/phone_P5.csv354.9 KB9,250 rowsInput file the tutorial opens
raw/phone_P6.csv363.6 KB9,250 rowsInput file the tutorial opens
raw/phone_P7.csv354.6 KB9,150 rowsInput file the tutorial opens
raw/phone_P8.csv360.1 KB9,600 rowsInput 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

personstart_sactivity
P10stand
P18walk
P157jog
P184walk
P1120run
P1139walk
P1171stand
P20stand

First 8 of 56 rows.

Data dictionary

ColumnUnitMeaning
timens since 1970 (UTC)sample time
x, y, zm/s²acceleration along the phone's own axes
persontextwho carried the phone (diary)
start_ss from the start of the logsecond the part began
activitytextwhat 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/