Eigenface

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Some eigenfaces from AT&T Laboratories Cambridge
Generated faces using FaceMachine

Eigenfaces is the name given to a set of eigenvectors when they are used in the computer vision problem of human face recognition.[1] The approach of using eigenfaces for recognition was developed by Sirovich and Kirby (1987) and used by Matthew Turk and Alex Pentland in face classification.[2] The eigenvectors are derived from the covariance matrix of the probability distribution over the high-dimensional vector space of face images. The eigenfaces themselves form a basis set of all images used to construct the covariance matrix. This produces dimension reduction by allowing the smaller set of basis images to represent the original training images. Classification can be achieved by comparing how faces are represented by the basis set.

History[edit]

The Eigenface approach began with a search for a low-dimensional representation of face images. Sirovich and Kirby (1987) showed that Principal Component Analysis could be used on a collection of face images to form a set of basis features. These basis images known as Eigenpictures, could be linearly combined to reconstruct images in the original training set. If the training set consists of M images, principal component analysis could form a basis set of N images, where N < M. The reconstruction error is reduced by increasing the number of eigenpictures, however the number needed is always less than M. For example if you need to generate a number of N eigenfaces for a training set of M face images, you can say that each face image can be made up of "proportions" of all this K "features" or eigenfaces : Face image1 = (23% of E1) + (2% of E2) + (51% of E3)+...+(1% En).

In 1991 M. Turk and A. Pentland expanded these results and presented the Eigenface method of face recognition.[3] As well as designing a system for automated face recognition using eigenfaces, they showed a way of calculating the eigenvectors of a covariance matrix in such a way as to make it possible for computers at that time to perform eigen-decomposition on a large number of face images. Face images usually occupy a high-dimensional space and conventional principal component analysis was intractable on such data sets. Turk and Pentlands paper demonstrated ways to extract the eigenvectors based on matrices sized by the number of images rather than the number of pixels.

Once established, the eigenface method was expanded to include methods of preprocessing to improve accuracy.[4] Multiple manifold approaches were also used to build sets of eigenfaces for different subjects[5][6] and different features, such as the eyes.[7]

Eigenface generation[edit]

A set of eigenfaces can be generated by performing a mathematical process called principal component analysis (PCA) on a large set of images depicting different human faces. Informally, eigenfaces can be considered a set of "standardized face ingredients", derived from statistical analysis of many pictures of faces. Any human face can be considered to be a combination of these standard faces. For example, one's face might be composed of the average face plus 10% from eigenface 1. 55% from eigenface 2, and even -3% from eigenface 3. Remarkably, it does not take many eigenfaces combined together to achieve a fair approximation of most faces. Also, because a person's face is not recorded by a digital photograph, but instead as just a list of values (one value for each eigenface in the database used), much less space is taken for each person's face.

The eigenfaces that are created will appear as light and dark areas that are arranged in a specific pattern. This pattern is how different features of a face are singled out to be evaluated and scored. There will be a pattern to evaluate symmetry, if there is any style of facial hair, where the hairline is, or evaluate the size of the nose or mouth. Other eigenfaces have patterns that are less simple to identify, and the image of the eigenface may look very little like a face.

The technique used in creating eigenfaces and using them for recognition is also used outside of facial recognition. This technique is also used for handwriting analysis, lip reading, voice recognition, sign language/hand gestures interpretation and medical imaging analysis. Therefore, some do not use the term eigenface, but prefer to use 'eigenimage'.

Practical implementation[edit]

To create a set of eigenfaces, one must:

  1. Prepare a training set of face images. The pictures constituting the training set should have been taken under the same lighting conditions, and must be normalized to have the eyes and mouths aligned across all images. They must also be all resampled to a common pixel resolution (r × c). Each image is treated as one vector, simply by concatenating the rows of pixels in the original image, resulting in a single row with r × c elements. For this implementation, it is assumed that all images of the training set are stored in a single matrix T, where each column of the matrix is an image.
  2. Subtract the mean. The average image a has to be calculated and then subtracted from each original image in T.
  3. Calculate the eigenvectors and eigenvalues of the covariance matrix S. Each eigenvector has the same dimensionality (number of components) as the original images, and thus can itself be seen as an image. The eigenvectors of this covariance matrix are therefore called eigenfaces. They are the directions in which the images differ from the mean image. Usually this will be a computationally expensive step (if at all possible), but the practical applicability of eigenfaces stems from the possibility to compute the eigenvectors of S efficiently, without ever computing S explicitly, as detailed below.
  4. Choose the principal components. The D x D covariance matrix will result in D eigenvectors, each representing a direction in the r × c-dimensional image space. The eigenvectors (eigenfaces) with largest associated eigenvalue are kept.

These eigenfaces can now be used to represent both existing and new faces: we can project a new (mean-subtracted) image on the eigenfaces and thereby record how that new face differs from the mean face. The eigenvalues associated with each eigenface represent how much the images in the training set vary from the mean image in that direction. We lose information by projecting the image on a subset of the eigenvectors, but we minimize this loss by keeping those eigenfaces with the largest eigenvalues. For instance, if we are working with a 100 x 100 image, then we will obtain 10,000 eigenvectors. In practical applications, most faces can typically be identified using a projection on between 100 and 150 eigenfaces, so that most of the 10,000 eigenvectors can be discarded.

Computing the eigenvectors[edit]

Performing PCA directly on the covariance matrix of the images is often computationally infeasible. If small, say 100 × 100, greyscale images are used, each image is a point in a 10,000-dimensional space and the covariance matrix S is a matrix of 10,000 × 10,000 = 108 elements. However the rank of the covariance matrix is limited by the number of training examples: if there are N training examples, there will be at most N − 1 eigenvectors with non-zero eigenvalues. If the number of training examples is smaller than the dimensionality of the images, the principal components can be computed more easily as follows.

Let T be the matrix of preprocessed training examples, where each column contains one mean-subtracted image. The covariance matrix can then be computed as S = TTT and the eigenvector decomposition of S is given by

\mathbf{Sv}_i = \mathbf{T}\mathbf{T}^T\mathbf{v}_i = \lambda_i \mathbf{v}_i

However TTT is a large matrix, and if instead we take the eigenvalue decomposition of

\mathbf{T}^T\mathbf{T}\mathbf{u}_i = \lambda_i \mathbf{u}_i

then we notice that by pre-multiplying both sides of the equation with T, we obtain

\mathbf{T}\mathbf{T}^T\mathbf{T}\mathbf{u}_i = \lambda_i \mathbf{T}\mathbf{u}_i

Meaning that, if ui is an eigenvector of TTT, then vi = Tui is an eigenvector of S. If we have a training set of 300 images of 100 × 100 pixels, the matrix TTT is a 300 × 300 matrix, which is much more manageable than the 10,000 × 10,000 covariance matrix. Notice however that the resulting vectors vi are not normalised; if normalisation is required it should be applied as an extra step.

Use in facial recognition[edit]

Facial recognition was the source of motivation behind the creation of eigenfaces. For this use, eigenfaces have advantages over other techniques available, such as the system's speed and efficiency. As eigenface is primarily a dimension reduction method, a system can represent many subjects with a relatively small set of data. As a face recognition system it is also fairly invariant to large reductions in image sizing, however it begins to fail considerably when the variation between the seen images and probe image is large.

To recognise faces, gallery images, those seen by the system, are saved as collections of weights describing the contribution each eigenface has to that image. When a new face is presented to the system for classification, its own weights are found by projecting the image onto the collection of eigenfaces. This provides a set of weights describing the probe face. These weights are then classified against all weights in the gallery set to find the closest match. A nearest neighbour method is a simple approach for finding the Euclidean Distance between two vectors, where the minimum can be classified as the closest subject.(Turk & Pentland 1991, p. 590)

The weights of each gallery image only convey information describing that image, not that subject. An image of one subject under frontal lighting may have very different weights to those of the same subject under strong left lighting. This limits the application of such a system. Experiments in the original Eigenface paper presented the following results: an average of 96% with light variation, 85% with orientation variation, and 64% with size variation. (Turk & Pentland 1991, p. 590)

Various extensions have been made to the eigenface method such eigenfeatures. This method combines facial metrics (measuring distance between facial features) with the eigenface representation. Another method similar to the eigenface technique is 'fisherfaces' which uses Linear discriminant analysis.[8] This method for facial recognition is less sensitive to variation in lighting and pose of the face than using eigenfaces. Fisherface utilies labelled data to retain more of the class specific information during the dimension reduction stage.

A further alternative to eigenfaces and fisherfaces is the active appearance model. This approach use an Active Shape Model to describe the outline of a face. By collecting many face outlines, Principal Component Analysis can be used to form a basis set of models which, encapsulate the variation of different faces.

Many modern approaches still use Principal component analysis as a means of dimension reduction or to form basis images for different modes of variation.

See also[edit]

Notes[edit]

  1. ^ Ruiz-del-Solar, J and Navarrete, P.Eigenspace-based face recognition: a comparative study of different approaches, 2005
  2. ^ Turk, Matthew A and Pentland, Alex P. Face recognition using eigenfaces.Computer Vision and Pattern Recognition, 1991. Proceedings {CVPR'91.}, {IEEE} Computer Society Conference on 1991
  3. ^ Turk, Matthew A and Pentland, Alex P. Face recognition using eigenfaces.Computer Vision and Pattern Recognition, 1991. Proceedings {CVPR'91.}, {IEEE} Computer Society Conference on 1991
  4. ^ Draper, Bruce A. and Yambor, Wendy S and Beveridge, J Ross.Analyzing pca-based face recognition algorithms: Eigenvector selection and distance measures. 2002.
  5. ^ Belhumeur, {P,N} and Kriegman, D.What is the set of images of an object under all possible lighting conditions?.Proceedings {CVPR} '96, 1996 {IEEE} Computer Society Conference on Computer Vision and Pattern Recognition, 1996
  6. ^ Burnstone J and Yin H. Eigenlights: Recovering Illumination From Face Images. Conf Proceedings on IDEAL 2011.
  7. ^ Moghaddam, B and Wahid, W and Pentland, A. Beyond eigenfaces: probabilistic matching for face recognition. Third {IEEE} International Conference on Automatic Face and Gesture Recognition, 1998. Proceedings
  8. ^ Belhumeur,P N, and Hespanha, {J,P}, and Kriegman, D.Eigenfaces vs. Fisherfaces: recognition using class specific linear projection, 1997.

References[edit]

External links[edit]