machine learning & category recognition

41
Machine learning & category recognition Cordelia Schmid Jakob Verbeek

Upload: season

Post on 15-Jan-2016

72 views

Category:

Documents


0 download

DESCRIPTION

Machine learning & category recognition. Cordelia Schmid Jakob Verbeek. Content of the course. Visual object recognition Robust image description Machine learning. Visual recognition - Objectives. Particular objects and scenes, large databases. …. Visual recognition - Objectives. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Machine learning  &  category recognition

Machine learning &

category recognition

Cordelia Schmid

Jakob Verbeek

Page 2: Machine learning  &  category recognition

Content of the course

• Visual object recognition

• Robust image description

• Machine learning

Page 3: Machine learning  &  category recognition

Visual recognition - Objectives

• Particular objects and scenes, large databases

Page 4: Machine learning  &  category recognition

Visual recognition - Objectives

• Object classes and categories (intra-class variability)

Page 5: Machine learning  &  category recognition

Visual object recognition

Page 6: Machine learning  &  category recognition

glass

candle

person

drinking

indoors

car

car

car

person

kidnappinghouse

street

outdoors

person

car

street

outdoors car enter

person

car

roadfield

countryside

car crash

Visual object recognition

exit through a doorbuilding

car

people

outdoors

Page 7: Machine learning  &  category recognition

Visual recognition - Objectives

• Human motion and actions

Page 8: Machine learning  &  category recognition

Difficulties: within object variations

Variability: Camera position, Illumination,Internal parameters

Within-object variations

Page 9: Machine learning  &  category recognition

Difficulties: within-class variations

Page 10: Machine learning  &  category recognition

Visual recognition

• Robust image description – Appropriate descriptors for objects and categories

• Statistical modeling and machine learning for vision– Selection and adaptation of existing techniques

Page 11: Machine learning  &  category recognition

Robust image description

• Invariant detectors and descriptors• Scale and affine-invariant keypoint detectors

Page 12: Machine learning  &  category recognition

Matching of descriptors

Significant viewpoint change

Page 13: Machine learning  &  category recognition

Basis:contour segment network

edgel-chains partitioned into straight contour segments

segments connected at edgel-chains’ endpoints and junctions

Ferrari et al. ECCV 2006

Contour features

[Ferrari, Fevrier, Jurie & Schmid, Pami’07]

Page 14: Machine learning  &  category recognition

Localization of “shape” categories

Window descriptor + SVM Horse localization

Page 15: Machine learning  &  category recognition

Why machine learning?

• Early approaches: simple features + handcrafted models• Can handle only few images, simples tasks

L. G. Roberts, Machine Perception of Three Dimensional Solids,

Ph.D. thesis, MIT Department of Electrical Engineering, 1963.

Page 16: Machine learning  &  category recognition

Why machine learning?

• Early approaches: manual programming of rules• Tedious, limited and does not take into accout the data

Y. Ohta, T. Kanade, and T. Sakai, “An Analysis System for Scenes Containing objects with Substructures,” International Joint Conference on Pattern Recognition, 1978.

Page 17: Machine learning  &  category recognition

Why machine learning?

• Today lots of data, complex tasks

Internet images, personal photo albums

Movies, news, sports

Page 18: Machine learning  &  category recognition

Why machine learning?

• Today lots of data, complex tasks

Surveillance and security Medical and scientific images

Page 19: Machine learning  &  category recognition

Why machine learning?

• Today: Lots of data, complex tasks

• Instead of trying to encode rules directly, learn them from examples of inputs and desired outputs

Page 20: Machine learning  &  category recognition

Types of learning problems

• Supervised– Classification– Regression

• Unsupervised• Semi-supervised• Reinforcement learning• Active learning• ….

Page 21: Machine learning  &  category recognition

Supervised learning

• Given training examples of inputs and corresponding outputs, produce the “correct” outputs for new inputs

• Two main scenarios:

– Classification: outputs are discrete variables (category labels). Learn a decision boundary that separates one class from the other

– Regression: also known as “curve fitting” or “function approximation.” Learn a continuous input-output mapping from examples (possibly noisy)

Page 22: Machine learning  &  category recognition

Unsupervised Learning

• Given only unlabeled data as input, learn some sort of structure

• The objective is often more vague or subjective than in supervised learning. This is more of an exploratory/descriptive data analysis

Page 23: Machine learning  &  category recognition

Unsupervised Learning

• Clustering– Discover groups of “similar” data points

Page 24: Machine learning  &  category recognition

Unsupervised Learning

• Quantization– Map a continuous input to a discrete (more compact) output

1

2

3

Page 25: Machine learning  &  category recognition

Unsupervised Learning

• Dimensionality reduction, manifold learning– Discover a lower-dimensional surface on which the data lives

Page 26: Machine learning  &  category recognition

Unsupervised Learning

• Density estimation– Find a function that approximates the probability density of the

data (i.e., value of the function is high for “typical” points and low for “atypical” points)

– Can be used for anomaly detection

Page 27: Machine learning  &  category recognition

Other types of learning

• Semi-supervised learning: lots of data is available, but only small portion is labeled (e.g. since labeling is expensive)

Page 28: Machine learning  &  category recognition

Other types of learning

• Semi-supervised learning: lots of data is available, but only small portion is labeled (e.g. since labeling is expensive)– Why is learning from labeled and unlabeled data better than

learning from labeled data alone?

?

Page 29: Machine learning  &  category recognition

Other types of learning

• Active learning: the learning algorithm can choose its own training examples, or ask a “teacher” for an answer on selected inputs

Page 30: Machine learning  &  category recognition

Other types of learning

• Reinforcement learning: an agent takes inputs from the environment, and takes actions that affect the environment. Occasionally, the agent gets a scalar reward or punishment. The goal is to learn to produce action sequences that maximize the expected reward (e.g. driving a robot without bumping into obstacles)

Page 31: Machine learning  &  category recognition

• Image classification: assigning label to the image

Visual object recognition - tasks

Car: presentCow: presentBike: not presentHorse: not present…

Page 32: Machine learning  &  category recognition

• Image classification: assigning label to the image

Tasks

Car: presentCow: presentBike: not presentHorse: not present…• Object localization: define the location and the category

Car CowLocatio

n

Category

Visual object recognition - tasks

Page 33: Machine learning  &  category recognition

Bag-of-features for image classification

• Excellent results in the presence of background clutter

bikes books building cars people phones trees

Page 34: Machine learning  &  category recognition

Bag-of-features for image classification

Classification

SVM

Extract regions Compute descriptors

Find clusters and frequencies

Compute distance matrix

[Nowak,Jurie&Triggs,ECCV’06], [Zhang,Marszalek,Lazebnik&Schmid,IJCV’07]

Page 35: Machine learning  &  category recognition

Spatial pyramid matching

Perform matching in 2D image space

[Lazebnik, Schmid & Ponce, CVPR’06]

Page 36: Machine learning  &  category recognition

Retrieval examples

Query

Page 37: Machine learning  &  category recognition

Localization of object categories

Page 38: Machine learning  &  category recognition

Localization approach

Histogram of oriented image gradients as image descriptor

SVM as classifier, importance weighted descriptors

Page 39: Machine learning  &  category recognition

Unsupervised learning using Markov field aspect models[Verbeek & Triggs, CVPR’07]

• Goal: automatic interpretation of natural scenes– assign pixels in images to visual categories– learn models from image-wide labeling, without localization

• Per training image a list of present categories

• Approach: capture local and image-wide correlations– Markov fields capture local label contiguity– Aspect models capture image-wide label correlation– Interleave:

• Region-to-category assignments using Loopy Belief Propagation and labeling• Category model estimation

Example scene interpretation of training image

Page 40: Machine learning  &  category recognition

Localization based on shape

[Ferrari, Jurie & Schmid, CVPR’07] [Marzsalek & Schmid, CVPR’07]

Page 41: Machine learning  &  category recognition

Master Internships

• Internships are available in the LEAR group– Object localization (C. Schmid)– Video recognition (C. Schmid)– Semi-supervised / text-based learning (J. Verbeek)

• If you are interested send an email to us