Pattern Recognition in Complex Systems