Efficient Face Detection using PCA and ANN Techniques Sachin Shende1 & Rahila Patel2 Department of Computer Science, Nagpur University, Chandrapur, India E-mail : 1 shende.sachin83@gmail.com & 2 rahila.patel@gmail.com methods have been proposed, such as face detection in color images based on the fuzzy theory [7], the discriminating feature analysis and Support Vector Machine (SVM) classifier for face detection [8], neural network-based face detection [12]. Face color information is an important feature in the face detection. In reference [11], a latest survey of skin-color modeling and detection methods was presented. Statistical color modules with application to skin detection was reported in reference [10]. The quantized skin color regions for face detection were given in reference [13]. Eye is another important feature for face detection and recognition. For example, a robust method for eye feature extraction on the color image was reported in reference [14]. Using optimal Wavelet packets and radial basis functions for eye detection was introduced in reference. Face detection has the application in variety of fields used in the teleconference system, medical imaging intelligent video surveillance, smart cards and security based public places such as airport and railway station. Abstract – This paper presents a algorithm for rapid and efficient face detection. We have used PCA and ANN techniques for the efficient and effective face detection. The framework for efficient face detection using fusion of PCA and Artificial neural network is presented. The purpose of PCA is to reduce the large dimensionality of the data space (observed variables) to the smaller intrinsic dimensionality of feature space (independent variables), which are needed to describe the data economically. The image features are represented as reduced features space by using PCA which is a dimensionality reduction technique. Further these features are given as input to the ANN for training. We have used multilayer perceptron network for accomplishing this task. Keywords:- Face detection, PCA, ANN, face recognition I. INTRODUCTION Human Face detection is the process of identifying the features of faces to detect the faces on the basis of the discriminant features. Features of faces are eyes, ears, eyebrows, nose, lips, hairs, chicks, forehead etc. Face detection can be carried out using these features of faces. Face is important part to identify the person. It can be used as the computer visual application. Face is the important part of our body by which it is easy to identify and recognize the person. Face detection is one of the challenging tasks as there are many issues such as changes in the appearances of faces, variations in poses, noise, distortion and illumination condition. Complications occur in discriminating the two identical faces for example in case of twins. There are several techniques for face detection that exist in the literature. Principal discriminant analysis (PCA) [1] and Linear discriminant analysis (LDA) [1] are most commonly used techniques for face detection. Handsdorff distance measure for face recognition [2], Elastic Graph Matching (EGM) [3], eigenspace-based face recognition [4], a novel hybrid neural and dual eigen spaces methods for face recognition [5], eigenfaces and Fisherfaces methods [6]. In order to capture the frontal face image accurately and timely, many face detection The other face detection techniques are Adaboost, fisher technique, float boost etc. Over the past decade, many approaches to improve the performance of face detection were proposed. These approaches are categorized into two types : 1) Knowledge-based approach, and 2) Feature invariant approach. Knowledge-based methods use a priori rules to carry out face detection, such as the face is usually symmetrical with each other eyes. Feature invariant approach include extraction of features, filtering of images with respect to size , noise, distortion illumination etc. Face detection is important considering the new medical science research such as plastic surgery. It has become challenging to detect and recognize face many due to the changes and variation in the face that occurs due to aging, hormonal changes, emotion changes ,skin color changes etc. In this paper the different techniques used in the face detection are explained. Review of recent face detection method is studied in this paper. ISSN (Print) : 2319 – 2526, Volume-2, Issue-5, 2013 155 International Journal on Advanced Computer Theory and Engineering (IJACTE) III. FACE DETECTION II. PROPOSED APPROACH 1.Creating Database :- In the first phase we will create a database i.e the set of images containing faces with variations in their background.. These database will contain about 50 images. This images are used in the set of training and testing set.25 images are used as training set and remaining 25 images will be used as testing set. Each image is of equal dimension. We have taken the images each having dimension 27*18.The total dimension of all the 50 images will be 27*18*50=24,300.This will increase the memory requirement and time complexity. So we need to reduce the dimension of the images. The Fig 2. represent the set of images containing the faces. In this paper we have tried to merge two techniques such as PCA and ANN for efficient face detection work. The proposed system consists of four modules: creating database, preprocessing of images ,implementation of PCA, fusion of PCA and ANN .The Fig.1.shows architecture of the proposed face detection algorithm. 1. Feature extraction of image database using PCA 2. Training of ANN for the reduced image subspace. 3. Detection of face for a given input image Fig 2..Set of images containing faces of equal dimension. Fig. 1 Architecture of proposed face detection Algorithm. 2. Image Preprocessing :- Images are required to preprocess before going for face detection. It includes filtering of noise from the images, image contrast normalization and orientation localization. After this step of processing, image database is prepared for feature extraction. A. Image Preprocessing :- Images are required to preprocess before going for face detection. It includes filtering of noise from the images, image contrast normalization and orientation localization. After this step of processing, image database is prepared for feature extraction. B. Feature extraction using PCA:-The PCA algorithm is implemented for the extraction of image feature and dimensionality reduction. Let X = {I1, I2,…..IN} be the set of N images. Each of these images is having dimension equals to t. In PCA this image space is converted to another image space with a set Y= { J1, J2,…..JN} of N images. Now, the dimension of each of these images is f. There is a transformation of X into Y such that t > f. Generally, a linear orthogonal transform v = Wu is used such that the retained variance is maximized. Fig.3 Image in the database is preprocessed. 3. Feature extraction using PCA:-The PCA algorithm is implemented for the extraction of image feature and dimensionality reduction. The main objective of the PCA in the proposed approach is the dimension reduction as it will require much space for the database thereby increasing the memory requirement and time complexity.Firstly we have taken the set of 50 images with the uniform dimension .So each image is of the dimension 27*18=486.So overall dimension of 50 images will be 27*18*50=24,500.Thus the memory C. Multi-Layer Perceptron (MLP) Network :-We have used multilayer perceptron network for training and face detection .The network consist of input layer, hidden layer and output layer with tensing transfer function .The neural network learns the face patterns from the training data set and applies it for detecting face object from the query image. ISSN (Print) : 2319 – 2526, Volume-2, Issue-5, 2013 156 International Journal on Advanced Computer Theory and Engineering (IJACTE) requirement for storing the data will be large with such dimension thus increasing the time complexity.PCA technique is used to reduce the dimension. Steps used in PCA are as follows: dimension of the 25 images of the testing is now 486*25=12150.Fig 6.Represent the reduced dimension of the database images. 1.Each image is represented in the matrix form. The figure shows the dimension of the first image stored in the database. Fig.3 represent the matrix with dimension of first image is 27*18=486.Each element in the matrix represent the pixel intensity. The range of pixel intensity is between 0 to 255. Fig 6.Represent the reduced dimension of the database images. 4. Using PCA technique ,the dimension of the 25 images of total size =27*18*25=12150 is now reduced to dimension=25*25=625.This is performed by using mathematical tool in PCA. The same dimension reduction is done for the images in the testing set. Now these reduced dimensional images will be used for the efficient detection of face with reduced memory space and time complexity The .Fig 6.shows the representation of matrix whose dimension is reduced from 486*25 to 25*25.This reduced dimensional images is further used with ANN for the efficient detection of faces. Fig 4.Matrix representation of Image 2,Conversion of 2D matrix in 1D matrix:-The 2D matrix with dimension 27*18 is now converted into the single matrix i.e 486*1.So new matrix obtained represents the elements in the single column. The Fig 5 represents the representation of image in 1D form. 4. Artificial Neural Network (ANN):-We have used Artificial Neural Network (ANN)for training and face detection .The neural network learns the face patterns from the training data set and applies it for detecting face object from the query image. We have used multilayer perceptron network for training and face detection .The network consist of input layer, hidden layer and output layer with tensing transfer function .The neural network learns the face patterns from the training data set and applies it for detecting face object from the query image. Fig 5 represents the representation of image in 1D form. 3.The same procedure of the conversion of 2D matrix into 1D matrix is done for all the 50 images. Finally we get the set of matrix with dimension 486*25 as shown in the fig 5.We have taken 25 images as training set and the remaining 25 images as testing set. The total Fig 7. represents the GUI . ISSN (Print) : 2319 – 2526, Volume-2, Issue-5, 2013 157 International Journal on Advanced Computer Theory and Engineering (IJACTE) TRAINING PHASE [2] E. P. Vivek and N. Sudha, “Robust Handsdorff distance measure for face recognition,” Pattern Recognit., vol. 40, no. 2, Feb. 2007,pp.431-442. [3] L. Wiskott, J. M. Fellous, N. Kruger, and C. vonder Malsburg, “Face recognition by elastic bunch graph matching,” IEEE Trans. Pattern Anal. And Machine Intell., vol. 19, no. 7,1997, pp.775-779. [4] J. Ruiz-del-Solar and P. Navarrete, “Eigenspacebased face recognition:a comparative study of different approaches,” IEEE Trans. Systems, Man, and Cybernetics, Part C, vol. 35, no. 3, Aug. 2005, pp.315-325. [5] D. Zhang, H. Peng, J. Zhou, and S. K. Pal, “A novel face recognition system using hybrid neural and dual eigenspaces methods,” IEEE Trans Systems, Man, and Cybernetics, Part A, vol. 32, no. 6, Nov. 2002, pp. 787-793. [6] P. N. Bellhumeur, J. P. Hespanha, and D. J. Kriegman, “Eigenfaces vs fisherfaces: recognition using class specific linear projections,” IEEE TransPattern Anal. and Machine Intell., vol. 19, no. 7, 1997, pp.711-720. Fig 8.Represents Training phase TESTING IMAGES [7] H. Wu, Q. Chen, and M. Yachida, “Face detection from color images using a fuzzy pattern matching method,” IEEE Trans. Pattern Anal. And Machine Intell., vol. 21, no. 6, June 1999, pp. 557-563. [8] P. Shihand and C. Liu, “Face detection using discriminating feature analysis and support vector machine,” Pattern Recognit., vol. 39, no. 2, Feb 2006, pp.260-276. [9] H. A. Rowley, S. Baluja, and T. Kanade, “Neural network-based face detection,” IEEE Trans. Pattern Anal. and Machine Intell., vol. 20, no. 1,Jan 1998, pp. 23-28. [10] Thus study and implementation of new efficient face detection technique is proposed to overcome the limitation of the existing algorithms. C. Garcia and G. Tziritas, “Face detection using quantized skin color regions, merging and wavelet packet analysis,” IEEE Trans. Multimedia,vol. 1, no. 3, 1999, pp.264-277. [11] M. J. Jones and J. M. Rehg, “Statistical color models with application to skin detection,” V. REFERENCE [12] P. Kakumanu, S. Makrogiannis, and N. Bourbakis, “A survey of skincolor modeling and detection methods,” Pattern Recognit., vol. 40,no. 3, March 2007, pp.1106-1122. [13] Z. Zheng and J. Yang, L. Yang, “A robust method for eye features extraction on color image,” Pattern Recognit. Lett., vol. 26, no. 14, 2005, pp.2252-2261. Fig 9. The face is detected with maximum accuracy. IV. CONCLUSION [1] W. Zhao, R. Chellappa, P. J. Phillips, and A. Rosenfeld, “Face recognition: a literature survey,” ACM Computing Surveys, vol. 35, no. 4, 2003, pp. 399-458. ISSN (Print) : 2319 – 2526, Volume-2, Issue-5, 2013 158 International Journal on Advanced Computer Theory and Engineering (IJACTE) [14] J. Huang and H. Wechsler, “Eye detection using optimal wavelet packets and radial basis functions,” International Journal of Pattern Recognit. And Artificial Intell., vol. 13, no. 7, Nov. 1999, pp. 1009-1025. [15] Chunhua Shen, Sakrapee Paisitkriangkrai, and Jian Zhang, Senior Member "Efficiently Learning a Detection Cascade With Sparse Eigenvectors", IEEE ON IMAGE PROCESSING, VOL. 20, NO. 1, JANUARY 2011.pp.22-36. [16] Padma Polash Paul and Marina Gavrilova "PCA Based Geometric Modeling for Automatic Face Detection",2011 [17] Alireza Tofighi and S. Amirhassan Monadjemi "Face Detection and Recognition using Skin Color and AdaBoost Algorithm Combined with Gabor Features and SVM Classifier" IEEE .2011. pp.140-145 [18] [19] P.E. Robinson "Comparison of Principal Component Analysis and Linear Discriminant Analysis for Face "IEEE March 2007. Sanjay A. Pardeshi, and Dr. S.N. Talbar "Face Description with Local Invariant Features: Application to Face Recognition ",ICETET-2009 ,pp.248-252 [20] Khalid Mohamed Alajel, Wei Xiang, and John Leis "Face Detection Based on Skin Color Modeling and Modified Hausdorff Distance"IEEE 2011.pp.400-406. [21] Karhunen the method of Principal Component Analysis(PCA) technique of detecting the faces. Principal Component Analysis(PCA),IEEE 2003. [22] Kanhaiya kumar "artificial neural based face detection using Gabor feature Extraction"IEEE 2011. [23] Yao-Jiunn Chen, Yen-Chun Lin, "Simple Facedetection Algorithm Based on Minimum Facial Features" IEEE 2007.pp.455-461. [24] P.E. Robinson "Comparison of Principal Component Analysis and Linear Discriminant Analysis for Face "IEEE March 2007. [25] Keqing Shi, Shurong Pang, Fengqi Yu "A Realtime Face Detection And Recognition System" IEEE 2012 pp. 3074-3078. [26] Shiping Zhu and Nan Zhang " Face Detection Based on Skin Color Model and Geometry Features"IEEE 2012.pp.991-995. ISSN (Print) : 2319 – 2526, Volume-2, Issue-5, 2013 159