add all pattern recognization function into model