WSIT WSIT-RG-8431

WSIT Reference Guide — Sleep Staging Algorithms

Defines the label contract, sensor and population boundaries, reference annotation, data splits, abstention, external validation, clinical limits and release acceptance for sleep staging algorithms.

1. Scope, outputs and intended use

1.1 The staging task and label contract

A sleep staging algorithm partitions a continuous overnight recording into time-bounded segments, estimates wake (W), non-rapid eye movement stages N1/N2/N3 or rapid eye movement (REM) sleep for each segment, and may summarize the night's architecture. Interpretation of clinical polysomnography (PSG) should refer to the applicable AASM scoring rules and human review process. An algorithm's output must identify the sensor, input channels, time granularity, label set and intended use; a hypnogram alone does not establish PSG-equivalent scoring.[1][2]

Thirty-second epochs are common in PSG annotation. The 2026 PhysioNet Challenge, for example, provides human W/N1/N2/N3/REM labels every 30 seconds and an unavailable class. This does not make 30 seconds mandatory for every device or application.[2] Four-class tasks that merge N1 and N2, consumer labels such as light/deep/REM/wake, and five-class tasks are different tasks. A merged class must not be split into apparently precise N1 and N2 values, and stages unsupported by the sensor must not be presented as observed facts.[6]

OutputMinimum recordInterpretation limit
Reference sequenceEpoch start/end, label set, label provenance and scoring-rule versionHuman raters also disagree; unavailable intervals remain separate
Predicted sequenceModel version, input modality, stage probabilities or confidence, abstention flagCheck calibration; abstention is not wake
Night summaryDenominator window, valid coverage, stage durations and transitionsSummary inherits epoch errors; time in bed is not total sleep time

1.2 Sensors determine the question that can be answered

PSG EEG, EOG and EMG directly capture physiological information used in staging. Single-lead EEG reduces setup burden but loses some channel evidence. PPG plus movement, contact respiratory sensors and non-contact radar infer stages from indirect autonomic, movement and breathing signals; label granularity and target populations require separate validation. A published PPG-plus-accelerometer algorithm explicitly used W, merged N1/N2, N3 and REM, rather than five classes.[6] A radar study's participants, placement, bed-sharing and environmental conditions bound its findings; they cannot simply be extended to children or complex disease populations.[7][8]

Input modalityAvailable cluesPrincipal failure mode
Multichannel PSGEEG, EOG, EMG and synchronized eventsDetached electrodes, montage changes, rater disagreement
Single-lead EEGEEG morphology and temporal contextLead-position variation, artifacts, missing eye/muscle channels
PPG plus movementPulse intervals, heart-rate changes, stillness and activityLoose fit, poor perfusion, arrhythmia, quiet wake
Radar or bedside contactless signalBreathing, micro-movement and bed-exit cluesChanged distance/posture, other occupants, reflections

2. Reference labels and training data

2.1 Build traceable labels

The data dictionary should record at least pseudonymous participant/night keys; sampling rate and units; lead or wear position; device and firmware; time zone and clock source; lights-off/on times; valid window; human scorer; scoring-rule version; original labels; and remapping rules. Sleep-EDF Expanded provides PSG and hypnograms for method development. Before reusing any historical dataset, check its original scoring system against the project's label contract rather than merely renaming classes.[3]

Align signals and labels on one time axis before creating epochs. Missing data, noise, movement artifacts, bed exit and unavailable labels should remain explicit states. Predetermine training exclusions or weights, and report actual evaluation exclusions. Where raters disagree, retain individual scores, consensus rules and adjudication. A multicentre study of 50 PSGs and 10 scorers reported overall κ=0.71, N1 κ=0.41 and REM κ=0.86. These are observations in that study, illustrating reference uncertainty, not universal pass marks for a model.[4]

Data layerProcessing and quality controlTraceable artifact
Raw signalsCheck timestamps, units, channels and gaps; retain source hashesDevice/capture metadata and raw version
Reference annotationFreeze epoch boundaries, scoring system, rater and adjudicationLabel version, mapping table, disputed intervals
Model samplesFit normalization and feature processing after participant-level splittingSplit manifest and preprocessing version

2.2 Splits and leakage controls

Separate training, tuning and final testing by participant; nights from one person cannot cross sets. If generalization across centres or devices is intended, reserve independent centres, devices, firmware and capture periods. Freeze splits before calculating training statistics. Check overlapping windows, neighbouring epochs, same-night summaries, edited labels and pretraining data for leakage. Report inclusion, exclusion, attrition and participant/night counts for every class, not only epoch totals.

3. Model design and output governance

3.1 From signal quality to stage probability

The processing chain is capture and synchronization → signal-quality gate → preprocessing → epoch features or representations → temporal-context model → class probabilities/abstention → human review or user display. Frequency and time-domain features, event features, convolutional networks and sequence models are implementation choices. Select them for the input, interpretability needs, compute and latency budget, rather than for the architecture name. An offline whole-night model can use future context; a real-time model can use only data available at prediction time, so their validation must be separate.[5]

Quality rules should state when the output is simply “insufficient data” and preserve the reason. If probabilities are returned, assess calibration and distribution shift; the largest score is not clinical certainty. Low signal quality, stage boundaries, model disagreement and low confidence may trigger abstention and a human review queue. Report coverage alongside accuracy. Research has explored uncertainty-guided physician review of automated hypnograms, but trigger rules still require validation for the intended use.[10]

Output fieldRecommended meaningAvoid conflating with
`epochStart`, `epochEnd`Half-open intervals on a UTC or specified time-zone basisLocal display or upload time
`stage`, `labelSet`Stage and five-/four-class label contractTreating light sleep as definite N1 or N2
`probabilities`, `quality`Defined class probabilities and input-quality statusMedical diagnostic probability
`abstained`, `modelVersion`No-decision status and reproducible model identityFilling no-decision with wake or silently rewriting history

3.2 Human edits, reproducibility and versioning

For research or clinical support, retain the original prediction, each human edit, editor, timestamp and reason, and identify which version produced night-level measures. A change in thresholds, filters, mapping, firmware or model can shift the stage distribution. Run regression checks on a frozen dataset before release and provide rollback. Show estimates and unscorable intervals to users, with input quality and provenance available; smoothing must not conceal gaps.

4. Evaluation plan and measures

4.1 Beyond one overall accuracy number

Prespecify the target population, setting, labels, time window and primary endpoints. At epoch level report a confusion matrix; sensitivity and precision for every class; macro-F1, balanced accuracy, κ and confidence intervals. Also report valid coverage, abstention, transition errors and the bias/agreement of total sleep time and stage durations. With imbalanced classes, overall accuracy can conceal failures for N1 or wake. When comparing a four-class algorithm with a five-class reference, state the merging map first and calculate measures in the same label space.[4][6]

Aggregate and resample confidence intervals by participant: many correlated epochs are not independent participants. Check synchronization and boundary epochs in same-night PSG comparisons, and show common confusions and failure cases. Separate training, internal holdout and truly independent external results instead of presenting only the best result.[5]

Validation layerRequired reportPurpose
Internal holdoutParticipant independence, per-class measures, coverage and intervalsDetect workflow overfitting
External centre/deviceFixed model and thresholds, independent labels, subgroup resultsTest channel, hardware and population transfer
Operational monitoringQuality gaps, abstention, versions, human edits and complaintsDetect post-release drift and failure

4.2 Transfer, subgroups and acceptance criteria

In a study spanning six public databases, mean κ was 0.80 on independent within-database tests but 0.54 when individual local models scored external databases. This illustrates domain shift in that study; it is not a prediction for another product.[5] Report sample sizes and results by age, sex, sleep efficiency, disorders, medication/comorbidity, device, wear/electrode position and home/laboratory setting, and expose uncertainty for sparse subgroups. Independent pediatric validation found reduced performance below age two and in children with sleep-disordered breathing or conditions affecting EEG; its authors recommended expert review following clinical automated staging.[8]

Set acceptance criteria before development based on the intended use, consequences of errors and reference-rater variation. A trend display may emphasize coverage and bias; clinical support additionally needs a defined human review pathway and stage-specific error tolerances. Published numbers are not universal thresholds. Restrict claims and collect further evidence when external validation on the target device and population is absent.

5. Deployment, risk and acceptance

5.1 Contextual display and clinical limits

Consumer staging can help observe trends, but the AASM consumer sleep technology position states that such technology does not replace appropriate medical evaluation and diagnosis; clinical use needs evidence suited to its claims.[9] Do not diagnose sleep apnea, insomnia or other disorders from a hypnogram alone, or recommend treatment from one night's stage percentages. Children, pregnancy/postpartum, serious arrhythmia, neurological disease, shift work and shared beds should be marked unvalidated or restricted if absent from testing, rather than presumed supported.

The product should show data coverage, abstention, algorithm version, sensor source and summary denominator. User feedback can support investigation, but should not overwrite labels in a locked test set. Direct medical concerns to qualified professionals. Define retention, access and deletion for the deployment jurisdiction, and document authorization for training and retraining data.

5.2 Pre-release checklist

The acceptance package should contain the label contract, participant-level splits, reference annotations and disagreement process, frozen model/preprocessing versions, full stratified results, failure examples, target-device testing, quality/abstention rules, human-review SOP, update/rollback procedure and monitoring plan. Material changes in clinical claims, target population or sensor require a revised use definition and new validation. Operational drift checks should cover input quality, stage distribution, abstention and human correction. Set investigation triggers from the local baseline and risk analysis.

Acceptance itemCheckable evidenceIf absent
Labels and dataScoring-rule version, mapping, independent test list, exclusion logDefer external performance claims
Model and measuresFixed version, code/parameters, confusion matrix, subgroups and intervalsNarrow scope and test further
Deployment and oversightQuality abstention, human review, privacy access, rollback drillDo not enter the corresponding use setting

6. Sources and limits of evidence

The sources below verify task definitions, research examples and boundaries of use. Their participants, devices, classes and evaluation methods differ; study numbers cannot be ranked directly or adopted as universal acceptance thresholds. The full AASM manual has access conditions, and an authorized team should verify the applicable current rules for implementation.[1]

[1] Official AASM Scoring Manual information; rule versions and clinical PSG reference.

[2] 2026 George B. Moody PhysioNet Challenge data description; example of 30-second human stages and unavailable labels.

[3] PhysioNet Sleep-EDF Expanded; public PSG and hypnogram source.

[4] Multicentre sleep-stage scoring agreement; variation among human scorers.

[5] Inter-database validation of automatic sleep scoring; example of cross-database transfer.

[6] Wearable four-class sleep staging in clinical populations; PPG, movement and merged labels.

[7] Radar-based sleep staging study; non-contact input example.

[8] Independent pediatric U-Sleep validation; pediatric subgroups and expert review.

[9] AASM Consumer Sleep Technology position; clinical boundary for consumer products.

[10] Uncertainty-guided physician review study; research on uncertainty and human review.

- 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-8431 and version V1.0.