Context-based gait recognition