<!-- Generated by book/tools/make-index.py from the book source. -->

> Hedengren, J. (Ed.) (2027). Appendix I: Your Own Data and the Case Files. In *Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data* (pp. 509–514). IRSRI Sports Research Institute. CC BY 4.0.

# I Your Own Data and the Case Files

Every assignment in the course accepts two kinds of data: your own, and the
*case files*, a set of real athletes' data prepared for the course. The
first part of this appendix shows how to collect your own data in five ways: a
watch archive, a phone sensor log, a video, a chest-strap recording and a paper
training log. The second part describes the case files: what they contain, how
they were de-identified, where they are, and the one rule that comes with them.

> **Limits and cautions: Before you collect.**
> 
> No one has to share health data, exercise hard or buy a device to take this
> course. Every collection task has a case-file alternative. Your own files stay
> on your own device and in your own storage; you hand in results and code, and
> raw files only when an assignment asks for them and you agree. Recording anyone
> else needs written consent first (Appendix E).

## I.1 A Watch Archive

A watch's *archive* is every activity it has recorded, as files. It is the
course's standard source of training data: weeks of heart rate, pace, distance
and cadence, recorded without anyone thinking about a course. The file inside
is usually FIT, the compact binary format most watches write; some exports give
GPX or TCX instead (Section F.3). The steps
depend on how your watch stores its data, not on its brand.
Brand-by-brand steps, with the menu names as they read today, are on the
course website at https://apopt.com/course/collect, on a dated page that is
revised when the vendors change their menus.

- **A watch that syncs to the maker's web account.**  Most GPS watches do. Sign
  in to the account on a computer, find the privacy or data settings, and request
  an export of all your data or of your activities. The archive arrives as a ZIP
  file, usually through an emailed link a few hours later, and some services allow
  one request a week. Inside, the activity files may sit in a ZIP within the ZIP.
  This route gives the whole history in one step.

- **A watch or phone app that exports one activity at a time.**  Open the
  activity, find the share or export menu, and choose FIT if it is offered, then
  TCX, then GPX. Export at least 8 to 12 weeks, one file each.

- **A training platform that collects from several devices.**  Many athletes sync
  every watch to one training website. Its account settings usually offer a full
  archive too. Check that the archive holds the original activity files and not
  only a table of summaries.

- **A phone used as the watch.**  A running app on the phone records the same
  kind of track. Export each activity as GPX or TCX.

\appIfield{Then} open the archive in the Watch app (https://apopt.com/watch).
It reads FIT, GPX and TCX files, compressed copies of them, and ZIP archives,
including ZIPs inside ZIPs, in the browser; nothing is uploaded. Load the same
files in your notebook (Appendix A) and check one activity
against the Watch app: the same distance and the same average heart rate.

\appIfield{Good practice} Use the most complete archive you have, at least 8 to
12 weeks, with easy and hard days. Prefer FIT, which keeps every channel. Do not
delete the awkward workouts: the paused run, the lost heart-rate signal and the
duplicate upload are the data-audit material of Chapter 4.

\appIfield{Protect yourself} A raw archive holds more than training: your birth
date, weight and height in the profile, and the GPS start and end of every run,
which for most people is home. Never share the raw archive. Share the tables you
derive from it, with dates shifted and routes trimmed or removed
(Section A.6).

## I.2 Phone Sensors

A phone carries an accelerometer, a gyroscope, a magnetometer, a barometer and a
satellite receiver. A free sensor-logging app records them to CSV; the course
website names one that runs on both major phone systems. Choose the sensors,
set the rate to 50 to 100 Hz, choose raw acceleration including
gravity, record, and export.

\appIfield{The file} One CSV file per sensor, with a time column (often in
nanoseconds, like the strap files) and columns such as `x`, `y`,
`z` for the accelerometer and gyroscope, or `roll`, `pitch`,
`yaw` for orientation. The rate you asked for is not always the rate you
get: find the real rate from the median spacing of the time stamps
(Section F.6).

\appIfield{Recipes}

- *A walk with a known answer*: protocol P4 of
  Appendix E; cadence from the accelerometer against
  a hand count (H08).

- *Walk, jog, sprint*: the phone in a waist pocket or belt, one minute
  of each with standing still between; the data for a walk–jog–run classifier
  (H12).

- *Jumps*: the phone held to the chest; flight time from the quiet
  stretch of free fall between takeoff and landing.

- *Stairs*: the barometer on a flight of stadium steps; elevation gain
  from the pressure change.

\appIfield{Record} where the phone was worn, the rate you asked for, and a hand
count or a stopwatch time to check against. Keep the phone model out of shared
files.

## I.3 Filming for Measurement

Section 8.2 gives the reasons; this is the short form.

- Camera still, on a tripod or a stack of books, at hip height for running
  and waist height for a jump.

- Square to the movement: from the side for running, jumping and a knee
  angle; from behind or in front for a pelvis or knees moving side to side.

- Far enough back to keep the whole body in frame for the whole movement,
  and no closer. Zoom with your feet; no wide-angle lens, no digital zoom.

- 60 frames a second or more, 120 or 240 in slow motion where the phone
  offers it; 1080p; good light, outdoors in daylight if you can.

- Something of known length in the plane of the movement: a meter stick
  along the running line, a lane line, a court line.

- Ten to twenty seconds per clip, close-fitting clothing, no one else in
  the frame.

- Write down the rate you filmed at. A slow-motion clip is stored with a
  different rate in its file, and every time and speed depends on knowing the
  real one (Chapter 8).

Film yourself first. A teammate or an athlete needs to give written
consent, and for anyone under 18 a guardian's consent and the athlete's assent;
no image of a minor leaves the team. The apps analyze the clip in your browser.
For files you share, prefer the pose keypoints or a skeleton-only render to the
video itself.

## I.4 Chest-Strap Sessions

The course lends the Polar H10 chest strap and records it with the course's
Heart app (https://apopt.com/heart); Chapter 5 explains both.

- Borrow a strap in class. Wet the two electrode pads and fit the strap
  around the chest just below the chest muscles, snug enough not to slip.

- Record with the Heart app's Live Capture in a browser that supports Web
  Bluetooth (a Chromium-based browser on a computer or an Android phone), or with the phone
  logging app named on the Course Kit page, which works on any phone.

- Let the first minutes settle before the part you will analyze: dry
  electrodes give a noisy start.

- Export the CSV. Its header is `time,ecg,hr,rr,marker`, the same as the
  case files' strap recordings (Section F.2).

\appIfield{Sessions}
Five minutes of seated or lying rest in the morning
(Appendix E, P5); an interval session of three or more
one-minute efforts with one-minute rests (P7); and, if you choose, a night's
sleep. A night is several hundred thousand rows; keep it as one file per night.

\appIfield{Remember} A strap records one lead of ECG, enough to time heartbeats
and not enough to judge the health of a heart. If a recording ever shows
something that worries you, show it to a clinician, not to the class.

## I.5 A Paper Training Log

A student with no devices still has data: a log written after every session.
Kept honestly for eight weeks, it supports most of the course's analyses of load,
trends and change. Keep it on paper or in a spreadsheet with these columns.

| **Date** | **Session** | **Distance** | **Time** | **Effort 1–10** | **Sleep (h)** | **Notes** |
|---|---|---|---|---|---|---|
| 2027-01-12 | Easy run | 6.0 km | 34:10 | 3 | 7.5 | cold, windy |
| 2027-01-13 | 6 $\times$ 1 min hard | 5.2 km | 30:00 | 8 | 6.0 | legs heavy |

Rate the effort when the session ends, for the whole session, on the same 1 to
10 scale every time; effort times minutes then gives each session a simple load
score. Fill the log the same day; a log reconstructed at the end
of the week records what you remember, not what you did.

## I.6 Check Your File Before You Use It

A file you collected yourself has not been checked by anyone. Before any
analysis, give it the one-minute check in Table I.1:
one known answer, found a second way. Write the result in your change log. A file
that fails is still useful, as long as you say how it failed.

*Table I.1. A one-minute check for each kind of data you collect.*

| **Data** | **The check** | **Typical failure** |
|---|---|---|
| Watch archive | One activity on a course of known length (a track, a measured loop): the file's distance against the true one. The number of activities against what you remember doing. | Duplicate uploads of the same run; a paused watch; heart rate missing from the first minutes |
| Phone sensors | The real sample rate from the median spacing of the time stamps; cadence against a hand count. | A rate well below the one requested; gaps when the screen locked |
| Video | The capture rate you wrote down against the rate stored in the file; the frames of one event (a flight, a contact) counted by hand. | A slow-motion clip stored at 30 frames a second; a camera that moved |
| Chest strap | The `hr` column against a 10-second pulse count by hand; the share of the ECG the Heart app grades usable. | A noisy start from dry electrodes; RR values in seconds instead of milliseconds in an older file |
| Training log | Every day has a row, including rest days; the units are the same in every row. | Rows filled in at the end of the week; kilometers and miles mixed |

## I.7 Your Own Case File

If you bring your own data, build your own case file with the same folders as
the published ones (Section I.10): `watch/`,
`heart/`, `video/`, and a `README.md` with your data
dictionary, the provenance of each file and a change log. Then any assignment
written for a case file runs on yours. It stays on your device.

## I.8 The Case Files

The case files are real athletes' training data, given for this course. On the
first day you choose one athlete and follow that athlete all term: their season
of watch data, their heart recordings, their form videos and their race plan.
Homework asks what you would tell that athlete's coach.

\paragraph{The instructor's case file.} The instructor, John Hedengren, is the
first case file and the only one under a real name: a watch archive,
older activity summaries from a second watch, and chest-strap recordings of
sleep and daytime sessions; cycling video is added during the term. It is the default for the book's worked examples and for homework.

\paragraph{The other athletes.} About eight more case files, added during the
term, come from athletes who agreed to the use of their data. Each has a pseudonym, a sport, an age band,
a season goal and a short story. They serve where one person's data cannot:
comparisons between athletes, splits by athlete, youth running form, sprint
starts, jumps and other sports.

*Table I.2. What a case file can contain. Not every athlete has every kind, and form videos and race plans are added during the term.*

| **Kind** | **What is in it** | **Weeks** |
|---|---|---|
| Watch archive | Tables built from the archive: one row per activity (date, sport, distance, time, average and maximum heart rate, cadence, elevation gain), per-second records, lap splits and weekly totals | 1, 4, 6, 11 |
| Chest-strap recordings | Sleep, workout and interval sessions as CSV (`time`, `ecg`, `hr`, `rr`, `marker`), short excerpts that load quickly, the beat-to-beat (RR) intervals of each session, and a nightly heart rate variability table | 5, 11 |
| Form videos | Running from the side and from behind; sprint starts filmed at 30 and 120 fps; jumps; swimming; cycling; throwing. For athletes other than the instructor, pose keypoints and a skeleton-only render instead of the video | 3, 8, 9, 10 |
| Race plans | De-identified race plans and coach briefs, as models for presentations | 6, 9, 13 |

\paragraph{Do not depend on one number.} The case files are real and are
sometimes revised, so an exercise that uses them checks your method (“your two
estimates should agree within\ldots”), not a fixed answer. Cite the version you
used, from the folder's README.

## I.9 How They Were De-identified

Every file passed the same preparation before it was published. The originals
stay off the web.

- **Names.**  Replaced by a pseudonym everywhere: file names, folder names, the
  text of PDFs, the athlete fields inside FIT files and the settings in results
  files. Only the instructor's folder carries a real name.

- **Age.**  An age band and a training age, never a birth date.

- **Dates.**  Each athlete's dates are shifted by a fixed, secret number of days,
  which keeps the weekdays and the spacing between sessions.

- **Location.**  GPS coordinates are removed, keeping distance, speed, elevation
  change and cadence. Where a map teaches something, only a route on a public
  track or race course is kept, with its start and end trimmed, so that no route
  leads to anyone's home. The instructor's home-area GPS is removed too.

- **Video.**  Other athletes appear only as pose keypoints and a skeleton-only
  render, which carry the measurements without a face. The instructor's own video
  is shown as recorded.

- **Heart data.**  ECG, heart rate and RR intervals are kept; free-text notes are
  dropped; no report with a clinical sound and a real name is published.

- **Nothing else.**  No rosters, contact details or birth dates anywhere.

- **A record.**  Each file has a provenance entry: its source, what was removed,
  the basis of permission, and the date it was prepared.

## I.10 Where They Are

The case files are in the course's public data repository, at
https://apopt.com/data/athletes/, one folder per athlete. At the start of
the term it holds the instructor's case file; video and the other athletes' case
files are added during the term, each with the same layout, and the repository's
front page lists what is there today.

\needspace{13\baselineskip}

**Listing I.1.** The case-file folders at the start of the term. Every folder also holds a README.

```text
apopt.com/data/athletes/
  jh/               the instructor's data, named
    watch/          activities.csv, weekly.csv, laps.csv,
                    records/<activity>.csv (one row a second)
    heart/          sessions.csv, hrv_nightly.csv, and for each
                    session <session>.csv.gz (full ECG),
                    <session>_rr.csv, <session>_excerpt.csv
    coros-history/  sessions_fit.csv, activities_clean.csv,
                    weekly.csv: two and a half years of
                    summaries in the watch's own units
                    (read the README first)
  added during the term:
    jh/video/       clips and pose files
    a02/ ...        de-identified athletes, the same structure
```

Each dataset folder has a page to read in the browser, a `README.md` with
the description, the columns and units, how it was de-identified, its license and
how to cite it, a `datapackage.json` that describes the files for a
program, a short preview, and three-line loaders for Python and JavaScript. Every
file has a direct address, so a notebook can read it with
`pd.read_csv(<address>)` and you can hand the address to an AI assistant.
The book's own example files are beside them, at
`apopt.com/data/book/<chapter folder>/`.

## I.11 The Rule

> **Key idea.**
> 
> Never try to find out who a case-file athlete is.

That means: do not match dates, distances or race results to published results
or to social media; do not search for a face, a club, a course or a race; do not
combine a case file with any other data to narrow down a person; and do not ask
an AI assistant to do any of this for you. De-identification lowers the risk;
it does not remove it, and these athletes trusted the course with their data.

If you think you recognize someone, stop, do not tell anyone else, and tell the
instructor. If you find something in a file that should not be there, a name, a
face or a home route, report it the same way; every page of the repository has a
removal-request address. Use the case files for learning in this course and as
their license allows, and cite them when you do.
