Pattern recognition is a type of machine learning .
In contrast to pattern recognition , pattern matching is generally a type of machine learning , although pattern-matching algorithms ( especially with fairly general , carefully tailored patterns ) can sometimes succeed in providing similar-quality output of the sort provided by pattern-recognition algorithms.