apopt.comCBE 493R Data-Driven Athletics

The data workflow

The course pathway (Ask, Collect, Check, Interpret, Coach, Reassess) says why each piece of work is done. These nine steps say what is done to the data on the way. They are the steps of the Machine Learning for Engineers course'sData Engineering pages, shown here with what each means for athlete data and the mistake it most often hides. Every tutorial marks the steps it uses.

  1. 1 Gather Collect

    A watch export, a phone video, a chest-strap file, a sensor log and a paper log, brought into one folder and joined on time or on a key. The raw file is never edited.

    The mistake it hides: Joining on time across two clocks that disagree; editing the original.

    Book: 4.2 Tables and time series, 4.4 Resampling and aligning · Appendix F Data formats · Engineering version: Gather data

    Tutorials that practice this step (40)
  2. 2 Statistics Check

    Count, mean, spread and quartiles per session and per athlete: a profile that shows how much data there is and how good it is.

    The mistake it hides: Pooling athletes and reading the pooled mean as if it described one of them.

    Book: 4.6 Describing data · 11.1 One athlete, many days · Engineering version: Statistics

    Tutorials that practice this step (36)
  3. 3 Visualize Check

    A first look at the raw data for range, gaps and bad values, before any model: −9999 codes, heart-rate dropouts, GPS jumps, keypoint spikes.

    The mistake it hides: Plotting only the cleaned data, so the faults are never seen.

    Book: 4.7 Charts that make one point · Engineering version: Visualize

    Tutorials that practice this step (43)
  4. 4 Cleanse Check

    Rules written before the data are seen, applied to a copy, with a change log: dropouts, low-confidence keypoints, a failed sensor.

    The mistake it hides: Removing the outlier that was the event: a personal best and a fall both look like outliers.

    Book: 4.3 Cleaning · 8.7 Cleaning keypoints · Engineering version: Cleanse

    Tutorials that practice this step (23)
  5. 5 Features Interpret

    Contact and flight time, duty factor, joint angles at an event, rolling load, categories as numbers, and features that come from physics.

    The mistake it hides: Features that contain the answer.

    Book: 11.4 Regression, 11.7 Leakage · 3.7 The running stride · Engineering version: Features

    Tutorials that practice this step (30)
  6. 6 Balance Interpret

    Made against missed shots, walk against run windows, rare events: oversample or undersample the training rows only.

    The mistake it hides: Balancing the test set, which changes the question the score answers.

    Book: 11.6 Classification · Engineering version: Balance

    Tutorials that practice this step (1)
  7. 7 Scale Interpret

    Features in different units (seconds, degrees, meters) brought onto one range so that distance-based models treat them fairly.

    The mistake it hides: Fitting the scaler on all rows before the split, so the test rows inform the training.

    Book: 11.4 Regression · Engineering version: Scale

    Tutorials that practice this step (3)
  8. 8 Split Interpret

    Training, validation and test sets by athlete, by day or in time order; cross-validation by group.

    The mistake it hides: Splitting by row when rows share an athlete: the model memorizes the athlete.

    Book: 11.7 Leakage, 11.8 Time series · Engineering version: Split

    Tutorials that practice this step (8)
  9. 9 Deploy Coach

    A notebook, a one-page report, or a page that runs in the browser; a file analysed afterwards (batch) or a strap read live (streaming).

    The mistake it hides: A model with no way to reach the athlete.

    Book: Chapter 12 · Chapter 13 · Engineering version: Deploy

    Tutorials that practice this step (7)

Reassess

The workflow does not end at a deployed model. The same test, with the same protocol, goes into the athlete record, and the next decision is judged against the noise of the test.

Four questions to keep asking

  1. The scaler learned the mean and spread of the runners you are about to test on. How much does the score change when it is fitted on the training runners only? (CS-13)
  2. The largest peak force in a file may be the step before an injury, or a typing error. What would you need to know to tell them apart?
  3. Ten more athletes, or a better contact-time measurement? Decide from the profile and the first plot.
  4. Which steps did the AI assistant get wrong when you asked it to run the whole workflow?