From f8a60576e5d45ff00d5f35bf7bb0f3401f35a189 Mon Sep 17 00:00:00 2001 From: Tom Hempel Date: Wed, 24 Sep 2025 15:44:14 +0000 Subject: [PATCH] Update README.md --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 9ada9b0..47a81fa 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,30 @@ - `plot_meditation_data.py`: per-recording plots (raw + moving averages + segment boxplots) - `aggregate_segments_analysis.py`: aggregate metrics/plots across recordings with exactly 4 marks (conditions) +# Results + +| Condition | HR (bpm) | RR (ms) | RMSSD (ms) | +|-------------------|----------|---------|------------| +| Breathing Scene 1 | 72.61 | 843.33 | 52.70 | +| Spring Scene | 72.33 | 860.78 | 56.95 | +| Summer Scene | 72.50 | 862.00 | 41.15 | +| Autumn Scene | 72.89 | 850.44 | 41.89 | +| Breathing Scene 2 | 73.78 | 839.94 | 42.59 | + +## Plots + +### Aggregate Boxplots + +![HR Boxplot Across Conditions](Plots/Aggregate/HR_boxplot_conditions.png) +![RR Boxplot Across Conditions](Plots/Aggregate/RR_boxplot_conditions.png) +![RMSSD Boxplot Across Conditions](Plots/Aggregate/RMSSD_boxplot_conditions.png) + +### Aligned Average Curves + +![Aligned Average Heart Rate (HR)](Plots/Aggregate/HR_average_aligned.png) +![Aligned Average RR Interval](Plots/Aggregate/RR_average_aligned.png) +![Aligned Average RMSSD](Plots/Aggregate/RMSSD_average_aligned.png) + ## How calculations are done - HR and RR loading @@ -37,28 +61,4 @@ - Aligned average curves (HR, RR, RMSSD) - Only recordings with exactly 4 marks are used. - For each recording, durations of the five segments are measured; median segment proportions across recordings define a normalized 0–1 time axis with aligned boundaries. - - Each recording’s series is piecewise-linearly time-normalized to this axis, interpolated to a common grid, and then averaged (mean ± 1 SD). For RMSSD, a 30 s rolling RMSSD is used before alignment. - -# Results - -| Condition | HR (bpm) | RR (ms) | RMSSD (ms) | -|-------------------|----------|---------|------------| -| Breathing Scene 1 | 72.61 | 843.33 | 52.70 | -| Spring Scene | 72.33 | 860.78 | 56.95 | -| Summer Scene | 72.50 | 862.00 | 41.15 | -| Autumn Scene | 72.89 | 850.44 | 41.89 | -| Breathing Scene 2 | 73.78 | 839.94 | 42.59 | - -## Plots - -### Aggregate Boxplots - -![HR Boxplot Across Conditions](Plots/Aggregate/HR_boxplot_conditions.png) -![RR Boxplot Across Conditions](Plots/Aggregate/RR_boxplot_conditions.png) -![RMSSD Boxplot Across Conditions](Plots/Aggregate/RMSSD_boxplot_conditions.png) - -### Aligned Average Curves - -![Aligned Average Heart Rate (HR)](Plots/Aggregate/HR_average_aligned.png) -![Aligned Average RR Interval](Plots/Aggregate/RR_average_aligned.png) -![Aligned Average RMSSD](Plots/Aggregate/RMSSD_average_aligned.png) + - Each recording’s series is piecewise-linearly time-normalized to this axis, interpolated to a common grid, and then averaged (mean ± 1 SD). For RMSSD, a 30 s rolling RMSSD is used before alignment. \ No newline at end of file