The invention relates to a mechanism for determining the depth of sleep of a subject. In order to obtain information about the continuum of the depth of sleep in a user-friendly way without a need for high computational power, EEG signal data is obtained from a subject (11), REM sleep periods of the subject are detected (13), and a measure indicative of irregularity in the EEG signal data is derived (16). Based on the measure and the detected REM sleep periods, a sleep depth index and state information are produced (17), where the index is indicative of the depth of sleep of the subject and the state information indicates whether or not the EEG signal data is obtained during a REM sleep period. The detection of the REM periods may be based on a bioimpedance measured from EEG electrodes simultaneously with the EEG measurement or on EOG signal data measured from the subject.
Determination of sleep depth