Tools for determining and analyzing NREM and REM sleep cycles.