Human Activity Recognition from Smartphone Sensor Data for Clinical Trials