oura_temperature_shifts
Detect sustained nighttime temperature elevations from Oura data. Returns baseline mean, shift day, amplitude, duration, and a flag when elevation outlasts expected length, with raw series for auditability.
Instructions
Nightly temperature deviation with a sustained-shift detector: baseline mean, shift day, elevated-phase mean, amplitude, duration, and a flag when the current elevation has outlasted the expected duration. Heuristic; parameters exposed and the raw series returned so the decision is auditable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| threshold | No | °C above baseline mean to count as elevated | |
| confirm_days | No | Consecutive days required above threshold | |
| baseline_days | No | Days before a candidate shift used as baseline | |
| expected_elevated_days | No | Expected length of an elevated phase; the flag fires beyond this + 2 |