Recovery log
78 days
Feb 9, 2026 – Apr 28, 2026
One row per morning: sleep (hours), HRV (ms, as logged), resting heart rate (bpm), soreness and fatigue (1–5 self-ratings) and hydration (1–5 urine-colour scale).
Graduate analytics capstone · CIS 627 · Spring 2026
Athlete Performance Analytics & Decision-Support Dashboard
I tracked my own sprint times, lifts and daily recovery for 78 days, analysed the data in Python, and wrote Coach AI: a rule-based system that turns each morning's recovery numbers into a training call. This page shows the real data, the real rules, and what the evidence does and doesn't support.
Drag through the log to see what Coach AI recommended each day.
These are the outputs of the original capstone rules on the logged data. Rule-based guidance, not medical advice.
Athletes collect training and recovery numbers but rarely turn them into day-to-day decisions.
A tracking system in Google Sheets, a Python analysis in Google Colab, and Coach AI: rules that turn each morning's recovery data into a training call.
Everything in the capstone: designed the sheets, logged the data, and wrote the analysis and Coach AI rules in Python. This page was built afterwards with AI assistance.
Step 1 of 7
Athletes log a lot of numbers and rarely turn them into decisions. Sprint times sit in one place, lifts in another, and how you slept or how sore you feel is mostly kept in your head.
As a professional football player I wanted to know whether my own recovery data could tell me when to push, when to hold steady and when to back off. Coach AI was my CIS 627 analytics capstone: collect three kinds of training data in one structured place, look for real patterns, and build a system that turns each day's inputs into a clear recommendation.
Training only pays off if the body adapts. Sleep, heart-rate variability (HRV), resting heart rate, soreness and fatigue are common, cheap signals of how well someone is recovering. If they move together with performance, they can support better day-to-day training choices. If they don't, that's worth knowing too.
Step 2 of 7
Three tables from one Google Sheet. Every figure on this page is calculated from them; nothing is simulated.
78 days
Feb 9, 2026 – Apr 28, 2026
One row per morning: sleep (hours), HRV (ms, as logged), resting heart rate (bpm), soreness and fatigue (1–5 self-ratings) and hydration (1–5 urine-colour scale).
199 reps
101 timed, 15 dated sessions
Acceleration starts over 10, 20 and 30 yards, 20-yard flying sprints, 40 and 60-yard max-velocity runs and 100/200-yard tempo runs, each with intensity and start type.
498 sets
282 with a weight, 30 training days
Exercise, set, reps, weight (lb), a per-set effort rating and session focus across 21 exercises. Sets I couldn't do are marked "Injury" rather than given a made-up number.
Preparing this page meant re-checking the source sheets line by line. These issues were found, documented and handled transparently. Corrected values keep the original next to them.
From Mar 21, 2026, the recovery numbers start repeating a near-identical 10-day cycle: for 28 consecutive days, every HRV value is within ±2 of the value ten days earlier. That's unusual, so I checked those dates against my device app: the HRV, resting heart rate and sleep values match what's in the sheet.
Some of my self-ratings in this stretch also nearly repeat: fatigue for Mar 31–Apr 9 and Apr 10–19 matches on 9 of 10 days, and hydration on 8 of 10. Those can't be checked against a device. Because the relationships between measures differ between the two stretches, the dashboard shows each phase separately.
HRV by day. The shaded area is phase B. The dashed line is the same series shifted forward 10 days; in phase B the two lines almost overlap.
Step 3 of 7
Pick a period and every recovery figure and chart below recalculates from the daily data.
Daily value with a 3-day average
Every timed rep, per session. Lower is faster.
Heaviest logged set per session
Two separate measures, so two charts. Volume = weight × reps for logged barbell and dumbbell sets.
Logged volume (lb)
Planned sets with a weight logged (%)
Volume falls across the five weeks, but so does the share of sets that were logged. The drop is at least partly missing data, not lighter training.
Choose two measures. The line is a least-squares fit for the selected period.
Correlation matrix (Pearson r)
Blue = move in opposite directions, red = move together. Faded numbers aren't statistically significant (p ≥ 0.05).
Correlation is not causation. These are one person's numbers over a few weeks. A strong r says two measures moved together here; it doesn't prove one caused the other, and it may not hold for anyone else.
Each dot is one sprint session: its average time compared with that drill's overall average, against that morning's recovery.
The recovery log for the selected period, with both Coach AI calls. Select a column header to sort.
Step 4 of 7
What the data shows, how strong the evidence is, and what it means for training. Small sample, one athlete: read these as patterns, not proof.
Charts exactly as produced in the capstone Colab notebooks. The first three used the 32 days logged by Mar 13; the last uses all 78.




Step 5 of 7
Coach AI is rule-based: a short list of if-then checks written in Python. It isn't machine learning and it doesn't predict injuries. The rules below are copied from the capstone notebook, thresholds unchanged.
Checks run in order; the first match wins.
def coach_ai(row):
sleep = row['sleep_hours']
hrv = row['hrv']
resting_hr = row['resting_hr']
soreness = row['sorness']
fatigue = row['fatigue']
if fatigue >= 4 or soreness >= 4:
return "Recovery"
elif hrv >= 60 and resting_hr <= 45 and fatigue <= 2:
return "Push"
elif sleep < 6:
return "Light"
else:
return "Maintain"
df['recommendation'] = df.apply(coach_ai, axis=1)Uses rolling 3-day averages of fatigue and HRV so one bad night doesn't swing the call.
df['fatigue_avg_3'] = df['fatigue'].rolling(3).mean()
df['hrv_avg_3'] = df['hrv'].rolling(3).mean()
def coach_ai_v2(row):
sleep = row['sleep_hours']
fatigue = row['fatigue']
fatigue_avg = row['fatigue_avg_3']
hrv_avg = row['hrv_avg_3']
if fatigue_avg >= 4:
return "Recovery (Trend)"
elif hrv_avg >= 60 and fatigue <= 2:
return "Push (Recovered)"
elif sleep < 6:
return "Light (Low Sleep)"
else:
return "Maintain"How often each version made each call.
Version 1
Version 2
Version 2's counts (53 Maintain, 22 Light, 3 Recovery) match the notebook's output exactly. Overall status from the notebook's summary rule: Balanced Training.
There were 28 high-stress days (fatigue or soreness 4+). Version 1 called all of them Recovery. Version 2 called 2 of them Recovery, 12 Light and 14 Maintain.
Trend-based rules do stop the system overreacting to a single bad morning, which was the goal. But on this data they also hid most single-day warning signs, and version 2 never checks soreness at all. A better design would keep a same-day safety check alongside the trend.
Version 2 also never produced a Push call. Its push rule needs a 3-day HRV average of 60 or more, and the highest 3-day average in the log was 59.67. Version 1 made 10 Push calls from single high-HRV days.
Enter sample numbers and both versions run the original logic instantly. For illustration only: Coach AI doesn't diagnose injuries, guarantee readiness or predict injury risk.
Step 6 of 7
How raw entries became a recommendation. Steps 1 to 8 are the original capstone. The dashed panel below was added afterwards, with AI assistance, to publish it here.
Logged sprints, sets and morning recovery into three Google Sheets tabs with fixed columns.
Exported to CSV; in pandas, lower-cased and renamed columns and handled the misspelt "sorness" column.
head() and describe() on each table to check counts, ranges and gaps.
Correlation matrix, then a linear regression of fatigue on sleep, HRV and resting HR (scikit-learn).
Seaborn heatmap and scatter plots; a Matplotlib line chart of HRV and fatigue over time.
Rule-based coach_ai() and coach_ai_v2() functions applied to every day with df.apply.
Averages, recommendation counts, high-stress days and an overall training status.
Exported coach_ai_results.csv and wrote the findings up in progress reports.
To publish the project, a reproducible Python pipeline (standard library only) reads the workbook export, validates the schema, normalises labels, flags and corrects issues without deleting anything, detects the repeating-pattern phase, re-runs the original analysis and rules, and writes the sanitized files this page uses. Automated tests check that the browser code gives exactly the same correlations, p-values and Coach AI calls as the pipeline, and that the notebook's published numbers are reproduced.
The same path an analyst takes with business data: raw records, structured tables, measurable indicators, charts, then a decision.
2026-02-09, sleep 4.42, HRV 36, RHR 49, soreness 1, fatigue 4Standardised 28 exercise spellings into 21 names, kept "Injury" as a status instead of a zero, fixed day/month-swapped dates with the original preserved.
Descriptive statistics for every table; found that a date display format silently drops the day from 12 dates in CSV exports.
Pearson correlations with p-values; regression R² in-sample and leave-one-out, so the model isn't graded on data it was fitted to.
Session-by-session sprint times and top-set progressions; rolling averages for the trend rules.
A lag-10 comparison exposed a repeating pattern that ordinary summary statistics hid.
Average sleep, HRV, resting HR, fatigue and soreness per period; share of planned sets actually logged as a data-completeness KPI.
Chart type chosen by the question: lines for change over time, scatter for relationships, a diverging heatmap for correlations, bars for counts.
Each finding pairs a number with its sample size, its confidence and what it means for training.
What the original code actually does, verified from the notebooks.
read_csv, column clean-up with .str.lower().str.strip(), rename, column selection, value_counts.if / elif / else rules.df.apply(..., axis=1) to score every row; .rolling(3).mean() for trend features..corr(), SciPy imported, scikit-learn LinearRegression and r2_score, with dropna before fitting.to_csv("coach_ai_results.csv").coach_ai() next to a corrected version, with comments noting the column-name fixes.Not in the original: error handling, automated tests or a multi-file program. The notebooks are single-file analysis scripts. The pipeline, tests and dashboard code were added afterwards with AI assistance (Claude).
Coach AI is an athlete-analytics project, not a security system. But the habits it needs — trustworthy data, careful handling, checking inputs, spotting patterns that don't belong — are the same ones security work depends on. Each concept is marked by where it stands.
Original Missed sets are recorded as "Injury" or "N/A" rather than invented numbers.
AI-assisted The pipeline audits every table, corrects nothing silently and keeps original values beside fixes. Analysis is split by data-quality phase.
AI-assisted Only training and recovery metrics are published. The source workbook stays out of the website repository (git-ignored), and no Google Drive, Docs or Colab links appear on the page, so nothing depends on my Google account.
Extension Publishing weekly aggregates instead of daily physiological values would expose even less.
AI-assisted Schema, type, range, duplicate, ordering and formula-injection checks, in the pipeline and in the browser demo below.
Already on the site This page is read-only static files: there is no login and no way to edit data from the browser. My separate private dashboard on this site sits behind Cloudflare Access with a second token check in its own server code.
Extension An admin upload route for new Coach AI data would belong behind that same Access policy.
AI-assisted Every change to the published data goes through a Git commit, which records who changed what and when.
Extension No application-level audit log exists, because there is no admin editing yet. If uploads were added, each one should be logged with a timestamp, user and file hash.
Transferable The same methods apply to security data: rolling baselines for login counts per account, flagging values far from an account's normal range, and the lag comparison that found the repeating pattern here can flag replayed or duplicated log entries. Nothing on this page analyses real security data.
An extra portfolio feature, built afterwards with AI assistance: check a recovery CSV against the Coach AI schema before trusting it. The file is read in your browser and never uploaded anywhere. This checks data quality; it doesn't detect attacks.
Also checked: real calendar dates, no duplicate dates, dates in order (with a day/month swap hint), matching field counts, cells that start with = + - @ (spreadsheet formula injection), file size up to 1 MB and up to 5,000 rows.
Results appear here.
Why this matters for both fields. A dashboard built on bad rows gives confident wrong answers, like a recommendation from a mistyped date. In security, the same checks stop malformed or malicious input before it reaches a spreadsheet, a database or an analyst.
Skills shown by my original capstone work. Academic and personal project work, not professional experience.
apply, rolling, filteringNot listed as my skills: the data pipeline, automated tests, browser charts and CSV checker on this page, which were built afterwards with AI assistance (Claude). The original capstone code is linked below.
Step 7 of 7
Sanitized, public copies. The original Google Drive files stay private.
How this page was made. The data, analysis notebooks and Coach AI rules are my original capstone work. The page, its charts, the data pipeline, the tests and the CSV checker were built afterwards with AI assistance (Claude), working from those original files.
The capstone was documented in a proposal and several short progress write-ups rather than one final paper. They aren't published here because they're working drafts; their substance is summarised on this page and they're available on request.