There are multiple devices like smartwatch, fitness bands, motion sensing mats etc. that have been built to track sleeping patterns of an individual. Most people find it inconvenient to sleep with wearable or place devices under their mattress.
Detection and Tracking different landmarks of body.
Discussion