new bayesian techniques in vision and...

59
[email protected] [email protected] 1 Bayesian Techniques in Vision and Perception Dr. Olivier Aycard E-Motion Research Group GRAVIR-IMAG & INRIA RA Grenoble, FRANCE Dr. Luis Enrique Sucar Computer Science Dept. INAOE Puebla, MEXICO http://ccc.inaoep.mx/~esucar/ http://emotion.inrialpes.fr/aycard

Upload: others

Post on 15-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

1

Bayesian Techniques in Vision and Perception

Dr. Olivier AycardE-Motion Research GroupGRAVIR-IMAG & INRIA RA

Grenoble, FRANCE

Dr. Luis Enrique SucarComputer Science Dept.

INAOEPuebla, MEXICO

http://ccc.inaoep.mx/~esucar/http://emotion.inrialpes.fr/aycard

Page 2: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

2

Content

• Fundamentals of Bayesian Techniques (E. Sucar)• Bayesian Filters (O. Aycard)• Research activities in Vision (E. Sucar)• Research activities in Perception (O. Aycard)

Page 3: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

3

Content• Fundamentals of Bayesian Techniques (E. Sucar)

• Introduction• Fundamentals• Bayesian Classifiers• Bayesian Networks

• Bayesian Filters (O. Aycard)• Research activities in Vision (E. Sucar)• Research activities in Perception (O. Aycard)

Page 4: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

4

What do you see?

What we see depends on our previous knowledge (model) of the world

Page 5: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

5

Contents

• Fundamentals of Bayesian Techniques• Introduction• Fundamentals• Bayesian Classifiers• Bayesian Networks

Page 6: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

6

Bayesian visual perception

• The perception problem is characterized by two main aspects:• The properties of the world that is observed (prior

knowledge)• The image data used by the observer (data)

• The Bayesian approach combines these two aspects which are characterized as probability distributions

Page 7: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

7

Representation

• Scene properties – S• Model of the world – prior probability distribution

– P(S)• Model of the image – probability distribution of

the image given de scene (likelihood) – P(I|S)

Page 8: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

8

Recognition

• The scene (object) is characterized by the posterior probability distribution – P(S|I)

• By Bayes theorem:P(S|I) = P(S) P(I|S) / P(I)

• The denominator can be consider as a normalizing constant:

P(S|I) = k P(S) P(I|S)

Page 9: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

9

Example

Page 10: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

10

Example

• Prior distribution of objects – P(O)• Cube 0.2• Cylinder 0.3• Sphere 0.1• Prism 0.4

Page 11: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

11

Example

• Likelihood function P(Silhouette|Object) – P(S|O)Cube Cylinder Sphere Prism

Square 1.0 0.6 0.0 0.4Circle 0.0 0.4 1.0 0.0Trapezoid 0.0 0.0 0.0 0.6

Page 12: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

12

Example

• Posterior distribution P(Object|Silhouette) – P(O|S)• Bayes rule:

P(O|S) = k P(O) P(S|O)• For example, given S=square

P(Cube | square)= k 0.2 * 1 = k 0.2 = 0.37P(Cylinder | square)= k 0.3 * 0.6 = k 0.18 = 0.33P(Sphere | square)= k 0.1 * 0 = 0P(Prism | square)= k 0.4 * 0.4 = k 0.16 = 0.30

Page 13: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

13

Graphical Model• We can represent the dependence relation in this

simple example graphically, with 2 variables and an arc

O

S

P(O)

P(S|O)

Page 14: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

14

Graphical Models

• This graphical representation of probabilistic models can be extended to more complex ones.

• There are several types of probabilistic graphical models (PGMs) that can be applied to different problems in vision

• We first review PGMs and then introduce some models and their application in vision

Page 15: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

15

Contents

• Fundamentals of Bayesian Techniques • Introduction• Fundamentals• Bayesian Classifiers• Bayesian Networks

Page 16: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

16

Probabilistic Graphical Models

• Given a set of (discrete) random variables,X = X1, X2, …, XN

• The joint probability distribution,P(X1, X2, …, XN)

• specifies the probability for each combination of values (the joint space). From it, we can obtain the probability of a variable(s) (marginal), and of a variable(s) given the other variables (conditional)

Page 17: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

17

Probabilistic Graphical Models

• A Probabilistic Graphical Model is a compact representation of a joint probability distribution, from which we can obtain marginal and conditional probabilities

• It has several advantages over a “flat” representation:• It is generally much more compact (space)• It is generally much more efficient (time)• It is easier to understand and communicate• It is easier to build (from experts) or learn (from data)

Page 18: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

18

Probabilistic Graphical Models

• A graphical model is specified by two aspects:• A Graph, G(V,E), that defines the structure of the model• A set of local functions, f(Yi), that defines the parameters

(probabilities), where Yi is a subset of X

• The joint probability is defined by the product of the local functions:

)f(Y )X , ,X ,P(Xn

1i

iN21 ∏=

=…

Page 19: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

19

Probabilistic Graphical Models

• This representation in terms of a graph and a set of local functions (called potentials) is the basis for inference and learning in PGMs• Inference: obtain the marginal or conditional probabilities of

any subset of variables Z given any other subset Y• Learning: given a set of data values for X (that can be

incomplete) estimate the structure (graph) and parameters (localfunction) of the model

Page 20: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

20

Probabilistic Graphical Models

• We can classify graphical models according to 3 dimensions:

• Directed vs. Undirected• Static vs. Dynamic• Generative vs. Conditional

Page 21: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

21

Probabilistic Graphical Models

• Directed • Undirected

1

32

4 5

1

32

4 5

Page 22: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

22

Probabilistic Graphical Models

• Static • Dynamic

C

St St+1 St+2 St+3

E E E E

H

E

Page 23: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

23

Probabilistic Graphical Models

• Generative • Conditional

St St+1 St+2

E E E

St St+1 St+2

E E E

Page 24: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

24

Types of PGMs

• We will consider the following models and their applications in vision and robotics:• Bayesian classifiers• Bayesian networks• Hidden Markov models• Dynamic Bayesian networks• Kalman filters• Particle filters

Page 25: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

25

Contents

• Fundamentals of Bayesian Techniques • Introduction• Fundamentals• Bayesian Classifiers• Bayesian Networks

Page 26: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

26

Bayesian Classifier

• A Bayesian classifier is used to obtain the probability of certain variable (the class or hypothesis, H) given a set of variables known as the attributes or evidence (E = E1, …, EN)

• It is usually assumed that the attributes are independent given the class – Naive Bayesian Classifier – so its PGM is represented as a “star” with the class as the root and the attributes as the leafs

Page 27: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

27

Naive Bayesian Classifier

C

A2A1 An…

Page 28: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

28

Bayesian Classifier

• The posterior probability of each hypothesis (H) based on the Evidence (E) is:

P(H | EE) = P(H) P(EE | H) / P(EE)

• Usually the exact value of P(H|E) is not required, just the most probable value of H

Page 29: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

29

Naive Bayesian classifier Inference

• Consider each attribute independent given the hypothesis:P(E1, E2, ...EN | H) =

P(E1 | H) P(E2 | H) ... P(EN | H)

• So the posterior probability is given by:P(H | E1, E2, ...EN) =

[P(H) P(E1 | H) P(E2 | H) ... P(EN | H)] / P(EE)= k P(H) P(E1 | H) P(E2 | H) ... P(EN | H)

Page 30: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

30

Naive Bayesian classifier Learning

• Structure: • the structure is given by the naive Bayes assumption

• Parameters: • we need to estimate the prior probability of each class

P(Ci)• and the individual conditional probabilities of each attribute

given the classP(Ak | Ci)

Page 31: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

31

Bayesian classifier - Extensions• TAN • BAN

C

A2

A1 An

C

A2A1 An…

Page 32: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

32

Example

• Skin classification based on color• Hypothesis: skin, no-skin• Attributes: red, green, blue (256 values each)

• Probability function:P(S|R,G,B) = k P(S) P(R| S) P(G| S) P(B| S)

Page 33: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

33

Naive Bayes

S

GR B

Page 34: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

34

Color based classification

“Skin” region inRGB space

Page 35: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

35

Skin detection

Detection of skinpixels based oncolor informationand a Bayesianclassifier

Page 36: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

36

Attribute Selection

• When there are many attributes, it can become impractical to include all in the classifier

• Also, redundant attributes (highly dependent), may reduce the accuracy

• A simple way to select relevant attributes is to select only those that provide information on the class, by measuring their mutual information: I(C,Ax)

• The attributes with low I are eliminated

Page 37: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

37

Mutual information

• It is a measure of the dependency between a pair of variables given by:

• It can be extended to consider the mutual information of two variables given a third one –conditional mutual information

( ) ( ) ( )( ) ( )∑=

ji xx ji

jijiji XPXP

XXPXXPXXI

,

,log,,

Page 38: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

38

Structural Improvement

• Start from a subjective structure and improve with data

• Verify conditional independencies:• Node elimination• Node combination• Node insertion

Page 39: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

39

YX

Z Structural improvement

W

Z

YXXY

Z

X

Z

Page 40: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

40

Learning an optimal naive Bayes classifier

1. Build an initial classifier with all the attributes2. Repeat until the classifier can not be improved (based on

the MDL principle):a. Eliminate redundant attributesb. Eliminate/Join dependant attributesc. Improve discretization of continuous attributes

3. Test classifier on different data (cross validation)

Page 41: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

41

Improving skin classification

• Nine attributes combining 3 color models: RGB, HSV, YIQ

S

GR B IY QSH V

Page 42: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

42

Structural Improvement

Eliminate B

S

GR IY QSH V

Page 43: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

43

Structural Improvement

Eliminate Q

S

GR IYSH V

Page 44: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

44

Structural Improvement

Eliminate H

S

GR IYS V

Page 45: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

45

Structural Improvement

Join RG

S

RG IYS V

Page 46: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

46

Structural Improvement

Eliminate V

S

RG IYS

Page 47: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

47

Structural Improvement

S

RG IY

Acurracy: initial 94%final 98%

Eliminate S

Page 48: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

48

Contents

• Fundamentals of Bayesian Techniques • Introduction• Fundamentals• Bayesian Classifiers• Bayesian Networks

Page 49: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

49

Representation

• Bayesian networks (BN) are a graphical representation of dependencies between a set of random variables. A Bayesian net is a Directed Acyclic Graph (DAG) in which:• Node: Propositional variable. • Arcs: Probabilistic dependencies.

• An arc between two variables represents a direct dependency, usually interpreted as a causalrelation.

Page 50: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

50

An example of a BN

Coin

Circle

Shape

Pen

Rect.

Page 51: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

51

Interpretation

• Represents (in a compact way) the joint probability distribution of all the variables

• In the previous example:P(Co, P, Ci, R, S) =

P(Co) P(P) P(Ci|Co,P) P(R|P) P(S|Ci)

Page 52: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

52

Structure

• The topology of the network represents the dependencies (and independencies) between the variables

• Conditional independence relations between variables or sets of variables are obtained by a criteria called D-separation

Page 53: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

53

Coin

Circle

Shape

Pen

Rect.

E.g.: {R} is d-separated from {Co, Ci, S} by {P} E.g.: {R} is d-separated from {Co, Ci, S} by {P}

Page 54: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

54

Graphical separation – 3 basic cases

X Z Y• “Markov”

• “common cause” Z YX

X Z Y• “explaining away”

Page 55: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

55

Parameters

Conditional probabilities of each node given its parents.

• Root nodes: vector of prior probabilities

• Other nodes: matrix of conditional probabilities

Page 56: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

56

Coin

Circle

Shape

Pen

Rect.

P(P)P(Co)

P(Ci|Co,P) P(R|P)

P(S|Ci)

P(Co, P, Ci, R, S) =P(Co) P(P) P(Ci|Co,P) P(R|P) P(S|Ci)

Page 57: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

57

Inference

C Causal:C H

Evidential:E H

Mixed:C,E H

P(H|C)

H

E

P(E|H)

Page 58: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

58

Inference

There are several inference algorithms:• One variable:

• Variable elimination

• All the variables:• Polytrees:

• Message passing (Pearl’s algorithm)

• General structure:• Junction Tree• Stochastic simulation

Page 59: New Bayesian Techniques in Vision and Perceptionhomepages.inf.ed.ac.uk/rbf/IAPR/researchers/D2PAGES/... · 2008. 1. 11. · Vision and Perception Dr. Olivier Aycard E-Motion Research

[email protected]@inaoep.mx

59

Types of structuresTypes of structures

• Polytrees• Trees

• Singli-connected

• Multiconnected

• Singli-connected

• Multiconnected