CS475/CS675 Lecture 23: July 19, 2016 Principal Component Analysis, - - PowerPoint PPT Presentation

cs475 cs675 lecture 23 july 19 2016
SMART_READER_LITE
LIVE PREVIEW

CS475/CS675 Lecture 23: July 19, 2016 Principal Component Analysis, - - PowerPoint PPT Presentation

CS475/CS675 Lecture 23: July 19, 2016 Principal Component Analysis, Eigenfaces CS475/CS675 (c) 2016 P. Poupart 1 Principal Component Analysis (PCA) Data exploration technique: Dimensionality reduction Principal components are axes


slide-1
SLIDE 1

CS475/CS675 Lecture 23: July 19, 2016

Principal Component Analysis, Eigenfaces

CS475/CS675 (c) 2016 P. Poupart 1

slide-2
SLIDE 2

2

Principal Component Analysis (PCA)

  • Data exploration technique:

– Dimensionality reduction – Principal components are axes that preserve most of the variance in the data

  • Picture

CS475/CS675 (c) 2016 P. Poupart

slide-3
SLIDE 3

Empirical Variance

  • Data:
  • Empirical mean:
  • Empirical covariance:
  • CS475/CS675 (c) 2016 P. Poupart

3

slide-4
SLIDE 4

Principal Component

  • Axis that preserves the most variance
  • When

, then

  • is

is

CS475/CS675 (c) 2016 P. Poupart 4

slide-5
SLIDE 5

Principal Component Analysis

  • Eigendecomposition of the empirical covariance

matrix

Λ

  • Eigenvector: dimension (or basis function)
  • Eigenvalue: amount of variance preserved in that dimension

CS475/CS675 (c) 2016 P. Poupart 5

slide-6
SLIDE 6

Dimensionality Reduction

  • Problem: what is the smallest linear subspace (i.e., fewest

dimensions) that captures 95% of the variance?

  • Solution: retain eigenvectors of the largest eigenvalues such

that is the smallest integer that satisfies ∑

  • 0.95
  • Picture:

CS475/CS675 (c) 2016 P. Poupart 6

slide-7
SLIDE 7

Example: Eigenfaces

  • Turk and Pentland (1991):

– Image compression – Face detection

  • Solution:

– embed images in low dimensional eigenspace – Face detection: nearest neighbour in eigenspace

CS475/CS675 (c) 2016 P. Poupart 7

slide-8
SLIDE 8

Principal Component Analysis

  • Data:

( pixels images)

  • Covariance matrix:

( )

  • Eigendecomposition:
  • CS475/CS675 (c) 2016 P. Poupart

8

slide-9
SLIDE 9

Eigenfaces

CS475/CS675 (c) 2016 P. Poupart 9

Dataset Mean image Eigenfaces

slide-10
SLIDE 10

Face Detection

  • Project each image in the space if eigenfaces

– I.e., approximate each image as a linear combination of the eigenfaces

  • Face detection: find matching image in a database

– Nearest neighbour in space of eigenfaces ∗

  • CS475/CS675 (c) 2016 P. Poupart

10