Pattern Matching AI.pdf

saadurrehman35 465 views 30 slides Aug 16, 2022
Slide 1
Slide 1 of 30
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30

About This Presentation

Artificial INtelligence


Slide Content

1
Pattern Recognition
Why?
•To provide machines with perception & cognition
capabilities so that they could interact independently
with their environments.
Pattern Recognition
•a natural ability of human
•based on some description of an object, such
description is termed Pattern.

2
Patterns and Pattern Classes
•Almost anything within the reach of our five senses can
be chosen as a pattern:
–Sensory patterns: speech, odors, tastes
–Spatial patterns: characters, fingerprints, pictures
–Temporal patterns: waveforms, electrocardiograms, movies
–Conceptual recognition for abstract items
(We will limit ourselves to deal with only physical objects/
events, but NOT abstract entities, say, concepts.)
•A pattern classis a group of patterns with certain
common characteristics.

3
Pattern Recognition
•Pattern Recognitionis the science to assign an
object/event of interest to one of several prespecified
categories/classes based on certain measurements or
observations.
•Measurementsare usually problem dependent.
E.g.weight or height for basketball players/jockeys
color for apples/oranges
•Feature vectorsrepresent measurements as
coordinates of points in a vector space (feature space).

4
Pattern Recognition SystemsDeterministic Statistic
Mathematical
Syntactic Linguistic
Structural
PR systems

5
Statistical Pattern Recognition
•Taps into the vast and thorough knowledge of statistics
to provide a formal treatment of PR.
•Observations are assumed to be generated by a state of
nature
–data can be described by a statistical model
–model by a set of probability functions
•Strength: many powerful mathematical “tools” from
the theory of probability and statistics.
•Shortcoming: it is usually impossible to design
(statistically) errorfree systems.

6
Supervised vs. Unsupervised
Supervised PR
•Representative patterns from each pattern class under
consideration are available.
•Supervised learning.
Unsupervised PR
•A set of training patterns of unknown classification is
given.
•Unsupervised learning.

7
Decision Boundary

Examples of Patterns
Crystal patterns at atomic and molecular levels
Their structures are represented by 3D graphs and can be described by
deterministic grammar or formal language

Examples of Patterns
Constellation patterns in the sky.
The constellation patterns are represented by 2D (often planar) graphs
Human perception has strong tendency to find patterns from anything. We see patterns
from even random noise ---we are more likely to believe a hidden pattern than denying it
when the risk (reward) for missing (discovering) a pattern is often high.

Examples of Patterns
Biology pattern ---morphology
Landmarks are identified from biologic forms and these patterns are then
represented by a list of points. But for other forms, like the root of plants,
Points cannot be registered crossing instances.
Applications: biometrics, computational anatomy, brain mapping, …

Examples of Patterns
Pattern discovery and association
Statistics show connections between the shape of one’s face (adults)
and his/her Character. There is also evidence that the outline of children’s
face is related to alcohol abuse during pregnancy.

Examples of Patterns
We may understand patterns of brain activity and find relationships
between brain activities, cognition, and behaviors
Patterns of brain activities:

Examples of Patterns
Patterns with variations:
1. Expression –geometric deformation
2. lighting ---photometric deformation
3. 3D pose transform
4. Noise and occlusion

Examples of Patterns
A wide variety of texture patterns are generated by various stochastic processes.
How are these patterns represented in human brain?

Pattern Recognition

What is Pattern Recognition?
⚫Patternrecognitionisasub-topicofmachine
learning.PRisthesciencethatconcernsthe
descriptionorclassification(recognition)of
measurements.Itcanbedefinedas:
“Theactoftakinginrawdataandtakingan
actionbasedonthecategoryofthedata".
“The assignment of a physical object or event to
one of several prespecified categories”.

⚫Apatternisanobject,processoreventthatcan
begivenaname.
⚫Apatternclass(orcategory)isasetofpatterns
sharingcommon attributesandusually
originatingfromthesamesource.
⚫Duringrecognition(orclassification)given
objectsareassignedtoprescribedclasses.
⚫Aclassifierisamachinewhichperforms
classification.

Pattern recognition system
Acompletepatternrecognitionsystemconsists
of:-
⚫Sensor-gatherstheobservationstobe
classifiedordescribed.
⚫Featureextractionmechanism-computes
numericorsymbolicinformationfromthe
observations.
⚫Classificationordescriptionscheme-that
doestheactualjobofclassifyingordescribing
observations,relyingontheextractedfeatures.

Algorithms used by pattern recognition systems
DESCRIPTION CLASSIFICATION
PATTERN RECOGNITION ALGORITHMS
data
identification
features

Description task
Thedescriptiontasktransformsdatacollectedfromthe
environmentintofeatures.
Thedescriptiontaskcaninvolveseveraldifferent,but
interrelated,activities:
⚫Preprocessing:-To modify the data
⚫Feature extraction:-To generate features
--Elementary features
--Higher order features
⚫Feature selection:-To reduce features

Description task (cont.)
⚫The end result of the description task is a
set of features, commonly called a feature
vectorwhich constitutes a representation
of the data.

Classification task
⚫Usesaclassifiertomapafeaturevectortoa
group.
⚫Suchamappingcanbespecifiedbyhandor,
morecommonly,atrainingphaseisusedto
inducethemappingfromacollectionoffeature
vectorsknowntoberepresentativeofthe
variousgroupsamongwhichdiscriminationis
beingperformed(i.e.,thetrainingset).
⚫Onceformulated,themappingcanbeusedto
assignanidentificationtoeachunlabeled
featurevectorsubsequentlypresentedtothe
classifier.

What makes a ”good” feature vector

Approachesto pattern recognition
Thereare2fundamentalapproachesto
implementapatternrecognitionsystem:
1.Statistical(ordecisiontheoretic):-Statistical
patternrecognitionisbasedonstatistical
characterizationsofpatterns,assumingthatthe
patternsaregeneratedbyaprobabilistic
system.
2.Syntactic(orstructural):-Syntacticalpattern
recognitionisbasedonthestructural
interrelationshipsoffeatures.

Statistical pattern recognition
⚫Itdrawsfromestablishedconceptsinstatistical
decisiontheorytodiscriminateamongdata
fromdifferentgroupsbaseduponquantitative
featuresofthedata.
⚫Thereareawidevarietyofstatisticaltechniques
thatcanbeusedwithinthedescriptiontaskfor
featureextraction,rangingfromsimple
descriptivestatisticstocomplextransformations.

Syntactic pattern recognition
⚫Syntacticpatternrecognitionorstructuralpattern
recognitionisaformofpatternrecognition,whereitems
arepresentedpatternstructureswhichcantakeinto
accountmorecomplexinterrelationshipsbetween
featuresthansimplenumericalfeaturevectorsusedin
statisticalclassification.
⚫It can be used (instead of statistical pattern recognition)
if there is clear structure in the patterns.
⚫One way to present such structure is strings of a formal
language. In this case differences in the structures of the
classes are encoded as different grammars.

Approachesto pattern recognition

Difference Between Statistical and
Structural Pattern Recognition
Statistical Structural
Foundation Statistical decision theoryHuman perception and
cognition
Description Quantativefeatures
Fixed no. of features
Ignores feature relationships
Semantics from feature
position
Morphological primitives
Variable number of primitives
Captures primitive relationships
Semantics from primitive
encoding
ClassificationStatistical classifiers Parsing with syntactic
grammars

Neural networks pattern recognition
⚫An“ArtificialNeuralNetwork"(ANN),isa
mathematicalmodelorcomputationalmodel
basedonbiologicalneuralnetworks.Itconsists
ofaninterconnectedgroupofartificialneurons
andprocessesinformationusingaconnectionist
approachtocomputation.
⚫Inmorepracticaltermsneuralnetworksarenon-
linearstatisticaldatamodelingtools.Theycan
beusedtomodelcomplexrelationships
betweeninputsandoutputsortofindpatternsin
data.

Neural networks pattern recognition
⚫Classification is based on the response of a network of
processing units(neurons) to an input stimuli (pattern).
⚫“Knowledge” is stored in the connectivity and strength
of the synaptic weights.
⚫NeurPRisatrainable,non-algorithmic,black-box
strategy.
⚫NeurPRis very attractive since
-it requires minimum a priori knowledge
-with enough layers and neurons, an ANN can create
any complex decision region.
Tags