SlideShare a Scribd company logo
1 of 42
Probabilistic Models for Images
Markov Random Fields
Applications in Image Segmentation and Texture Modeling
Ying Nian Wu
UCLA Department of Statistics
IPAM July 22, 2013
Outline
•Basic concepts, properties, examples
•Markov chain Monte Carlo sampling
•Modeling textures and objects
•Application in image segmentation
Markov Chains
Pr(future|present, past) = Pr(future|present)
future past | present
Markov property: conditional independence
limited dependence
Makes modeling and learning possible
Markov Chains(higher order)
Temporal: a natural ordering
Spatial: 2D image, no natural ordering
Markov Random Fields
all the other pixels
Nearest neighborhood, first order neighborhood
Markov Property
From Slides by S. Seitz - University of Washington
Markov Random Fields
Second order neighborhood
Markov Random Fields
Can be generalized to any undirected graphs (nodes, edges)
Neighborhood system: each node is connected to its neighbors
neighbors are reciprocal
Markov property: each node only depends on its neighbors
Note: the black lines on the left graph are illustrating the 2D grid for the image pixels
they are not edges in the graph as the blue lines on the right
Markov Random Fields
What is
Cliques for this neighborhood
Hammersley-Clifford Theorem
normalizing constant, partition function
potential functions of cliques
From Slides by S. Seitz - University of Washington
Cliques for this neighborhood
Hammersley-Clifford Theorem
a clique: a set of pixels, each member is the neighbor of any other member
From Slides by S. Seitz - University of Washington
Gibbs distribution
Cliques for this neighborhood
Hammersley-Clifford Theorem
a clique: a set of pixels, each member is the neighbor of any other member
……etc, note: the black lines are for illustrating 2D grids, they are not edges in the graph
Gibbs distribution
Cliques for this neighborhood
Ising model
From Slides by S. Seitz - University of Washington
Ising model
Challenge: auto logistic regression
pair potential
Gaussian MRF model
continuous
Challenge: auto regression
pair potential
Sampling from MRF Models
Markov Chain Monte Carlo (MCMC)
• Gibbs sampler (Geman & Geman 84)
• Metropolis algorithm (Metropolis et al. 53)
• Swedeson & Wang (87)
• Hybrid (Hamiltonian) Monte Carlo
Gibbs Sampler
Simple one-dimension distribution
Repeat:
• Randomly pick a pixel
• Sample given the current values of
Gibbs sampler for Ising model
Challenge: sample from Ising model
Metropolis Algorithm
Repeat:
• Proposal: Perturb I to J by sample from K(I, J) = K(J, I)
• If change I to J
otherwise change I to J with prob
energy function
Metropolis for Ising model
Challenge: sample from Ising model
Ising model: proposal --- randomly pick a pixel and flip it
Modeling Images by MRF
Ising model
Exponential family model, log-linear model
maximum entropy model
unknown parameters
features (may also need to be learned)
reference distribution
Hidden variables, layers, RBM
Modeling Images by MRF
Given
How to estimate
• Maximum likelihood
• Pseudo-likelihood (Besag 1973)
• Contrastive divergence (Hinton)
Maximum likelihood
Given
Challenge: prove it
Stochastic Gradient
Given
Generate
Analysis by synthesis
Texture Modeling
Modeling image pixel labels as MRF (Ising)
( , )
i i
x y

( , )
i j
x x

1
real image
label image
Slides by R. Huang – Rutgers University
MRF for Image Segmentation
Bayesian posterior
Model joint probability
label
image
label-label
compatibility
Function
enforcing
Smoothness
constraint
neighboring
label nodes
local
Observations
image-label
compatibility
Function
enforcing
Data
Constraint
( , )
1
( , ) ( , ) ( , )
i j i i
i j i
P x x x y
Z
 
  
x y
* *
( , )
( , ) argmax ( , | )
P

 

x
x x y
region
labels
image
pixels
model
param.
Slides by R. Huang – Rutgers University
*
1
( , ) ( , )
2
2
2
2 2
arg max ( | )
1
arg max ( , ) ( | ) ( , ) / ( ) ( , )
1
arg max ( , ) ( , ) ( , ) ( , ) ( , )
( , ) ( ; , )
( , ) exp( ( ) / )
[ , , ]
i i
i i
i i i j i i i j
i i j i i j
i i i x x
i j i j
x x
P
P P P P P
Z
x y x x P x y x x
Z
x y G y
x x x x
   
  
  
   

  
 

 

   
x
x
x
x x y
x y x y x y y x y
x y
( , )
i i
x y

( , )
i j
x x

Slides by R. Huang – Rutgers University
MRF for Image Segmentation
Inference in MRFs
– Classical
• Gibbs sampling, simulated annealing
• Iterated conditional modes
– State of the Art
• Graph cuts
• Belief propagation
• Linear Programming
• Tree-reweighted message passing
Slides by R. Huang – Rutgers University
Summary
•MRF, Gibbs distribution
•Gibbs sampler, Metropolis algorithm
•Exponential family model

More Related Content

Similar to 8141891.pptx

TAME: Trainable Attention Mechanism for Explanations
TAME: Trainable Attention Mechanism for ExplanationsTAME: Trainable Attention Mechanism for Explanations
TAME: Trainable Attention Mechanism for ExplanationsVasileiosMezaris
 
Learning visual explanations for DCNN-based image classifiers using an attent...
Learning visual explanations for DCNN-based image classifiers using an attent...Learning visual explanations for DCNN-based image classifiers using an attent...
Learning visual explanations for DCNN-based image classifiers using an attent...VasileiosMezaris
 
Review : Prototype Mixture Models for Few-shot Semantic Segmentation
Review : Prototype Mixture Models for Few-shot Semantic SegmentationReview : Prototype Mixture Models for Few-shot Semantic Segmentation
Review : Prototype Mixture Models for Few-shot Semantic SegmentationDongmin Choi
 
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...GlobalLogic Ukraine
 
Irrera gold2010
Irrera gold2010Irrera gold2010
Irrera gold2010grssieee
 
A Novel Feature Extraction Scheme for Medical X-Ray Images
A Novel Feature Extraction Scheme for Medical X-Ray ImagesA Novel Feature Extraction Scheme for Medical X-Ray Images
A Novel Feature Extraction Scheme for Medical X-Ray ImagesIJERA Editor
 
Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)abyssecho
 
Lecture 1- Introduction.pptx
Lecture 1- Introduction.pptxLecture 1- Introduction.pptx
Lecture 1- Introduction.pptxManjulGupta10
 
Feature extraction based retrieval of
Feature extraction based retrieval ofFeature extraction based retrieval of
Feature extraction based retrieval ofijcsity
 
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis taeseon ryu
 
Large Scale Image Retrieval 2022.pdf
Large Scale Image Retrieval 2022.pdfLarge Scale Image Retrieval 2022.pdf
Large Scale Image Retrieval 2022.pdfSamuCerezo
 
Pami meanshift
Pami meanshiftPami meanshift
Pami meanshiftirisshicat
 
Line Detection using Hough transform .pptx
Line Detection using Hough transform .pptxLine Detection using Hough transform .pptx
Line Detection using Hough transform .pptxshubham loni
 
R package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsR package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsMatt Moores
 
Gaussian Process Latent Variable Models & applications in single-cell genomics
Gaussian Process Latent Variable Models & applications in single-cell genomicsGaussian Process Latent Variable Models & applications in single-cell genomics
Gaussian Process Latent Variable Models & applications in single-cell genomicsKieran Campbell
 

Similar to 8141891.pptx (20)

TAME: Trainable Attention Mechanism for Explanations
TAME: Trainable Attention Mechanism for ExplanationsTAME: Trainable Attention Mechanism for Explanations
TAME: Trainable Attention Mechanism for Explanations
 
Learning visual explanations for DCNN-based image classifiers using an attent...
Learning visual explanations for DCNN-based image classifiers using an attent...Learning visual explanations for DCNN-based image classifiers using an attent...
Learning visual explanations for DCNN-based image classifiers using an attent...
 
ICASSP19
ICASSP19ICASSP19
ICASSP19
 
Review : Prototype Mixture Models for Few-shot Semantic Segmentation
Review : Prototype Mixture Models for Few-shot Semantic SegmentationReview : Prototype Mixture Models for Few-shot Semantic Segmentation
Review : Prototype Mixture Models for Few-shot Semantic Segmentation
 
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
 
Ai32237241
Ai32237241Ai32237241
Ai32237241
 
Irrera gold2010
Irrera gold2010Irrera gold2010
Irrera gold2010
 
RBF2.ppt
RBF2.pptRBF2.ppt
RBF2.ppt
 
A Novel Feature Extraction Scheme for Medical X-Ray Images
A Novel Feature Extraction Scheme for Medical X-Ray ImagesA Novel Feature Extraction Scheme for Medical X-Ray Images
A Novel Feature Extraction Scheme for Medical X-Ray Images
 
Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)
 
Lecture 1- Introduction.pptx
Lecture 1- Introduction.pptxLecture 1- Introduction.pptx
Lecture 1- Introduction.pptx
 
Feature extraction based retrieval of
Feature extraction based retrieval ofFeature extraction based retrieval of
Feature extraction based retrieval of
 
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
 
Large Scale Image Retrieval 2022.pdf
Large Scale Image Retrieval 2022.pdfLarge Scale Image Retrieval 2022.pdf
Large Scale Image Retrieval 2022.pdf
 
Pami meanshift
Pami meanshiftPami meanshift
Pami meanshift
 
Corisco - 2015
Corisco - 2015Corisco - 2015
Corisco - 2015
 
Line Detection using Hough transform .pptx
Line Detection using Hough transform .pptxLine Detection using Hough transform .pptx
Line Detection using Hough transform .pptx
 
R package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsR package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable Likelihoods
 
On mesh
On meshOn mesh
On mesh
 
Gaussian Process Latent Variable Models & applications in single-cell genomics
Gaussian Process Latent Variable Models & applications in single-cell genomicsGaussian Process Latent Variable Models & applications in single-cell genomics
Gaussian Process Latent Variable Models & applications in single-cell genomics
 

Recently uploaded

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

8141891.pptx

  • 1. Probabilistic Models for Images Markov Random Fields Applications in Image Segmentation and Texture Modeling Ying Nian Wu UCLA Department of Statistics IPAM July 22, 2013
  • 2. Outline •Basic concepts, properties, examples •Markov chain Monte Carlo sampling •Modeling textures and objects •Application in image segmentation
  • 3. Markov Chains Pr(future|present, past) = Pr(future|present) future past | present Markov property: conditional independence limited dependence Makes modeling and learning possible
  • 4. Markov Chains(higher order) Temporal: a natural ordering Spatial: 2D image, no natural ordering
  • 5. Markov Random Fields all the other pixels Nearest neighborhood, first order neighborhood Markov Property From Slides by S. Seitz - University of Washington
  • 6. Markov Random Fields Second order neighborhood
  • 7. Markov Random Fields Can be generalized to any undirected graphs (nodes, edges) Neighborhood system: each node is connected to its neighbors neighbors are reciprocal Markov property: each node only depends on its neighbors Note: the black lines on the left graph are illustrating the 2D grid for the image pixels they are not edges in the graph as the blue lines on the right
  • 9. Cliques for this neighborhood Hammersley-Clifford Theorem normalizing constant, partition function potential functions of cliques From Slides by S. Seitz - University of Washington
  • 10. Cliques for this neighborhood Hammersley-Clifford Theorem a clique: a set of pixels, each member is the neighbor of any other member From Slides by S. Seitz - University of Washington Gibbs distribution
  • 11. Cliques for this neighborhood Hammersley-Clifford Theorem a clique: a set of pixels, each member is the neighbor of any other member ……etc, note: the black lines are for illustrating 2D grids, they are not edges in the graph Gibbs distribution
  • 12. Cliques for this neighborhood Ising model From Slides by S. Seitz - University of Washington
  • 13. Ising model Challenge: auto logistic regression pair potential
  • 14. Gaussian MRF model continuous Challenge: auto regression pair potential
  • 15. Sampling from MRF Models Markov Chain Monte Carlo (MCMC) • Gibbs sampler (Geman & Geman 84) • Metropolis algorithm (Metropolis et al. 53) • Swedeson & Wang (87) • Hybrid (Hamiltonian) Monte Carlo
  • 16.
  • 17. Gibbs Sampler Simple one-dimension distribution Repeat: • Randomly pick a pixel • Sample given the current values of
  • 18. Gibbs sampler for Ising model Challenge: sample from Ising model
  • 19. Metropolis Algorithm Repeat: • Proposal: Perturb I to J by sample from K(I, J) = K(J, I) • If change I to J otherwise change I to J with prob energy function
  • 20. Metropolis for Ising model Challenge: sample from Ising model Ising model: proposal --- randomly pick a pixel and flip it
  • 21. Modeling Images by MRF Ising model Exponential family model, log-linear model maximum entropy model unknown parameters features (may also need to be learned) reference distribution Hidden variables, layers, RBM
  • 22. Modeling Images by MRF Given How to estimate • Maximum likelihood • Pseudo-likelihood (Besag 1973) • Contrastive divergence (Hinton)
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. Modeling image pixel labels as MRF (Ising) ( , ) i i x y  ( , ) i j x x  1 real image label image Slides by R. Huang – Rutgers University MRF for Image Segmentation Bayesian posterior
  • 39. Model joint probability label image label-label compatibility Function enforcing Smoothness constraint neighboring label nodes local Observations image-label compatibility Function enforcing Data Constraint ( , ) 1 ( , ) ( , ) ( , ) i j i i i j i P x x x y Z      x y * * ( , ) ( , ) argmax ( , | ) P     x x x y region labels image pixels model param. Slides by R. Huang – Rutgers University
  • 40. * 1 ( , ) ( , ) 2 2 2 2 2 arg max ( | ) 1 arg max ( , ) ( | ) ( , ) / ( ) ( , ) 1 arg max ( , ) ( , ) ( , ) ( , ) ( , ) ( , ) ( ; , ) ( , ) exp( ( ) / ) [ , , ] i i i i i i i j i i i j i i j i i j i i i x x i j i j x x P P P P P P Z x y x x P x y x x Z x y G y x x x x                             x x x x x y x y x y x y y x y x y ( , ) i i x y  ( , ) i j x x  Slides by R. Huang – Rutgers University MRF for Image Segmentation
  • 41. Inference in MRFs – Classical • Gibbs sampling, simulated annealing • Iterated conditional modes – State of the Art • Graph cuts • Belief propagation • Linear Programming • Tree-reweighted message passing Slides by R. Huang – Rutgers University
  • 42. Summary •MRF, Gibbs distribution •Gibbs sampler, Metropolis algorithm •Exponential family model