Segmentation and classification of human activities using body-mounted inertial sensors