Prediction of Human Activity by Discovering Temporal Sequence Patterns