Energy-efficient recognition of human activity in body sensor networks via compressed classification