SlideShare ist ein Scribd-Unternehmen logo
1 von 35
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

Weitere ähnliche Inhalte

Was ist angesagt?

Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)VARUN KUMAR
 
Object recognition
Object recognitionObject recognition
Object recognitionakkichester
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESVicky 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 APPROACHJournal For Research
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajalAJAL A J
 
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 IMAGEScseij
 
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 PPTAkshit 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 segmentationSubhash Basistha
 
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 forestYoussef 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 ForestIJERA Editor
 
Visual Object Category Recognition
Visual Object Category RecognitionVisual Object Category Recognition
Visual Object Category RecognitionAshish 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
 

Was ist angesagt? (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 ...
 

Ähnlich wie PPT s09-machine vision-s2

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 Venturesmicrosoftventures
 
introduction to pattern recognition
introduction to pattern recognitionintroduction to pattern recognition
introduction to pattern recognitionMohammadMoattar2
 
Örüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern RecognitionÖrüntü tanıma - Pattern Recognition
Örüntü tanıma - Pattern RecognitionHassan-k Abdi
 
pattern recognition.ppt
pattern recognition.pptpattern recognition.ppt
pattern recognition.pptSowmiyaBaskar4
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningSSSSSS354882
 
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 IntroSi 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 selectionMarco Meoni
 
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 ScienceDamianMingle
 
Artificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemArtificial intelligence Pattern recognition system
Artificial intelligence Pattern recognition systemREHMAT ULLAH
 
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
 

Ähnlich wie 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
 

Mehr von Binus Online Learning

Mehr von 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
 

Kürzlich hochgeladen

Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 

Kürzlich hochgeladen (20)

FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 

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/)