novelty detection from an ego- centric perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11....

28
Novelty Detection from an Ego- Centric Perspective Omid Aghazadeh, Josephine Sullivan, and Stefan Carlsson Presented by Randall Smith 1 Friday, November 16, 12

Upload: others

Post on 18-Sep-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Novelty Detection from an Ego-Centric Perspective

Omid Aghazadeh, Josephine Sullivan, and Stefan CarlssonPresented by Randall Smith

1Friday, November 16, 12

Page 2: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Outline

• Introduction

• Sequence Alignment

• Appearance Based Cues

• Geometric Similarity

• Example

• Dynamic Time Warping

• Algorithm

• Evaluation of Similarity Matching

• Results

• Conclusion

2Friday, November 16, 12

Page 3: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Introduction

• Problem: Select relevant visual input from worn, mobile camera.

• Motivation:

• Routine Recognition [Blanke & Schiele 2009]

• Life Logging [Doherty & Smeaton 2010]

[Schiele et. al. 2007]

• Memory assistance [Hodges et. al. 2006]

Image: CVPR 2011, Aghazadeh et. al.,link

3Friday, November 16, 12

Page 4: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Introduction : Memory Selection

• We must decide what visual inputs to remember.

• How should this be done?

• Novelty detection.

• What is novelty detection?

4Friday, November 16, 12

Page 5: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Introduction : Novelty Detection

• Novelty = All Inputs - Known Inputs

• Novelty detection: identification of inputs that differ from previously seen inputs.

• Novelty detection can help decide on what is worth remembering.

All InputsKnown Inputs

5Friday, November 16, 12

Page 6: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Introduction : Setup

• Heuristic: detect novelty as deviation from background.

• Context: collect video sequences from from daily commute to work.

• Equipment: 4cm camera + memory stick.

Image: CVPR 2011, Aghazadeh et. al.,link

6Friday, November 16, 12

Page 7: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Introduction : Dataset

Image: CVPR 2011, Aghazadeh et. al.,link

7Friday, November 16, 12

Page 8: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Sequence Alignment

• Novelty is defined as a failure to register a sequence with a set of stored reference sequences (25 Hz videos sampled at 1 Hz.)

• Accomplished by sequence alignment, via Dynamic Time Warping (DTW).

Image: CVPR 2011, Aghazadeh et. al.,link

8Friday, November 16, 12

Page 9: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Sequence Alignment : Discussion

• Could we define or detect novelty in some other way?

9Friday, November 16, 12

Page 10: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Sequence Alignment : Dynamic Time Warping

M

Time Series B

Tim

e Se

ries

A

10Friday, November 16, 12

Page 11: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Sequence Alignment : Similarity

• In order to use DTW, need to define some cost function

• This can by defining a measure of similarity between each pair of frames.

• Can use appearance based cues (SIFT, VLAD) to do this.

Image: link

11Friday, November 16, 12

Page 12: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Appearance Based Cues

• Can compute a fixed length vector each frame and use a kernel in order to compare similarity.

• Use SIFT or VLAD/SIFT to compute Bag of Features (BoF).

• VLAD: Vector of Locally Aggregated Descriptors:

• (1) get k-means code book, and

• (2) for each codeword C

• take the L2-normalized sum of all the vectors assigned to it.

Image: link

12Friday, November 16, 12

Page 13: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Geometric Similarity

• Appearance based cues alone are not accurate enough.

• Need to match local structures in a geometrically consistent way.

• Need a transformation that will do this: fundamental matrix.

• The measure of similarity will be the percentage of inliers in an initial set of putative matches, w.r.t to estimated fundamental matrix.

• Match against homography mapping to assess correctness of hypothetical fundamental matrix

13Friday, November 16, 12

Page 14: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Geometric Similarity : Discussion

• Could we supplement or substitute some other measure of similarity?

• How could different similarity measures affect novelty?

14Friday, November 16, 12

Page 15: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Example

15Friday, November 16, 12

Page 17: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Dynamic Time Warping

• Define a path:

• s.t. (1) , and

(2)

• Define a cost function

• Let

• Want .

• Solved via dynamic programming.

p⇤ = argminpCp

c(i, j) � 0

Cp =

KpX

k=1

c(ik, jk)

(iK , jK) = (M,N)(i1, j1) = (1, 1)

p = {(i1, j1), . . . , (iK , jK)}

pk+1 � pk 2 {(0, 1), (1, 0), (1, 1)}

M

NTime Series BTi

me

Serie

s A

17Friday, November 16, 12

Page 18: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm

• compute features , and nearest neighbor distance ratio

• keep best matches based on this ordering

• compute loose homography and inliers

• compute 5 point fundamental matrix from and inliers

• compute similarity

HL PH

E PH

N P

PHE

fs = min(1,↵max(0,|PHR||P | � �))

Image: CVPR 2011, Aghazadeh et. al.,link

F1 F2

18Friday, November 16, 12

Page 19: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm : Cost Matrix

• Need to compute similarity matrix for sequences and .

• Convert to cost matrix via zero-mean Gaussian with standard deviation .

• Why? Noise?

• Use DTW to find optimal alignment!

• Problem: this is expensive.

s1 s2

�c

19Friday, November 16, 12

Page 20: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm : Optimization

• Optimization: for each frame in find the k nearest neighbors in .

• Evaluate only the k nearest neighbors instead.

s1 s2

Image: CVPR 2011, Aghazadeh et. al.,link

20Friday, November 16, 12

Page 21: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm : Match Cost

• Let correspond to frame indices in and to frame indices in .

• Let be the minimum cost path from DTW.

• The match cost for a frame in to is

• where is the value of the cost matrix at .

�s1,s2

i j

�(i, �s1,s2) =

(Cik,jk if 9(ik, jk) 2 �s1,s2 s.t. i = ik1 otherwise

s1 s2

�(i, �s1,s2) i s1 s2

Cik,jk (ik, jk)

21Friday, November 16, 12

Page 22: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm : Novelty Detection

• Compute the minimum match cost for each frame in the query sequence:

• where contains all reference sequences.

• Threshold the minimum match cost to find novelties.

• Smoothing: Gaussian mask applied to prior to matching with and using threshold .

E(s(i)t ) = minsr2S

�(i, �sq,sr )

S

�N

⇥N = e� 1

23�2c

22Friday, November 16, 12

Page 23: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Algorithm : Discussion

• How else could we implement memory selection or novelty detection?

• How does this scale with the number of stored sequences?

23Friday, November 16, 12

Page 24: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Evaluation of Similarity Matching

• minimum intersection kernel for BoF and degree one polynomial kernel for VLAD/SIFT

• VLAD + BoF + Dense (gray + color) -> 88% = bestImage: CVPR 2011, Aghazadeh et. al.,link

24Friday, November 16, 12

Page 25: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Results : Detecting Novelty

Image: CVPR 2011, Aghazadeh et. al.,link

25Friday, November 16, 12

Page 26: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Results : Precision Recall Curves and Matches

Image: CVPR 2011, Aghazadeh et. al.,link

26Friday, November 16, 12

Page 27: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

Conclusion

• The scalability of this algorithm seems to be an issue.

• It would be interesting to explore alternative measures of similarity or novelty.

• Could this be converted to purely use clustering and only store clips for reference (by the user).

• The dataset is quite small, which is understandable given their technique, but perhaps an improved technique could make this work better?

27Friday, November 16, 12

Page 28: Novelty Detection from an Ego- Centric Perspectivecv-fall2012/slides/randall-paper.pdf · 2012. 11. 17. · Novelty Detection from an Ego-Centric Perspective Omid Aghazadeh, Josephine

References

• H. Jegou, M. Douze, C. Schmid, and P. Perez. Aggregating local descriptors into a compact image representation. In CVPR, 2010.

• M. Muller. Information retrieval for music and motion. Springer-Verlag New York Inc, 2007.

• Novelty Detection from an Egocentric Perspective. O. Aghazadeh, J. Sullivan, and S. Carlsson. CVPR 2011

28Friday, November 16, 12