Face Recognition Using Eigen Faces and Artificial
Face Recognition Using Eigen Faces and Artificial
net/publication/271303091
CITATIONS READS
96 2,600
4 authors, including:
Manish Kumar
Pranveer Singh Institute of Technology
29 PUBLICATIONS 299 CITATIONS
SEE PROFILE
All content following this page was uploaded by Manish Kumar on 31 January 2019.
624
International Journal of Computer Theory and Engineering, Vol. 2, No. 4, August, 2010
1793-8201
B. Calculating Eigenfaces
The face library entries are normalized. Eigenfaces are (1)
calculated from the training set and stored. An individual face Each face differs from the average by the vector
can be represented exactly in terms of a linear combination of Φi =Гi – Ψ (2)
eigenfaces. The face can also be approximated using only the An example training set is shown in Figure 2, with the
best M eigenfaces, which have the largest eigenvalues. It average face Ψ.
accounts for the most variance within the set of face images. This set of very large vectors is then subject to principal
Best M eigenfaces span an M-dimensional subspace which is component analysis, which seeks a set of M orthonormal
called the "face space" of all possible images. For calculating vectors, un , which best describes the distribution of the data.
the eigenface PCA algorithm [5], [8], was used. The kth vector, uk , is chosen such that
Let a face image I(x, y) be a two-dimensional N x N array.
An image may also be considered as a vector of dimension
N2, so that a typical image of size 92 x 112 becomes a vector
of dimension 10,304, or equivalently a point in is a maximum, subject to
10,304-dimensional space. An ensemble of images, then,
maps to a collection of points in this huge space.
Images of faces, being similar in overall configuration,
The vectors uk and scalar λk are the eigenvectors and
will not be randomly distributed in this huge image space and
eigen values, respectively of the covariance matrix
thus can be described by a relatively low dimensional
subspace. The main idea of the principal component analysis
(or Karhunen- Loeve expansion) is to find the vectors that
625
International Journal of Computer Theory and Engineering, Vol. 2, No. 4, August, 2010
1793-8201
626
International Journal of Computer Theory and Engineering, Vol. 2, No. 4, August, 2010
1793-8201
(10)
Where-
(11)
is the projected image.
Eq. (10) tells that the face image under consideration is
rebuilt just by adding each eigen face with a contribution of
wi Eq. (11) to the average of the training set images. The
degree of the fit or the "rebuild error ratio" can be expressed
by means of the Euclidean distance between the original and
the reconstructed face image as given in Eq. (12).
(12)
It has been observed that, rebuild error ratio increases as
the training set members differ heavily from each other.
This is due to the addition of the average face image. When
the members differ from each other (especially in image
Fig. 5 – Training of Neural Network background) the average face image becomes more messy
One ANN is used for each person in the database in which and this increases the rebuild error ratio.
face descriptors are used as inputs to train the networks [3].
During training of the ANN’s, the faces descriptors that
belong to same person are used as positive examples for the IV. EXPERIMENT
person’s network (such that network gives 1 as output), and
negative examples for the others network. (such that network The proposed method is tested on ORL face database.
gives 0 as output). Fig.5 shows schematic diagram for the Database has more than one image of an individual’s face
networks training. with different conditions. (expression, illumination, etc.)
There are ten different images of each of 40 distinct subjects.
E. Simulation of ANN for Recognition Each image has the size of 112 x 92 pixels with 256 levels of
New test image is taken for recognition (from test dataset grey. For some subjects, the images were taken at different
and its face descriptor is calculated from the eigenfaces (M times, varying the lighting, facial expressions (open / closed
found before. These new descriptors are given as an input to eyes, smiling / not smiling) and facial details (glasses / no
every network; further these networks are simulated. glasses). All the images were taken against a dark
Compare the simulated results and if the maximum output homogeneous background with the subjects in an upright,
exceeds the predefined threshold level, then it is confirmed frontal position (with tolerance for some side movement). A
that this new face belongs to the recognized person with the preview image of the Database of Faces is available (Fig. 4).
maximum output (fig. 6). The original pictures of 112 x 92 pixels have been resized to
56 x 46 so that the input space has the dimension of 2576.
Eigenfaces are calculated by using PCA algorithm and
experiment is performed by varying the number of eigenfaces
used in face space to calculate the face descriptors of the
images.
The numbers of network used are equal to number of
subjects in the database. The initial parameters of the Neural
Network used in the experiment are given below:
• Type: Feed forward back propagation network
• Number of layers: 3 (input, one hidden, output layer)
- Number of neurons in input layer : Number of
eigenfaces to describe the faces
- Number of neurons in hidden layer : 10
- Number of neurons in output layer : 1
• Transfer function of the ith layer: Tansig
• Training Function: Trainlm
• Number of epochs used in training: 100
Fig. 6 – Testing of Neural Network • Back propagation weight/bias learning function:
learngdm
F. Reconstruction of face Image using the extracted face • Performance function: mse
descriptor Since the number of networks is equal to the number of
A face image can be approximately reconstructed (rebuilt) people in the database, therefore forty networks, one for each
by using its feature vector and the eigenfaces as person was created. Among the ten images, first 6 of them are
627
International Journal of Computer Theory and Engineering, Vol. 2, No. 4, August, 2010
1793-8201
used for training the neural networks, then these networks are tested and their properties are updated. The trained networks
tested and their would be used later on for recognition purposes.
For testing the whole database, the faces used in training,
testing and recognition are changed and the recognition
performance is given for whole database.
THE COMPLETE FACE RECOGNITION PROCESS IS
SHOWN IN FIG. 4
V. ANALYSIS
The proposed technique is analyzed by varying the number
of eigenfaces used for feature extraction. The recognition
performance is shown in Table I.
The result derived from proposed method is compared
with the other techniques which are 1. K-means [2], 2. Fuzzy
Ant with fuzzy C-means.[2] Comparison of the result has
been tabulated in Table II.
TABLE I: RECOGNITION SCORE OF FACE RECOGNITION USING
PCA AND ANN.
No of Recognition Rate (%)
Eign
Facs Result Result Result Average of
1 2 3 Result 1-3
20 98.037 96.425 96.487 96.983
VI. CONCLUSION
The paper presents a face recognition approach using PCA
and Neural Network techniques. The result is compared with
K-means, Fuzzy Ant with fuzzy C-means and proposed
technique gives a better recognition rate then the other two.
In the Table I one can see the recognition rate by varying
the eigenfaces and the maximum recognition rate obtained
for the whole dataset is 97.018. Eigenfaces of highest
eigenvalue are actually needed to produce a complete basis
for the face space, As shown in Table I, maximum
Fig. 4 – A complete process of PCA, Eigenface and ANN recognition rate is for M =50.
based faced recognition system
In the Table II one can see the advantage of using the
properties are updated. The trained networks would be used
proposed face recognition over K-means method and Fuzzy
later on for recognition purposes.
Ant with fuzzy C-means based algorithm.
Since the number of networks is equal to the number of
The eigenface method is very sensitive to head orientations,
people in the database, therefore forty networks, one for each
and most of the mismatches occur for the images with large
person was created. Among the ten images, first 6 of them are
head orientations.
used for training the neural networks, then these networks are
628
International Journal of Computer Theory and Engineering, Vol. 2, No. 4, August, 2010
1793-8201
By choosing PCA as a feature selection technique (for the [4] [Howard Demuth,Mark Bele,Martin Hagan, “Neural Network
Toolbox”
set of images from the ORL Database of Faces), one can [5] Kirby, M., and Sirovich, L., "Application of theKarhunen-Loeve
reduce the space dimension from 2576 to 50 (equal to no. of procedure for thecharacterization of human faces", IEEE PAMI, Vol.
selected eigenfaces of highest eigenvalue). 12, pp. 103-108, (1990).
[6] Sirovich, L., and Kirby, M., "Low-dimensionalprocedure for the
characterization of human faces", J.Opt. Soc. Am. A, 4, 3,pp. 519-524,
(1987).
REFERENCES [7] Turk, M., and Pentland, A., "Eigenfaces for recognition", Journal of
[1] Yuille, A. L., Cohen, D. S., and Hallinan, P. W.,"Feature extraction Cognitive Neuroscience, Vol. 3, pp. 71-86, (1991).
from faces using deformable templates", Proc. of CVPR, (1989) [8] S. Gong, S. J. McKeANNa, and A. Psarron, Dynamic Vision, Imperial
[2] S. Makdee, C. Kimpan, S. Pansang, “Invariant range image multi - pose College Press, London, 2000.
face recognition using Fuzzy ant algorithm and membership matching [9] Manjunath, B. S., Chellappa, R., and Malsburg, C., "A feature based
score” Proceedings of 2007 IEEE International Symposium on Signal approach to face recognition", Trans. Of IEEE, pp. 373-378, (1992)
Processing and Information Technology,2007, pp. 252-256 [10] http://www.cl.cam.ac.uk/research/dtg/attarchive/faced atabase.html for
[3] Victor-Emil and Luliana-Florentina, “Face Rcognition using a fuzzy – downloading the ORL database.
Gaussian ANN”, IEEE 2002. Proceedings, Aug. 2002 Page(s):361 –
368
629