Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random...

61
Applications of Graphical Models Dr. Michael Yang September 12, 2016

Transcript of Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random...

Page 1: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications of Graphical Models

Dr. Michael Yang

September 12, 2016

Page 2: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Since 2016, Assistant Prof., EOS-ITC

• 2015-2016, Senior Scientist, CVLD, TU Dresden

• 2012-2015, Postdoc, TNT, Leibniz University Hannover

• 2008-2011, Ph.D, Inst. Photogrammetry, Bonn University

• 2016-2020, Co-Chair ISPRS WG Dynamic Scene Analysis

• Main Research Areas: Photogrammetry, Computer Vision

Brief CV

2

Page 3: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Introduction

• Random Fields

• Future

Outline

3

Page 4: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

4

• Medical diagnosis

• Social network models

• Speech recognition

• Robot localization

•Remote sensing

• Natural language processing

• Computer vision– Image segmentation– Tracking– Scene understanding

• Photogrammetry – Image classification– 3D reconstruction– 3D urban modeling

•........

6

Page 5: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

Segmentation

5

7Yang, Rosenhahn, 2016

Page 6: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

Classification

6

Zhong & Wang 2011

• Reading letters/numbers

• Land-cover classificationin remote sensing

8

Page 7: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

Interpretation

7

• Building and road extraction

• Facade interpretation

• Traffic scene interpretation

• Holistic scene analysis

Chai et al., 2013

Yang & Förstner, 2011

9

Page 8: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

Interpretation

8

• Building and road extraction

• Facade interpretation

• Traffic scene interpretation

• Holistic scene analysis

Barth et al., 2010

10

Yang, 2015

Page 9: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Probabilistic Graphical Models

are a marriage between

probability theory & graph theory

9

Page 10: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Bayesian networks

Graphical Models

Conditional/Markov random fields

10

Page 11: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Graph

Graphical Models

set of the nodes

set of the undirected edges

set of the directed edges

11

Page 12: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Graphical models

A stochastical model represented by a graph

Graphical Models

• Nodes represent random variables

• Edges represent mutual relationships

Undirected edges model joint probabilities

Directed edges model conditional dependencies

12

Page 13: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Graphical models

Graphical Models

• Visualization of dependencies

• Conditional probabilities : directed edges(Bayesian Networks)

• Joint probabilities: undirected edges(Markov Random Field)

13

Page 14: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Introduction

• Conditional/Markov Random Fields

• Future

Outline

14

Page 15: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Applications

Photogrammetry/CV: 2D/3D Image Segmentation Object Recognition 3D Reconstruction Stereo / Optical Flow Image Denoising Texture Synthesis Pose Estimation Panoramic Stitching …

15

Page 16: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Definition Markov random field : graphical model over an undirected graph+ positivity property + Markov property

Markov property:

MRFs

Set of random variables linked to nodes

Set of neighbored random variable

16

Page 17: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Joint distribution (Hammersley & Cliord, 1971)

If positive distribution and Markov property:Markov random field Gibbs random field

Potential functions referring to maximal cliques

Partition function, normalization constant

Sum over all states the complete Markov field!

MRFs

17

Page 18: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Equivalent representation of distribution in MRFIf positive distribution and Markov property:

Markov random field Gibbs random field

Energy

MRFs

• Choice of potential functions

Need not be probabilities

18

Page 19: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Structure of MRFsTypical graph structures

MRFs

rectangular grid irregular graph pyramid structure

Figure courtesy of P. Perez

19

Page 20: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Pairwise MRFspopular

with energy function

MRFs

20

Page 21: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Image Denoising using Pairwise MRFs

MRFs

[From Bishop PRML] noisy image result

21

Page 22: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Definition: conditioanl random fields

A CRF is an MRF globally conditioned on observed data

CRFs

22

Page 23: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Definition: conditioanl random fields

A CRF is an MRF globally conditioned on observed data

CRFs

Conditional distribution

Joint distributionMRF

CRF

23

Page 24: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

CRFs

Yang & Förstner, 2011

Region adjacency graphBuilding facade image

24

Page 25: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

CRFs

CRF has a Gibbs distribution

Gibbs energy function (all dependent on data)

25

Page 26: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Yang & Förstner, 2011

Region adjacency graph

Region hierarchy graphMulti-layer CRFBlue edges

Red edges

(a) Test image (b) Multi-scale segmentation

(c) Graphical model

Hierarchical CRFs

26

Page 27: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Unary potential: classifier output (RF)Pairwise potential: (Data-dependent) PottsHierarchical potential: (Data-dependent) Potts

Energy function

Hierarchical CRFs

Michael Yang 27

Page 28: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

28

Scene Interpretation

Workflow for image interpretation of man-made scenes

Framework

28

Page 29: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

ETRIMS Database

Michael Yang 29

Page 30: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

One example image Ground truth labeling

Example Image

Michael Yang 30

Page 31: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Region classifier (RDF) Pairwise CRF

Classification Results

Michael Yang 31

Page 32: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

HCRF Results

Image RDF CRF HCRF GT

Michael Yang 32

Page 33: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Image GT

RDF CRF HCRF

HCRF Results

Michael Yang 33

Page 34: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Pixelwise accuracy comparison

HCRF Results

Michael Yang 34

Page 35: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Multi-sensor fusion Optical image Lidar data

CRF for Sensor Fusion

Zhang, Yang, Zhou, 2015

Michael Yang 35

Page 36: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Graph Construction Lidar level

Image levelMulti-scale segmentation

Michael Yang 36

Page 37: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

MSMSHCRF ModelThe conditional probability of the class labels x given an image d and Lidar data L

Michael Yang 37

Page 38: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

MSMSHCRF ModelEnergy function

Michael Yang 38

Page 39: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

MSMSHCRF ModelEnergy function

E1: Unary potentials relation between class labels and image

E2: Pairwise potentials relation between class labels of neighboring regions within each scale

Michael Yang 39

Page 40: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

MSMSHCRF ModelEnergy function

E3: Multi-Scale hierarchical pairwise potential relation between regions in neighboring scales of images

E4: Multi-Source hierarchical pairwise potential relation between image and Lidar data

Michael Yang 40

Page 41: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

ResultsDataset: Beijing Airborne Data

3 classes: {Building, Road, Vegetation}

50 images for training / 50 images for testing Michael Yang 41

Page 42: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Results

Image Lidar Classification result(red - building, blue - road, green – vegetation)

Michael Yang 42

Page 43: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Results

Method Accuracy (%)

Standard CRF 64.2

Hierarchical CRF 70.3

Multi-Source CRF 73.6

MSMSCRF 83.7

Comparison

Michael Yang 43

Page 44: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Results

building road vegetation

building 78.3 11.9 9.8

road 9.5 85.9 4.6

vegetation 9.7 8.7 81.6

Confusion Matrix

Michael Yang 44

Page 45: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

ResultsDataset: ISPRS Benchmark

Michael Yang 45

Page 46: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

ResultsDataset: ISPRS Benchmark

Michael Yang 46

Page 47: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Shoaib, Yang, Rosenhahn, Ostermann, 2014

•Object/Layout

Image+depth Object/Layout Ground truth

{sitting place, ground floor, background}

Layout Estimation

•CRF: fuse RGB and depth

Michael Yang 4747

Page 48: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Huang, Gong, Yang, 2015

Single Image

Object Class

Depth Upsampling

Object Segmentation

Michael Yang 48

Page 49: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Liao, Tang, Rosenhahn, Yang, 2015

Image GP result GP-MRF result

Hyperspectral Image Classification

Michael Yang 4949

Page 50: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Introduction

• Random Fields

• Future

Outline

50

Page 51: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

4-connected CRF 8-connected CRF Fully-connected CRF

Fully Connected CRF

Michael Yang 51

Page 52: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Fully Connected CRF

Michael Yang 52

Unary

Final

Image

Li, Yang, 2016

Page 53: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Fully Connected CRF

Michael Yang 53

Image GT Texonboost CRF FC-CRF

Page 54: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Semantic Video Segmentation

Michael Yang 54

: :

Page 55: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Spatial-Temporal Deep Structured Models

Semantic Video Segmentation

Michael Yang 55

Page 56: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

• Spatial-Temporal Deep Structured Models• Weakly-Supervised Learning CNN+CRF

Basic idea: given a few videos with limited labeled frames, we first estimate pseudo noisy ground truth for each frame in training set. Then we use all the labeled frames to train a CNN.

Semantic Video Segmentation

Michael Yang 56

Page 57: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Semantic Video Segmentation

Generating Pseudo Ground Truth DataCRF for Label Propagation

Michael Yang 57

Page 58: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Semantic Video Segmentation

CNN Training

Michael Yang 58

Page 59: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Semantic Video Segmentation

Results

Michael Yang 59

Page 60: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

Acknowledgement

Rosenhahn Rother Förstner

Collaborators

Funding

Michael Yang 60

Page 61: Applications of Graphical Models - ITC · probability theory & graph theory. 9. ... Markov random field Gibbs random field . ... Semantic Video Segmentation:

ITCUniversity of Twente, NL

Thank you!