Syntactic Pattern Recognition
Syntactic Pattern Recognition
a b
Fig 2: A grammar describing four blocks arranged in 2-block stacks. (i) An example. (ii) Graphical description
corresponding to (i). (iii) Another example. (iv) Graphical description corresponding to (iii).
Pattern Description Using Grammar
A grammar describing four blocks arranged in 2-block stacks:
VT = { table , block , + , ↑ } (terminal symbols)
VN = { DESK,LEFT STACK,RIGHT STACK}
(non-terminal symbols)
S = DESK ∈ VN (root symbol)
P = {DESK → LEFT STACK + RIGHT STACK
DESK → RIGHT STACK + LEFT STACK
LEFT STACK → block ↑ block ↑ table
RIGHT STACK → block ↑ block ↑ table}
(production rules)
Pattern Description Using Grammar
Fig 4: Representation of four characters using the line drawing picture description grammar
(a) Pattern data. (b) Primitive representation and interconnection. (c) Corresponding descriptions
Pattern Description Using Grammar
When to Use It
Picture recognition and scene analysis are problems in which there
are a large number of features and the patterns are complex.
For example, recognizing areas such as highways, rivers, and bridges in
satellite pictures.
In this case, a complex pattern can be described in terms of a
hierarchical composition of simpler sub patterns.
Syntactic System
.
Pattern Representation
Input Segmentation Syntax (or Classification
preprocessing or Primitive structural)
pattern Recognition
Decomposition analysis And Description
recognition
- - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - --
Analysis Primitive (and Grammatical (or
sample
relation) structural)
pattern inference
selection
Library of
classes Class1
Structure
Class2
Structure
…. Class C
Structure
categorized by
structures
Inferring Grammars
Grammatical inference machine similar to “learning” in the
discriminant approach; it infers a grammar from a set of training
patterns.
The inferred grammar can then be used for pattern description and
syntax analysis.
Hierarchical Approach
The hierarchical approach comes from the similarity that can be seen
between the structure of patterns and the syntax or grammar of
languages.
Basic idea: use graphs to represent structural relationships
Primitives: nodes/vertices of a graph
Relationships: arcs/edges of a graph
Essential component: graph matching
Following this analogy, patterns can be built up from sub-patterns in
a number of ways, similarly to how one builds words by
concatenating characters, and builds a phrase or sentence by
concatenating words.
Definitions
Homomorphism:
A function that relabels one graph into another.
Merging nodes is allowed so long as it preserves the edge relationships.
Isomorphism:
A homomorphism that is 1-to-1 and onto.
Merging nodes not allowed—exact match with nothing changed but labels.
Quick Rejection Criteria