In order to detect rapid eye movements (REM) automatically, the Discrete Wa
velet Transform was applied to each 8-s segment of electrooculogram (EOG) d
ata for 30 min of 8 h of normal sleep. The Haar function was used as an ana
lysing wavelet because this function is similar to the REM waveform. By shi
fting the phase of the analysing wavelet by pi /4 of the function, 96% of R
EM could be detected. The artifacts caused by body movements could be detec
ted simultaneously by this method. Computing time required for the detectio
n of REM was only 11s for 30 min EOG data.