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 level | Possible deliverable | Conclusion it cannot establish alone |
|---|---|---|
| Signal monitoring | Timestamps, SpO2 series, signal quality and missing intervals | That each displayed value is the true arterial saturation |
| Event detection | Local baseline, onset and end, nadir, magnitude, duration, confidence or quality flag | That the fall was caused by an apnea |
| Summary and risk prompt | Event count, ODI with a stated threshold, analyzable duration and uncertainty | That ODI, AHI and REI are interchangeable |
| Clinical scoring aid | Candidates aligned with airflow, effort and EEG for professional review | That 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
| Stage | Rule to predefine | Typical failure |
|---|---|---|
| Quality gate | How valid data, artifacts, gaps and disconnections are flagged and excluded | Counting a detached probe's low value or a reconnection jump |
| Local baseline | Stable region, window, updating method and outlier handling | Following a slow fall with the baseline and understating its depth |
| Candidate fall | Percentage-point threshold, start, end, nadir and minimum duration | Counting noisy threshold crossings repeatedly or smoothing away a short event |
| Recovery and merging | Partial recovery, adjacent falls, overlaps and record-edge rules | Splitting one waveform or merging separate falls |
| Review output | Waveform, depth, duration, exclusion reason and version | An 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 question | Suggested report | Interpretive limit |
|---|---|---|
| Event presence and location | Sensitivity, positive predictive value, false positives per hour, temporal matching tolerance and confidence intervals | Precision and recall depend on prevalence, threshold and matching rule |
| Count and index | Nightly event count, ODI3/ODI4 bias, error distribution and agreement plot | High correlation does not mean two methods are interchangeable |
| Boundary and quality | Onset, end and nadir timing error, invalid duration, proportion of analyzable nights | Any gain after automated exclusion must be reported with the exclusion rate |
| Subgroup performance | Device, pigmentation, age, baseline SpO2, low perfusion and setting strata | A 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
| Question | Evidence 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.