Professional Documents
Culture Documents
TO PATTERN
RECOGNITION
CSE555, Fall 2021
Chapter 1, DHS
1
MOST OF THE SLIDES IN THIS COURSE ARE FROM
syllabus
2
3
Course Information
• Register for the class on piazza --- our main resource for discussion and
communication
• Python tutorial will be out today
3
4
4
5
Relationships
https://levity.ai/blog/diff
https://www.analyticsvidhya.com/blog/2015/07/difference- erence-machine-
machine-learning-statistical-modeling/ learning-deep-learning
5
6
6
7
Eye
7
8
8
9
Results
9
Similar Different
Human Perception
Humans have developed highly sophisticated skills for sensing their environment and taking actions according to what
they observe, e.g.,
• Recognizing Faces
• Understanding Spoken Languages
• Reading and Recognizing Handwritten digits/characters
• speaker identification
• remote sensing,
• EEG/ECG analysis,
• DNA sequence identification,
• personal identification through iris scanning, finger-printing
• …..
We would like to give similar capabilities to machines, i.e., the requirement is for automated machine recognition of objects, signals,
images to support automated machine decision-making.
10
What is a Pattern?
11
Steps of Pattern Recognition
12
Key Concepts of Pattern Recognition
feature: variable believed to carry discriminating and characterizing information about an object to be identified
feature vector
class/label: category to which a given object belongs
pattern: features + class
training data, testing data
cost function: quantitative measure representing the cost of making a classification error
true positive vs. false positive
training performance vs. generalization performance
supervised vs. unsupervised algorithms
13
Problems & Algorithms
Classification: supervised predicting categorical labels support vector classifier, linear discriminant
analysis, decision tree
Clustering: unsupervised predicting categorical labels k-means, kernel principle component analysis
Regression: predicting real-valued labels linear regression, generalized linear regression, principle
component analysis, neural networks/deep learning, support vector regression
Sequence labeling: predicting sequence of categorical or real-value labels. Kalman filter, particle filter,
hidden Markov model, conditional random fields
Ensemble learning: meta-algorihm combining multiple learning algorithms
Graphical model: structured label
neural network: unsupervised general-purpose learning
14
Machine Perception
• We are often influenced by the knowledge of how patterns are modeled and recognized in
nature, when we develop pattern recognition algorithms.
• Accurate pattern recognition by machine would be immensely useful.
• In fact, in solving such problems, we gain deeper understanding and appreciation for pattern
recognition systems in the natural world — most particularly in humans. For some applications,
such as speech and visual recognition, our design efforts may in fact be influenced by
knowledge of how these are solved in nature, both in the algorithms we employ and the design
of special purpose hardware.
15
Applications
16
Applications
17
Applications
18
Applications
19
An example System
Many visual inspection systems are like this: Circuit board, fruit, OCR, etc.
20
Feature Extraction
The intrinsic characteristics of an object (or an object type) that sets it apart from the other
objects ( or object types)
Features extraction and representation aims at identifying:
• Relevant and distinguishing characteristics of a pattern
• Obtain data reduction and abstraction
21
An Example Problem
22
An Example Problem: Feature Selection
23
Feature Selection
24
Feature Selection
25
Feature Selection
26
Estimating the Cost of Error
Consequences of our actions may not be equally costly. This means that deciding the fish is a
sea bass when in fact it is a salmon, is just as cost undesirable as the converse. Such a
symmetry in the cost is often, but not invariably the case.
• mistaking Salmon as Seabass may not be that expensive a mistake as it is the
other way.
Does this information help our decision?
• There should an overall single cost associated with our decision, and our
task is to make a decision rule, so as to minimize the cost.
• But relying on a single feature, may have other challenges. For example, in order to
play safe, we may allow more Salmon be mis-identified as Seabass and end up
making losses
27
Add more Features for Representation
28
Example: Two Feature Representation
29
6
30
Pupil
Note that the pupils for the real eyes have a strong circular or
elliptical shapes (yellow) while those for the fake eyes are with
irregular shapes (red).
31
8
32
9
Results https://mobile.twitter.co
m/ak92501/status/1433
Real Fake 250799749054465
https://arxiv.org/abs/210
9.00162
34
Trying a Different Decision Rule?
Should we choose decision boundary more complex than the simple straight line?
35
Generalization
The central aim of designing a classifier is to suggest actions when presented with
novel patterns, i.e., fish not yet general- seen. This is the issue of generalization.
It is unlikely that the complex decision boundary would provide good generalization,
since it seems to be “tuned” to the particular training samples, rather than some
underlying characteristics or true model of all the sea bass and salmon that will
have to be separated.
36
How to obtain THE Best Decision Boundary?
A tradeoff between complexity of decision boundary and the performance of the learned model in test
environment?
37
Subtasks of Pattern Classification
• Feature Extraction
• Feature Processing in presence of Noise
• Feature Selection with the use of Prior Knowledge in
• Handling Missing Feature
• Avoiding Overfitting
• Model Selection
• Classification
• Computational Complexity
• Context Invariance
38
Learning & Adaptation
• Supervised Learning
• Unsupervised Learning
• Reinforcement Learning
39