WSIT WSIT-RG-4016

WSIT Reference Guide — Sleep Data Annotation Services

Defines scoring-rule versions, temporal alignment, human review, agreement checks and controlled delivery for sleep-stage and event annotation.

1. Service scope and annotation targets

1.1 Deliver traceable judgments

A sleep-data annotation service receives licensed waveforms, device time series or diary records and applies an agreed rule set to create time-anchored labels for sleep stages, arousals, respiratory or movement events, body position and unscorable intervals. It retains the scorer, rule version and review history. Device-generated outputs, de-identification, file conversion and clinical interpretation are related but different tasks; the service specification must assign each responsibility. A table containing only an overall “good sleep” score is not epoch-level or event-level annotation. [1][5][7]

First define the unit: a whole-night study, a 30-second sleep epoch, a seconds-long event interval, a day of actigraphy or a questionnaire entry. Each needs a different ontology and time base. A stage is a category for an epoch; an apnea, hypopnea or arousal has an onset and duration; a CAP A phase has its own event type and subtype. Thousands of samples from one person are not thousands of independent annotated cases. [1][4][8][9]

1.2 Public examples show that file formats do not define rules

PhysioNet Sleep-EDF Expanded contains 197 overnight PSG recordings with matching hypnograms. Human staging followed the older Rechtschaffen and Kales (R&K) rules, with W, R, stages 1–4, movement time M and unscored “?”. The 108 PSGs in the CAP Sleep Database add macrostructure and CAP event labels under separate rules and file representations. These are completed research annotations, not evidence that a service is credentialed for clinical work. Older labels should not silently be relabelled as contemporary AASM N1/N2/N3. [3][4]

NSRR's SHHS and MESA release EDF signals plus Profusion and NSRR XML staging/event files, with the latter mapped through a conversion process. SHHS warns that annotation event counts can differ from core tables and that some desaturation events may be absent or misaligned because of historical software conversion. MESA also offers independently scored wrist-actigraphy epochs, a distinct task from PSG XML. The CPS research resource has many arousal and artifact types but requires credentialed access and an agreement. [5][7][8][9]

ExampleOriginal record and labelsLesson for a service
Sleep-EDF Expanded197 PSGs plus EDF+ hypnograms; R&K W, R, 1–4, M and ?. [3]Preserve original meaning and unscored labels; AASM remapping is not lossless.
CAP Sleep Database108 PSGs with stages and CAP A phases/subtypes in TXT and PhysioBank annotations. [4]Deliver staging and microstructure events separately with time and channel provenance.
SHHSEDF, Profusion XML and NSRR XML across PSG visits. [5]Conversion versions can alter counts; compare original and mapped output.
MESA SleepEDF and two XML forms, plus separate actigraphy epoch CSV. [7][8]Device type, clock and scoring rules form different work packages.
CPS113 diagnostic PSGs and many arousal/artifact classes; controlled access. [9]Fix the fine-grained ontology and allowed access before work starts.

2. Rule versions and label ontology

2.1 Freeze the scoring standard before opening records

The AASM scoring manual covers PSG and adult HSAT staging, arousals, respiratory and movement events, plus technical rules. Its rules are revised. A job order must name the licensed manual version, adult or pediatric scope, channels, acquisition and display settings, event definitions, scoring window, optional rule choices and recorded deviations. “Scored per AASM” is too vague as a full protocol. A rule update midway through a batch needs a documented impact assessment and, where necessary, rescoring. [1][12]

Sleep-EDF and CAP used R&K-era stages. Aggregating former stages 3 and 4 into modern N3 is a derivative mapping that loses the earlier distinction; it cannot be reversed. Movement time and “?” should not default to wake. Retain project vocabulary, map version, lost detail and unmappable cases in an ontology file. Changing the label space changes a model's confusion matrix, class frequencies and measured accuracy. [3][4]

2.2 Separate stages, events and quality flags

Maintain at least three layers. The stage layer assigns each planned epoch an allowed class or an unscorable reason. The event layer records type, onset, offset, channel, duration and rule provenance. The quality layer marks outages, saturation, movement artifact, missing leads and clock problems. “No event annotated” must be distinguishable from “no event present,” and an artifact must not automatically become normal sleep. [1][7][9]

HSAT often lacks the full EEG montage of PSG, so available labels and report scope must follow actual channels. Wrist actigraphy estimates sleep/wake and rest intervals from movement, sometimes aided by light and diary data; it does not provide PSG-equivalent N1/N2/N3/R ground truth. MESA's actigraphy file has 30-second summary rows and shifted original dates; the service still needs to verify clock and diary alignment. [1][8]

3. Time alignment and interoperability

3.1 Every coordinate must resolve to the correct signal

Retain study ID, source-file checksum, acquisition start, time zone or de-identified clock, sampling rate, channel names, epoch length and lights-off/on markers. Relative seconds are acceptable if they map unambiguously back to waveform samples. Midnight crossings, daylight-saving changes, pauses, changing sample rates and device drift require explicit treatment. If the EDF header clock and XML relative times disagree, resolve that discrepancy in an alignment report before accepting labels. [3][5][7]

Use an explicit interval convention, such as half-open intervals. Validate start before end, containment within available recording time, and continuous, non-overlapping stage epochs. Respiratory or arousal events may cross stage-epoch boundaries, so row-number joins are unsafe. A model-training excerpt must retain its full-night offset, channel and context. Neighboring segments of one night must not be separated into independent training and test subjects. [5][7][9]

3.2 Test exports with a round trip

Sleep-EDF stores PSG in EDF and hypnograms in EDF+ annotations; SHHS and MESA separate EDF signals from XML labels. Identical extensions do not imply matching event codes or time zero. Deliver a normalized annotation table alongside any required project-native files, and round-trip a sample through import, export and import again. Compare event counts by class, onset/offset, stage coverage and unscorable markers. [3][5][7]

SHHS documents irreversible alterations to some original scoring during historical software upgrades; desaturation annotations may be missing or fail to coincide with respiratory events as expected. Do not quietly add or delete events merely to make exports agree. Log mapping version, discrepancies and adjudication. De-identification date shifts also need a linkage method limited to the authorized environment. [5][8]

4. Annotation workflow and agreement

4.1 Qualifications, training, blinding and review

Clinical diagnostic work requires personnel meeting applicable local requirements or their supervision. Record qualifications and roles. AASM's accreditation-network inter-scorer reliability guidance assesses each scorer individually, and SHHS conducted repeat-scoring and drift checks over a study. A service should accordingly keep a training set, difficult-case library, independent review sample, escalation path and final adjudication record. A promise of “expert annotation” without a named role and process is not an auditable quality plan. [2][6]

Score repeat cases independently first. Preserve each scorer's initial output, review opinion and final consensus rather than overwriting disagreements. Review samples should span age, disease mix, equipment, site, signal quality and uncommon events, not merely easy normal nights. If model prelabels are displayed, record the model version and presentation. A blinded subset can estimate anchoring from automated suggestions. [2][6][10]

4.2 Overall accuracy alone hides disagreement

For stages, report class-specific confusion, macro-averaged metrics, Cohen's kappa and boundary disagreements. For events, specify temporal tolerance, overlap and one-to-one matching before calculating precision and recall. Common wake or N2 epochs may dominate overall agreement while rare arousals or short events are missed. Stratify reliability by scorer, signal quality, site and rule version, and report uncertainty and rescoring rates. [2][6][9]

An expert consensus label is a reference constrained by rules, channels and available context, not an infallible truth. A model that reproduces historical scoring habits in one dataset has not proved transfer to another device, children, HSAT or clinical decisions. AASM's position statement describes AI scoring as an assisted application; use still needs clear human review, scope and ongoing monitoring. [1][10]

5. Acceptance and intended use

5.1 Validate files, alignment, content and clinical review separately

First accept files: each study has provenance, checksum, channel and sampling metadata, permission and readable format. Then accept time: stage coverage, event coordinates, lights-off/on, missing leads and de-identification shifts. Then accept content: rule version, scorer qualifications, double-scored sample, adjudication and class-specific agreement. A designated clinical interpreter reviews studies intended for diagnosis. Passing a file-format check does not issue a clinical report. [1][2][5]

State denominators for received nights, readable nights, scorable nights, completed initial scores, double scores, adjudicated nights and final deliveries. Separate failure reasons for unscorable signals, missing leads, conversion errors and withdrawn authorization. Any claimed event-detection sensitivity needs the actual reference set for that class and its error range, not merely a count of rows in an existing annotation file. [5][7][9]

5.2 Evaluate model data separately from service quality

When training automatic staging or event detection, hold out people, nights and acquisition sites, and freeze the ontology and adjudication process. Randomly splitting neighboring epochs from one person leaks information. Report model inference time and human-review time separately, along with correction rate and final quality. Initial model speed is not completed service throughput. A change in automated scoring scope requires renewed agreement and workload checks. [9][10]

Metrics on open resources do not substitute for acceptance on the client's intended records. Sleep-EDF's old rule set, CAP's condition mix, SHHS/MESA's historical exports and CPS's credentialed clinical data create different test settings. To compare service providers, use the same blinded cases, rules, temporal tolerance and review resources. [3][4][5][7][9]

6. Governance and proposed delivery

6.1 Annotators and platforms need authorized access

Research waveforms may still expose dates, rare diagnoses, video or other sensitive signals. NSRR uses per-dataset data-access agreements even for de-identified material; CPS also requires credentials. Establish whether consent and license permit outsourcing, cloud processing, cross-border transfer, model retraining and retention of derived labels. Apply least privilege, access logs, retention periods and withdrawal handling. A browsable public page does not authorize copying source files into a third-party platform. [9][11]

Keep controlled identity-linkage keys inside the authorized setting. Before publishing derivatives, assess re-identification from unusual cases and timestamps. Contracts should assign ownership and deletion of source files, annotations, model weights, disagreement records and service logs. If a project shifts to diagnosis or clinical reporting, qualified people must review it under applicable institutional and legal processes; research reference labels do not automatically become medical conclusions. [1][11]

6.2 An auditable delivery package

The table is a proposed structure, not a claim that the cited resources ship these exact filenames. Every derivative must trace back to a source signal, scoring version and adjudication event.

Delivery tableMinimum fields and grainAcceptance focus
source_manifestStudy, source file, checksum, license, channels, sample rates and clock; one row per study.Resolve the correct waveform and permission.
label_ontologyLabel, definition, rule version, allowed channels, mapping and unmappable values; one row per label version.Document information lost in legacy conversion.
stage_epochStudy, epoch start/end, stage, scorable state, scorer and version; one row per epoch.Continuous coverage without duplicates or silent gaps.
event_intervalStudy, event class, onset/offset, channel, rule and status; one row per event.Legal coordinates and a check against stage epochs.
quality_issueStudy, interval, artifact/outage/drift reason and handling; one row per issue.Distinguish unscorable from normal.
adjudication_logInitial scores, repeat scores, disagreement, reviewer, time and decision; one row per dispute.Preserve disagreements after consensus.

7. Sources and version scope

7.1 Snapshot and limits

The official manual pages, dataset descriptions and quality files below were checked on 29 September 2026. The project's licensed AASM manual version governs the actual scoring rules; this guide does not reproduce copyrighted manual text. PhysioNet and NSRR examples test format, rule and governance boundaries, not the credentials of an annotation provider or an automated model. Full signals were not downloaded, research nights were not rescored, and no clinical agreement trial was conducted. [1][3][5][11][12]

7.2 Traceable sources

[1] AASM scoring-manual entry. PSG/HSAT scope and version access.

[2] AASM inter-scorer reliability fact sheet. Scorer roles and individual reliability assessment.

[3] PhysioNet Sleep-EDF Expanded. Legacy R&K stages, EDF/EDF+ and unscored labels.

[4] PhysioNet CAP Sleep Database. Macrostructure, CAP events and TXT/PhysioBank annotations.

[5] NSRR SHHS PSG introduction. EDF, two XML forms and historical conversion problems.

[6] NSRR SHHS scorer reliability report. Repeat scoring, drift and agreement methods.

[7] NSRR MESA PSG introduction. EDF and staging/event XML.

[8] NSRR MESA actigraphy introduction. Thirty-second activity epochs and shifted dates.

[9] PhysioNet CPS PSG resource. Arousal/artifact ontology and controlled access.

[10] AASM position on AI in sleep medicine. Opportunities and limits of assisted scoring.

[11] NSRR data security and access. De-identification, authorization and agreement.

[12] AASM summary of version 3 scoring-manual updates. Example of evolving rules and display requirements.

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