I've always thought a Thermal Imaging camera mounted above the bed would be the best sleep tracking system. It could even be hooked up to a feedback loop where if it detects your body temperature rising it can increase your fan speed, things like that. It would be a fun computer vision project.