How AI Scores a Night of Sleep

Follow a sleep-stage prediction from a 30-second signal to a night of results, and check what a total can hide.

A sleep technologist reviews recordings beside an overnight study room.
A sleep study records signals across the night. Each short interval has its own reference label.

Two summaries can report the same minutes of sleep while disagreeing about when the person was awake. A sleep-staging AI model takes short intervals of physiological signals and predicts a stage for each. To understand a result, put its sequence of predictions beside the sequence scored by a sleep specialist.

What goes into one stage label?

The U-Sleep researchers trained a neural network to score recordings from multiple cohorts using electrical activity from the brain and eye movements. They used data from 15,660 participants across 16 clinical studies. Each 30-second interval receives a label such as wake, REM or a stage of non-REM sleep. A wrist device that senses motion is making an inference from different signals. U-Sleep validation across sleep study cohorts

A tablet displaying a sleep stage classification application is placed on a bed or couch in a dimly lit room with candles and a plant.
A sleep stage is assigned to a short interval of the recording.

What if the scorer and the software disagree?

Look at transitions. An interval spanning a shift toward wakefulness may be harder to score than an uninterrupted stretch. Specialists can also disagree. A fair comparison names the scorer or consensus procedure, the channels available, and whether the test recordings came from a cohort the system had seen during training.

A woman sleeping peacefully on her side, with a plain gray background and small icons scattered throughout.
Two nights with the same estimated total can have different sequences of awakenings.

Equal totals can hide displaced awakenings

A missed awakening and a period of quiet sleep wrongly called wake can cancel out in the nightly total. Count both kinds of error and inspect their timing. This distinction also matters when a bedroom study uses a tracker’s estimate of an interruption as its research outcome. Can AI Tell What Woke You Up?

A hospital room with a bed and a large screen mounted on the wall above it.
Changes across nights depend partly on the consistency of measurement.

Try it with the evidence

Check two summaries of the same ten minutes

Source notes. Fictional example of twenty 30-second intervals. A specialist labels 12 sleep and 8 wake. Software also labels 12 sleep. The two agree on 9 sleep intervals.

Prompt. Reconstruct the four counts for sleep versus wake. Compare the estimated minutes asleep, agreement and the fraction of reference sleep detected.

Check your reading

Each reports six minutes asleep. The counts are 9 correctly called sleep, 3 missed sleep, 3 wake called sleep and 5 correctly called wake. Agreement is 14/20, or 70%. The software detected 9/12, or 75%, of reference sleep.

Illustrated field notes

Reading an overnight recording
A man sits in front of two computer monitors, gazing at an abstract painting and a close-up of a flower.
A stage summary alone cannot establish a sleep disorder.
An illustration of a person sleeping on their side in bed, surrounded by screens and technology.
An alarm’s timing and someone’s experience on waking are distinct outcomes.
A modern bedroom with a large bed and nightstands on each side.
Missing sensor contact can interrupt an otherwise continuous record.
Following a result beyond the laboratory
A woman meditating or relaxing in nature, surrounded by a serene landscape.
Advice derived from a score needs its own evidence of benefit.
A woman holding an iPad in her left hand, standing in front of a blurred background.
A wrist estimate and a laboratory score may use different signals.
A woman sits in a cozy indoor space, gazing at a tablet displaying a constellation map.
Readers can inspect where the reference scorer and software disagree.
A man is receiving critical care in a hospital setting, surrounded by various medical devices and machines.
Testing a new cohort asks whether the scoring system travels across settings.