Double scoring of STW and choice of control segment (example Patient 7). Both scalp and iSTW analyses were performed by comparing the overlap of periods corresponding to STW marked on scalp EEG (green marker represents Scorer 1; pink marker represents Scorer 2; black line below indicates the overlap) with a control segment chosen outside any STW marker. The control segment was derived from a 2 s segment in tonic and another 2 s segment in phasic REM sleep (both as close as possible to the STW segment but separated from 2 s), with the weights chosen as to respect the proportion of tonic and phasic REM sleep as in the STW segment. Example (a), only tonic (gray arrow) STW segment. In this case, the control segment is selected in tonic (dotted gray) REM sleep; example (b), only phasic (blue arrow) STW segment; the control segment is selected in phasic (dotted blue) REM sleep; example (c), mixed tonic and phasic STW segment. The equivalent segment is a 2 s segment built with parts of 2 s phasic and tonic segments.