supervised learning of edges and object boundaries piotr dollár zhuowen tu serge belongie

55
Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Upload: jonah-mcdaniel

Post on 03-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Supervised Learning ofEdges

and Object Boundaries

Piotr DollárZhuowen Tu

Serge Belongie

Page 2: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

The problem

Page 3: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

Page 4: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation– Why edges?– Why not edges?– Why learning?

• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

Page 5: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Why edges?

• Reduce dimensionality of data

• Preserve content information

• Useful in applications such as:– object detection– structure from motion– tracking

Page 6: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Why not edges?

But, not that useful, why?

Difficulties:1. Modeling assumptions

2. Parameters

3. Multiple sources of information (brightness, color, texture, …)

4. Real world conditions

Is edge detection even well defined?

Page 7: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Canny edge detection

1. smooth

2. gradient

3. thresh, suppress, link

Canny is optimal w.r.t. some model.

Page 8: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Canny edge detection

1. smooth

2. gradient

3. thresh, suppress, link

And yet…

Page 9: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

1. Modeling assumptionsStep edges, junctions, etc.

2. ParametersScales, threshold, etc.

3. Multiple sources of informationOnly handles brightness

4. Real world conditionsGaussian iid noise? Texture…

Canny difficulties

Page 10: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

1. Modeling assumptionsComplex models, computationally prohibitive

2. ParametersMany, may use learning to help tune

3. Multiple sources of informationTypically brightness, color, and texture cues

4. Real world conditionsAimed at real images

Modern methods

Page 11: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Modern methods (Pb)

Pb – Martin et al. PAMI04

Page 12: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

1. Modeling assumptionsminimal

2. Parametersnone

3. Multiple sources of informationAutomatically incorporated

4. Real world conditionstraining data

Why learning?

Page 13: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

Page 14: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Problem formulation (general)

image

scene interpretation that can include spatial location and extent of objects, regions, object boundaries, curves, etc.

0/1 function that encodes spatial extent of a component of W

Obtaining optimal or likely W or SW can be difficult. Let:

We seek to learn this distribution directly from image data. To further reduce complexity, we can discard the absolute coordinates of S:

where N(c) is the neighborhood of I centered at c.

Page 15: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Problem formulation (edges)

image segmentation

1 on boundaries of segments, 0 elsewhere

Page 16: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Discriminative framework

Sample positive and negative patches according to above:

Given an image I and n interpretations W obtained by manual annotation, we can compute:

Goal is to learn from human labeled images

Finally train a classifier!

Page 17: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Edge point present in center?

NO YES

Discriminative framework

Page 18: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

Page 19: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Learning architecture

• Large training set O(108) – but correlated– very variable data

• Want generic, efficient features– applicability to any domain– fast computation essential

• Boosting a natural choice

Page 20: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

AdaBoost

Taken from tutorial by Jiri Matas and Jan Sochman

Page 21: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Decision Stumps•Weak learners:

(where f is some feature of x)

Page 22: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

AdaBoost (decision stumps)

Page 23: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Cascaded classifiers

• Minimize computation during testing

• Especially useful for skewed prior

• Viola-Jones face/pedestrian detection

Page 24: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Cascade (AdaBoost)

Page 25: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Probabilistic boosting trees

• Expected amount of computation decreases significantly

• Once a mistake is made, it cannot be undone

• Cascade also made problem easier! Ideally, splitting data creates two sub-problems each much easier than original…

Page 26: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Probabilistic boosting trees

Page 27: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Probabilistic boosting trees

• Retain efficiency of cascades

• Add power when necessary

• Prone to overfitting

• Tree was necessary to obtain good results.

……

Page 28: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Haar features:

• Feature response:(image response to green squares) –

(image response to red squares)

• Applied to many ‘views’ of the data– grayscale, color, Gabor filter outputs, etc.– at many orientations, locations, etc

• Fast computation using integral images• Hundreds of thousands of candidate features

Page 29: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

– Gestalt laws– Natural images– Road detection– Object Boundaries

Page 30: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Results

• Boosted edge learning (BEL)

• Compare to method with best known performance (Pb), and also to Canny

• Comparison not quite fair…

Pb – Martin et al. PAMI04

Page 31: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Gestalt laws

• Gestalt laws of perceptual organization– Symmetry, closure, parallelism, etc.– Govern how component parts are organized into overall

patterns

• The “hard” part of edge detection

• What can and cannot be achieved in our framework?

Page 32: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Analogies

A:B :: C : ?

Page 33: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Gestalt laws: parallelism

Page 34: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Gestalt laws: modal completion

Page 35: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Gestalt laws: alternate interpretation

Page 36: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

– Gestalt laws– Natural images– Road detection– Object Boundaries

Page 37: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Natural Images

• Berkeley Segmentation Dataset and Benchmark– Standard dataset for edge detection with 300 manually

annotated images– Modern benchmark for comparing edge detection algorithms

• Notes:– Edge detection in natural images is hard– Possibly ill-defined problem– Evil but necessary comparison

Page 38: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Natural Images: results

Page 39: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Natural Images: results

Page 40: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

image human BEL Pb

Natural Images: probabilities

Page 41: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

– Gestalt laws– Natural images– Road detection– Object Boundaries

Page 42: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Road detection

location of roads in scene

1 if pixel is on the road, 0 elsewhere

•Road detection is not edge detection

•But same learning architecture

•Ground truth obtained from map data

Page 43: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Road detection (training)(the 2 training images)

Page 44: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Road detection (testing)

(the testing image)

(`Winchester Dr.’ was not detected)

Page 45: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Outline

• I. Motivation• II. Problem formulation• III. Learning architecture (BEL)• IV. Results

– Gestalt laws– Natural images– Road detection– Object Boundaries

Page 46: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries

location and extent of object of interest

1 on boundaries of object, 0 elsewhere

•Must tune to specific ‘type’ of edge

•Algorithms that model edges not applicable

•Potentially most useful application

Page 47: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (context)

Page 48: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (training)

Page 49: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (ground truth)

Page 50: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (Canny)

F-score = .10

Page 51: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (Pb)

F-score = .13

Page 52: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Object boundaries (BEL)

F-score = .79

Page 53: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Algorithm roundup

Accurate Adaptable Fast

Canny

Pb

BEL

Page 54: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Summary

• Define edges only in terms of labeled data, minimal modeling assumptions

• Minimize human effort in adapting algorithm to particular domain

• Fast, affordable edge detection for the masses!

Page 55: Supervised Learning of Edges and Object Boundaries Piotr Dollár Zhuowen Tu Serge Belongie

Thank you!