Here is another good paper: Detection of REM sleep by heart rate. Will see if I can make a logger and find some patterns...