apopt.comCBE 493R Data-Driven Athletics

Course / Weeks / Week 4

Part 1: Foundations · Week 4 · Tue, Jan 26

Chapter 4: Athlete Data in Python

You wore a chest strap and a watch for the same interval session. The two files have gaps, a few impossible beats, and clocks that do not agree. What was your heart rate, second by second, and how do you know?

  1. Ask
  2. Collect (this week)
  3. Check (this week)
  4. Interpret (this week)
  5. Coach
  6. Reassess
The left trace has gaps, noise and a spike. The right trace shows the underlying pattern on a clean shared baseline.

Read

Read Chapter 4 pp. 83–119

  1. 4.1A Working Setup
  2. 4.2Tables and Time Series
  3. 4.3Cleaning
  4. 4.4Resampling and Aligning
  5. 4.5Smoothing and Differentiating
  6. 4.6Describing Data
  7. 4.7Charts That Make One Point
  8. Read to here before Tuesday
  9. 4.8The App Results Files
  10. 4.9Coding with an Assistant
  11. 4.10Telling the Athlete
  12. 4.11Build Step B-4: A CSV File on a Canvas
  13. 4.12Summary
  14. 4.13Exercises
  15. Read to here before Thursday

Bring to class

  • A phone with a free sensor-logging app; a heart-rate strap or watch if you have one; the results files you saved in weeks 1 and 3; a laptop with a web browser.

Data you collect: A phone sensor log.

Apps: Watch

No one has to exercise hard, buy a device, or share health data: every collection has a case-file path.

Lecture slides

Class 7
Files You Can Defend
29 slides · about 38 min · PDF
Class 8
Results Files, Assistants and Honest Charts
24 slides · about 34 min · PDF

Classes

Class 7 · Tue, Jan 26

Tables and time series, cleaning, resampling and aligning

Due: H07 Does frame rate matter?

Class 8 · Thu, Jan 28

Smoothing, describing data, charts that make one point, app results files

Due: H08 Phone sensor log

Homework

H08 · due Class 8, Thu, Jan 28

Phone sensor log

Core exercises on tables, cleaning and resampling. Record a walk with a phone sensor-logging app (Exercise 4.14); load, clean, resample and plot it.

H09 · due Class 9, Tue, Feb 2

Dashboard 1: a season in four charts

From the instructor's watch data: audit the data (missing heart rate, pauses, units, duplicates), then build a four-panel overview where each chart makes one point.

Tutorials

From a raw file to something an athlete can act on. The case study is this week's worked example in class; the quick tutorials prepare you for it and for the homework. The data workflow · Your athlete record

Case study CS-4 · 60 min

A messy watch export to a clean table

Take 693 activity summaries in a watch's own field names and units, audit every unit with an identity, write the cleaning rules first, keep a change log, and produce a quarterly running summary a coach can trust.

Case study CS-5 · 75 min

Phone in a pocket: walk, jog, or run?

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).

Build step B-4: A CSV file on a canvas

File input, parsing, plotting a time series.

Open the build step

Exercise board

34 exercises in 10 strands; 8 are CORE, the set homework draws on. Tick them off as you go; ticks stay in this browser.

Data for this week

Go further