Abstract
Face Recognition is widely used applications such as of mobile phone unlocking, credit card authentication and person authentication in airports. The face biometric authentication system can be easily spoofed by printed photograph, replay video of the legitimate user and 3D face mask. This paper proposes hybrid feature descriptors to detect the face spoofing attack (printed photograph and replay video attacks). The proposed method extracts three different feature descriptors such as Color moment, Haralick texture and Color Local Binary Pattern (CLBP) feature descriptors. The extracted features are concatenated and classified by Logistic Regression. The performance of the proposed method is evaluated on the Michigan State University Mobile Face Spoofing Database (MSU-MFSD) dataset and found to achieve better results than state-of-the-art methods.
INTRODUCTION
Automatic Face Recognition System (FRS) is utilized as a user authentication system in many access control applications such as mobile phone unlocking, smart attendance, surveillance etc. Unlike other biometric systems, FRS does not require any additional sensors; all it needs is a quality frontal camera which can capture the face image. The frontal camera based 2D face recognition system have to address various challenges such as occlusion, facial expression, illumination and variation in pose. Though there are several methods to address these issues by many researchers, still the face spoofing attack is a major vulnerability in face biometric system. The issue is formally addressed by the Security and Vulnerability Research Team at Blackhat [1], a well known security conference. Here, researchers demonstrated how a face of a legitimate user can be spoofed by the fake facial photographs of the same user. According to Boulkenafet et al. [1] 39% of images available in social media can be used for print and replay attacks. Hence, a novel scheme needs to be developed to overcome the spoofing attack.
Face spoofing is a bluffing attack where the attacker uses the fake facial information such as images or videos of legitimate user to spoof the security system. For example, printed photographs, videos, masks, screenshots, images shown in mobile gadgets can be used for face spoofing. In general, spoof attacks against a face recognition system consists of i) Printed image attack ii) Replay video attacks iii) Mask attacks. The print image attack is a 2D face spoof attack performed using printed photographs. Replay video attacks also belong to same category where it can be launched using a photograph or video of the target subject using a smart phone. Mask attacks are highly sophisticated and requires 3D fabricated face mask (target face).
A typical counter measure to overcome the spoofing attacks is face liveness detection, which aims at detecting face signs such as eye blinks, emotions, mouth movements, etc. Detecting eye blinks is one of the important key characters in face liveness detection. Many methods have been reported on the automatic detection of eye blink from video frames. In general, Viola Jones [2] operator is applied to detect faces and eye landmarks,followed by adaptive thresholding to estimate the optical flow in the eye area. Finally, the motion in the eye is estimated based on a correlation matching template (open and closed eye).
In this paper, a novel approach for face spoof detection is proposed by concatenating three different feature descriptors namely, Haralick texture, Color moment and Color Local Binary Pattern (CLBP). To differentiate the color distribution between genuine and spoof face color moments feature descriptors are extracted for HSV color model, Feature histogram are extracted for LBP of Cb and Cr channels to distinguish the real and printed photograph. Finally, Haralick features are extracted for gray scale image in order to perform spoof detection in different color models.
The paper is organized as follows: Section 2 reviews the state of the art methodologies. Section 3 describes the detailed view about the proposed hybrid face spoof detection technique. Section 4 deal with Results and Discussion. Finally, Section 5 concludes the paper.
Related works
Face recognition is the second largest biometric system deployed throughout the globe [3]. The face is also one among the most experimented biometric system like fingerprint where most spoofing related research is carried out. In this section the state of the art methods proposed recently in the field of face anti-spoofing are presented. Figure 1 presents the taxonomy of face liveness detection.

Taxonomy of Face Liveness detection.
A.K Singh et al. [4] proposed a face recognition system with liveness detection using eye and mouth movement. The methodology is divided into two parts, namely liveness detection and face recognition. First, it will check for liveness of the user, and if the person is live, then the system will recognize the person. The system fails to detect liveness of the person when the attackers use replay video of the legitimate user.
A. Agarwal et al. [5] proposed face Anti-spoofing using Haralick texture features. The cropped face region is split into the individual RGB channel and it is divided into non-overlapping blocks. For each block, Redundant Discrete Wavelet Transform (RDWT) is performed to obtain four sub-bands such as approximation (Ha), horizontal (Hh), vertical (Hv), and diagonal (Hd). Haralick texture features are extracted for four sub bands of all the blocks. Haralick features are also computed for the original cropped face image. The final feature vector is formed by concatenating the original Haralick features and Haralick features for four sub bands of all the blocks. The concatenated features are classified by Support Vector Machine (SVM).
K. Patel et al. [6] described face spoof detection scheme for smart phones. Two different features are extracted such as Local Binary Patterns (LBP) and Color Moments for normalized face image. The extracted features are concatenated and classified by SVM.
Z.Boulkenafet et al. [7] presented Face Spoofing detection method using colour texture analysis. The cropped RGB face image is converted into a YCbCr color model and it is split into individual channels. Color Local Binary Pattern (CLBP) texture features are extracted for each channel in the YCbCr color model. The extracted features are concatenated and classified by SVM.
Di Wen et al. [8] introduced a face spoof detection with image distortion analysis. Four different features are extracted for normalized face image, namely specular reflection, blurriness features, chromatic moment feature and color diversity feature. The extracted features are concatenated and classified by the ensemble of classifiers.
Based on the extensive literature survey, it was identified that there is a significant amount of work done in anti-spoofing techniques. The field has reached almost many advances in attacking methodologies and detection strategies. Still, some of the challenges like replay video attack are yet to be addressed. In this paper, face spoofing with replay video is detected using three different feature descriptors namely Color Moments features from HSV color model, Haralick texture features for gray scale image and CLBP for YCbCr color model.
This paper proposes an Ensemble of feature descriptors to detect the spoof attacks for face biometric authentication system. Histogram of Oriented Gradients (HOG) [9] based face detection is applied on every frame in the video. Face Alignment is performed based on the localized facial feature points on the detected face image using Ensemble of Regression Tress (ERT) [10] and Affine transformation. Ensemble of feature descriptors are extracted for aligned face image and classified by logistic regression. The architecture of proposed face liveness detection is shown in Fig. 2.

Proposed face liveness detection.
HOG is a feature descriptor widely used in object detection and various other optimization problems. HOG based descriptors generate a robust feature set that allows the human face to be accurately discriminated from the input video, even in unconstrained environments. HOG and Linear SVM is applied in each frame of a video to detect the face region. In HOG descriptor, the first step is to compute image gradient in both x and y direction using the Equations (1) and (2).
The orientation of each pixel for the gradient image is calculated by using Equation 4.
The magnitude and orientation of the gradient image are computed and divided into cells and blocks. For each cell, the histogram is constructed based on the gradient magnitude |G| and orientations θ. The orientations represent the size or bins in the histogram and gradient magnitude represents the weight of each bin. The cells are grouped into blocks. The histogram of each block is calculated by concatenating gradient histogram of the cell present in the block. All the blocks are concatenated to form the final feature vector. The extracted features are classified using Linear SVM to detect the faces in the video stream or images. Figure 3 represents the final feature vector of the HOG feature descriptor.

HOG descriptor of a face.
For each detected face in the image, the pre-trained facial landmark detector of Dlib [11] library is used to estimate the location of 68 coordinates that map to facial structures on the face. The facial landmark detector used in Dlib library is based on Ensemble of Regression Trees (ERT) [10]. The positions of the 68 coordinates are shown in Fig. 4.

68 Facial landmarks coordinate.
Among 68 facial landmark points, 12 eye facial feature points (6 points for left eye and 6 points for right eye) are considered for face alignment. Left and right eye centers are calculated based on the Equation (5) and (6).
The angle of the face image is computed by taking the difference between left and right eye centres based on the Equation (7), (8) and (9).
The face image is rotated based on calculated angle value by Affine transformation.
The aligned RGB face image is converted to YCbCr color model, CLBP texture features are extracted for each channel in the YCbCr color model. LBP is a texture descriptor introduced by Ojala et al. [12], LBP computes a local representation of texture. This local representation is performed by comparing each pixel with its surrounding neighbourhood of pixel values. It is used to characterize the texture object and pattern of an image. For each pixel in the Y, Cb, Cr color channel, a neighbourhood of size p is selected with radius r surrounding the center pixel. LBP image is computed for each pixel in the YCbCr color model based on Equations (10) and (11).
Figure 5 shows the computation of Local Binary Pattern (LBP). LBP image is obtained by comparing its gray scale value with its neighbouring pixels. If the intensity of the center pixel is greater than or equal to its neighbour, then it’s set to 1 otherwise its set to 0.

LBP Computation.
Haralick features are used to describe the texture of an image [13]. Haralick texture features are derived from the Gray-Level Co-occurrence Matrix (GLCM). This matrix characterizes the texture by recording how often pairs of adjacent pixels with specific values occur in an image. Four different directions of adjacency are recorded for Haralick texture features such as left to right, top to bottom, top-left to bottom-right, and top-right to bottom-left. Figure 6 shows the four different directions of Gray Level Co-occurrence Matrix (GLCM). Totally 13 features are extracted for Haralick texture as shown in Table 1.

Levels of adjacency in GLCM.
Haralick texture feature descriptors
where pi,j is the normalized GLCM matrix, i and j are the position GLCM matrix and n is the number of pixels in the row and column for GLCM matrix.
Recaptured face images tend to show a different color distribution compared to colors in the genuine face images. Color distribution between genuine and spoof face are differentiated by Chromatic moment features [8]. The chromatic moment features are utilized based on the research work reported by D. Wen et al. The aligned RGB face image is converted to HSV (Hue, Saturation, and Value) color model, mean and standard deviation features are extracted for each channel in the HSV color model. Figure 7 shows the Hue, Saturation, Value (HSV) histogram between genuine and spoof face image. The first column shows Hue, Saturation and Value channel image of spoof face, the second column shows the histogram of hue, saturation and value channel for photo printed face image. Third and fourth columns show the real face image and its histogram for Hue, Saturation and Value channel. Finally, the extracted features Color Local Binary Pattern, Haralick texture and Color moment are concatenated and classified by logistic regression. Table 2 presents the proposed face liveness detection algorithm.

Difference between genuine and spoof face for HSV color model.
Proposed Face Liveness Detection Algorithm
The proposed system is implemented in HP z420 workstation with Intel Xeon processor, 28 GB of RAM. OpenCV and Dlib Python based library are used for implementation of the face spoof detection algorithm. MSU-MFSD is used for validating the proposed hybrid face spoof detection method. Figure 8 shows the sample face images of MSU-MFSD. First two rows represent the spoof face images and last two rows show real face images.

Sample face images of MSU-MSFD.
Figure 9 shows the estimation of color moment features for real and spoof face image. First row gives the real face image mean value for the HSV color model. Second row presents the photo printed face image mean value for the HSV color model. The third row shows the real face image Standard Deviation value of the HSV color model and fourth row indicates the photo printed face image Standard Deviation value for the HSV color model. From Figure 9, it is observed that the mean and standard deviation of HSV color model for genuine and spoof face images are different which validates the detection of spoof images.

Color moment features for real and spoof face image.
Recognition accuracy of MSU-MFSD
Figure 10 shows the difference between genuine and spoof face images for YCbCr color model. From Fig. 10, it is confirmed that the recaptured face image has less color information than genuine face image. The performance of a proposed ensemble of feature descriptor algorithm to detect the spoof attack is measured with precision, recall and F1-score. Table 3 shows the recognition accuracy of MSU-MFSD. It can be seen that the proposed face spoof detection method performs better in terms of precision, recall and F1-score.

Different between genuine and spoof face for YCbCr color model.
This paper proposed an ensemble of feature descriptors to detect the face spoof attacks, using Color moments, Haralick texture and CLBP resulting in 93 dimensional feature vector. From the experimental results it is observed that the proposed algorithm with Logistic Regression classifier achieves 99.45% accuracy in classifying the real and spoofed faces. Moreover the proposed algorithm is robust enough to be deployed in any real time face biometric authentication system.
Footnotes
Acknowledgments
This research project is supported by DAE-BRNS, Department of Atomic Energy (Sanction No: 2013/36/41), Government of India. The authors would like to extend their sincere thanks to DAE-BRNS and DST - PURSE for their support.
