Wearable sensors, inertial data, inactivity segmentation, activity detection, bayesian inference, dimension reduction, sleep biomechanics