apopt.com

Data / tutorials / cs06-strap-recovery

Tutorial CS-6: From a chest-strap recording to a recovery number

Tutorial

Check a chest strap's beat intervals against its own ECG, clean two nights of sleep with a written artifact rule, compute a nightly RMSSD with an honest interval, and find out what two nights can and cannot say about a baseline band.

Files for the tutorial From a chest-strap recording to a recovery number (https://apopt.com/course/tutorials/cs06-strap-recovery/). 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/2026-06-26_beats.csv341.1 KB18,027 rowsCleaned copy written by the tutorial
clean/2026-06-28_beats.csv322.6 KB17,082 rowsCleaned copy written by the tutorial
clean/change_log.csv217 B6 rowsCleaned copy written by the tutorial
clean/nightly_rmssd.csv152 B2 rowsCleaned copy written by the tutorial
clean/windows.csv6.4 KB146 rowsCleaned copy written by the tutorial
expected/printed-output.txt1.8 KBEverything the tutorial prints, cell by cell
raw/2026-06-26_2347_sleep_rr.csv304.4 KB18,027 rowsthe strap's beat intervals for the night of 26 June 2026, one row per beat (t_s seconds from the start, rr_ms, hr_bpm where reported), 18,027 beats
raw/2026-06-28_2343_sleep_excerpt.csv674.9 KB23,433 rowsthree minutes of raw ECG from the middle of the second night, about 130 samples a second, in the strap's five-column format (time, ecg, hr, rr, marker)
raw/2026-06-28_2343_sleep_rr.csv276.1 KB17,082 rowsthe same for the night of 28 June 2026, 17,082 beats
raw/hrv_nightly.csv202 B2 rowsthe case file's own nightly summary (median five-minute RMSSD), made by its preparation script, not by the strap; used only for comparison in Step 5

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/2026-06-26_2347_sleep_rr.csv

t_srr_mshr_bpm
0.561115652
2.242121752
3.364127552
4.485123951
5.606121751
7.288130551
8.409124751
9.53127450

First 8 of 18,027 rows.

Data dictionary

ColumnUnitMeaning
t_sstime of the beat from the start of the recording
rr_msmsinterval since the previous beat as timed by the strap
hr_bpmbeats/minthe strap's displayed heart rate where it was written on a beat row
time (excerpt)ns since 1970-01-01 UTCsample time
ecg (excerpt)mVsingle-lead ECG
rr (excerpt)msstrap interval on the rows where one was written

Where it came from

  • Source: The instructor's own Polar H10 recordings (course case file athletes/jh/heart), published under his name
  • Removed: nothing beyond the case file's own preparation (names in file names, free-text notes); no location data exists in these files
  • 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/cs06-strap-recovery/raw/2026-06-26_2347_sleep_rr.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/cs06-strap-recovery/raw/2026-06-26_2347_sleep_rr.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial CS-6: From a chest-strap recording to a recovery number. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs06-strap-recovery/