# Preview: Tutorial CS-6: From a chest-strap recording to a recovery number

First 20 rows and summary statistics of each table. Full files: https://apopt.com/data/tutorials/cs06-strap-recovery/

## clean/2026-06-26_beats.csv

18,027 rows, 3 columns, 341.1 KB.

| t_s | rr_ms | keep |
|---|---|---|
| 0.561 | 1156 | False |
| 2.242 | 1217 | True |
| 3.364 | 1275 | True |
| 4.485 | 1239 | True |
| 5.606 | 1217 | True |
| 7.288 | 1305 | True |
| 8.409 | 1247 | True |
| 9.53 | 1274 | True |
| 10.652 | 1261 | True |
| 12.333 | 1201 | True |
| 13.455 | 1291 | True |
| 14.576 | 1360 | True |
| 16.258 | 1250 | True |
| 17.379 | 1292 | True |
| 18.5 | 1255 | True |
| 19.621 | 1172 | True |
| 20.742 | 1173 | True |
| 21.303 | 1182 | True |
| 22.424 | 1080 | True |
| 23.545 | 1094 | True |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| t_s | 18027 | 11223.0 | 0.561 | 21820.2 |
| rr_ms | 18027 | 1210.3 | 254 | 11568 |

## clean/2026-06-28_beats.csv

17,082 rows, 3 columns, 322.6 KB.

| t_s | rr_ms | keep |
|---|---|---|
| 0.945 | 1291 | False |
| 2.174 | 1231 | True |
| 3.495 | 1322 | True |
| 4.747 | 1255 | True |
| 5.938 | 1189 | True |
| 7.152 | 1216 | True |
| 8.343 | 1186 | True |
| 9.441 | 1096 | True |
| 10.524 | 1087 | True |
| 11.554 | 1031 | True |
| 12.544 | 991 | True |
| 13.535 | 991 | True |
| 14.519 | 978 | True |
| 15.456 | 943 | True |
| 16.393 | 937 | True |
| 17.33 | 938 | True |
| 18.26 | 929 | True |
| 19.174 | 912 | True |
| 20.096 | 924 | True |
| 21.025 | 929 | True |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| t_s | 17082 | 10742.2 | 0.945 | 21628.5 |
| rr_ms | 17082 | 1265.3 | 293 | 2383 |

## clean/change_log.csv

6 rows, 3 columns, 217 B.

| night | rule | count |
|---|---|---|
| 2026-06-26 | 1-2 beats removed | 786 |
| 2026-06-26 | 3 differences used | 16933 |
| 2026-06-26 | 4 windows dropped | 3 |
| 2026-06-28 | 1-2 beats removed | 203 |
| 2026-06-28 | 3 differences used | 16701 |
| 2026-06-28 | 4 windows dropped | 1 |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| count | 6 | 5771.2 | 1 | 16933 |

## clean/nightly_rmssd.csv

2 rows, 7 columns, 152 B.

| night | windows | rmssd_ms | ln_rmssd | ci_low_ms | ci_high_ms | lowest_5min_hr |
|---|---|---|---|---|---|---|
| 2026-06-26 | 70 | 51.78 | 3.95 | 41.06 | 61.9 | 41.62 |
| 2026-06-28 | 72 | 58.68 | 4.07 | 52.6 | 63.73 | 43.34 |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| windows | 2 | 71 | 70 | 72 |
| rmssd_ms | 2 | 55.23 | 51.78 | 58.68 |
| ln_rmssd | 2 | 4.01 | 3.95 | 4.07 |
| ci_low_ms | 2 | 46.83 | 41.06 | 52.6 |
| ci_high_ms | 2 | 62.81 | 61.9 | 63.73 |
| lowest_5min_hr | 2 | 42.48 | 41.62 | 43.34 |

## clean/windows.csv

146 rows, 7 columns, 6.4 KB.

| night | start_h | beats_kept | kept_share | rmssd_ms | hr_bpm | valid |
|---|---|---|---|---|---|---|
| 2026-06-26 | 0.0 | 239 | 0.992 | 67.743 | 48.362 | True |
| 2026-06-26 | 0.083 | 223 | 0.987 | 51.64 | 45.049 | True |
| 2026-06-26 | 0.167 | 216 | 1.0 | 62.978 | 43.184 | True |
| 2026-06-26 | 0.25 | 217 | 0.991 | 74.461 | 44.037 | True |
| 2026-06-26 | 0.333 | 205 | 0.986 | 87.913 | 41.62 | True |
| 2026-06-26 | 0.417 | 210 | 0.995 | 85.037 | 42.131 | True |
| 2026-06-26 | 0.5 | 213 | 0.991 | 83.485 | 42.887 | True |
| 2026-06-26 | 0.584 | 212 | 0.986 | 84.195 | 43.144 | True |
| 2026-06-26 | 0.667 | 210 | 0.968 | 88.565 | 43.386 | True |
| 2026-06-26 | 0.75 | 212 | 0.959 | 80.758 | 44.18 | True |
| 2026-06-26 | 0.833 | 221 | 1.0 | 84.631 | 44.025 | True |
| 2026-06-26 | 0.917 | 224 | 0.991 | 69.116 | 45.246 | True |
| 2026-06-26 | 1.0 | 247 | 1.0 | 38.535 | 49.376 | True |
| 2026-06-26 | 1.084 | 246 | 0.992 | 55.548 | 49.576 | True |
| 2026-06-26 | 1.167 | 227 | 0.991 | 56.902 | 45.883 | True |
| 2026-06-26 | 1.25 | 239 | 0.988 | 49.485 | 48.183 | True |
| 2026-06-26 | 1.334 | 236 | 0.996 | 53.667 | 47.619 | True |
| 2026-06-26 | 1.417 | 237 | 0.992 | 52.511 | 47.777 | True |
| 2026-06-26 | 1.5 | 236 | 0.992 | 63.801 | 47.621 | True |
| 2026-06-26 | 1.584 | 240 | 0.996 | 54.63 | 48.145 | True |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| start_h | 146 | 3 | 0 | 6 |
| beats_kept | 146 | 233.7 | 31 | 313 |
| kept_share | 146 | 0.9793 | 0.364 | 1 |
| rmssd_ms | 146 | 55.54 | 20.33 | 97.98 |
| hr_bpm | 146 | 48.62 | 41.62 | 104.3 |

## raw/2026-06-26_2347_sleep_rr.csv

18,027 rows, 3 columns, 304.4 KB.

| t_s | rr_ms | hr_bpm |
|---|---|---|
| 0.561 | 1156 | 52 |
| 2.242 | 1217 | 52 |
| 3.364 | 1275 | 52 |
| 4.485 | 1239 | 51 |
| 5.606 | 1217 | 51 |
| 7.288 | 1305 | 51 |
| 8.409 | 1247 | 51 |
| 9.53 | 1274 | 50 |
| 10.652 | 1261 | 50 |
| 12.333 | 1201 | 50 |
| 13.455 | 1291 | 50 |
| 14.576 | 1360 | 49 |
| 16.258 | 1250 | 49 |
| 17.379 | 1292 | 49 |
| 18.5 | 1255 | 49 |
| 19.621 | 1172 | 48 |
| 20.742 | 1173 | 49 |
| 21.303 | 1182 | 49 |
| 22.424 | 1080 | 49 |
| 23.545 | 1094 | 49 |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| t_s | 18027 | 11223.0 | 0.561 | 21820.2 |
| rr_ms | 18027 | 1210.3 | 254 | 11568 |
| hr_bpm | 17527 | 49.83 | 0 | 128 |

## raw/2026-06-28_2343_sleep_excerpt.csv

23,433 rows, 5 columns, 674.9 KB.

| time | ecg | hr | rr | marker |
|---|---|---|---|---|
| 1782722544852012415 | 0.002 |  |  |  |
| 1782722544859694032 | 0.004 |  |  |  |
| 1782722544867375649 | 0.004 |  |  |  |
| 1782722544875057266 | 0.009 |  |  |  |
| 1782722544882738883 | 0.012 |  |  |  |
| 1782722544890420500 | 0.014 |  |  |  |
| 1782722544898102117 | 0.017 |  |  |  |
| 1782722544905783734 | 0.019 |  |  |  |
| 1782722544913465351 | 0.021 |  |  |  |
| 1782722544921146968 | 0.021 |  |  |  |
| 1782722544928828585 | 0.024 |  |  |  |
| 1782722544936510202 | 0.024 |  |  |  |
| 1782722544944191819 | 0.026 |  |  |  |
| 1782722544951873436 | 0.026 |  |  |  |
| 1782722544959555053 | 0.029 |  |  |  |
| 1782722544967236670 | 0.031 |  |  |  |
| 1782722544974918287 | 0.034 |  |  |  |
| 1782722544982599904 | 0.036 |  |  |  |
| 1782722544990281521 | 0.036 |  |  |  |
| 1782722544997963138 | 0.036 |  |  |  |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| time | 23433 | 1.783e+18 | 1.783e+18 | 1.783e+18 |
| ecg | 23433 | 0.06598 | -1.289 | 2.287 |
| hr | 180 | 45.29 | 43 | 49 |
| rr | 136 | 1331.4 | 1129 | 1544 |

## raw/2026-06-28_2343_sleep_rr.csv

17,082 rows, 3 columns, 276.1 KB.

| t_s | rr_ms | hr_bpm |
|---|---|---|
| 0.945 | 1291 |  |
| 2.174 | 1231 |  |
| 3.495 | 1322 |  |
| 4.747 | 1255 |  |
| 5.938 | 1189 |  |
| 7.152 | 1216 |  |
| 8.343 | 1186 |  |
| 9.441 | 1096 |  |
| 10.524 | 1087 |  |
| 11.554 | 1031 |  |
| 12.544 | 991 |  |
| 13.535 | 991 |  |
| 14.519 | 978 |  |
| 15.456 | 943 |  |
| 16.393 | 937 |  |
| 17.33 | 938 |  |
| 18.26 | 929 |  |
| 19.174 | 912 |  |
| 20.096 | 924 |  |
| 21.025 | 929 |  |

Summary of numeric columns:

| column | count | mean | min | max |
|---|---|---|---|---|
| t_s | 17082 | 10742.2 | 0.945 | 21628.5 |
| rr_ms | 17082 | 1265.3 | 293 | 2383 |
| hr_bpm | 10479 | 47.16 | 40 | 83 |

