Introduction To Pattern Recognition: Selim Aksoy
Introduction To Pattern Recognition: Selim Aksoy
Selim Aksoy
Department of Computer Engineering
Bilkent University
[email protected]
c
2014,
Selim Aksoy (Bilkent University)
1 / 40
Human Perception
recognizing a face,
understanding spoken words,
reading handwriting,
distinguishing fresh food from its smell.
c
2014,
Selim Aksoy (Bilkent University)
2 / 40
fingerprint image,
handwritten word,
human face,
speech signal,
DNA sequence,
...
c
2014,
Selim Aksoy (Bilkent University)
3 / 40
c
2014,
Selim Aksoy (Bilkent University)
4 / 40
Application
Input Pattern
Pattern Classes
Document image
Text document
Email
Video clip
Speech waveform
Characters, words
Semantic categories
Junk/non-junk
Video genres
Spoken words
Sentences
Face, iris, fingerprint
Parts of speech
Authorized users for access
control
Computer aided diagnosis
Microscopic image
Cancerous/healthy cell
Automatic target recognition Optical or infrared image
Target type
Printed circuit board inspec- Intensity or range image
Defective/non-defective prodtion
uct
Fruit sorting
Images taken on a conveyor Grade of quality
belt
Forecasting crop yield
Multispectral image
Land use categories
Sequence analysis
DNA sequence
Known types of genes
Searching for meaningful pat- Points in multidimensional Compact and well-separated
terns
space
clusters
c
2014,
Selim Aksoy (Bilkent University)
5 / 40
c
2014,
Selim Aksoy (Bilkent University)
6 / 40
c
2014,
Selim Aksoy (Bilkent University)
7 / 40
c
2014,
Selim Aksoy (Bilkent University)
8 / 40
c
2014,
Selim Aksoy (Bilkent University)
9 / 40
c
2014,
Selim Aksoy (Bilkent University)
10 / 40
c
2014,
Selim Aksoy (Bilkent University)
11 / 40
c
2014,
Selim Aksoy (Bilkent University)
12 / 40
c
2014,
Selim Aksoy (Bilkent University)
13 / 40
c
2014,
Selim Aksoy (Bilkent University)
14 / 40
c
2014,
Selim Aksoy (Bilkent University)
15 / 40
c
2014,
Selim Aksoy (Bilkent University)
16 / 40
An Example
I
sea bass,
salmon.
c
2014,
Selim Aksoy (Bilkent University)
17 / 40
c
2014,
Selim Aksoy (Bilkent University)
18 / 40
c
2014,
Selim Aksoy (Bilkent University)
19 / 40
Figure 13: Histograms of the length feature for two types of fish in training
samples. How can we choose the threshold l to make a reliable decision?
CS 551, Spring 2014
c
2014,
Selim Aksoy (Bilkent University)
20 / 40
c
2014,
Selim Aksoy (Bilkent University)
21 / 40
Figure 14: Histograms of the lightness feature for two types of fish in training
samples. It looks easier to choose the threshold x but we still cannot make a
perfect decision.
CS 551, Spring 2014
c
2014,
Selim Aksoy (Bilkent University)
22 / 40
c
2014,
Selim Aksoy (Bilkent University)
23 / 40
lightness: x1
width: x2
c
2014,
Selim Aksoy (Bilkent University)
24 / 40
Figure 15: Scatter plot of lightness and width features for training samples.
We can draw a decision boundary to divide the feature space into two
regions. Does it look better than using only lightness?
CS 551, Spring 2014
c
2014,
Selim Aksoy (Bilkent University)
25 / 40
c
2014,
Selim Aksoy (Bilkent University)
26 / 40
Figure 16: We may distinguish training samples perfectly but how can
we predict how well we can generalize to unknown samples?
CS 551, Spring 2014
c
2014,
Selim Aksoy (Bilkent University)
27 / 40
c
2014,
Selim Aksoy (Bilkent University)
28 / 40
More on Complexity
1
Figure 18: Regression example: plot of 10 sample points for the input
variable x along with the corresponding target variable t. Green curve is the
true function that generated the data.
c
2014,
Selim Aksoy (Bilkent University)
29 / 40
More on Complexity
c
2014,
Selim Aksoy (Bilkent University)
30 / 40
More on Complexity
Figure 20: Polynomial curve fitting: plots of 9th order polynomials fitted to
15 and 100 sample points.
c
2014,
Selim Aksoy (Bilkent University)
31 / 40
Training data
Preprocessing
Preprocessing
Feature extraction
Feature extraction/selection
Features
Features
Classification
Model
Model learning/estimation
Postprocessing
Decision
c
2014,
Selim Aksoy (Bilkent University)
32 / 40
Pre-processing:
I
I
Feature extraction:
I
c
2014,
Selim Aksoy (Bilkent University)
33 / 40
Classification:
I
Post-processing:
I
I
I
c
2014,
Selim Aksoy (Bilkent University)
34 / 40
Select
features
Collect
data
Select
model
Train
classifier
Evaluate
classifier
Data collection:
I
I
c
2014,
Selim Aksoy (Bilkent University)
35 / 40
Feature selection:
I
I
I
c
2014,
Selim Aksoy (Bilkent University)
36 / 40
Model selection:
I
I
I
I
I
I
c
2014,
Selim Aksoy (Bilkent University)
37 / 40
Training:
I
I
c
2014,
Selim Aksoy (Bilkent University)
38 / 40
Evaluation:
I
I
I
c
2014,
Selim Aksoy (Bilkent University)
39 / 40
Summary
I
c
2014,
Selim Aksoy (Bilkent University)
40 / 40