Pattern recognition systems are in many cases trained from labeled training data ( supervised learning ) but when no labeled data are available other algorithms can be used to discover previously unknown patterns ( unsupervised learning ) .