pattern prediction analysis