Accuracy of physical activity recognition from a wrist-worn sensor