apopt.com

Data / tutorials / q13-ecg-beats

Tutorial Q-13: Find the beats in ten seconds of ECG

Tutorial

Read the clock of a raw chest-strap ECG file, find every R peak in ten seconds with a band-pass, slope and threshold, and check the count against the strap.

Files for the tutorial Find the beats in ten seconds of ECG (https://apopt.com/course/tutorials/q13-ecg-beats/). 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
expected/printed-output.txt393 BEverything the tutorial prints, cell by cell
raw/2026-06-26_2141_day_excerpt.csv679.2 KB23,379 rowsthree minutes of the instructor's resting ECG at about 130 samples a second (columns time, ecg, hr, rr, marker)

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_2141_day_excerpt.csv

timeecghrrrmarker
1782531727972726798-0.098
1782531727980426043-0.095
1782531727988125288-0.090
1782531727995824533-0.088
1782531728003523778-0.085
1782531728011223023-0.085
1782531728018922268-0.083
1782531728026621513-0.078

First 8 of 23,379 rows.

Where it came from

  • Source: Data-Driven Athletics tutorials (IRSRI, 2027)
  • Removed: nothing; inputs are synthetic, published course data, or the instructor's own
  • 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/q13-ecg-beats/raw/2026-06-26_2141_day_excerpt.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/q13-ecg-beats/raw/2026-06-26_2141_day_excerpt.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial Q-13: Find the beats in ten seconds of ECG. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q13-ecg-beats/