Here is an Aura Smart Sleep System from Withings company to monitor and to improve the quality of your sleep. It consists of table lamp device, diagnostic cover, containing some transducers, and of supporting iOS application.
The cover, which needs to be placed under your mattress monitors all the movements in the night, including heart rate and breath tempo, and bedside device in its turn calculates an optimal time for a person to wake up, using the information gathered. Upon the use of this program you may observe all sleep cycles and even compare them with each other. Smart system belongs to the category of quite expensive health gadgets.