Human activity recognition using motion trajectories