hypnos
Polysomnography metrics in your browser
About
hypnos is a web app for getting standard polysomnography (PSG) metrics from an EDF file without installing anything. You select a recording, and the page returns the stage composition of the night, a hypnogram, a spectrogram of the staging EEG channel, and the usual sleep architecture markers.
Everything runs in the browser. The recording is processed on your device and is never uploaded: there is no account and no server holding your data. The analysis is done by R packages from the Circadia Lab ecosystem, compiled to WebAssembly with webR.
How it works
- Pick an EDF file. The page reads the header and only the EEG, EOG and EMG channels that staging needs, so a night-long file of several hundred MB is practical.
- R runs in the browser. mrpheus segments the recording and stages each 30 s epoch, and hypnoR computes the sleep architecture from the resulting hypnogram.
- Explore and export. The hypnogram and spectrogram can be zoomed, with their time axes linked, and the markers and the hypnogram can be downloaded as CSV.
What it shows
- Stage composition across the night
- Hypnogram, with hover and zoom
- Spectrogram of the staging EEG channel, 0 to 30 Hz
- Clinical markers: total sleep time, time in bed, sleep efficiency, sleep onset latency, wake after sleep onset, REM and N3 latency, and stage percentages
Ecosystem
hypnos is a front end to two of the labβs R packages. mrpheus provides EDF ingestion, feature extraction and automatic AASM staging, using a pre-trained model ported from YASA (Vallat & Walker, 2021). hypnoR provides hypnogram handling and sleep architecture metrics.
Status
hypnos is in early development. Sleep stages are scored automatically and the markers have not been validated against manually scored hypnograms. hypnos is independent of the YASA authors and is not endorsed by them. It is a research tool, not a medical device, and is not intended for diagnosis or treatment. Check the output independently before using it in any research context.