SlideShare a Scribd company logo
Course: Machine Vision
Recognition (1)
Session 10
D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
Outline
• Pattern Recognition
• Supervised Learning
• Classification
Pattern Recognition
What is Pattern Recognition?
• A pattern is an entity, vaguely defined, that could be given a
name, e.g.,
– Fingerprint image,
– Handwritten word,
– Human face
– Etc.
• Pattern recognition is the study of how machines can
– Observe the environment,
– Learn to distinguish patterns of interest,
– Make sound and reasonable decisions about the categories of the
patterns.
Pattern Recognition Application
(example)
Problem Domain Application Input Pattern Pattern Classes
Document image analysis
Optical character
recognition
Document image Characters, words
Document classification Internet search Text document Semantic categories
Document classification Junk mail filtering Email Junk/non-junk
Multimedia database
retrieval
Internet search Video clip Video genres
Speech recognition
Telephone directory assis-
tance
Speech waveform Spoken words
Natural language
processing
Information extraction Sentences Parts of speech
Biometric recognition Personal identification Face, iris, fingerprint
Authorized users for access
control
Medical Computer aided diagnosis Microscopic image Cancerous/healthy cell
Military Automatic target recognition Optical or infrared image Target type
Industrial automation
Printed circuit board
inspection
Intensity or range image
Defective/non-defective
product
Industrial automation Fruit sorting
Images taken on a conveyor
belt
Grade of quality
Remote sensing Forecasting crop yield Multispectral image Land use categories
Bioinformatics Sequence analysis DNA sequence Known types of genes
Data mining
Searching for meaningful
patterns
Points in multidimensional
space
Compact and well-
separated clusters
Example
• Problem: Sorting incoming fish on a conveyor belt according
to species.
• Assume that we have only two kinds of fish:
– Sea bass
– Salmon
Decision Process
• What kind of information can distinguish one species from
the other?
– length, width, weight, number and shape of fins, tail shape, etc.
• What can cause problems during sensing?
– lighting conditions, position of fish on the conveyor belt, camera
noise, etc.
• What are the steps in the process?
– capture image → isolate fish → take measurements → make
decision
Selecting Features
• Assume a fisherman told us that a sea bass is generally longer than a
salmon.
• We can use length as a feature and decide between sea bass and
salmon according to a threshold on length.
• How can we choose this threshold?
Selecting Features
• How can we choose the
threshold l∗ to make a reliable
decision?
• Even though sea bass is longer
than salmon on the average,
there are many examples of
fish where this observation
does not hold.
Selecting Features
• Try another feature: average
lightness of the fish scales.
• It looks easier to choose the
threshold x∗ but we still
cannot make a perfect
decision
Cost of Error
• We should also consider costs of different errors we make in
our decisions.
• For example, if the fish packing company knows that:
– Customers who buy salmon will object vigorously if they see sea
bass in their cans.
– Customers who buy sea bass will not be unhappy if they
occasionally see some expensive salmon in their cans.
• How does this knowledge affect our decision?
Multiple Features
• Assume we also observed that sea bass are typically wider
than salmon.
• We can use two features in our decision:
– lightness: x1
– width: x2
• Each fish image is now represented as a point (feature
vector ) in a two-dimensional feature space.
X =
x1
x2
æ
è
ç
ç
ö
ø
÷
÷
Multiple Features
• We can draw a decision
boundary to divide the
feature space into two
regions. Does it look better
than using only lightness
• Does adding more features
always improve the results?
– Avoid unreliable features.
– Be careful about correlations
with existing features.
– Be careful about measurement
costs
– Be careful about noise in the
measurements
• Is there some curse for working
in very high dimensions?
Decision Boundaries
• Can we do better with
another decision rule?
• More complex models result
in more complex boundaries
• We may distinguish training
samples perfectly but how
can we predict how well we
can generalize to unknown
samples?
Decision Boundaries
• How can we manage the
tradeoff between complexity
of decision rules and their
performance to unknown
samples?
• Different criteria lead to
different decision boundaries
Pattern Recognition System
Sensor
Pre-processing
and
enhancement
Feature
extraction/select
ion
Supervised
learning
(Classification)
Unsupervised
learning
(Clustering)
Regression
Real
world
Class
assignment
Cluster
assignment
Predicted
variables
Post-processing: feedback/adaptation
Supervised Learning
Supervised Learning
• Supervised learning is the machine learning task of inferring a
function from labeled training data. The training data consist of a set
of training examples.
• In supervised learning, each example is a pair consisting of an input
object (typically a vector) and a desired output value (also called the
supervisory signal)
• A supervised learning algorithm analyzes the training data and
produces an inferred function, which can be used for mapping new
examples
• An optimal scenario will allow for the algorithm to correctly
determine the class labels for unseen instances.
• This requires the learning algorithm to generalize from the training
data to unseen situations in a "reasonable" way
Supervised Learning Steps
• Data acquisition and sensing:
– Measurements of physical variables.
– Important issues: bandwidth, resolution, sensitivity, distortion,
SNR, latency, etc.
• Pre-processing:
– Removal of noise in data.
– Isolation of patterns of interest from the background.
– Color to grayscale conversion
• Feature extraction:
– Finding a new representation in terms of features
Supervised Learning Steps
• Model learning and estimation:
– Learning a mapping between features and pattern groups and
categories
• Classification:
– Using features and learned models to assign a pattern to a
category.
• Post-processing:
– Evaluation of confidence in decisions.
– Exploitation of context to improve performance.
– Combination of experts.
Classification
Classification Problem
• Apply a prediction function to a feature representation of the image
to get the desired output:
f( ) = “Brick”
f( ) = “Fabric”
f( ) = “Grass”
Testing stage Training stage
Classification Steps
Real world
Features
Decision
Model
Features
Training Data
Data
acquisition/training
Pre-processing
Feature extraction
Classification
Post-processing
Model
learning/estimation
Feature
extraction/selection
Pre-processing
Texture Classification (example)
• We are going to classify texture image
• Image source: 40 texture images from MIT VisTex database
– Number of classes: 5 (brick, fabric, grass, sand, stone)
– Train set: 30 images (6 images from each class)
– Test set: 10 images (2 images from each class)
• Features:
– Gray-level co-occurrence matrix (GLCM)
– Fourier power spectrum (#ring: 4, #sector:8)
• Classification method:
– K-nearest neighbor
– Naïve-bayes
• Evaluation: classification accuracy
Design Cycle
Data collection:
• Collecting training and testing data.
• How can we know when we have adequately large and representative
set of samples?
Collect
data
Select
features
Select
Model
Train
Classifier
Evaluate
classifier
Testing images
Training images
Data Collection
Brick
Fabric
Grass
Sand
Stone
Design Cycle
Feature selection:
• Domain dependence and prior information.
• Computational cost and feasibility.
• Discriminative features:
– Similar values for similar patterns.
– Different values for different patterns.
• Invariant features with respect to translation, rotation and scale.
• Robust features with respect to occlusion, distortion, deformation, and
variations in environment.
Collect
data
Select
features
Select
Model
Train
Classifier
Evaluate
classifier
Feature Selection
Gray-level co-occurrence matrix
(GLCM)
Fourier power spectrum
Features Formula
Energy
Inertia
Inverse diff
moment
Entropy
Pij
2
å
Pij
å *(i- j)2
Pij
å / 1+(i- j)2
{ }
Pij
2
*(-lnPij )
å
#ring = 4
#sector = 8
Design Cycle
Model selection:
• Domain dependence and prior information.
• Definition of design criteria.
• Parametric vs. non-parametric models.
• Handling of missing features.
• Computational complexity.
• Types of models: templates, decision-theoretic or statistical, syntactic or
structural, neural, and hybrid.
• How can we know how close we are to the true model underlying the
patterns?
Collect
data
Select
features
Select
Model
Train
Classifier
Evaluate
classifier
Model Selection
k-Nearest neighbor
• Assign label of nearest training data
point to each test data point
Naïve bayes (algorithm)
• For each value yk
– Estimate P(Y = yk) from the data.
– For each value xij of each attribute
Xi
• Estimate P(Xi=xij | Y = yk)
• Classify a new point via:
• In practice, the independence
assumption doesn’t often hold true,
but Naïve Bayes performs very well
despite it.
x x
x
x
x
x
x
x
o
o
o
o
o
o
o
x2
x1
+
+
1-Nearest neighbor
3-Nearest neighbor
 



i
k
i
k
y
new y
Y
X
P
y
Y
P
Y
k
)
|
(
)
(
max
arg
Design Cycle
Training:
• How can we learn the rule from data?
• Supervised learning: a teacher provides a category label or cost for each
pattern in the training set.
• Unsupervised learning: the system forms clusters or natural groupings of
the input patterns.
• Reinforcement learning: no desired category is given but the teacher
provides feedback to the system such as the decision is right or wrong.
Collect
data
Select
features
Select
Model
Train
Classifier
Evaluate
classifier
Design Cycle
Evaluation:
• How can we estimate the performance with training samples?
• How can we predict the performance with future data?
• Problems of over-fitting and generalization.
Collect
data
Select
features
Select
Model
Train
Classifier
Evaluate
classifier
Evaluation
Classification
Method
K-Nearest neighbor Naïve Bayes
Feature Accuracy F score Accuracy F score
GLCM
Fourier Power
Spectrum
Acknowledgment
Some of slides in this PowerPoint presentation are adaptation from
various slides, many thanks to:
1. Selim Aksoy, Department of Computer Engineering, Bilkent
University (http://www.cs.bilkent.edu.tr/~saksoy/)
2. James Hays, Computer Science Department, Brown University,
(http://cs.brown.edu/~hays/)
Thank You

More Related Content

What's hot

PPT s01-machine vision-s2
PPT s01-machine vision-s2PPT s01-machine vision-s2
PPT s01-machine vision-s2
Binus Online Learning
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
VARUN KUMAR
 
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. pptImage segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
RCC Institute of Information Technology
 
Object recognition
Object recognitionObject recognition
Object recognitionakkichester
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
Vicky Kumar
 
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACHGRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
Journal For Research
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
AJAL A J
 
PPT s10-machine vision-s2
PPT s10-machine vision-s2PPT s10-machine vision-s2
PPT s10-machine vision-s2
Binus Online Learning
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Akshit Arora
 
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGESIMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
cseij
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPTImage Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Akshit Arora
 
Image segmentation 2
Image segmentation 2 Image segmentation 2
Image segmentation 2 Rumah Belajar
 
Presentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentationPresentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentation
Subhash Basistha
 
Object tracking
Object trackingObject tracking
Object tracking
Sri vidhya k
 
Improvement oh the recognition rate by random forest
Improvement oh the recognition rate by random forestImprovement oh the recognition rate by random forest
Improvement oh the recognition rate by random forest
Youssef Rachidi
 
Improvement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random ForestImprovement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random Forest
IJERA Editor
 
Visual Object Category Recognition
Visual Object Category RecognitionVisual Object Category Recognition
Visual Object Category Recognition
Ashish Gupta
 
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Pinaki Ranjan Sarkar
 

What's hot (20)

PPT s01-machine vision-s2
PPT s01-machine vision-s2PPT s01-machine vision-s2
PPT s01-machine vision-s2
 
Object Recognition
Object RecognitionObject Recognition
Object Recognition
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Im seg04
Im seg04Im seg04
Im seg04
 
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. pptImage segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
 
Object recognition
Object recognitionObject recognition
Object recognition
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACHGRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
 
PPT s10-machine vision-s2
PPT s10-machine vision-s2PPT s10-machine vision-s2
PPT s10-machine vision-s2
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
 
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGESIMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPTImage Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
 
Image segmentation 2
Image segmentation 2 Image segmentation 2
Image segmentation 2
 
Presentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentationPresentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentation
 
Object tracking
Object trackingObject tracking
Object tracking
 
Improvement oh the recognition rate by random forest
Improvement oh the recognition rate by random forestImprovement oh the recognition rate by random forest
Improvement oh the recognition rate by random forest
 
Improvement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random ForestImprovement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random Forest
 
Visual Object Category Recognition
Visual Object Category RecognitionVisual Object Category Recognition
Visual Object Category Recognition
 
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
 

Similar to PPT s09-machine vision-s2

Machine learning
Machine learning Machine learning
Machine learning
Aarthi Srinivasan
 
Intro to Machine Learning by Microsoft Ventures
Intro to Machine Learning by Microsoft VenturesIntro to Machine Learning by Microsoft Ventures
Intro to Machine Learning by Microsoft Ventures
microsoftventures
 
introduction to pattern recognition
introduction to pattern recognitionintroduction to pattern recognition
introduction to pattern recognition
MohammadMoattar2
 
Örüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern RecognitionÖrüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern Recognition
Hassan-k Abdi
 
pattern recognition.ppt
pattern recognition.pptpattern recognition.ppt
pattern recognition.ppt
SowmiyaBaskar4
 
Anits dip
Anits dipAnits dip
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
SSSSSS354882
 
Dip
DipDip
Machine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An IntroMachine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An Intro
Si Krishan
 
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
Egyptian Engineers Association
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selection
Marco Meoni
 
Seminar nov2017
Seminar nov2017Seminar nov2017
Seminar nov2017
Ahmed Youssef Ali Amer
 
Creativity and Curiosity - The Trial and Error of Data Science
Creativity and Curiosity - The Trial and Error of Data ScienceCreativity and Curiosity - The Trial and Error of Data Science
Creativity and Curiosity - The Trial and Error of Data Science
DamianMingle
 
07 learning
07 learning07 learning
07 learning
ankit_ppt
 
Artificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemArtificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition system
REHMAT ULLAH
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Girish Khanzode
 
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
Daniel Roggen
 
Intro to ml_2021
Intro to ml_2021Intro to ml_2021
Intro to ml_2021
Sanghamitra Deb
 

Similar to PPT s09-machine vision-s2 (20)

Machine learning
Machine learning Machine learning
Machine learning
 
Intro to Machine Learning by Microsoft Ventures
Intro to Machine Learning by Microsoft VenturesIntro to Machine Learning by Microsoft Ventures
Intro to Machine Learning by Microsoft Ventures
 
introduction to pattern recognition
introduction to pattern recognitionintroduction to pattern recognition
introduction to pattern recognition
 
Örüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern RecognitionÖrüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern Recognition
 
pattern recognition.ppt
pattern recognition.pptpattern recognition.ppt
pattern recognition.ppt
 
Anits dip
Anits dipAnits dip
Anits dip
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Dip
DipDip
Dip
 
Machine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An IntroMachine Learning 2 deep Learning: An Intro
Machine Learning 2 deep Learning: An Intro
 
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selection
 
Learning from data
Learning from dataLearning from data
Learning from data
 
Seminar nov2017
Seminar nov2017Seminar nov2017
Seminar nov2017
 
Creativity and Curiosity - The Trial and Error of Data Science
Creativity and Curiosity - The Trial and Error of Data ScienceCreativity and Curiosity - The Trial and Error of Data Science
Creativity and Curiosity - The Trial and Error of Data Science
 
07 learning
07 learning07 learning
07 learning
 
Artificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemArtificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition system
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
Wearable Computing - Part IV: Ensemble classifiers & Insight into ongoing res...
 
PCA.pptx
PCA.pptxPCA.pptx
PCA.pptx
 
Intro to ml_2021
Intro to ml_2021Intro to ml_2021
Intro to ml_2021
 

More from Binus Online Learning

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
Binus Online Learning
 
LN s11-machine vision-s2
LN s11-machine vision-s2LN s11-machine vision-s2
LN s11-machine vision-s2
Binus Online Learning
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
Binus Online Learning
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
Binus Online Learning
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
Binus Online Learning
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
Binus Online Learning
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
Binus Online Learning
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
Binus Online Learning
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
Binus Online Learning
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
Binus Online Learning
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
Binus Online Learning
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
Binus Online Learning
 
PPT s11-machine vision-s2
PPT s11-machine vision-s2PPT s11-machine vision-s2
PPT s11-machine vision-s2
Binus Online Learning
 
PPT s08-machine vision-s2
PPT s08-machine vision-s2PPT s08-machine vision-s2
PPT s08-machine vision-s2
Binus Online Learning
 
PPT s07-machine vision-s2
PPT s07-machine vision-s2PPT s07-machine vision-s2
PPT s07-machine vision-s2
Binus Online Learning
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
Binus Online Learning
 
PPT s04-machine vision-s2
PPT s04-machine vision-s2PPT s04-machine vision-s2
PPT s04-machine vision-s2
Binus Online Learning
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
Binus Online Learning
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
Binus Online Learning
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
Binus Online Learning
 

More from Binus Online Learning (20)

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
 
LN s11-machine vision-s2
LN s11-machine vision-s2LN s11-machine vision-s2
LN s11-machine vision-s2
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
 
PPT s11-machine vision-s2
PPT s11-machine vision-s2PPT s11-machine vision-s2
PPT s11-machine vision-s2
 
PPT s08-machine vision-s2
PPT s08-machine vision-s2PPT s08-machine vision-s2
PPT s08-machine vision-s2
 
PPT s07-machine vision-s2
PPT s07-machine vision-s2PPT s07-machine vision-s2
PPT s07-machine vision-s2
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
 
PPT s04-machine vision-s2
PPT s04-machine vision-s2PPT s04-machine vision-s2
PPT s04-machine vision-s2
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
 

Recently uploaded

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 

Recently uploaded (20)

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 

PPT s09-machine vision-s2

  • 1. Course: Machine Vision Recognition (1) Session 10 D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
  • 2. Outline • Pattern Recognition • Supervised Learning • Classification
  • 4. What is Pattern Recognition? • A pattern is an entity, vaguely defined, that could be given a name, e.g., – Fingerprint image, – Handwritten word, – Human face – Etc. • Pattern recognition is the study of how machines can – Observe the environment, – Learn to distinguish patterns of interest, – Make sound and reasonable decisions about the categories of the patterns.
  • 5. Pattern Recognition Application (example) Problem Domain Application Input Pattern Pattern Classes Document image analysis Optical character recognition Document image Characters, words Document classification Internet search Text document Semantic categories Document classification Junk mail filtering Email Junk/non-junk Multimedia database retrieval Internet search Video clip Video genres Speech recognition Telephone directory assis- tance Speech waveform Spoken words Natural language processing Information extraction Sentences Parts of speech Biometric recognition Personal identification Face, iris, fingerprint Authorized users for access control Medical Computer aided diagnosis Microscopic image Cancerous/healthy cell Military Automatic target recognition Optical or infrared image Target type Industrial automation Printed circuit board inspection Intensity or range image Defective/non-defective product Industrial automation Fruit sorting Images taken on a conveyor belt Grade of quality Remote sensing Forecasting crop yield Multispectral image Land use categories Bioinformatics Sequence analysis DNA sequence Known types of genes Data mining Searching for meaningful patterns Points in multidimensional space Compact and well- separated clusters
  • 6. Example • Problem: Sorting incoming fish on a conveyor belt according to species. • Assume that we have only two kinds of fish: – Sea bass – Salmon
  • 7. Decision Process • What kind of information can distinguish one species from the other? – length, width, weight, number and shape of fins, tail shape, etc. • What can cause problems during sensing? – lighting conditions, position of fish on the conveyor belt, camera noise, etc. • What are the steps in the process? – capture image → isolate fish → take measurements → make decision
  • 8. Selecting Features • Assume a fisherman told us that a sea bass is generally longer than a salmon. • We can use length as a feature and decide between sea bass and salmon according to a threshold on length. • How can we choose this threshold?
  • 9. Selecting Features • How can we choose the threshold l∗ to make a reliable decision? • Even though sea bass is longer than salmon on the average, there are many examples of fish where this observation does not hold.
  • 10. Selecting Features • Try another feature: average lightness of the fish scales. • It looks easier to choose the threshold x∗ but we still cannot make a perfect decision
  • 11. Cost of Error • We should also consider costs of different errors we make in our decisions. • For example, if the fish packing company knows that: – Customers who buy salmon will object vigorously if they see sea bass in their cans. – Customers who buy sea bass will not be unhappy if they occasionally see some expensive salmon in their cans. • How does this knowledge affect our decision?
  • 12. Multiple Features • Assume we also observed that sea bass are typically wider than salmon. • We can use two features in our decision: – lightness: x1 – width: x2 • Each fish image is now represented as a point (feature vector ) in a two-dimensional feature space. X = x1 x2 æ è ç ç ö ø ÷ ÷
  • 13. Multiple Features • We can draw a decision boundary to divide the feature space into two regions. Does it look better than using only lightness • Does adding more features always improve the results? – Avoid unreliable features. – Be careful about correlations with existing features. – Be careful about measurement costs – Be careful about noise in the measurements • Is there some curse for working in very high dimensions?
  • 14. Decision Boundaries • Can we do better with another decision rule? • More complex models result in more complex boundaries • We may distinguish training samples perfectly but how can we predict how well we can generalize to unknown samples?
  • 15. Decision Boundaries • How can we manage the tradeoff between complexity of decision rules and their performance to unknown samples? • Different criteria lead to different decision boundaries
  • 18. Supervised Learning • Supervised learning is the machine learning task of inferring a function from labeled training data. The training data consist of a set of training examples. • In supervised learning, each example is a pair consisting of an input object (typically a vector) and a desired output value (also called the supervisory signal) • A supervised learning algorithm analyzes the training data and produces an inferred function, which can be used for mapping new examples • An optimal scenario will allow for the algorithm to correctly determine the class labels for unseen instances. • This requires the learning algorithm to generalize from the training data to unseen situations in a "reasonable" way
  • 19. Supervised Learning Steps • Data acquisition and sensing: – Measurements of physical variables. – Important issues: bandwidth, resolution, sensitivity, distortion, SNR, latency, etc. • Pre-processing: – Removal of noise in data. – Isolation of patterns of interest from the background. – Color to grayscale conversion • Feature extraction: – Finding a new representation in terms of features
  • 20. Supervised Learning Steps • Model learning and estimation: – Learning a mapping between features and pattern groups and categories • Classification: – Using features and learned models to assign a pattern to a category. • Post-processing: – Evaluation of confidence in decisions. – Exploitation of context to improve performance. – Combination of experts.
  • 22. Classification Problem • Apply a prediction function to a feature representation of the image to get the desired output: f( ) = “Brick” f( ) = “Fabric” f( ) = “Grass”
  • 23. Testing stage Training stage Classification Steps Real world Features Decision Model Features Training Data Data acquisition/training Pre-processing Feature extraction Classification Post-processing Model learning/estimation Feature extraction/selection Pre-processing
  • 24. Texture Classification (example) • We are going to classify texture image • Image source: 40 texture images from MIT VisTex database – Number of classes: 5 (brick, fabric, grass, sand, stone) – Train set: 30 images (6 images from each class) – Test set: 10 images (2 images from each class) • Features: – Gray-level co-occurrence matrix (GLCM) – Fourier power spectrum (#ring: 4, #sector:8) • Classification method: – K-nearest neighbor – Naïve-bayes • Evaluation: classification accuracy
  • 25. Design Cycle Data collection: • Collecting training and testing data. • How can we know when we have adequately large and representative set of samples? Collect data Select features Select Model Train Classifier Evaluate classifier
  • 26. Testing images Training images Data Collection Brick Fabric Grass Sand Stone
  • 27. Design Cycle Feature selection: • Domain dependence and prior information. • Computational cost and feasibility. • Discriminative features: – Similar values for similar patterns. – Different values for different patterns. • Invariant features with respect to translation, rotation and scale. • Robust features with respect to occlusion, distortion, deformation, and variations in environment. Collect data Select features Select Model Train Classifier Evaluate classifier
  • 28. Feature Selection Gray-level co-occurrence matrix (GLCM) Fourier power spectrum Features Formula Energy Inertia Inverse diff moment Entropy Pij 2 å Pij å *(i- j)2 Pij å / 1+(i- j)2 { } Pij 2 *(-lnPij ) å #ring = 4 #sector = 8
  • 29. Design Cycle Model selection: • Domain dependence and prior information. • Definition of design criteria. • Parametric vs. non-parametric models. • Handling of missing features. • Computational complexity. • Types of models: templates, decision-theoretic or statistical, syntactic or structural, neural, and hybrid. • How can we know how close we are to the true model underlying the patterns? Collect data Select features Select Model Train Classifier Evaluate classifier
  • 30. Model Selection k-Nearest neighbor • Assign label of nearest training data point to each test data point Naïve bayes (algorithm) • For each value yk – Estimate P(Y = yk) from the data. – For each value xij of each attribute Xi • Estimate P(Xi=xij | Y = yk) • Classify a new point via: • In practice, the independence assumption doesn’t often hold true, but Naïve Bayes performs very well despite it. x x x x x x x x o o o o o o o x2 x1 + + 1-Nearest neighbor 3-Nearest neighbor      i k i k y new y Y X P y Y P Y k ) | ( ) ( max arg
  • 31. Design Cycle Training: • How can we learn the rule from data? • Supervised learning: a teacher provides a category label or cost for each pattern in the training set. • Unsupervised learning: the system forms clusters or natural groupings of the input patterns. • Reinforcement learning: no desired category is given but the teacher provides feedback to the system such as the decision is right or wrong. Collect data Select features Select Model Train Classifier Evaluate classifier
  • 32. Design Cycle Evaluation: • How can we estimate the performance with training samples? • How can we predict the performance with future data? • Problems of over-fitting and generalization. Collect data Select features Select Model Train Classifier Evaluate classifier
  • 33. Evaluation Classification Method K-Nearest neighbor Naïve Bayes Feature Accuracy F score Accuracy F score GLCM Fourier Power Spectrum
  • 34. Acknowledgment Some of slides in this PowerPoint presentation are adaptation from various slides, many thanks to: 1. Selim Aksoy, Department of Computer Engineering, Bilkent University (http://www.cs.bilkent.edu.tr/~saksoy/) 2. James Hays, Computer Science Department, Brown University, (http://cs.brown.edu/~hays/)