Google filed a patent for a system that tracks a user's sleep with infrared:
Patent Images
http://i.imgur.com/UDbiRqv.png
Looks like I was already heading in the right direction some years ago with my device. Time to continue my research at full steam!