This week I've tracked my sleep. Estimating Sleep Stages from Apple Watch:
Apple Watch contains 3-axis accelerometer signals that track motion. They record not only large movements … but also more subtle movements … [Then] an algorithm classifies the signal every 30 seconds (epochs) into one of four stages: Awake, REM sleep, Deep sleep, or Core sleep.