Sleep onset refers to the transition from wakefulness to a state of sleep. It can be determined by the biopotential measurements included in the polysomnography. Typically, this transition is towards NREM sleep. However, the sleep state can also begin with the REM phase in some cases.