Unsupervised trajectory modeling based on discrete descriptors for classifying moving objects in video sequences