Skip to content

Hypnograms

Hypnograms summarize sleep stages across time.

If valid staging data are present as annotations, a hypnogram will be generated, both in the main signal view (navigation panel) but also in the hypnogram dock.

Note that stages must map to N1, N2, N3, R, W and ?. If other labels have been used, you can remap them via a parameter file.

Detailed Hypnogram

This tab also gives some simple summary statistics: e.g. stage durations and WASO (minutes). You can alter some of the options and recreate these hypnogram statistics, e.g. by altering lights out/on times and then pressing Run HYPNO. See Luna documentation for more details.

Hypnogram

Staging evalation (SOAP)

As described here, the SOAP command evaluates signal/staging consistency. When staging are present, select a channel and press SOAP to generate the kappa coefficients and a SOAP-hypnodensity plot:

SOAP Visualization

Automated Staging (POPS)

To use POPS, first download and expand this POPS resource .zip. Then point the POPS folder box to wherever you saved it, i.e. other than the default, which is set to ~/dropbox/pops/ (or use a configuration file to set the pops-path variable).

As described here, the POPS system performs automatic sleep staging and hypnodensity visualization.

Select a channel to use (currently, only the single-EEG s2 model is supported), point Lunascope to where the POPS model files have been downloaded and click Run POPS. This will produce a hypnogram output of predicted stages:

POPS Hypnogram

You can toggle between this view and the hypnodensities by clicking the Hypnodensity radio button:

POPS Hypnodensity

There is also an option to ignore any existing staging that might be present. (This means that the kappa statistics, etc, are not computed; but also than all epochs will be included - otherwise, epochs marked as unknown (?) are excluded from automated staging.)

You can see a fuller set of POPS metrics which are deposited in Luna's primary Output dock (Ctrl-9 and Cmd-9 keyboard shortcut). For example, here we see the stage specific metrics:

POPS Metrics

POPS will save new annotations (N1, N2, etc, or if staging already exists, pN1, pN2, etc, meaning predicted stage). These annotations can be selected from the Annotations table, used in masks, or other Luna commands.

If you want to set different options (e.g. multiple channels) then use the RUN-POPS or POPS commands in the Console to run POPS generically rather than using this convenience interface (it calls the same underlying code).