# Automatyczna ocena faz snu

EN: **Automated sleep staging** · id `sleepstaging` · aliases: sleep stage scoring, polysomnography scoring AI, ocena polisomnografii, U-Sleep

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [AI w medycynie i ochronie zdrowia](https://aiatlasgraph.com/t/healthai.md) › [Sygnały z ciała i urządzenia noszone](https://aiatlasgraph.com/t/biosignals.md) › Automatyczna ocena faz snu

## Description

- PL: Klasyfikacja 30-sekundowych epok polisomnografii (EEG, EOG, EMG) do faz snu według zasad AASM przez sieci konwolucyjne i rekurencyjne.
- EN: Classifying 30-second polysomnography epochs (EEG, EOG, EMG) into sleep stages under AASM rules with convolutional and recurrent networks.

## In one sentence

- PL: Program analizuje nocne badanie snu i rozpisuje, kiedy pacjent czuwał, spał płytko, głęboko albo śnił.
- EN: Software analyses an overnight sleep study and maps when the patient was awake, in light or deep sleep, or dreaming.

## Problem it solves

- PL: Technik godzinami ocenia każdą noc w laboratorium snu, więc na badanie i wynik czeka się tygodniami.
- EN: A technician spends hours scoring each night in a sleep lab, so people wait weeks for a test and result.

## What it does

- PL: Dzieli noc na krótkie odcinki i każdemu nadaje fazę, jak sekretarz, który przepisuje nagranie na protokół minuta po minucie.
- EN: Cuts the night into short chunks and labels each with a stage, like a clerk turning a recording into minute-by-minute minutes.

## Everyday example

- PL: Po nocy w pracowni snu pacjent z chrapaniem dostaje wynik następnego dnia, bo technik tylko poprawia gotowy hipnogram.
- EN: After a night in the sleep lab, a patient who snores gets results next day because the technician only corrects a ready hypnogram.

## This concerns you if you…

- PL: czekasz na badanie snu
- PL: śledzisz sen opaską i ciekawi cię, jak to działa
- EN: are waiting for a sleep study
- EN: track sleep with a band and wonder how it works

## Keywords

U-Sleep · AASM scoring · Sleep-EDF · SHHS · DeepSleepNet · SleepTransformer · hypnogram · inter-scorer agreement

## How it works

- PL: Sieć (np. w pełni konwolucyjna, wzorowana na U-Net) bierze kilka kanałów i przewiduje fazę dla każdej epoki: czuwanie, N1, N2, N3 lub REM, uwzględniając kontekst sąsiednich epok. Trening na wielu kohortach pozwala działać przy różnych układach elektrod i częstotliwościach próbkowania bez ponownego uczenia.
- EN: A network (e.g. fully convolutional, U-Net-inspired) takes a few channels and predicts a stage per epoch: wake, N1, N2, N3 or REM, using neighbouring-epoch context. Training on many cohorts lets it work across electrode layouts and sampling rates without retraining.

## Limits

- PL: Nawet eksperci nie zgadzają się co do części epok, zwłaszcza fazy N1, co ogranicza możliwą dokładność. Sen z urządzeń noszonych bez EEG to przybliżenie. Ocena faz nie zastępuje oceny bezdechów i innych zaburzeń.
- EN: Even experts disagree on some epochs, especially N1, which caps achievable accuracy. Sleep from wearables without EEG is an approximation. Staging alone does not replace scoring apnoeas and other disorders.

## Key terms

- PL: **polisomnografia**: Nocne badanie snu rejestrujące mózg, oczy, mięśnie i oddech.
- PL: **hipnogram**: Wykres pokazujący, jak fazy snu zmieniały się przez noc.
- PL: **epoka**: Odcinek zapisu, zwykle 30 sekund, któremu nadaje się fazę.
- EN: **polysomnography**: Overnight sleep test recording brain, eyes, muscles and breathing.
- EN: **hypnogram**: Chart showing how sleep stages changed through the night.
- EN: **epoch**: Recording chunk, usually 30 seconds, given one stage label.

## Know first

- [Prognozy i anomalie (Forecasting and anomaly detection)](https://aiatlasgraph.com/t/timeseries.md)
- [Sieci konwolucyjne i sekwencyjne (Convolutional and recurrent networks)](https://aiatlasgraph.com/t/cnn.md)

## Related topics

Untyped, symmetric "see also" links.

- [Monitorowanie zdrowia z zegarków i opasek (Wearable health monitoring)](https://aiatlasgraph.com/t/wearablemonitoring.md)

## Sources

- [U-Sleep: resilient high-frequency sleep staging](<https://www.nature.com/articles/s41746-021-00440-5>) `usleep-2021` · by Mathias Perslev, Sune Darkner, Lykke Kempfner, Miki Nikolic, Poul Jørgen Jennum, Christian Igel

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/sleepstaging · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
