← All projects

Season Heart-Rate Analytics

Line chart of my heart rate across the fall 2026 season, then minute by minute around the UC San Diego match.0255075100bpm150200Aug 28Sep 15Oct 1Oct 15Nov 1Nov 14Aug 29 · CSU BakersfieldOut injuredSep 10 · UC San Diego →Sep 9Sep 10Sep 11191 bpmBack for the full 90 minutes
  1. My heart rate, fall 202679 days of Fitbit readings, from Aug 28 to Nov 14, averaged per day. Press Next to build the chart.
  2. Night: the baselineFrom midnight to 7 am my heart rate rests around 45–55 bpm. The tall spikes are a few nights that ran much higher.
  3. Daytime and the daily averageDaytime readings sit higher and swing with training and matches. The thick line is the average of the whole day.
  4. Aug 29 · CSU BakersfieldThe first match of the window: a daily average of 64.8 bpm.
  5. Out injuredA meniscus injury kept me out against LMU (Sep 2) and UC Riverside (Sep 6). On Sep 10 I was back against UC San Diego.
  6. Sep 9–11, minute by minuteThe day before, match day and the day after, one point per minute. Grey: nights. Red block: the match evening. Training on Sep 9 already breaks through the top of the chart. The match goes further.
  7. Off the chart: 191 bpmBack for the full 90 minutes against UC San Diego, my heart rate peaked at 191 bpm at 7:47 pm, almost twice the top of the season chart.
  8. More matches coming soonOn the 16 match days I played, my daily average was 7.3 bpm higher than on the other days, and every match peaked above 180 bpm. I am adding a minute-by-minute view for every match.Explore the matches so far in Tableau ↗
5 / 8

The problem

As an NCAA Division I soccer player at UNLV, I wanted to see how my heart rate changes between match days, training days and rest days over a full season, using my own data instead of a public dataset, and to build the whole process myself, from collection to visualization.

Approach

I wore a Fitbit Air throughout the fall 2026 season and built a four-step pipeline:

  1. Collect: a JavaScript (Node.js) importer signs in with OAuth and pulls my heart-rate readings from the Google Health API.
  2. Store: readings land in PostgreSQL on Google Cloud SQL. Each reading is unique by source and timestamp, so re-running the importer never creates duplicates.
  3. Prepare: SQL converts timestamps to Las Vegas local time and aggregates them per day, splitting night (00:00–07:00) and daytime (07:00–midnight).
  4. Visualize: Tableau Public. The season view highlights the daily average with daytime and night lines; buttons open minute-by-minute views of the CSU Bakersfield and UC San Diego matches, covering the day before, match day and the day after, annotated with the warm-up, kick-off and my return to play the full 90 minutes against UC San Diego after a meniscus injury.

Results

  • 2.8 million readings over 79 days (Aug 28 – Nov 14), queried and aggregated in SQL before reaching Tableau.
  • On the 16 match days I played, my daily average heart rate was 71.6 bpm, compared with 64.3 bpm on the other 63 days: 7.3 bpm (about 11%) higher. LMU and UC Riverside, which I missed while recovering from a meniscus injury, do not count as match days.
  • Every match I played pushed my heart rate above 180 bpm: daily peaks ranged from 181 to 198 bpm, the highest on Nov 10. In my return for the full 90 minutes against UC San Diego, I peaked at 191 bpm.

Next steps: I am adding a minute-by-minute view for one more match every day. Then I will add sleep and heart-rate variability (HRV), and a training-load metric that combines duration and intensity from heart rate.