cvpr2009: inferring object attributes

57
7/31/2019 CVPR2009: Inferring Object Attributes http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 1/57  Inferring Object Attributes Derek Hoiem Robotics Seminar, April 10, 2009 Work with: Ali Farhadi, Ian Endres, David Forsyth Computer Science Department University of Illinois at Urbana Champaign

Upload: zukun

Post on 05-Apr-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 1/57

 

Inferring Object Attributes

Derek HoiemRobotics Seminar, April 10, 2009

Work with: Ali Farhadi, Ian Endres, David Forsyth

Computer Science Department

University of Illinois at Urbana Champaign

Page 2: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 2/57

Page 3: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 3/57

What do we want to

know about this

object?

Page 4: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 4/57

What do we want to

know about this

object?

Object recognition expert:

“Dog” 

Page 5: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 5/57

What do we want to

know about this

object?

Object recognition expert:

“Dog” 

Person in the Scene:

“Big pointy teeth”, “Can movefast”, “Looks angry” 

Page 6: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 6/57

Our Goal: Infer Object Properties

Is it alive?

Can I poke with it? Can I put stuff in it?

What shape is it? Is it soft?

Does it have a tail? Will it blend?

Page 7: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 7/57

Why Infer Properties

1. We want detailed information about objects

“Dog”

vs.

“Large, angry animal with pointy teeth” 

Page 8: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 8/57

Why Infer Properties

2. We want to be able to infer something aboutunfamiliar objects

Familiar Objects New Object

Page 9: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 9/57

Page 10: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 10/57

Why Infer Properties

2. We want to be able to infer something aboutunfamiliar objects

Has Stripes

Has Ears

Has Eyes

…. 

Has Four Legs

Has Mane

Has Tail

Has Snout

…. 

Brown

Muscular 

Has Snout

…. 

Has Stripes (like cat)

Has Mane and Tail (like horse)

Has Snout (like horse and dog)

Familiar Objects New Object

If we can infer properties… 

Page 11: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 11/57

Why Infer Properties

3. We want to make comparisons betweenobjects or categories

What is unusual about this dog? What is the difference between horses

and zebras?

Page 12: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 12/57

Strategy 1: Category Recognition

classifier associatedproperties

Category Recognition: PASCAL 2008

Category Attributes: ??

Object Image Category

“Car” 

Has WheelsUsed for Transport

Made of Metal

Has Windows

… 

Page 13: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 13/57

Strategy 2: Exemplar Matching

associatedproperties

Object Image Similar Image

Has WheelsUsed for Transport

Made of Metal

Old

… 

similarityfunction

Malisiewicz Efros 2008

Hays Efros 2008Efros et al. 2003

Page 14: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 14/57

Strategy 3: Infer Properties Directly

Object Image

No WheelsOld

Brown

Made of Metal

… 

classifier for each attribute

See also Lampert et al. 2009Gibson’s affordances 

Page 15: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 15/57

The Three Strategies

classifier associated

properties

Object Image

Category

“Car” 

Has Wheels

Used for TransportMade of Metal

Has Windows

Old

No Wheels

Brown… 

associated

properties

Similar Imagesimilarity

function

classifier for each attribute

Direct

Page 16: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 16/57

Our attributes

• Visible parts: “has wheels”, “has snout”, “has

eyes” 

• Visible materials or material properties:“made of metal”, “shiny”, “clear”, “made of plastic” 

• Shape: “3D boxy”, “round” 

Page 17: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 17/57

Attribute Examples

Shape: Horizontal Cylinder 

Part: Wing, Propeller, Window, Wheel 

Material: Metal , GlassShape: Part: Window, Wheel , Door, Headlight,

Side Mirror 

Material: Metal , Shiny

Page 18: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 18/57

Attribute Examples

Shape: Part: Head, Ear, Nose,

Mouth, Hair, Face,

Torso, Hand, Arm

Material: Skin, Cloth

Shape: Part: Head, Ear, Snout,

Eye

Material: Furry

Shape: Part: Head, Ear, Snout,

Eye, Torso, Leg

Material: Furry

Page 19: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 19/57

Datasets

• a-Pascal – 20 categories from PASCAL 2008 trainval dataset (10K object images)

• airplane, bicycle, bird, boat, bottle, bus, car, cat, chair, cow, dining table, dog, horse,motorbike, person, potted plant, sheep, sofa, train, tv monitor

 – Ground truth for 64 attributes

 – Annotation via Amazon’s Mechanical Turk 

• a-Yahoo – 12 new categories from Yahoo image search

• bag, building, carriage, centaur, donkey, goat, jet ski, mug, monkey, statue of person, wolf, zebra

 – Categories chosen to share attributes with those in Pascal

• Attribute labels are somewhat ambiguous – Agreement among “experts” 84.3 

 – Between experts and Turk labelers 81.4

 – Among Turk labelers 84.1

Page 20: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 20/57

Our approach

Page 21: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 21/57

Features

Strategy: cover our bases

• Spatial pyramid histograms of quantized

 – Color and texture for materials – Histograms of gradients (HOG) for parts

 – Canny edges for shape

Page 22: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 22/57

Learning Attributes

• Learn to distinguish between things that have

an attribute and things that do not

• Train one classifier (linear SVM) per attribute

Page 23: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 23/57

Learning Attributes

Simplest approach: Train classifier using all

features for each attribute independently

“Has Wheels”  “No Wheels Visible” 

Page 24: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 24/57

Dealing with Correlated Attributes

Big Problem: Many attributes are stronglycorrelated through the object category

Most things that “have wheels” are “made of metal” 

When we try to learn “has

wheels”, we may accidentally

learn “made of metal” 

Has Wheels, Made of Metal?

Page 25: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 25/57

Decorrelating attributes

Solution:

• Select features that can distinguish between

two classes – Things that have the attribute (e.g., wheels)

 – Things that do not, but have similar attributes to those

that do

• Then, train attribute classifier on all positive

and negative examples using the selected

features

Page 26: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 26/57

Feature Selection

Do feature selection (L1 logistic regression) foreach class separately and pool features

“Has Wheels”  “No Wheels” 

vs.

vs.

vs.

Car Wheel

Features

Boat Wheel

Features

Plane WheelFeatures

All Wheel

Features

Page 27: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 27/57

Feature selection

“Has Wheel” vs. “Made of Metal” Correlation 

• Ground truth

 – a-Pascal: 0.71 (cars, airplanes, boats, etc.)

 – a-Yahoo: 0.17 (carriages)

• a-Yahoo, predicted with whole features: 0.56

• a-Yahoo, predicted with selected features: 0.28

Page 28: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 28/57

Experiments

• Predict attributes for unfamiliar objects

• Learn new categories

 – From limited examples – Learn from verbal description alone

• Identify what is unusual about an object

• Provide evidence that we really learn intended

attributes, not just correlated features

Page 29: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 29/57

Results: Predicting attributes

• Train on 20 object classes from a-Pascal train

set

 – Feature selection for each attribute

 – Train a linear SVM classifier

• Test on 12 object classes from Yahoo image

search (cross-category) or on a-Pascal test set

(within-category)

 – Apply learned classifiers to predict each attribute

Page 30: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 30/57

Describing Objects by their Attributes

No examples from these object categories were seen during training

Page 31: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 31/57

Describing Objects by their Attributes

No examples from these object categories were seen during training

Page 32: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 32/57

Attribute Prediction: Quantitative Analysis

 Area Under the ROC for Familiar (PASCAL) vs.

Unfamiliar (Yahoo) Object Classes

Best

EyeSide Mirror 

Torso

Head

Ear 

WorstWing

HandlebarsLeather 

Clear 

Cloth

Page 33: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 33/57

Average ROC Area

Test Objects Parts Materials Shape

a-PASCAL 0.794 0.739 0.739

a-Yahoo 0.726 0.645 0.677

Trained on a-PASCAL objects

Page 34: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 34/57

Category Recognition

• Semantic attributes not enough

 – 74% accuracy even with ground truth attributes

• Introduce discriminative attributes – Trained by selecting subset of classes and features

• Dogs vs. sheep using color

• Cars and buses vs. motorbikes and bicycles using edges – Train 10,000 and select 1,000 most reliable,

according to a validation set

Page 35: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 35/57

Attributes not big help when sufficient data

PASCAL 2008 Base

Features

Semantic

Attributes

All

Attributes

Classification Accuracy 58.5% 54.6% 59.4%

Class-normalized Accuracy 35.5% 28.4% 37.7%

• Use attribute predictions as features

• Train linear SVM to categorize objects

Page 36: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 36/57

Learning New Categories

• From limited examples

 – nearest neighbor of attribute predictions

• From verbal description

 – nearest neighbor to verbally specified attributes

• Goat: “has legs, horns, head, torso, feet”, “is furry” 

• Building: “has windows, rows of windows”, “made of 

glass, metal”, “is 3D boxy” 

Page 37: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 37/57

Recognition of New Categories

Page 38: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 38/57

Identifying Unusual Attributes

• Look at predicted attributes that are not

expected given class label

Page 39: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 39/57

Absence of typical attributes

752 reports

68% are correct

Page 40: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 40/57

Presence of atypical attributes

951 reports

47% are correct

How do we know if we learn what we

Page 41: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 41/57

How do we know if we learn what we

intend?

Dataset biases and natural correlations cancreate an illusion of a well-learned model.

Page 42: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 42/57

Feature selection improves classifier semantics

• Learning from textual description:

 – Selected features: 32.5%

 – Whole features: 25.2%

• Absence of typical attributes:

 – Selected features: 68.2%

 – Whole features: 54.8%

• Presence of atypical attributes:

 – Selected features: 47.3%

 – Whole features: 24.5%

Page 43: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 43/57

Attribute Localization

Page 44: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 44/57

Unusual attribute localization

Page 45: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 45/57

Correlation of Attributes

Better semantics does not necessarily lead to

Page 46: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 46/57

Better semantics does not necessarily lead to

higher overall accuracy

Train on 20 PASCAL classesTest on 12 different Yahoo classes

Learning the wrong thing sometimes gives

Page 47: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 47/57

Learning the wrong thing sometimes gives

much better numbers

Train and Test on Same Classes from PASCAL

Page 48: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 48/57

How to tell if we learn what we intend

1. Test out of sample

 – Train on PASCAL, test on different categories from a

different source

2. Evaluate on an “implied” ability that is not directly

learned – If we really learn an attribute, we should be able to

• localize it

• detect unusual cases of absence/presence

• learn from description

3. See if it makes reasonable mistakes – E.g., context increases confusion between similar classes and

decreases confusion with background (Divaala et al. 2009)

ff

Page 49: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 49/57

Future efforts

• New dataset

 – Many object classes

 – More careful and comprehensive set of attributes

 – Higher quality training images, some additional

supervision

• Apply multiple strategies for predicting

attributes

• Learn by reading and other non-visual sources

C l i

Page 50: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 50/57

Conclusion

• Inferring object  properties is the central goal of object

recognition – Categorization is a means, not an end

• We have shown that a special form of feature selection allows

better learning of intended attributes

• We have shown that learning properties directly enablesseveral new abilities

 – Predict properties of new types of objects

 – Specify what is unusual about a familiar object

 – Learn from verbal description• Much more to be done

Th k

Page 51: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 51/57

Thank you

 A. Farhadi, I. Endres, D. Hoiem, D.A. Forsyth, “Describing Objects by their Attributes”, CVPR 2009 

Page 52: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 52/57

 

ib di i Q i i l i

Page 53: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 53/57

Attribute Prediction: Quantitative Analysis

ROC Area Under the Curve for PASCAL Object Classes

BestMetal

Window

Row Windows

Engine

Clear 

WorstRein

ClothFurry

Furn. Seat

Plastic

Feature selection does not improve

Page 54: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 54/57

Feature selection does not improveoverall quantitative measures

Train and Test on Same Classes from PASCAL

Object categorization

C l ti f Att ib t

Page 55: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 55/57

Correlation of Attributes

D l ti Att ib t

Page 56: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 56/57

Decorrelating Attributes

Method 1: Do feature selection for each classseparately and pool features

“Has Wheels”  “No Wheels” 

vs.

vs.

vs.

Car Wheel

Features

Boat Wheel

Features

Plane Wheel

Features

All Wheel

Features

D l ti Att ib t

Page 57: CVPR2009: Inferring Object Attributes

7/31/2019 CVPR2009: Inferring Object Attributes

http://slidepdf.com/reader/full/cvpr2009-inferring-object-attributes 57/57

Method 2: Choose negative examples that are

similar (in attribute space) to those that have

the attribute

“Has Wheels”  “No Wheels” 

vs.

Decorrelating Attributes