← writing room✎ edit

13 November 2026 · 21 min read · 4,120 words

Analysing my garmin sleep and training data

Sleep, HRV, menstrual cycle and marathon training: a single-subject study

Abstract: This study is intended to give me personal insight into how my sleep, HRV, stress, marathon training and menstrual cycle all affect each other. The goal is to find correlations between these variables. Methods use my raw Garmin data and self-tracked cycles.

Key findings

  1. The menstrual cycle drives the HRV dip, not the other way round. HRV is highest in the follicular phase (65.8 ms) and lowest in the luteal phase (57.4 ms; Mann–Whitney p < 0.001). Against my own baseline, HRV falls about 6–8 ms in the 5 days before a period and recovers by day 4–5. Overnight resting HR mirrors this and rises about 3–4 bpm. The dip repeats in most cycles whatever their length. Follicular-phase HRV and stress do not predict a longer cycle (ρ = −0.09 and +0.07, n = 14 cycles), so the data fit “cycle → low HRV” better than “low HRV → delayed period”. With 14 cycles, a small effect in the other direction can't be ruled out.
  2. Low-HRV nights are short, shallow nights. On nights below my Garmin HRV baseline I slept ~55 min less (6.5 h vs 7.4 h), got less REM, and my overnight resting HR was 9 bpm higher. Across all nights HRV tracks sleep quality (ρ = 0.61) far more than sleep length (ρ = 0.18), and later bedtimes go with lower HRV (ρ = −0.21).
  3. Stress takes REM and total sleep, not deep sleep. After the most stressed fifth of days I sleep about 65 min less than after the calmest fifth, and REM alone accounts for 38 min of that. Deep sleep barely changes.
  4. Marathon block: running HR dropped ~9 bpm while weekly volume tripled to ~60 km. Easy pace also slowed slightly, probably because of the higher mileage and managing recovery, so most of the HR drop reflects easier running rather than a big efficiency gain.
  5. HRV, not sleep, affected my training performance. Weekly HRV was the best correlate of pace excluding the long run (ρ = −0.35, p = 0.027; negative = faster). When HRV and sleep were tested together, sleep score and sleep hours added nothing once HRV was included. A mediation analysis across all 202 runs and 51 weeks found that essentially none of HRV's link with pace or running efficiency goes through sleep. Low-HRV nights are worse nights, but the worse sleep itself didn't slow me down. Even after my worst 10% of nights (≤ 6 h, or sleep score ≤ 70) my runs were normal.
  6. Resting HR rose during the block even as running HR fell. Overnight resting HR went from 63.3 bpm (base) to 66.1 bpm (block) and HRV fell from 64.2 to 55.8 ms, with the strain peaking around the taper and race.
  7. Bedtime and daytime stress matter most for sleep; exercise barely matters. Later bedtimes go with shorter nights (ρ = −0.55) and lower sleep scores (ρ = −0.39), and so does a more stressful previous day (ρ = −0.25 and −0.40). Exercise amount, steps and weekends barely matter (|ρ| < 0.1). Evening runs (17:00–20:59) brought my bedtime about 30 min earlier.
  8. My long cycles look like late ovulation. In long cycles HRV rises on the usual schedule around day 15, then stays higher for longer then drops about twice as deep 14 days before period following same structure as normal ones(Fig. 11). Nothing in my Garmin data reliably separates long cycles from normal ones, and 13 of my 32 logged cycles were longer than 35 days.

1. Introduction

My overnight heart rate variability (HRV) varies a lot across the month, and low-HRV nights often coincide with poor sleep. These changes appear linked to the menstrual cycle, but the direction is unclear: does the cycle lower HRV, or does a stretch of low HRV (stress, training load, poor sleep) delay the cycle? Resting heart rate also fluctuates noticeably. I started this study as a woman training for a marathon with lots of work to do, and it felt like my lack of sleep and drop in training performance were sometimes due to my period this study was aimed to erase my confusion.

The study uses my own wearable data to describe how my sleep changed over time, test how HRV, sleep and stress vary across the menstrual cycle, and test the direction of the HRV–cycle link, look at how heart rate and pace changed through marathon training, whether sleep/HRV explain good and bad weeks, and whether sleep or HRV matters more, and build a simple model to predict the next night's sleep quality and HRV.

2. Methods

  • Data. Garmin Connect GDPR export: nightly sleep (stages, sleep score, sleep stress, respiration), overnight HRV and resting HR from the Health Status feature, daily summaries (stress, Body Battery, steps), and 203 runs. Period dates come from the Clover app (14 completed cycles in the study window).
  • Processing. Raw JSON is parsed and joined in Apache Spark (PySpark) into one row per day (daily) and one row per run (runs). Garmin dates sleep by the wake-up morning, so the previous day's stress and training are joined as predictors of each night. Statistics use pandas / SciPy / statsmodels.
  • Statistics. Spearman rank correlations (robust to outliers and non-linearity) with Fisher-z 95% CIs; Kruskal–Wallis / Mann–Whitney for group differences; OLS with Newey–West errors for the predictive model, evaluated on the last 25% of nights as a hold-out set. Nightly data are autocorrelated, so p-values for daily correlations are optimistic. Treat ρ and its CI as the main result. To separate sleep from HRV, I used mediation analysis (HRV → sleep → performance) with bootstrapped 95% CIs.
  • Training. Base build: 25 Aug 2025 → 15 Mar 2026. 10-week block: 15 Mar → 24 May 2026 (race). Long run = the longest run of each week if ≥10 km. Running efficiency = speed (m/min) ÷ average HR.
  • Exercise. Exercise = moving time of all recorded Garmin activities on the day before each night. Runs are grouped by start time (morning before 12:00, afternoon 12–16, evening 17–20, late 21:00+) and compared with nights after no run.
  • Cycle length. A long cycle is one longer than 35 days.

3. Sleep since getting the Garmin

Figure 1. Total sleep time per night (light dots) and centred 14-day rolling mean. Grey bands mark the marathon base build and 10-week block; dotted line is race day.
This was interesting for me because I had exams in May and was very stressed, and I felt tired and sleepy, and from a data perspective I do see a visual dip. I'm not quite sure what happened in July 2025.

Nights where HRV fell below Garmin's personal baseline range vs all other nights.
I wanted to compare my sleep quality when my HRV was low vs high. The table shows that lower-HRV nights came with about 55 minutes less sleep, higher HR and significantly less REM. This shows the significant effect of HRV and how factors outside of our control affect sleep; sometimes just reading before sleep isn't the answer.

Figure 2. Monthly mean sleep architecture (hours per night by stage), with mean daily exercise as a line. Months with <10 recorded nights are excluded. Nothing too interesting here.

In the table below we can see exercise barely affected my sleep. On days after more exercise I slept the same amount (ρ = 0.00, 489 nights), with slightly more light sleep (ρ = +0.11) and awake time (ρ = +0.14) and slightly less REM (ρ = −0.13). At the monthly level nothing was significant (17 months). When I ran mattered more than how much. After evening runs (17:00–20:59) I went to bed about 30 min earlier than on rest days (p = 0.003) and slept just as well. Late runs after 21:00 and harder evening runs (higher average HR) made no measurable difference. So, good news for me: I can keep running late at night :D

Run started Nights Total Light Deep REM HRV Score Bedtime Wake-up
No run 296 7.32 h 4.64 1.30 1.38 60 80 00:24 07:52
Morning <12 63 7.15 h 4.63 1.22 1.30 61 78 00:41 08:03
Afternoon 12–16 57 7.57 h 5.05* 1.23 1.29 56* 78 00:11 07:57
Evening 17–20 55 7.53 h 4.99* 1.27 1.28 63 81 23:52* 07:35
Late 21:00+ 18 7.37 h 4.50 1.33 1.54 58 82 00:42 08:11

Sleep on the night after each kind of run day. * = significantly different from no-run nights (Mann–Whitney p < 0.05).

Figure 3. Mean sleep stages by the weekday on which the night begins. Whiskers = ±1 SD of total sleep across nights. Differences between weekdays were small, with means ranging between 7.1 and 7.6 h, while night-to-night variation is about ±1.2 h. Again not that interesting, juicier info ahead

4. Sleep and HRV

Figure 4. Spearman correlation between overnight HRV and each sleep metric from the same night.
This graph is partly circular, because each of these factors feeds into sleep score, but I think it's interesting to see how each one relates to my sleep. Deep sleep hours don't change with HRV, and deep % only drops slightly because high-HRV nights have more REM and more total sleep. Bedtime explains more: later nights go with lower HRV and with less light sleep (ρ = −0.44) and deep sleep (ρ = −0.22), because they're shorter. Sleep stress looks like the biggest factor, but Garmin derives it from HRV, so that link is mostly built in.

5. Menstrual cycle, HRV and sleep

This is where the graph start to get ++interesting++.

Figure 5. Overnight HRV per night (light dots) and 7-day mean.
This is my favourite graph and the reason I started this research. Comparing my HRV with my period start date. After graphing it, there is a distinct rise in HRV towards the middle of my cycle, coinciding with the ovulation phase, and a clear decline after ovulation, during the luteal phase.

Figure 6. Overnight HRV relative to my 35-day rolling median, by cycle phase. 0 = a typical night for that time of year. Box = IQR, solid line = median, dashed line = mean.

This shows a more detailed overview of each phase. Phases come from my Clover dates. Ovulation is taken as 14 days before the next period. Menstrual = the bleeding days. Follicular = from the end of the period to 2 days before ovulation. Ovulatory = the 3 days around ovulation. Luteal = from then until the day before the next period. The luteal phase is always 13 days, while follicular is about 10 days for my typical 33-day cycle, which is why luteal has the most data points. Each dot is one night, and the x axis is jittered (the sideways spread is random so the dots don't overlap).

The table shows that each phase affected my sleep, with quite a few statistically significant results, such as HRV and sleep score.

Figure 7. HRV and overnight resting HR aligned to period start (mean ± 95% CI across cycles). Negative days = days before the period. Orange line = first day of bleeding.
Just a zoomed in average.

Figure 8. One row per completed cycle, lined up on the next period. Blue = HRV above my 35-day baseline, red = below. The red band to the right of the dotted line (last ~5 days) repeats in most cycles, whatever their length. That points to the cycle driving HRV.
Kind of cool just to see how red it gets before my period. Pun not intended lols.

Which way round? Cycle → HRV, or HRV → delayed period

If the cycle drives HRV, HRV should follow the same within-cycle pattern every month regardless of cycle length (Figures 7–8). If low HRV (stress, load) delays the period, it would have to act before ovulation, because a late period almost always means late ovulation (the luteal phase is fairly fixed). So follicular-phase HRV/stress should predict cycle length but it does not so HRV is caused by my period, more details upcoming into why.

Figure 9. Each dot is one completed cycle (cycles with ≥5 HRV nights in the first half). If low HRV or high stress before ovulation delays ovulation, lower HRV / higher stress should go with longer cycles. Dashed line = least-squares fit. There seems to be a minor correlation between stress and cycle length however it is not statistically significant.

HRV and hormones

Figure 10. My overnight HRV (7-day mean) with estrogen and progesterone curves estimated from my own cycle dates: ovulation placed 14 days before each period, with standard hormone shapes fitted around it. In normal cycles my HRV peaks just before or with the estimated estrogen peak and falls as progesterone rises after ovulation, as expected if the cycle drives HRV. In long cycles HRV rises around day 15, weeks before the estimated ovulation, then stays flat until it falls in the last ~2 weeks. That fits an early estrogen rise that didn't lead to ovulation, followed by late ovulation, rather than an error in the 14-day estimate. Hormones were not measured, so this can't be confirmed.

My HRV is highest while estrogen rises (about 5–9 ms above baseline, 23–17 days before my period) and drops sharply as estrogen peaks around ovulation. It sits near baseline around the progesterone peak, and the deepest dip (7–8 ms below baseline) comes in the last 5 days, when both hormones fall. This matches prior research: HRV is lower in the luteal phase than in the follicular phase (Schmalenberger et al., 2019), and there is no known way for an HRV drop to trigger ovulation.

Long vs normal cycles

Figure 11.HRV for normal cycles (≤35 days, 9 cycles) and long cycles (>35 days, 5 cycles), relative to each cycle's own mean, lined up on period start (left) and on the next period (right). Lines are 5-day averages; bands = 95% CI.
In both groups HRV peaks around day 14–15. In normal cycles it then falls, while in long cycles it stays higher until about day 25. Lined up on the next period, both groups start to drop about 14 days before the period, where the 14-day rule places ovulation, but the drop is roughly twice as deep in long cycles (last 5 days: median −19.5 vs −9 ms below follicular HRV). This fits late ovulation: the follicular phase stretches out, while the post-ovulation drop arrives on the usual schedule. With 5 long cycles none of these differences are statistically reliable (p = 0.15), but the pattern is consistent.

Cycles Nights Low HRV (<53 ms) Normal High HRV (>70 ms)
Normal (9) 274 21.2% 56.6% 22.3%
Long (5) 205 30.2% 43.4% 26.3%

Share of nights by raw HRV. Low and high = the bottom and top quarter of all my nights.

Long cycles had more low-HRV nights but also slightly more high ones, so HRV was more variable rather than simply lower. Cycle by cycle, cycle length was not linked to the share of low-HRV nights (ρ = +0.25, p = 0.38). Using Garmin's own adaptive baseline there was no difference (about 5% low nights in both). HRV in the period and follicular phase had no link with cycle length (ρ = −0.09). Across all the metrics I tested (sleep, sleep stages, bedtime, HRV, resting HR, stress, respiration, Body Battery, steps, running, exercise and period length), nothing reliably separated my 5 long cycles from my 9 normal ones in the study window.

Hypothesis. My long cycles are most likely cycles where ovulation came late. HRV rises on the usual schedule, then stalls, and the luteal drop only arrives about two weeks before the late period. A likely cause is the brain slowing the ovulation signal under energy, training or exam stress.

6. Stress and sleep stages

Sorry this bit might be boring you can skip to 7. Marathon if you want.

Figure 12. Spearman correlations between Garmin stress and sleep stages. ‘Daytime stress’ = mean awake-time stress on the day before the night. ‘Sleep stress’ = mean stress during that night (largely the inverse of HRV, so expect strong links). Unsurprisingly more stress = worst sleep score and total sleep.
I did notice % of my deep sleep increases but my hypothesis for that I sleep about the same amount of deep sleep each night near the start of my sleep, then the last bits usually light sleep and REM get cut off.

Figure 13. Sleep architecture by quintile of the previous day's mean daytime stress (each quintile ≈ 100 nights).

Less stress goes with somewhat more sleep.

7. Marathon training block

Fun begins again.

Figure 14. Weekly mean of per-run average heart rate (top) and weekly distance (bottom) from 25 Aug 2025 to race week. The race itself is excluded.

Figure 15. Each dot is one training week. Pace axis is reversed so ‘faster’ is up. Dashed line = least-squares fit.

I think this was interesting to see because during my training I did find it easier to run when my HRV was higher, and the correlation is clear in my pace. More interestingly, average HR had a positive correlation with higher HRV weeks, but not significantly. This shows that effort stayed relatively constant, which is expected because I trained by effort, not pace but my HR was still slightly higher. So faster weeks were not simply harder-effort weeks.

Figure 16 & 17 . Weekly SDs of all runs except that week's long run (the longest run of the week, if ≥10 km). Axis: higher = faster.
This was really interesting to see how my pace closely matched HRV when normalized. Figure 17 shows that this was not just due to harder effort (given by HR) but rather closely linked to a factor I couldn't control. Comparing HR into the show it does show that as expected my HR increases with pace but a few sneaky outliers show that when HRV is higher pace seems to be high with lower HR ( for example right before April, and February or straight after November), this contrasts when HRV was low and HR seemed disproportionately high with pace on the lower side ( for example right before Jan and April, also mid march and end of December). With both in one model, higher-HRV weeks were faster at the same heart rate (β = −0.37, p = 0.001; HRV and HR together explain 38% of week-to-week pace), though part of this is the shared downward trend during the block..

Was it the sleep or the HRV?

I often felt that bad sleep made my runs worse. Because HRV and sleep quality are closely linked (ρ = 0.51 weekly), I tested them head-to-head, and then tested whether HRV's link with running goes through sleep (low HRV → worse sleep → worse run) or directly.

Outcome Through sleep (95% CI) Direct HRV link (95% CI)
Run efficiency, 7-day HRV (200 runs) +0.03 [−0.05, +0.12] +0.18 [+0.03, +0.33]
Run efficiency, prior night (197 runs) ≈ 0 [−0.14, +0.01] +0.13 [−0.00, +0.27]
Weekly pace (51 weeks) ≈ 0 [−0.09, +0.18] −0.35 [−0.62, −0.09]

Standardised coefficients; mediator = sleep score. Controls: time trend, plus run distance and long-run flag for run-level models. CIs from 3,000 bootstrap resamples. Sleep hours as the mediator gave the same result.

Low HRV did come with worse sleep, but once HRV was accounted for, sleep had no link with performance. Runs after my worst 10% of nights were no less efficient than the rest (p = 0.82). Only the 6 runs after < 5 h of sleep hinted at a cost (−1.2%), which is too few to say. So within my normal range a bad night doesn't hurt a run. What matters is the fatigue that HRV picks up, especially as a 7-day trend.

8. Predicting sleep

Factor (before the night) Sleep score Sleep length
Later bedtime −0.39 −0.55
Daytime stress (previous day) −0.40 −0.25
Higher lowest Body Battery that day +0.22 +0.06
Luteal phase −0.19 −0.06
Resting HR (previous day) −0.12 −0.01
Exercise, run km, steps, weekend ≈ 0 ≈ 0

Spearman correlations between that night's sleep and information available before the night (489 nights).
The two things I can control that matter most are going to bed earlier and having a less stressful day. Exercise, steps and weekends make almost no difference.

Figure 19. Standardized regression coefficients predicting tonight's sleep score (left) and overnight HRV (right) from information available beforehand. Units are SDs of the outcome per SD of the predictor (phase/weekend: present vs absent). Newey–West (HAC, 7-day) errors account for day-to-day autocorrelation.

Model performance. Out-of-sample R² compares hold-out error with predicting the training mean; values near 0 mean little predictive power beyond the average.

9. Limitations

  • Single subject (n = 1), observational data: correlations, not causal effects. Training, study stress, season and the cycle all changed over the same period of time.
  • Several variables are built from each other, which weakens some results: for example, sleep score partly depends on stress, which Garmin derives from heart rate, so it is bound to track HRV.
  • HRV is measured during the same sleep it is compared with, so the order “HRV → sleep” can't be fully separated. I rarely ran after very short nights (< 5 h), so severe sleep loss isn't tested.
  • Ovulation is estimated, not measured. Irregular cycles (25–64 days here) make the 14-day luteal assumption less certain. Basal body temperature or LH tests would sharpen the phase boundaries.
  • Garmin sleep staging from wrist PPG/accelerometry agrees only moderately with polysomnography, especially for deep vs light sleep. Garmin “stress” is itself derived from HRV, so stress–HRV links are partly built in.
  • Weekly pace mixes easy runs, workouts and races. Efficiency (speed ÷ HR) partly adjusts for this, but terrain, heat and workout type are not controlled.

10. Further study

The next step is to test whether this pattern holds beyond one person. Using a larger dataset with wearable HRV and logged periods, I would split participants into two groups: regular cycles (24–35 days) and irregular cycles. I would then compare the HRV pattern across the cycle between the groups: whether the drop before the period appears in both groups, whether its size differs, and whether irregular cycles show the long flat stretch before the late drop that my long cycles show.

A dataset with measured hormones would also replace the estimated ovulation date with a measured one. I would also want to analyse a larger dataset that includes performance and training, to see whether HRV rather than sleep tracks performance in other runners too. Ways of reducing the drop in sleep and training quality would also be interesting to investigate.

11. Conclusion

My data suggest the menstrual cycle drives the biggest swings in my HRV: HRV is highest before ovulation and falls in the last five days before each period, whatever the cycle length. HRV is closely tied to how well I sleep and running performance. How much I exercise barely changes my sleep. During marathon training my running HR fell while resting HR rose and HRV fell, which is consistent with accumulated fatigue. Poor runs tracked low HRV, not poor sleep: once HRV was accounted for, sleep made no difference. My long cycles look like late ovulation rather than a different HRV pattern, and nothing my Garmin measures reliably predicts them. All of this comes from one person and is correlational, so the next step is to test it on a larger dataset with measured hormones.

Analysing my garmin sleep and training data — bahar's house