pattern cognition