introduction of pattern recognition.pdf

Upload: ervina-marginingtyas

Post on 04-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    1/40

    PATTERN

    RECOGNITION

    Team teaching1

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    2/40

    OUTLINES

    Whats is pattern? What is class pattern? What is pattern recognition? Human perception Application example Statistically way Human and machine perception Pattern recognition process Topic Searching

    2

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    3/40

    WHAT IS A PATTERN?

    A pattern is an abstract object, or a set ofmeasurements describing a physical object.

    3

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    4/40

    WHAT IS A PATTERN CLASS?

    A pattern class (or category) is a set ofpatterns sharing common attributes.

    A collection of similar (not necessarilyidentical) objects.

    During recognition given objects are assignedto prescribed classes.

    4

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    5/40

    WHAT IS PATTERN RECOGNITION?

    Theory, Algorithms, Systems to put Patternsinto Categories

    Relate Perceived Pattern to PreviouslyPerceived Patterns

    Learn to distinguish patterns of interest fromtheir background

    5

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    6/40

    HUMAN PERCEPTION

    Humans have developed highly sophisticatedskills for sensing their environment and taking

    actions according to what they observe, e.g.,

    Recognizing a face. Understanding spoken words. Reading handwriting. Distinguishing fresh food from its smell.

    We would like to give similar capabilities tomachines.

    6

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    7/40

    EXAMPLES OF APPLICATIONS

    Handwritten: sorting letters by postal code.Printed texts: reading machines for blindpeople, digitalization of text documents.

    Optical CharacterRecognition

    (OCR)

    Face recognition, verification, retrieval.Finger prints recognition.Speech recognition.Biometrics

    Medical diagnosis: X-Ray, EKG(ElectroCardioGraph) analysis.

    Diagnostic

    systems

    Automated Target Recognition (ATR).Image segmentation and analysis (recognitionfrom aerial or satelite photographs).

    Militaryapplications

    7

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    8/40

    PATTERN RECOGNITION APPLICATIONS

    BY PROBLEM DOMAINS

    8

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    9/40

    PATTERN RECOGNITION MODEL

    9

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    10/40

    THESTATISTICAL

    WAY10

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    11/40

    GRID BY GRID COMPARISON

    AA B

    Grid by Grid

    Comparison

    11

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    12/40

    GRID BY GRID COMPARISON

    AA B

    12

    0 0 1 00 0 1 00 1 1 11 0 0 11 0 0 1

    0 1 1 00 1 1 00 1 1 01 0 0 11 0 0 1

    No ofMismatch= 3

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    13/40

    GRID BY GRID COMPARISON

    AA B

    Grid by Grid

    Comparison

    13

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    14/40

    GRID BY GRID COMPARISON

    AA B

    14

    0 0 1 00 0 1 00 1 1 11 0 0 11 0 0 1

    1 1 1 00 1 0 10 1 1 10 1 0 11 1 1 0

    No ofMismatch= 9

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    15/40

    PROBLEM WITH GRID BY GRIDCOMPARISON

    Time to recognize a pattern- Proportional tothe number of stored patterns ( Too costly

    with the increase of number of patterns

    stored )

    15

    SolutionArtificial

    Intelligence

    A-Z a-z 0-9

    */-+1@#

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    16/40

    HUMAN AND MACHINE PERCEPTION

    We are often influenced by the knowledge of howpatterns are modeled and recognized in nature when we

    develop pattern recognition algorithms.

    Research on machine perception also helps us gaindeeper understanding and appreciation for pattern

    recognition systems in nature.

    Yet, we also apply many techniques that are purelynumerical and do not have any correspondence innatural systems.

    16

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    17/40

    PATTERN RECOGNITION

    Two Phase : Learningand Detection.

    Time to learn is higher. Driving a car

    Difficult to learn but once learnt it becomesnatural.

    Can use AI learning methodologies such as: Neural Network. Machine Learning.

    17

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    18/40

    BASIC CONCEPT

    - Cannot be directlymeasured.

    - Patterns with equalhidden state belong to

    the same class.

    Feature vector-Patterns with equal

    hidden state belong tothe same class.

    Task- To design aclassifer (decision

    rule) which decidesabout a hidden state

    based on an

    observation.

    Hidden state Feature vector

    18

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    19/40

    EXAM

    PLE

    Task: jockey-hoopsterrecognition.

    The set of hiddenstate Y is

    {H,J}

    The feature space is

    X2

    19

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    20/40

    LEARNING

    How can machine learn the rule from data?

    Supervised learning: a teacher provides a category label orcost for each pattern in the training set.

    Unsupervised learning: the system forms clusters or naturalgroupings of the input patterns.

    20

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    21/40

    Classification(known categories) Clustering(creation of new categories)

    CLASSIFICATION VS. CLUSTERING

    21

    Category A

    Category B

    Clustering(Unsupervised Classification)

    Classification(Supervised Classification)

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    22/40

    PATTERN RECOGNITION PROCESS(CONT.)

    22

    Post- processing

    Classification

    FeatureExtraction

    Segmentation

    Sensing

    input

    Decision

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    23/40

    PATTERN RECOGNITION PROCESS

    Data acquisition and sensing: Measurements of physical variables. Important issues: bandwidth, resolution , etc.

    Pre-processing: Removal of noise in data. Isolation of patterns of interest from the background.

    Feature extraction: Finding a new representation in terms of features.

    Classification Using features and learned models to assign a pattern

    to a category.

    Post-processing Evaluation of confidence in decisions. 23

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    24/40

    24

    Sistem PR

    Sensors andpreprocessing

    Feature

    extractionClassifier

    Class

    assignment

    Learning algorithmTeacher

    Pattern

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    25/40

    CASE STUDY

    Fish Classification: Sea Bass / Salmon.

    Problem: Sorting incoming fishon a conveyor belt according to

    species.

    Assume that we have only two kinds of fish: Sea bass. Salmon.

    25

    Salmon

    Sea-bass

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    26/40

    CASE STUDY (CONT.)

    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?1.Capture image.2.Isolate fish3.Take measurements4.Make decision

    26

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    27/40

    CASE STUDY (CONT.)

    27

    Classification

    FeatureExtraction

    Pre-processing

    Sea Bass Salmon

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    28/40

    CASE STUDY (CONT.)

    Pre-Processing: Image enhancement Separating touching or occluding fish. Finding the boundary of the fish.

    28

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    29/40

    HOW TO SEPARATESEA BASS FROM SALMON?

    Possible features to be used: Length Lightness Width Number and shape of fins Position of the mouth Etc

    Assume a fisherman told us that a sea bass isgenerally longer than a salmon.

    Even though sea bass is longer than salmon on theaverage, there are many examples of fish where this

    observation does not hold.29

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    30/40

    HOW TO SEPARATE

    SEA BASS FROM SALMON?

    To improve recognition, we might have to usemore than one feature at a time. Single features might not yield the best performance. Combinations of features might yield better performance.

    30

    1

    2

    x

    x

    1

    2

    :

    :

    x lightness

    x width

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    31/40

    FEATURE SELECTION

    31

    Good

    features Bad features

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    32/40

    DECISION BOUNDARY

    32

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    33/40

    DECISION BOUNDARY (CONT.)

    33More complex model result more complex boundary

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    34/40

    DECISION BOUNDARY (CONT.)

    34Different criteria lead to different decision boundaries

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    35/40

    DECISION BOUNDARY (CONT.)

    What if a customers find Sea bass in thereSalmon can?

    We should also consider costs of differenterrors we make in our decisions.

    35

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    36/40

    DECISION BOUNDARY (CONT.)

    For example, if the fish packing companyknows that:

    Customers who buy salmon will object vigorouslyif they see sea bass in their cans.

    Customers who buy sea bass will not be unhappyif they occasionally see some expensive salmon in

    their cans.

    How does this knowledge affect our decision?

    36

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    37/40

    CASE STUDY (CONT.)

    Issues with feature extraction: Correlated features do not necessary improve

    performance.

    It might be difficult to extract certain features. It might be computationally expensive to extract

    many features.

    Missing Features. Domain Knowledge.

    37

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    38/40

    THE DESIGN CYCLE

    Collecting training and testing data.Collect Data

    Domain dependence.

    Chose Features.

    Domain dependence.Chose Model

    Supervised learningUnsupervised learning.

    Train

    Performance with future dataEvaluate

    38

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    39/40

    Q & A39

  • 7/29/2019 Introduction of Pattern Recognition.pdf

    40/40

    TOPIC

    SEARCHING

    40