Pattern recognition analysis