learning sparse representations to restore, classify, and sense images and videos guillermo sapiro...

48
Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH, ONR, DARPA, ARO, McKnight Foundation Supported by NSF, NGA, NIH, ONR, DARPA, ARO, McKnight Foundation

Upload: tabitha-copeland

Post on 17-Dec-2015

227 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning sparse representations to restore, classify, and sense images and videos

Guillermo Sapiro

University of Minnesota

Supported by NSF, NGA, NIH, ONR, DARPA, ARO, McKnight FoundationSupported by NSF, NGA, NIH, ONR, DARPA, ARO, McKnight Foundation

Page 2: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 2

Martin Duarte

Rodriguez

Ramirez

Lecumberry

Page 3: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 3

Overview

• Introduction– Denoising, Demosaicing, Inpainting– Mairal, Elad, Sapiro, IEEE-TIP, January 2008

• Learn multiscale dictionaries – Mairal, Elad, Sapiro, SIAM-MMS, April 2008

• Sparsity + Self-similarity– Mairal, Bach, Ponce, Sapiro, Zisserman, pre-print.

• Incoherent dictionaries and universal coding– Ramirez, Lecumberry, Sapiro, June 2009, pre-print

• Learning to classify– Mairal, Bach, Ponce, Sapiro, Zisserman, CVPR 2008, NIPS 2008– Rodriguez and Sapiro, pre-print, 2008.

• Learning to sense sparse signals– Duarte and Sapiro, pre-print, May 2008, IEEE-TIP to appear

Page 4: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 4

Introduction I: Sparse and

Redundant Representations

Webster Dictionary: Of few and scattered elements

Page 5: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 5

Relation to measurements

Restoration by Energy Minimization

Thomas Bayes 1702 -

1761

Prior or regularizationy : Given measurements

x : Unknown to be recovered

xPryx21

xf22

Restoration/representation algorithms are often related to the minimization of an energy function of the form

Bayesian type of approach

What is the prior? What is the image model?

Page 6: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 6

The Sparseland Model for Images

MK

N

DA fixed Dictionary

Every column in D (dictionary) is a prototype signal (Atom).

The vector contains very few (say L) non-zeros.A sparse

& random vector

αx

N

Page 7: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 7

What Should the Dictionary D Be?

ˆx̂L.t.sy21

minargˆ00

22

DD

D should be chosen such that it sparsifies the representations (for a given task!)

Learn D :

Multiscale Learning

Color Image Examples

Task / sensing adapted

Internal structure

One approach to choose D is from a known set of transforms

(Steerable wavelet, Curvelet, Contourlets, Bandlets, …)

Page 8: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 8

Introduction II: Dictionary

Learning

Page 9: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 9

Each example is a linear combination of atoms from

D

Measure of Quality for D

DX A

Each example has a sparse representation with no more than L

atoms

L,j.t.sxMin0

0j

P

1j

2

2jj,

DAD Field & Olshausen (‘96)

Engan et. al. (‘99)Lewicki & Sejnowski (‘00)

Cotter et. al. (‘03)Gribonval et. al. (‘04)

Aharon, Elad, & Bruckstein (‘04) Aharon, Elad, & Bruckstein (‘05)

Ng et al. (‘07)Mairal, Sapiro, Elad (‘08)

Page 10: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 10

The K–SVD Algorithm – General

DInitialize D

Sparse Coding

Orthogonal Matching Pursuit (or L1)

Dictionary Update

Column-by-Column by SVD computation over the relevant

examples

Aharon, Elad, & Bruckstein (`04)

XT

Page 11: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 11

Show me the pictures

Page 12: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 12

Change the Metric in the OMP

Page 13: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 13

Non-uniform noise

Page 14: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 14

Example: Non-uniform noise

Page 15: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 15

Example: Inpainting

Page 16: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 16

Example: Demoisaic

Page 17: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 17

Example: Inpainting

Page 18: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 18

Not enough fun yet?:

Multiscale Dictionaries

Page 19: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 19

Learned multiscale dictionary

Page 20: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 20

Page 21: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 21

Color multiscale dictionaries

Page 22: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 22

Example

Page 23: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 23

Video inpainting

Page 24: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Extending the Models

Learning Sparsity 24

Page 25: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Universal Coding and Incoherent Dictionaries

• Consistent• Improved generalization properties• Improved active set computation• Improved coding speed• Improved reconstruction• See poster by Ramirez and Lecumberry…

Learning Sparsity 25

Page 26: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Sparsity + Self-similarity=Group Sparsity

• Combine the two of the most successful models for images

• Mairal, Bach. Ponce, Sapiro, Zisserman, pre-print, 2009

Learning Sparsity 26

Page 27: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning to Classify

Page 28: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 28

Global Dictionary

Page 29: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 29

Barbara

Page 30: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 30

Boat

Page 31: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 31

Digits

Page 32: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Which dictionary? How to learn them?

• Multiple reconstructive dictionary? (Payre)

• Single reconstructive dictionary? (Ng et al, LeCunn et al.)

• Dictionaries for classification!

• See also Winn et al., Holub et al., Lasserre et al., Hinton et al. for joint discriminative/generative probabilistic approaches

Learning Sparsity 32

Page 33: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 33

Learning multiple reconstructive and discriminative dictionaries

With J. Mairal, F. Bach, J. Ponce, and A. Zisserman, CVPR ’08, NIPS ‘08

Page 34: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 34

Texture classification

Page 35: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Semi-supervised detection learning

MIT -- Learning Sparsity 35

Page 36: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 36

Learning a Single Discriminative and Reconstructive Dictionary

• Exploit the representation coefficients for classification– Include this in the optimization

– Class supervised simultaneous OMP

With F. Rodriguez

Page 37: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 37

Digits images: Robust to noise and occlusions

Page 38: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 38

Supervised Dictionary Learning

With J. Mairal, F. Bach, J. Ponce, and A. Zisserman, NIPS ‘08

Page 39: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning to Sense Sparse Images

Page 40: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Motivation

• Compressed sensing (Candes &Tao, Donoho, et al.)– Sparsity

– Random sampling• Universality

• Stability

• Shall the sensing be adapted to the data type?– Yes! (Elad, Peyre, Weiss et al., Applebaum et al, this talk).

• Shall the sensing and dictionary be learned simultaneously?

Learning Sparsity 40

Page 41: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Some formulas….

Learning Sparsity 41

+ “RIP (Identity Gramm Matrix)”

Page 42: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Design the dictionary and sensing together

Learning Sparsity 42

Page 43: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Just Believe the Pictures

Learning Sparsity 43

Page 44: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Just Believe the Pictures

Learning Sparsity 44

Page 45: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Just Believe the Pictures

Learning Sparsity 45

Page 46: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 46

Conclusions• State-of-the-art denoising results for still (shared with Dabov et

al.) and video• General• Vectorial and multiscale learned dictionaries• Dictionaries with internal structure• Dictionary learning for classification

– See also Szlam and Sapiro, ICML 2009– See also Carin et al, ICML 2009

• Dictionary learning for sensing

• A lot of work still to be done!

Page 47: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Please do not use the wrong dictionaries…

• 12 M pixel image

• 7 million patches

• LARS+online learning:

~8 minutes

• Mairal, Bach, Ponce, Sapiro, ICML 2009

Learning Sparsity 47

Page 48: Learning sparse representations to restore, classify, and sense images and videos Guillermo Sapiro University of Minnesota Supported by NSF, NGA, NIH,

Learning Sparsity 48