Syntactic Pattern Recognition 04/28/17

Slides:



Advertisements
Similar presentations
Grammar types There are 4 types of grammars according to the types of rules: – General grammars – Context Sensitive grammars – Context Free grammars –
Advertisements

Chapter 5: Languages and Grammar 1 Compiler Designs and Constructions ( Page ) Chapter 5: Languages and Grammar Objectives: Definition of Languages.
Natural Language Processing - Formal Language - (formal) Language (formal) Grammar.
Chapter Chapter Summary Languages and Grammars Finite-State Machines with Output Finite-State Machines with No Output Language Recognition Turing.
Chapter 3: Formal Translation Models
Syntactic Pattern Recognition Statistical PR:Find a feature vector x Train a system using a set of labeled patterns Classify unknown patterns Ignores relational.
Formal Grammars Denning, Sections 3.3 to 3.6. Formal Grammar, Defined A formal grammar G is a four-tuple G = (N,T,P,  ), where N is a finite nonempty.
Lecture # 5 Pumping Lemma & Grammar
Phrase-structure grammar A phrase-structure grammar is a quadruple G = (V, T, P, S) where V is a finite set of symbols called nonterminals, T is a set.
Regular Grammars Chapter 7. Regular Grammars A regular grammar G is a quadruple (V, , R, S), where: ● V is the rule alphabet, which contains nonterminals.
Regular Grammars Chapter 7 1. Regular Grammars A regular grammar G is a quadruple (V, , R, S), where: ● V is the rule alphabet, which contains nonterminals.
ECE 471/571 – Lecture 2 Bayesian Decision Theory 08/25/15.
ECE 471/571 – Lecture 6 Dimensionality Reduction – Fisher’s Linear Discriminant 09/08/15.
1 Chapter 6 Simplification of CFGs and Normal Forms.
ECE 471/571 - Lecture 19 Review 11/12/15. A Roadmap 2 Pattern Classification Statistical ApproachNon-Statistical Approach SupervisedUnsupervised Basic.
CSC312 Automata Theory Lecture # 26 Chapter # 12 by Cohen Context Free Grammars.
Regular Grammars Reading: 3.3. What we know so far…  FSA = Regular Language  Regular Expression describes a Regular Language  Every Regular Language.
Formal Languages and Grammars
ECE 471/571 – Lecture 21 Syntactic Pattern Recognition 11/19/15.
ECE 471/571 – Lecture 3 Discriminant Function and Normal Density 08/27/15.
20 G M aaba acba aaba.. What is it about? Models of Language Generation Models of Language Recognition.
PROGRAMMING LANGUAGES
Language Recognition MSU CSE 260.
Computability Joke. Context-free grammars Parsing. Chomsky
lec02-parserCFG May 8, 2018 Syntax Analyzer
ECE 471/571 - Lecture 19 Review 02/24/17.
BCT 2083 DISCRETE STRUCTURE AND APPLICATIONS
Nonparametric Density Estimation – k-nearest neighbor (kNN) 02/20/17
David Rodriguez-Velazquez CS – 6800 Summer I
Context-Free Grammars: an overview
Performance Evaluation 02/15/17
Syntax Specification and Analysis
Theory of Languages and Automata
Complexity and Computability Theory I
Natural Language Processing - Formal Language -
Compiler Construction
ECE 471/571 – Lecture 18 Classifier Fusion 04/12/17.
Unsupervised Learning - Clustering 04/03/17
Context Free Languages
Unsupervised Learning - Clustering
CSE322 Chomsky classification
A HIERARCHY OF FORMAL LANGUAGES AND AUTOMATA
CSE322 LEFT & RIGHT LINEAR REGULAR GRAMMAR
Regular Grammar.
Chapter 7 Regular Grammars
5. Context-Free Grammars and Languages
ECE 471/571 – Lecture 12 Perceptron.
NORMAL FORMS FDP ON THEORY OF COMPUTING
CHAPTER 2 Context-Free Languages
ECE 471/571 – Review 1.
Parametric Estimation
Hairong Qi, Gonzalez Family Professor
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
Theory of Computation Lecture #
ECE – Pattern Recognition Lecture 16: NN – Back Propagation
ECE – Pattern Recognition Lecture 15: NN - Perceptron
ECE – Pattern Recognition Lecture 13 – Decision Tree
Hairong Qi, Gonzalez Family Professor
lec02-parserCFG May 27, 2019 Syntax Analyzer
Hairong Qi, Gonzalez Family Professor
ECE – Lecture 1 Introduction.
ECE – Pattern Recognition Lecture 10 – Nonparametric Density Estimation – k-nearest-neighbor (kNN) Hairong Qi, Gonzalez Family Professor Electrical.
Bayesian Decision Theory
Hairong Qi, Gonzalez Family Professor
ECE – Pattern Recognition Lecture 8 – Performance Evaluation
ECE – Pattern Recognition Lecture 4 – Parametric Estimation
Hairong Qi, Gonzalez Family Professor
Overview of the Course.
ECE – Pattern Recognition Lecture 14 – Gradient Descent
ECE – Pattern Recognition Midterm Review
Presentation transcript:

Syntactic Pattern Recognition 04/28/17 ECE 471/571 – Lecture 22 Syntactic Pattern Recognition 04/28/17

References King Sun Fu, Syntactic Pattern Recognition, Applications. Springer, 1977 International Association for Pattern Recognition (IAPR), 1976 TPAMI, 1978 DL Davies, DW Bouldin - Pattern Analysis and Machine …, 1979 (citation: 2275)

Recap Pattern Classification Statistical Approach Non-Statistical Approach Supervised Unsupervised Decision-tree Basic concepts: Baysian decision rule (MPP, LR, Discri.) Basic concepts: Distance Agglomerative method Syntactic approach Parameter estimate (ML, BL) k-means Non-Parametric learning (kNN) Winner-take-all LDF (Perceptron) Kohonen maps NN (BP, Hopfield, DL) Support Vector Machine Dimensionality Reduction FLD, PCA Performance Evaluation ROC curve (TP, TN, FN, FP) cross validation Stochastic Methods local opt (GD) global opt (SA, GA) Classifier Fusion majority voting NB, BKS

Key Concept If we can draw it (automatically), then we can recognize it Based on formal language

Philosophy A grammar generates a (possibly infinite) set of strings (pictures) If we can design a grammar which generates a class of strings, then we can build a machine which will recognize any string in that class

Types of Grammars - Symbols VN: the set of non-terminal symbols VT: the set of terminal symbols P: the set of rewriting rules (productions) S: the start symbol : the empty (null) symbol

Type 0 Grammar No restrictions on rewriting rules The string a (whenever it occurs in a deviation) may be replaced by the string b

Type 1 – Context Sensitive

Type 2 – Context Free Left side must be a single non-terminal Example A  a S  0S1 S  01

Type 3 - Regular A  aB, or A  a A and B are single non-terminal Is a regular grammar also context-free?

Example Describe two types of chromosomes for recognition (submedian chromosome and telocentric chromosome) Chromosome is represented as a string, obtained by tracing the outline in clockwise direction Pattern primitives = terminal symbols

Example (cont’) Grammar for recognition of submedian and telocentric chromosomes G = (VN, VT, P, S) Non-terminals VN = {S, S1*, S2*, A, B, C, D, E, F} S – start symbol S1* – submedian chromosome S2* – telocentric chromosome A – armpair, B – bottom, C – side, D – arm, E – rightpart, F - leftpart

Example (cont’) Production (rewriting rules) S  S1* B  e S  S2* C  bC S1*  AA C  Cb S2*  BA C  b A  CA C  d A  AC D  bD A  DE D  Db A  FD D  a B  bD E  cD B  Bb F  Dc

Example (cont’) ebabcbab babcbabdacad S  S1*  AA  ACA  FDCA  DcDCA  bDcDCA  bDbcDCA  babcDCA  babcbDCA  babcbDbCA  babcbabCA  babcbabdA  babcbabdAC  babcbabdDEC  babcbabdaEC  babcbabdacDC  babcbabdacaC  babcbabdacad

Finite State Machine A regular expression determines a finite-state machine 0(010)*1 S  A, A  0B, B  0C, C  1D, D  0B, B  1

Recognition of Abnormal ECG Regular grammar G = ({S, A, B, C, D, E, H}, {p, r, t, b}, P, S) Productions: S  pA, A  rB, B bC, C  tD, D  b, D  bE, E  b, E  bH, E  pA, H  b, H  bS, H  pA p r b t b b b

ECG (cont’) Example of derivation of a well formed ECG wave: S  pA  prB  prbC  prbtD  prbtbE  prbtbbH  prbtbbbS  prbtbbbpA  prbtbbbprB  prbtbbbprbC  prbtbbbprbtD  prbtbbbprbtbE  prbtbbbprbtbb  … etc. Note possibility of variable number of “b’s” One to three to accommodate normal variations of heart rate

The FSM r b t A B C D p b b p S p b E b b b H FSM

Education is what remains after one has forgotten everything one learned in school. -- Albert Einstein