Your recorded signal
Synchronized signals
Breathing, snoring, oxygen, heart rate and movement
Scroll over the waveform to move · Pinch to zoom at the pointer · ← / → move 10% of the window · Shift + arrow moves 1% · Time axis: device clock (AM/PM)
Apnea · Hypopnea · EMAY-recorded events, approximate placement
CO₂ clock alignment is approximate; stored units are unverified.
Blue bands mark waveform-cyclic intervals. Hover or click a band for its measurements.
Clock labels use the stored minute timestamps, with approximate timing within each chunk. Chunks are concatenated for navigation; dashed lines mark boundaries, not verified continuity.
Nightly scorecard
Whole recording · device-clock alignment · saved EMAY events
Waveform cyclic intervals & method
Waveform-only v3 (cyclic modulation with local repeatability): existing per-chunk breath candidates, inspiratory peak-to-trough amplitude in stored units, then a 1 Hz linearly interpolated envelope. Neighboring minute labels provide approximate clock alignment; no raw breath detection crosses chunks. Interpolation stops at missing minutes or breath gaps over 15 seconds.
10-minute windows advance every 5 minutes. Each requires a complete unmasked envelope. Linear detrend and median normalization, Hann-window spectrum: 30–60-second power / total 4–120-second power. Regularity is lag correlation near the dominant period (±10%). Fixed thresholds: power ≥0.50 and (P90−P10)/median amplitude ≥0.20. The primary burden additionally requires local 3-minute regularity ≥0.40; 10-minute regularity is reported separately. The strict comparison retains the original additional regularity ≥0.60 requirement at both window and localization stages. Broad 30–90-second power is exported too. These thresholds are exploratory and identical across nights, not clinical scoring rules.
Inside qualifying windows, 3-minute contexts classify 10-second cells using the power/depth thresholds plus local regularity ≥0.40. The 3-minute spectral context and minimum run duration retain a sustained-oscillation requirement. Only adjacent qualifying cells merge; runs shorter than 60 seconds are removed. Onset/offset remains approximate (3-minute context, 10-second grid). Burden uses merged cells divided by the union of analyzed, unmasked time, not summed overlapping windows. Nightly period and depth summarize qualifying 10-minute windows. Missing/short coverage is not counted as normal.
The cutoff and optional sleep mask affect waveform cycling only; other scorecard measures remain whole-recording. Mask JSON is an array of included device-clock intervals: [{"startTime":"2026-09-28 01:00:00","endTime":"2026-09-28 05:55:00"}]. It is an inclusion mask, not inferred sleep staging. Exclusions are kept per recording for this page session and included in JSON exports.
| Start | End | Time | Period | Depth | Power | Regularity |
|---|
Metric definitions & coverage
Event indices use recorded duration, not measured sleep time: these are REI-style rates, not sleep-based AHI. Oxygen and pulse use valid overlapping ring readings only (no zero/255 oximetry); percentages below thresholds use that valid time. Offset changes update the overlap. Missing data shows —.
Oxygen drops are exploratory: a fall of at least 3 or 4 percentage points from the maximum of the preceding 120 valid seconds (minimum 10), lasting 10–120 seconds before recovery to within 1 point of baseline. Gaps reset detection; unfinished drops are excluded. Rates use valid oxygen hours. These counts may differ from Wellue.
Breathing uses the existing candidate detector separately within each chunk and the selected rate, baseline and polarity. Amplitude is peak-to-trough within each candidate inspiration, in original stored units; area integrates its positive signal above the selected baseline. Rate uses consecutive candidate starts 1–20 seconds apart in the same chunk. These are uncalibrated proxies, not tidal volume or ventilation.
Event cycling means runs of at least four saved respiratory events, with all start-to-start intervals 20–90 seconds and spacing CV ≤25%. Cycle spacing and CV are medians across qualifying runs; coverage counts first-to-last-event time. These describe event timing, not a diagnosis or a waveform-based periodic-breathing score. No target 35–45-second period is assumed.
Sleep duration and Apple REM/Core/Deep: unavailable without sleep-stage data. Event-linked oxygen delay and post-event pulse response are not yet quantified.
Recorded respiratory events
Types inferred from matching EMAY summary counts and durations (code 2: hypopnea; code 3: apnea). Placement uses stored event times and proportional position within minute chunks; exact sample alignment is unverified. These are saved device flags, not newly detected events.
| Event | Recorded time | Elapsed h:mm:ss | Duration | Alignment |
|---|
Position records
Preserved from SDK bodyposition; matching app body_position values are checked.
| Minute label as stored | SDK code | App code | Label | Agreement |
|---|
Signal assumptions
UNCONFIRMEDFull chunks contain 602–605 samples per labeled minute, suggesting roughly 10 Hz. This is not a measured clock.
Analysis uses (sample − baseline) × multiplier × direction. This does not calibrate the signal. The waveform above stays unchanged.
Linear interpolation to 25 Hz adapts input timing only; it cannot restore missing detail or validate EMAY against ResMed.
Glasgow research panel
Candidate shapes under the assumptions at left.
*The original code’s overall calculation omits “top heavy.” We preserve that calculation and separately show all nine. Neither is a validated EMAY Glasgow Index or a diagnostic result.
Assumption sensitivity
The same recording scored with different direction and amplitude assumptions. A changing result shows why calibration matters.
| Direction | Multiplier | Candidates | Nine-component mean |
|---|
Candidate inspiration details
Select a row to inspect its waveform. Candidates near chunk boundaries and early rolling metrics may be incomplete.
| Candidate | Chunk label | Approx. position | Components flagged | Flags / 9 |
|---|
Data provenance & what we still need
Snoring shows the stored snore signal, not calibrated loudness; dense views preserve each pixel’s minimum and maximum. Sample placement within EMAY chunks and ring alignment are approximate. Ring imports are saved locally. Positive clock offset moves ring data later. Ring ranges use the full recording; HR ceiling uses its 99th percentile plus padding.
Position is stored once per minute chunk. Code 1 is tentatively upright. Codes 4 (back), 6 (right), and 5 (left) are mapped from your position test; blocks do not establish the exact time of a posture change.
The extractor checks whether SDK TempLine matches the app’s breathe_line. Sample values do not establish calibrated physical airflow or sleep state.
- Confirm inhale direction: make a short controlled recording and note which way the live graph moves during an inhale.
- Confirm sensor details: ask EMAY for sample rate, signal units, sensor type, filtering, and whether the exported signal represents flow, pressure, or temperature.
- Record overnight: keep the monitor connected to the app, then use an incremental backup and the extractor to update this viewer.
- Interpretation: awake breathing, movement and sensor response can change waveform shape. Scores here should not guide treatment settings.
The original algorithm uses fixed amplitude thresholds, assumes positive inspiration, and is designed for ResMed flow. Each EMAY chunk is analyzed separately to avoid creating breaths across unverified boundaries. Rolling metrics retain the original code’s edge behavior.
Original Glasgow Index source · Pinned source version · GPL license · Project guide