An application for the Moto 360 that uses heart rate and accelerometer data to detect when the wearer has entered R.E.M. sleep.