Google filed a patent for a system that tracks a user's sleep with infrared:
Patent Images



Looks like I was already heading in the right direction some years ago with my device. Time to continue my research at full steam!