An automatic method for the study of REM sleep microstructure | IEEE Conference Publication | IEEE Xplore