Pattern recognition
Pattern recognition is the task of assigning a class to an observation based on patterns extracted from data. Every time a bank flags an unusual transaction, or a doctor's software highlights a suspicious shape on a scan, something like this is happening. How does a machine learn to sort the world into categories it has never been explicitly shown? And why does getting that question right depend so heavily on the difference between a simple model and a complex one?
Supervised learning assumes that a set of hand-labeled training data has already been collected. That labeling step is typically the limiting factor in how much of this kind of data can be gathered, because it is a slow, human-intensive process. A learning procedure takes those labeled examples and tries to meet two sometimes conflicting objectives: perform well on the training data, and generalize as well as possible to new cases. The tension between those two goals is, in a precise technical sense, the central problem of the field.
When no labeled data is available, unsupervised learning attempts to find inherent patterns directly. The unsupervised version of classification is normally called clustering, and it groups inputs by some inherent similarity measure, such as the distance between instances treated as vectors in a multidimensional space. A middle path, semi-supervised learning, combines a small set of labeled examples with a large amount of unlabeled data.
In community ecology, the word classification is used to mean what most of the field calls clustering, a reminder that terminology shifts depending on which discipline is doing the naming. The field of knowledge discovery in databases, or KDD, leans more heavily on unsupervised methods and has stronger ties to business applications than pattern recognition does.
Every piece of input data is formally called an instance, and each instance is described by a vector of features. Features come in several kinds: categorical features like blood type, which take values from an unordered set; ordinal features like size ratings, which are ordered; integer-valued features like word counts in an email; and real-valued features like a blood pressure reading.
Those feature vectors define points in a multidimensional space, which means the full toolkit of vector mathematics applies, including computing the dot product or the angle between two vectors. Many algorithms operate only on categorical data, so real-valued or integer-valued measurements first have to be discretized into groups, such as "less than 5", "between 5 and 10", or "greater than 10".
Reducing the number of features is a field in itself. Feature selection prunes redundant or irrelevant variables directly, leaving a subset of the originals. Feature extraction, by contrast, uses techniques like principal components analysis to compress a large-dimensionality vector into a smaller one, though the resulting features may no longer correspond to anything easily interpretable.
Many common pattern recognition algorithms are probabilistic: they use statistical inference to find the best label and, crucially, to attach a probability to that choice. Non-probabilistic algorithms output a single best label. Probabilistic ones can output a ranked list of the N-best labels alongside the probability for each.
That probability is mathematically grounded in probability theory in a way that confidence values from non-probabilistic algorithms are not. This distinction matters in practice: a probabilistic classifier can abstain when no label clears a confidence threshold. It can also be plugged into a larger machine-learning system with less risk of error propagation, because the downstream system knows how uncertain the upstream estimate was.
The first pattern classifier with a documented lineage, the linear discriminant presented by Fisher, came from the frequentist tradition. In the frequentist view, model parameters are unknown but objective and are estimated from collected data. The Bayesian approach, which traces part of its philosophical lineage to the distinction between a priori and a posteriori knowledge that goes back to Greek philosophy and was later formalized by Kant, treats those parameters differently. A Bayesian classifier allows the user to supply prior class probabilities drawn from experience, then updates them with observed data using distributions such as the Beta and Dirichlet distributions.
Within medical science, pattern recognition forms the backbone of computer-aided diagnosis systems, abbreviated as CAD. A CAD system supports a doctor's interpretation rather than replacing it. One named example in the source is Papnet, used for screening cervical cancer. Breast tumor detection and the analysis of heart sounds are also listed as medical applications.
Outside medicine, the range is wide. Automatic speech recognition, speaker identification, the classification of postal handwriting on envelopes, and the recognition of human faces are all standard applications. Banks were offered a signature-recognition technology as early as 1990, one that captured the strokes, speed, acceleration, and pressure of a stylus on an overlay to confirm identity. The technology was not widely adopted, in part because banks at the time were content to recover fraud losses through the FDIC rather than inconvenience their customers.
In psychology, pattern recognition relates directly to perception: how the sensory inputs humans receive become meaningful objects. Two competing models describe this. Template matching proposes that incoming stimuli are compared against patterns held in long-term memory. Feature detection models, including the Pandemonium system for classifying letters described by Selfridge in 1959, propose instead that stimuli are broken into component parts, so that a capital E is parsed as three horizontal lines and one vertical line.
Formally, the problem of pattern recognition is to find a function that approximates an unknown ground-truth mapping from inputs to labels, using only training examples. Making that precise requires a loss function, sometimes called a cost function, that assigns a numerical value to each incorrect label. The goal is to minimize expected loss over the probability distribution of inputs.
For classification tasks, the zero-one loss function is often enough. It assigns a loss of one to any wrong label and zero to a correct one, which means minimizing it is equivalent to maximizing the number of correctly classified instances on an independent test set.
The best parameter values are typically found using maximum a posteriori estimation, which simultaneously minimizes training error and applies a regularization procedure that favors simpler models. In the Bayesian context, that regularization is equivalent to placing a prior probability on parameter values, following Occam's Razor: the simplest model consistent with the data is generally preferred. The full Bayesian treatment goes one step further, computing the probability of a new label by integrating over all possible parameter values weighted by their posterior probability, rather than committing to a single best estimate.
Continue Browsing
Common questions
What is pattern recognition in machine learning?
Pattern recognition is the assignment of a label to a given input value based on patterns extracted from data. In machine learning it covers tasks like classification, regression, and sequence labeling. Supervised approaches use hand-labeled training data; unsupervised approaches find inherent structure without labels.
What is the difference between pattern recognition and pattern matching?
Pattern recognition algorithms aim to find the most likely match for an input, taking statistical variation into account. Pattern matching algorithms look for exact matches to pre-existing patterns, with regular expression matching being a common example.
Who developed the first pattern classifier?
The first pattern classifier was the linear discriminant, developed by Fisher in the frequentist tradition. Its parameters are the mean vectors and covariance matrix, estimated directly from collected data.
What are examples of real-world applications of pattern recognition?
Applications include computer-aided diagnosis for cancer screening (such as Papnet for cervical cancer), automatic speech recognition, face detection, license plate recognition, handwriting recognition on postal envelopes, and autonomous vehicle technology.
What is the difference between supervised and unsupervised pattern recognition?
Supervised learning uses hand-labeled training data to build a model, while unsupervised learning finds inherent patterns in unlabeled data. The unsupervised equivalent of classification is called clustering, which groups inputs by similarity rather than assigning them to predefined classes.
Why are probabilistic classifiers useful in pattern recognition?
Probabilistic classifiers output a mathematically grounded confidence value alongside their label choice, allowing them to abstain when confidence is too low. They can also output ranked lists of N-best labels with probabilities, and they integrate more cleanly into larger machine-learning pipelines by reducing error propagation.
All sources
20 references cited across the entry
- 1journalPattern Recognition and Machine LearningW.R. Howard — 2007-02-20
- 3bookMathematical logic, p. 34Chiswell Ian. — Oxford University Press — 2007
- 4bookPattern Recognition and Machine LearningChristopher M. Bishop — Springer — 2006
- 5journalOn Determining Optimum Simple Golay Marking Transforms for Binary Image ProcessingCarvalko, J.R., Preston K. — 1972
- 7journalFeature Selection for Automatic Classification of Non-Gaussian DataIman Foroutan et al. — 1987
- 8journalBinarization and cleanup of handwritten text from carbon copy medical form imagesRobert Milewski — 31 March 2008
- 9journalOptimization of data-driven filterbank for automatic speaker verificationSusanta Sarangi — September 2020
- 10bookPattern classificationRichard O. Duda, Peter E. Hart, David G. Stork — Wiley, New York — 2001
- 13journalSpeaker Verification with Short Utterances: A Review of Challenges, Trends and OpportunitiesArnab Poddar — March 2018
- 14inlinePAPNET For Cervical Screening
- 16journalNeural network vehicle models for high-performance automated drivingJ. Christian Gerdes et al. — 2019-03-27
- 17webHow AI is paving the way for fully autonomous carsChris Pickering — 2017-08-15
- 18journalDeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous CarsBaishakhi Ray et al. — 2017-08-28
- 19journalNeural Networks in Autonomous Vehicle ControlP. K. Sinha et al. — 1993-04-01