CSE 185 Introduction to Computer Vision Face Recognition.

Slides:



Advertisements
Similar presentations
EigenFaces and EigenPatches Useful model of variation in a region –Region must be fixed shape (eg rectangle) Developed for face recognition Generalised.
Advertisements

Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #20.
Principal Component Analysis CMPUT 466/551 Nilanjan Ray.
Dimensionality reduction. Outline From distances to points : – MultiDimensional Scaling (MDS) – FastMap Dimensionality Reductions or data projections.
Dimensionality Reduction Chapter 3 (Duda et al.) – Section 3.8
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Face Recognition Recognized Person Face Recognition.
Principal Component Analysis
How many object categories are there? Biederman 1987.
CS 790Q Biometrics Face Recognition Using Dimensionality Reduction PCA and LDA M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Face Recognition using PCA (Eigenfaces) and LDA (Fisherfaces)
Project 4 out today –help session today –photo session today Project 2 winners Announcements.
Face Recognition Jeremy Wyatt.
Lecture 4 Unsupervised Learning Clustering & Dimensionality Reduction
Principal Component Analysis Barnabás Póczos University of Alberta Nov 24, 2009 B: Chapter 12 HRF: Chapter 14.5.
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
Eigen Value Analysis in Pattern Recognition
Project 2 due today Project 3 out today –help session today Announcements.
Face Detection and Recognition
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #18.
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
CS 485/685 Computer Vision Face Recognition Using Principal Components Analysis (PCA) M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
Eigenfaces for Recognition Student: Yikun Jiang Professor: Brendan Morris.
Summarized by Soo-Jin Kim
So far focused on 3D modeling
Principal Components Analysis on Images and Face Recognition
Dimensionality Reduction: Principal Components Analysis Optional Reading: Smith, A Tutorial on Principal Components Analysis (linked to class webpage)
Recognition Part II Ali Farhadi CSE 455.
Face Recognition and Feature Subspaces
Face Recognition and Feature Subspaces
Face Detection and Recognition Computational Photography Derek Hoiem, University of Illinois Lecture by Kevin Karsch 12/3/13 Chuck Close, self portrait.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #19.
1 Recognition by Appearance Appearance-based recognition is a competing paradigm to features and alignment. No features are extracted! Images are represented.
PCA explained within the context of Face Recognition Berrin Yanikoglu FENS Computer Science & Engineering Sabancı University Updated Dec Some slides.
Classification Course web page: vision.cis.udel.edu/~cv May 12, 2003  Lecture 33.
N– variate Gaussian. Some important characteristics: 1)The pdf of n jointly Gaussian R.V.’s is completely described by means, variances and covariances.
Face Recognition: An Introduction
CSSE463: Image Recognition Day 27 This week This week Today: Applications of PCA Today: Applications of PCA Sunday night: project plans and prelim work.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
MACHINE LEARNING 7. Dimensionality Reduction. Dimensionality of input Based on E Alpaydın 2004 Introduction to Machine Learning © The MIT Press (V1.1)
Irfan Ullah Department of Information and Communication Engineering Myongji university, Yongin, South Korea Copyright © solarlits.com.
Recognition Readings – C. Bishop, “Neural Networks for Pattern Recognition”, Oxford University Press, 1998, Chapter 1. – Szeliski, Chapter (eigenfaces)
Face Recognition and Feature Subspaces Devi Parikh Virginia Tech 11/05/15 Slides borrowed from Derek Hoiem, who borrowed some slides from Lana Lazebnik,
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Principal Components Analysis ( PCA)
Machine Learning Supervised Learning Classification and Regression K-Nearest Neighbor Classification Fisher’s Criteria & Linear Discriminant Analysis Perceptron:
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
University of Ioannina
Lecture 8:Eigenfaces and Shared Features
CS 2750: Machine Learning Dimensionality Reduction
Face Recognition and Feature Subspaces
Recognition: Face Recognition
Principal Component Analysis
Announcements Project 1 artifact winners
Outline Peter N. Belhumeur, Joao P. Hespanha, and David J. Kriegman, “Eigenfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection,”
In summary C1={skin} C2={~skin} Given x=[R,G,B], is it skin or ~skin?
Principal Component Analysis
PCA is “an orthogonal linear transformation that transfers the data to a new coordinate system such that the greatest variance by any projection of the.
CS4670: Intro to Computer Vision
Feature space tansformation methods
CS4670: Intro to Computer Vision
Announcements Project 2 artifacts Project 3 due Thursday night
Announcements Project 4 out today Project 2 winners help session today
Principal Components Analysis on Images and Face Recognition
Where are we? We have covered: Project 1b was due today
Announcements Artifact due Thursday
Principal Component Analysis
Announcements Artifact due Thursday
The “Margaret Thatcher Illusion”, by Peter Thompson
Presentation transcript:

CSE 185 Introduction to Computer Vision Face Recognition

The space of all face images When viewed as vectors of pixel values, face images are extremely high-dimensional –100x100 image = 10,000 dimensions However, relatively few 10,000-dimensional vectors correspond to valid face images We want to effectively model the subspace of face images

The space of all face images We want to construct a low-dimensional linear subspace that best explains the variation in the set of face images

Covariance Covariance is a measure of the extent to which corresponding elements from two sets of ordered data move in the same direction

Covariance (Variance-Covariance) matrix Variance-Covariance Matrix: Variance and covariance are displayed together in a variance-covariance matrix. The variances appear along the diagonal and covariances appear in the off- diagonal elements

Principal component analysis The direction that captures the maximum covariance of the data is the eigenvector corresponding to the largest eigenvalue of the data covariance matrix Furthermore, the top k orthogonal directions that capture the most variance of the data are the k eigenvectors corresponding to the k largest eigenvalues

Linear subspaces Classification can be expensive: –Big search prob (e.g., nearest neighbors) or store large PDF’s Suppose the data points are arranged as above –Idea—fit a line, classifier measures distance to line convert x into v 1, v 2 coordinates What does the v 2 coordinate measure? What does the v 1 coordinate measure? - distance to line - use it for classification—near 0 for orange pts - position along line - use it to specify which orange point it is

Dimensionality reduction We can represent the orange points with only their v 1 coordinates ( since v 2 coordinates are all essentially 0) This makes it much cheaper to store and compare points A bigger deal for higher dimensional problems

Linear subspaces Consider the variation along direction v among all of the orange points: What unit vector v minimizes var? What unit vector v maximizes var? Solution: v 1 is eigenvector of A with largest eigenvalue v 2 is eigenvector of A with smallest eigenvalue

Principal component analysis Suppose each data point is N-dimensional –Same procedure applies: –The eigenvectors of A define a new coordinate system eigenvector with largest eigenvalue captures the most variation among training vectors x eigenvector with smallest eigenvalue has least variation –We can compress the data using the top few eigenvectors corresponds to choosing a “linear subspace” –represent points on a line, plane, or “hyper-plane” these eigenvectors are known as the principal components

The space of faces An image is a point in a high dimensional space –An N x M image is a point in R NM –We can define vectors in this space as we did in the 2D case + =

Eigenfaces: Key idea Assume that most face images lie on a low-dimensional subspace determined by the first k (k<d) directions of maximum variance Use PCA to determine the vectors or “eigenfaces” u 1,…u k that span that subspace Represent all face images in the dataset as linear combinations of eigenfaces M. Turk and A. Pentland, Face Recognition using Eigenfaces, CVPR 1991Face Recognition using Eigenfaces

Eigenfaces example Training images x 1,…,x N

Eigenfaces example Top eigenvectors: u 1,…u k Mean: μ

Eigenfaces example Principal component (eigenvector) u k μ + 3σ k u k μ – 3σ k u k

Eigenfaces example Face x in “face space” coordinates: =

Eigenfaces example Face x in “face space” coordinates: Reconstruction: =+ µ + w 1 u 1 +w 2 u 2 +w 3 u 3 +w 4 u 4 + … = ^ x=

Recognition with eigenfaces Process labeled training images: 1.Find mean µ and covariance matrix Σ 2.Find k principal components (eigenvectors of Σ) u 1,…u k 3.Project each training image x i onto subspace spanned by principal components: (w i1,…,w ik ) = (u 1 T (x i – µ), …, u k T (x i – µ)) Given novel image x: 1.Project onto subspace: (w 1,…,w k ) = (u 1 T (x – µ), …, u k T (x – µ)) 2.Optional: check reconstruction error x – x to determine whether image is really a face 3.Classify as closest training face in k-dimensional subspace

Eigenfaces PCA extracts the eigenvectors of A –Gives a set of vectors v 1, v 2, v 3,... –Each vector is a direction in face space what do these look like?

Projecting onto the eigenfaces The eigenfaces v 1,..., v K span the space of faces –A face is converted to eigenface coordinates by

Recognition with eigenfaces Algorithm 1.Process the image database (set of images with labels) Run PCA—compute eigenfaces Calculate the K coefficients for each image 2.Given a new image (to be recognized) x, calculate K coefficients 3.Detect if x is a face 4.If it is a face, who is it? Find closest labeled face in database –nearest-neighbor in K-dimensional space

Choosing the dimension K KNMi = eigenvalues How many eigenfaces to use? Look at the decay of the eigenvalues –the eigenvalue tells you the amount of variance “in the direction” of that eigenface –ignore eigenfaces with low variance

Limitations Global appearance method: not robust to misalignment, background variation

Limitations PCA assumes that the data has a Gaussian distribution (mean µ, covariance matrix Σ) The shape of this dataset is not well described by its principal components

Limitations The direction of maximum variance is not always good for classification