Predicting actions with an N-Gram predictor