WSIT WSIT-RG-1121

WSIT Reference Guide — SpO2 desaturation event detection algorithms

Explains signal inputs, local baselines, quality gates and ODI definitions; distinguishes desaturation detection from respiratory-event diagnosis; and provides validation and maintenance checks across devices, populations and home settings.

1. Scope and intended use

1.1 WSIC position and algorithmic object

This entry belongs to WSIC 4.4.1, sleep signal processing algorithms. A SpO2 desaturation event detector accepts continuous or intermittent estimates of peripheral oxygen saturation with timestamps. It identifies a fall relative to a local pre-event baseline, a nadir, and recovery, then outputs candidate events and quality flags. It may be part of polysomnography (PSG), home sleep apnea testing (HSAT), overnight oximetry, research software, a wearable device, or a cloud service. The algorithm does not measure arterial oxygen partial pressure and cannot establish the cause of a fall from a saturation trace alone. [1][2]

A desaturation event, sustained low saturation, and a respiratory event are different objects. The first concerns a change from baseline; the second concerns an absolute level over time; scoring an apnea or hypopnea also requires the relevant airflow, effort, arousal, and applicable scoring rules. The AASM recommended adult hypopnea rule combines reduced airflow with an arousal or at least 3% desaturation; a 4% desaturation rule is also optional. One detected fall is therefore neither automatically a hypopnea nor a diagnosis of obstructive sleep apnea. [1][2]

1.2 Four levels of output

Output levelPossible deliverableConclusion it cannot establish alone
Signal monitoringTimestamps, SpO2 series, signal quality and missing intervalsThat each displayed value is the true arterial saturation
Event detectionLocal baseline, onset and end, nadir, magnitude, duration, confidence or quality flagThat the fall was caused by an apnea
Summary and risk promptEvent count, ODI with a stated threshold, analyzable duration and uncertaintyThat ODI, AHI and REI are interchangeable
Clinical scoring aidCandidates aligned with airflow, effort and EEG for professional reviewThat automated results alone support diagnosis or treatment decisions

Product documentation should state the age group, setting, sensor and body site, continuous versus sparse overnight sampling, and whether the claim is recording, prompting, scoring assistance or diagnosis. The generic algorithm name does not grant a device or software a medical indication. The AASM position on HSAT also says that diagnosis and treatment decisions must not rely solely on automatically scored data and that raw data require qualified review. [3]

2. Inputs, processing chain, and event definitions

2.1 Inputs and traceable conditions

Core inputs are SpO2 values and timestamps, device clock synchronization, and valid-signal or artifact flags. Where available, preserve the pulse waveform, pulse rate, perfusion or contact quality, movement, and sleep/wake, airflow or respiratory-effort channels. A summary number without its time series does not allow review of the waveform or of why an event was counted. Transmissive finger probes, reflective sensors on the wrist or elsewhere, and different device averaging and update periods may change apparent depth, timing and visibility of a fall. These conditions must be fixed or recorded when comparing algorithms. [4]

Check clock drift, duplicate or reversed timestamps, disconnections, out-of-range values, stuck plateaus and sudden steps before interpreting physiology. The display or export interval is not necessarily the raw photoplethysmography (PPG) sample rate. A back-end algorithm cannot recover detail removed by upstream smoothing, rejection or interpolation. Preserve the unchanged input, processing version and quality mask so a missed event can be traced to stable physiology, invalid signal or filter settings.

2.2 A reproducible detection chain

StageRule to predefineTypical failure
Quality gateHow valid data, artifacts, gaps and disconnections are flagged and excludedCounting a detached probe's low value or a reconnection jump
Local baselineStable region, window, updating method and outlier handlingFollowing a slow fall with the baseline and understating its depth
Candidate fallPercentage-point threshold, start, end, nadir and minimum durationCounting noisy threshold crossings repeatedly or smoothing away a short event
Recovery and mergingPartial recovery, adjacent falls, overlaps and record-edge rulesSplitting one waveform or merging separate falls
Review outputWaveform, depth, duration, exclusion reason and versionAn ODI without an explanation of individual counts

Here 3% and 4% mean percentage-point falls from a local baseline, not fixed absolute SpO2 thresholds. The selected threshold, minimum duration, recovery gap, smoothing window and baseline estimator must be defined before analysis for the scoring scheme and intended use, then disclosed with the result. This guide sets no universal cross-device parameters. A threshold change requires relabeling the output; ODI3 and ODI4 must not be mixed within a report. [1][2]

A state machine, threshold rules, change-point detection or machine learning can implement this task; model complexity alone does not establish better accuracy. For machine learning, specify whether training labels came from human-scored desaturations, scored respiratory events or a proxy, whether the input includes future context, inference delay, and whether development and deployment devices match. A model trained on apnea labels cannot have its output renamed “true desaturation” without separate validation.

2.3 The numerator and denominator of ODI

The oxygen desaturation index (ODI) counts desaturations per unit time. A report must at least identify the threshold (for example ODI3 or ODI4), which events enter the numerator, whether the denominator is PSG total sleep time, estimated sleep time, monitoring time or analyzable recording time, and time removed for artifacts and gaps. The same night may produce a different index with a different denominator. A recording without EEG sleep staging cannot call recording time a measured total sleep time. Original research has examined how study type and sleep measurement affect ODI calculations. [5]

If reporting an absolute nadir, mean saturation or time below a threshold, also state the denominator, missing-data treatment and sensor validity. Those measures complement, but do not replace, relative desaturation events. Clinical 3%/4% hypopnea rules must not be transferred wholesale into every product's ODI definition. [1][2]

3. Sensor error, failure modes, and population limits

3.1 Check the measurement chain first

SpO2 is a device estimate of arterial oxygen saturation; a detector analyzes the shape of that estimated series. The FDA notes that poor circulation, skin pigmentation, skin thickness, skin temperature, current tobacco use and nail polish can affect pulse oximeter readings. Movement and probe contact also merit checking in the deployed system. The FDA's January 2025 document on evaluation of medical-purpose pulse oximeters remains a draft, not an effective universal algorithm threshold. [4][6]

Distorted optical signals can create a false fall, conceal a real one or shift its timing. Stuck values, disagreement between waveform and pulse rate, an abrupt fall after detachment, rebound on reconnection, long gaps, extreme readings and concurrent motion belong in quality review. Do not simply discard every unusually low value: real low saturation can coexist with poor signal. Preserve uncertain segments with a review-needed flag and stratified quality results.

3.2 Do not extrapolate across populations and settings

Development and validation reports should separately describe age, baseline saturation, relevant disease, oxygen or positive-airway-pressure use, skin pigmentation or an objective measure of it, perfusion, motion and sensor body site. Adult sleep-laboratory data do not establish performance in children, infants, pregnancy, critical illness or occupational fatigue settings. Those uses require appropriate collection, annotation, risk assessment and external validation. Check sensor and label coverage specifically in the low-saturation range rather than relying only on whole-night mean error. [4][6]

PSG may provide EEG, airflow and human event labels; a single-channel home device may provide only SpO2 and have different wear and missing-data patterns. The PhysioNet Sleep Heart Health Study PSG database contains sleep-stage, respiratory-event and oximeter-artifact annotations useful for research and error analysis. One public dataset cannot represent all devices, pigmentation groups, ages and home settings. Verify subject-level splitting, license and label conventions; different nights from one participant cannot be placed in both training and test sets and then called independent generalization. [7]

4. Validation, acceptance and field monitoring

4.1 Reference standard and independent test set

Event-level validation needs human-reviewed oximetry annotations under documented threshold, baseline and artifact rules; record scorer disagreement and adjudication. A respiratory-event scoring aid also needs a multichannel respiratory or PSG reference. Evaluate desaturation detection and respiratory-event matching separately rather than using one label as the unquestioned truth for both tasks. Fix subject-level splits before development. Reserve an external test set that differs by device, site or time, and report exclusions and annotation blinding. Provide both subject-level and night-level outcomes so a few long recordings do not dominate the pooled result. [1][7]

Evaluation questionSuggested reportInterpretive limit
Event presence and locationSensitivity, positive predictive value, false positives per hour, temporal matching tolerance and confidence intervalsPrecision and recall depend on prevalence, threshold and matching rule
Count and indexNightly event count, ODI3/ODI4 bias, error distribution and agreement plotHigh correlation does not mean two methods are interchangeable
Boundary and qualityOnset, end and nadir timing error, invalid duration, proportion of analyzable nightsAny gain after automated exclusion must be reported with the exclusion rate
Subgroup performanceDevice, pigmentation, age, baseline SpO2, low perfusion and setting strataA pooled mean can hide missed events in a group

Error review should include false events on normal waveforms, real events removed by filtering, splits or merges of consecutive falls, and attribution near sleep boundaries. In ODI comparisons with expert scoring, specify the raw signals experts saw, the sensor used, whether candidates could be edited and the final adjudication procedure. A small subgroup must not be described as validated.

4.2 Drift and changes after deployment

Retain device model, firmware and algorithm version, threshold configuration, clock synchronization, quality mask, analyzable duration and human edits. Monitor invalid-data rates, event-rate distributions, reasons for human rejection and changes by device and population. A new sensor or firmware, altered sampling or averaging, or retraining can invalidate the prior evaluation. For material changes, rerun a frozen test set and target-setting tests, and document old-versus-new differences.

Collect raw waveforms, timestamps and associated health information only as needed for the stated purpose. Limit access and retention, protect transmission and storage, and define review and deletion procedures. De-identification of research data does not remove all re-identification risk; cross-site sharing requires review of license, consent and applicable local rules. When waveform quality is inadequate or use falls outside validation, display “insufficient data/review needed” rather than a deceptively definite event count.

5. Procurement and use checklist

5.1 Eight questions before delivery

QuestionEvidence to request
Which sensor and body site supply input?Model, wearing method, output period and upstream smoothing
What defines one fall?Threshold, local baseline, duration, recovery and merging rules
Which intervals are not counted?Gaps, artifacts, poor-quality flags and analyzable time
What is the ODI denominator?Explicit total sleep, estimated sleep, monitoring or analysis time definition
How were reference labels obtained?Scoring-manual version, scorers, adjudication and multichannel conditions
In whom was it validated?Independent set, device and population strata, external-setting results
How can a person review it?Event waveform, edit history, export fields and audit permissions
How are version changes traced?Configuration, firmware, model version and regression-test record

5.2 Limits on using results

Consumer overnight trend prompts should directly state sensor validity and uncertainty; an ODI value alone should not be advertised as a proven disease-screening accuracy. Clinical scoring assistance must match the indicated device, studied population and professional workflow. If an HSAT is negative, inconclusive or technically inadequate, the AASM adult diagnostic guideline recommends PSG in the relevant clinical setting; an automatic oximetry result should not foreclose further assessment. [3][8]

This guide supports understanding algorithm design, procurement and quality control. It sets no individual diagnostic threshold, emergency triage rule or treatment plan. Whether software is regulated as a medical device, and what evidence it requires, depends on the market, intended purpose and specific claims. Developers must check the applicable rules.

6. Sources

[1] AASM, The Manual for the Scoring of Sleep and Associated Events. Scope and version of the scoring resource; the full copyrighted rules are not reproduced here.

[2] AASM, Polysomnography for obstructive sleep apnea should include arousal-based scoring. Adult hypopnea criteria and the role of desaturation and arousal.

[3] AASM, Clinical use of a home sleep apnea test. Limits of automated scoring and professional review.

[4] U.S. FDA, Pulse Oximeters. Measurement limitations and influencing factors.

[5] Whenn et al., The impact of study type and sleep measurement on oxygen desaturation index calculation. Original research on ODI denominators and sleep measurement.

[6] U.S. FDA, Pulse Oximeters for Medical Purposes — Draft Guidance, January 2025. Used only for the direction of stratified sensor-performance assessment; the draft is not an effective mandatory requirement.

[7] PhysioNet, Sleep Heart Health Study PSG Database. Public data composition and oximeter-artifact annotations.

[8] AASM, Clinical Practice Guideline for Diagnostic Testing for Adult OSA. Adult testing and follow-up principles for suspected OSA.

They support the specific facts cited. The engineering checklists in this guide are editorial recommendations, not endorsements of an algorithm or universal cross-device parameters by the source organizations.

- This guide is a reference document under the World Sleep Industry Technology System (WSIT), intended for sleep industry professionals worldwide. It does not constitute certification, recommendation or endorsement of any product or service, and does not replace the laws, regulations or regulatory requirements applicable where a business operates. - Regulatory requirements for consumer electrical appliances vary across countries and regions. Product development, manufacturing, labeling, claims and sales must comply with the regulations applicable where a business operates. - Specific technical parameters, functions and instructions for use are subject to the product’s actual instruction manual and the currently effective regulations applicable where a business operates. © 2026 World Sleep Center. All rights reserved. [worldsleep.com](https://worldsleep.com) When citing this guide, include Document ID WSIT-RG-1121 and version V1.0.