45
Object Recognition by Discriminative Methods Sinisa Todorovic 1st Sino-USA Summer School in VLPR July, 2009

Motivation

  • Upload
    shaman

  • View
    27

  • Download
    2

Embed Size (px)

DESCRIPTION

Object Recognition by Discriminative Methods Sinisa Todorovic 1st Sino-USA Summer School in VLPR July, 2009. Motivation. Discriminate yes, but what?. Problem 1: What are good features. from Kristen Grauman, B. Leibe. Motivation. Discriminate yes, but against what?. - PowerPoint PPT Presentation

Citation preview

Page 1: Motivation

Object Recognition by Discriminative Methods

Sinisa Todorovic1st Sino-USA Summer School in

VLPRJuly, 2009

Page 2: Motivation

Motivation

from Kristen Grauman, B. Leibe

Discriminate yes, but what?Problem 1: What are good

features

Page 3: Motivation

Motivation

from Kristen Grauman, B. Leibe

Discriminate yes, but against what?

Problem 2: What are good training examples

Page 4: Motivation

Motivation

from Kristen Grauman, B. Leibe

Discriminate yes, but how?

Problem 3: What is a good classifier

Page 5: Motivation

Motivation

from Kristen Grauman, B. Leibe

What is a non-car?Is Bayes decision

optimal?

Sliding windows????

Page 6: Motivation

How to Classify?

observablefeature

class

discriminantfunction

Discriminant function may have a probabilistic

interpretation

Page 7: Motivation

How to Classify?

image feature

Generative

From Antonio Torralba 2007

Page 8: Motivation

How to Classify?

image feature

Discriminative

From Antonio Torralba 2007

Page 9: Motivation

How to Classify?

observablefeature

class

discriminantfunction

Linear discriminant function

Page 10: Motivation

How to Classify?

Large margin classifiers

margin = width that the

boundary can be increased before hitting

a datapoint

margin 1

margin 2Var 1

Var 2

Page 11: Motivation

Distance Based Classifiers

Given:query:

Page 12: Motivation

Outline

Random Forests

Breiman, Fua, Criminisi, Cipolla,

Shotton, Lempitsky, Zisserman, Bosch, ...

Support Vector Machines

Guyon, Vapnik, Heisele, Serre, Poggio, Berg...

Nearest Neighbor

Shakhnarovich, Viola, Darrell, Torralba, Efros, Berg, Frome,

Malik, Todorovic...

Page 13: Motivation

Maxim-Margin Linear Classifier

margin widthsupportvectors

Page 14: Motivation

Maxim-Margin Linear Classifier

Problem:

subject to:

Page 15: Motivation

Maxim-Margin Linear Classifier

Problem:

subject to:

After rescaling data

Page 16: Motivation

LSVM Derivation

Page 17: Motivation

LSVM DerivationProblem:

s.t.

s.t.

Page 18: Motivation

Dual ProblemSolve using Lagrangian

At solution

Page 19: Motivation

Dual Problem

s.t.

Then compute:

Only for support vectors

for support vectors

Page 20: Motivation

Linearly Non-Separable Case

s.t.

trade-off between maximum separation and misclassification

Page 21: Motivation

Non-Linear SVMs

• Non-linear separation by mapping data to another space

• In SVM formulation, data appear only in the vector product

• No need to compute the vector product in the new space

• Mercer kernels

Page 22: Motivation

Vision Applications• Pedestrian detection

• multiscale scanning windows

• for each window compute the wavelet transform

• classify the window using SVM

“A general framework for object detection,” C. Papageorgiou, M. Oren and T. Poggio -- CVPR 98

Page 23: Motivation

Vision Applications

“A general framework for object detection,” C. Papageorgiou, M. Oren and T. Poggio -- CVPR 98

Page 24: Motivation

Shortcomings of SVMs

• Kernelized SVM requires evaluating the kernel for a test vector and each of the support vectors

• Complexity = Kernel complexity × number of support vectors

• For a class of kernels this can be done more efficiently [Maji,Berg, Malik CVPR 08]

intersection kernel

Page 25: Motivation

Outline

Random Forests

Breiman, Fua, Criminisi, Cipolla,

Shotton, Lempitsky, Zisserman, Bosch, ...

Nearest Neighbor

Shakhnarovich, Viola, Darrell, Berg, Frome,

Malik, Todorovic...

Page 26: Motivation

Distance Based Classifiers

Given:query:

Page 27: Motivation

Learning Global Distance Metric

• Given query and datapoint-class pairs• Learn a Mahalanobis distance metric that

• brings points from the same class closer, and

• makes points from different classes be far away

“Distance metric learning with application to clustering with side information” E. Xing, A. Ng, and M. Jordan, NIPS, 2003.

Page 28: Motivation

Learning Global Distance Metric

s.t.

PROBLEM!

Page 29: Motivation

Learning Global Distance Metric

Problem with multimodal classes

before learning after learning

Page 30: Motivation

Per-Exemplar Distance Learning

Frome & Malik ICCV07, Todorovic & Ahuja CVPR08

Page 31: Motivation

Distance Between Two Images

distance between j-th patch in image F and image I

Page 32: Motivation

Learning from TripletsFor each image I in the set we have:

Page 33: Motivation

Max-Margin Formulation• Learn for each focal image F

independently

s.t.

PROBLEM!They heuristically select 15 closest

images

Page 34: Motivation

Max-Margin Formulation

distance between j-th patch in image F and image I

Problem: After computing

in-class and out-of-class datapointsthat have initially been closest

may not be closest after learning

Page 35: Motivation

EM-based Max-Margin Formulation of Local Distance Learning

Todorovic&Ahuja CVPR08

Page 36: Motivation

Learning from TripletsFor each image I in the set:

Frome, Malik ICCV07:

Todorovic et al. CVPR08:

Page 37: Motivation

CVPR 2008: Results on Caltech-256

Page 38: Motivation

Outline

Random Forests

Breiman, Fua, Criminisi, Cipolla,

Shotton, Lempitsky, Zisserman, Bosch, ...

Page 39: Motivation

Decision Trees -- Not Stable

• Partitions of data via recursive splitting on a single feature

• Result: Histograms based on data-dependent partitioning

• Majority voting• Quinlan C4.5; Breiman, Freedman, Olshen, Stone (1984); Devroye, Gyorfi,

Lugosi (1996)

Page 40: Motivation

Random Forests (RF)

RF = Set of decision trees such that each tree depends on a random vector sampled independently and with the same distribution for all trees in RF

Page 41: Motivation

Hough Forests

Combine: spatial info + class info

“Class-Specific Hough Forests for Object Detection”Juergen Gall and Victor Lempitsky

CVPR 2009

Page 42: Motivation

Hough Forests

Page 43: Motivation

Hough Forests

In the test image all features cast votes about the location of the

bounding box

“Class-Specific Hough Forests for Object Detection”Juergen Gall and Victor Lempitsky

CVPR 2009

Page 44: Motivation

Hough Forests

“Class-Specific Hough Forests for Object Detection”Juergen Gall and Victor Lempitsky

CVPR 2009

Page 45: Motivation

Thank you!