1. Scope and product forms
A PSG automatic analysis system assists with the interpretation of previously acquired polysomnography (PSG) signals. It may import a recording, display raw traces, propose sleep stages and event marks, calculate summary measures, and let qualified staff edit and sign the result. The software is not itself the electrodes, amplifier, overnight monitoring service, or physician diagnosis. Its actual output scope depends on the intended use, required channels, and instructions for the delivered version. The American Academy of Sleep Medicine (AASM) Scoring Manual covers sleep stages, arousals, respiratory, movement, and cardiac events as well as technical and digital specifications. That coverage does not mean every commercial program implements every task.
1.1 Three common deployments
An on-site laboratory workstation reads studies and supports screen-by-screen editing and reporting. A server or cloud service receives signals and returns proposed annotations. An analysis module bundled with acquisition hardware may generate a draft after recording. The deployment determines whether reading remains possible during an outage, where raw signals reside, who controls updates, and whether an audit trail can be exported. Request the channel and function list for the actual delivered version. Check sleep staging, arousals, respiratory events, leg movements, quality alerts, and reporting separately.
1.2 Boundary with neighboring systems
PSG typically contains EEG, EOG, EMG, and respiratory channels. A home sleep apnea test (HSAT) may use different available signals and denominators. A camera, wearable, or single oximetry channel should not be described as complete automated PSG scoring. The AASM adult obstructive sleep apnea diagnostic guideline distinguishes PSG from a technically adequate HSAT in its appropriate population and recommends PSG after a negative, inconclusive, or technically inadequate single HSAT. The AASM diagnostic guideline supports that distinction; a shared “sleep report” button does not remove it.
2. Workflow from signals to report
2.1 Import, mapping, and quality gate
At import, check patient and study identifiers, study type, start and end times, time zone or overnight date convention, sampling rates, units, polarity, channel labels, and lights-off and lights-on markers. EDF/EDF+ are common interchange formats, and EDF+ can carry event annotations. Readability alone does not prove that device-specific labels, units, and annotation semantics mapped correctly. The EDF+ specification describes the interchange layer. Compare imported waveforms, scales, and event positions with the source export at matching times.
Before analysis, identify electrode detachment, flat lines, movement artifact, lost oximeter contact, absent airflow or effort signals, clock drift, and recording interruptions. Poor intervals should not silently become “normal” or “no event.” The interface should show uninterpretable intervals and reasons and let reviewers return to raw traces. When a required signal is absent, the system should clearly degrade or suppress the affected output rather than hide the gap behind an overall score.
2.2 Stages, events, and derived indices
Staging commonly outputs wake W, N1, N2, N3, and rapid eye movement REM aligned with scoring epochs and raw traces. Arousals, respiratory events, and leg movements are distinct tasks. Good staging validation does not establish arousal detection or correct separation of obstructive, central, and mixed apneas. Counts also depend on the selected rule, signal availability, duration, overlap handling, and definition of sleep time. For an apnea-hypopnea index (AHI), show both event definition and denominator. A frequency based on recording time should not be directly compared with an AHI based on total sleep time.
AASM notes that adult hypopneas have alternative scoring criteria; its recommended criterion includes reduced airflow with an arousal or at least a 3% oxygen desaturation. The choice can change AHI and its interpretation. The AASM position statement on arousal-based scoring therefore supports explicit reporting of manual version, adult or pediatric rule, hypopnea option, and revision date. This guide does not replace the full event-by-event scoring manual.
| Workflow step | Information to preserve | Response to failure |
|---|---|---|
| Import and sync | Source identifier, channel mapping, units, sample rates, timeline | Hold automated conclusions, correct the mapping, and reimport |
| Quality review | Distorted and missing intervals, usable channels, reason for non-interpretation | Flag excluded intervals for human review |
| Automatic annotation | Model or rule version, epoch and event locations, confidence cues | Edit or remove marks against raw traces |
| Summary report | Rule version, sleep-time denominator, reviewed counts, signer | Recalculate and retain the prior version difference |
3. Interpreting performance evidence
3.1 One accuracy figure is not whole-system performance
For stages, seek a patient-separated test set, epoch-level agreement against independent expert or consensus labels, a confusion matrix, and performance for W, N1, N2, N3, and REM. Overall accuracy alone can be dominated by common stages. For event detection, request event-level sensitivity, positive predictive value, the temporal overlap or tolerance rule, and separate results for arousals, respiratory subtypes, and leg movements. For a final index such as AHI, inspect paired differences and errors near decision thresholds. Human scorers can also disagree; one scorer's annotation is not an error-free ground truth. An original inter-scorer study illustrates this limitation.
The original U-Sleep study used recordings from 15,660 participants in 16 clinical studies and assessed data from a clinic unseen in model development. It illustrates the value of cross-cohort testing, within the boundaries of that staging system and study. See the original U-Sleep study. An independent pediatric evaluation found lower performance in children under two years and in children with some comorbidities affecting EEG; it still called for expert review. See the pediatric external evaluation. Neither result supplies a universal promise for every product, age, or event type.
3.2 Validation data should resemble local work
Ask whether training, tuning, and final test data were separated by patient and site, and whether repeat nights, derived files from one device, or human-edited labels leaked into the test set. The sample should cover local acquisition devices, channel combinations, ages, severity, positive airway pressure titration, artifacts, and uncommon events. Mark populations without adequate coverage as limitations. If the vendor claims time savings, measure total technologist review minutes, re-editing, report rework, and missed events in the real workflow. Model inference time is not the same as labor saved. An earlier automatic versus manual PSG study found differing agreement across respiratory events, movements, and arousals and called for expert verification.
| Vendor claim | Evidence to request | What it cannot establish |
|---|---|---|
| Staging resembles human scoring | Independent test, per-stage confusion, patient-level uncertainty | Equal accuracy for all events |
| Respiratory detection is automatic | Event-level evaluation by subtype and missing-signal condition | No need to configure rules or review results |
| Reading is faster | Total review time and rework in a live workflow | Automatic improvement in clinical outcomes |
| Pediatric or special populations are supported | External validation in the stated population and device setting | Direct transfer of adult results |
4. Human review and accountability
Treat automatic output as a draft awaiting review. Under the laboratory's workflow, a technologist checks low-confidence epochs, sleep-wake transitions, REM, arousals, airflow and oxygen anomalies, body position, and leg movements. Review is particularly useful near quality flags and index thresholds. The system should expose raw signals, machine marks, human edits, comments, editor identities, and timestamps in a traceable view. If staging changes after a report is generated, recompute measures that depend on total sleep time. Qualified clinicians make the final interpretation in the context of history, study quality, and scoring rules.
One concrete product boundary appears in the public US FDA EnsoSleep K162627 file. Its cleared adult indication was an aid to physician diagnostic evaluation, automated marks were subject to qualified clinician verification, and that version required manual marking for some respiratory event types. The FDA K162627 file applies to that particular version. It does not describe the capabilities or authorizations of every PSG analysis system or another jurisdiction.
The FDA, Health Canada, and UK MHRA transparency principles for machine learning medical devices emphasize intended use, inputs, outputs, performance, limitations, and human-AI team performance. The regulatory transparency principles help assess whether product information enables meaningful review. An “AI” label or a paper alone does not establish the regulatory status of the delivered version.
5. Local selection and acceptance
5.1 Three rounds of acceptance samples
First, use complete routine studies to verify import, channel mapping, epoch alignment, and editable output. Next, use local examples with poor quality, missing signals, overnight date transitions, or mixed devices to test rejection and alerts. Finally, have independent scorers assess representative cases blinded to the automated draft and compare machine output, edited output, and the final report. Freeze the manual version, event-matching method, acceptance thresholds, and issue severity before testing. Preserve denominators, exclusions, event counts by type, patient-level results, and total review time. Repeat affected checks after a software or model update, sensor change, or export-format change.
| Local test | Expected observation | Acceptance record |
|---|---|---|
| Complete routine PSG | Aligned waveforms, labels, stages, events, and report timeline | Retain source hash and comparison captures |
| Wrong label or missing channel | Clear warning, unreliable output suppressed, traceable correction | Record trigger and human action |
| Human stage or event edit | Sleep time, AHI, and other dependent measures update | Compare before and after versions and signature |
| Network or service outage | Reading and export recover without data loss | Retain recovery steps and event log |
5.2 Data, versions, and incident handling
Raw PSG signals and derived annotations may be sensitive health information. Determine what the laboratory, vendor, and cloud provider each retain; where data are sent; who can access them; when they are deleted; and whether raw traces and complete edit histories can be exported. External test sets should follow local de-identification and authorization processes. A networked system also needs reviewed account permissions, encryption, backup and recovery, vulnerability response, and update rollback. The FDA medical device cybersecurity guidance offers a framework for design, labeling, and maintenance; applicable obligations depend on product and jurisdiction.
An incident record should identify software and model version, study identifier, input hash, scoring rule, error location, human edits, and final report version. If output cannot be explained or plainly conflicts with raw traces, hold automatic aggregation for that study and use the established manual scoring workflow. Repeated bias calls for review of affected studies and vendor investigation. A model update should not silently overwrite signed older reports before its impact is understood.
6. Sources and limits of use
The linked sources support scoring context, the PSG versus HSAT boundary, EDF+ interchange, staging and event evaluation, human review, and cybersecurity checks. Each study applies to its sample, acquisition devices, scoring rules, and software version at the time. This guide sets no universal accuracy rate, passing threshold, or diagnostic conclusion. Procurement and clinical use require checking local law, the actual product instructions, laboratory workflow, and the current scoring manual.