• No results found

Facial Expression Recognition based on the Yale database

In document CERTIFICATE OF ORIGINALITY (Page 154-161)

Chapter 7. Facial Expression Recognition based on Shape and Texture

7.4 Facial Expression Recognition

7.5.2 Facial Expression Recognition based on the Yale database

The Yale database includes 15 persons (14 males and 1 female). For each person, there are five expressions: neutral, smile, surprise, blink and grimace (where grimace means the left eye is closed). Some examples from the Yale database are shown in Figure 7-5. Compared with the AR database, there are far fewer subjects here but expression patterns. A leave-one-out mechanism is adopted to evaluate the recognition performances. In the experiments, all samples but one identity are used for training, and the images of that person are used for testing. This process repeats for every identity, and the results are averaged. Because SMOM is a statistical

representation of the expression classes, using 14 images for training is insufficient. By translating each original image into a pixel distance along the eight directions, we can produce eight new images. These produced images and the original image have a different type of importance when constructing the SMOM. A matrix,

1 2 1 2 4 2 1 2 1 ⎡ ⎤ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎣ ⎦

, is therefore used to weigh the importance in computing the histograms.

With this matrix, the number of pixels from the original image will be multiplied by 4, and the number of pixels from those images shifted along either the x-axis or the

y-axis will be multiplied by 2 in the construction of the histograms. Thus, each

identity has 16 images, and each expression class contains 224 images for training. The first five peak images produced by SMOM are shown in Figure 7-6. These peak images look similar to the corresponding mean images, which are displayed in the last column. However, due to the shift in the training images, the edges of the peak images become blurred. When computing the mean images, only the original images are used.

(a)

(b)

(d)

(e) Figure 7-5 Some cropped faces in the Yale database. Facial expressions: (a) Neutral, (b) Smile, (c) Surprise, (d) Blink and (e) Grimace.

(a)

(b)

(c)

(d)

(e) Figure 7-6 The masked mean images and peak images produced by SMOM. The right-most column displays the mean images for each expression class, the first to fifth columns show the first five peak images, respectively. Facial expressions: (a) Neutral, (b) Smile, (c) Surprise, (d) Blink and (e) Grimace.

In the following experiments, we set k at 8 for SMOM and λ at 0.25 in (7.5), as in Section 7.5.1. We evaluated the performances of the respective algorithms for different expression categories, which are tabulated in Table 7-4. For ESTM, the recognition rates are lower than those based on the AR database. This is because the expressions “Blink” and “Grimace” mainly involve movements of the eyelids. Due to the low contrast in the eye areas (even human beings cannot correctly judge the movements based on some of the original images), it is difficult to abstract valuable shape and texture information in these areas (see Figure 7-5). With the different methods, the performance for recognizing the “Smile” is always the best. This can be explained by the fact that the smile expressions of different identities are more or less the same, i.e. its within-class variation is small (unlike the expression “Surprise”). In addition, the smile expression is quite distinct from other expressions, such as “Neutral”, “Blink” and “Grimace”, so its between-class variation is relative large. Based on the experimental results, the SMOM-ESTM algorithm can always give the best recognition performance for different expressions.

Table 7-4 Facial expression recognition rates using different methods.

(%) Neutral Smile Surprise Blink Grimace Average

SMOM 86.7 100.0 93.3 86.7 93.3 92.0

ESTM 53.3 93.3 73.3 73.3 73.3 73.3

SMOM-ESTM 93.3 100.0 93.3 86.7 100.0 94.7

7.5.3 Storage Requirements and Computational Complexity

mean images for ESTM. Suppose that there are W expression models (SMOM1,

SMOM2, …, SMOMW), and for each model, k representative values are used at each

pixel position with 8 bits per value. As a facial mask is adopted to emphasize the actions at the eye and mouth areas, only the points in these areas are stored. The number of pixels involved in these areas is denoted as NS. Then, the number of bytes

used for these expression models is WNSk. For ESTM, W mean images are used for

the expression classes. The numbers of bytes for the edge map, Gabor map, and angle map of an image are 2ηNS, 2nfnaNS, and 2NS, respectively, where η is the

percentage of the points selected as edge points in an edge map, and nf and na are the

numbers of center frequencies and orientations used for the Gabor filters, respectively. Therefore, the total number of bytes or the storage requirement is (k + + 2nfna + 2)WNS.

The computational complexity for recognizing a query face image includes two parts: feature extraction and matching. The runtime required for feature extraction is the time spent on computing the edge map, Gabor map, and angle map of the query image (SMOM performs matching based on the gray-level intensities, and does not need to extract additional features). As all the maps of the model images for the expression classes have been computed and stored in the face database, we need to consider only the time required to generate the maps of the query image. The computations required for computing an edge map, Gabor map and angle map are in the order of O(NS), O(NS log2(NS)) and O(NS), respectively. For

searching in a large database, the runtime for matching is the most significant part of the whole process. For SMOM, the computation required for the model distance

is in the order of O(kWNS). For ESTM, the computational complexity is in the order

of O(2ηNSD2Wtall), where D is the size of the neighborhood considered when

performing the elastic matching, and tall = + + , where te tg ta t , e t , g t are the a

average runtimes required to compute the edge distance, Gabor distance and angle distance, respectively, for a point pair. Therefore, the total computational complexity for recognizing the facial expression of a query face image is in the order of O(kWNS)+ O(2ηNSD2Wtall). Experiments were conducted on a computer

system with Pentium IV 2.4GHz CPU and 512MB RAM. The average times required to compute the edge map, Gabor map and angle map of a face image are about 0.001 s, 0.10 s and 2.4×10-4

s, respectively. The average runtimes for feature matching using our SMOM-ESTM algorithm based on the AR database (3 expression models, 3 mean images as model images, and 183 images for testing) and the Yale database (5 expression models, 5 mean images as model images, and 75 images for testing) are 0.10 s and 0.17 s, respectively.

7.6 Conclusions

In this chapter, we have proposed a novel and accurate algorithm for human facial expression recognition. In our algorithm, a statistical model, namely Spatially Maximum Occurrence Model (SMOM), is proposed to model the different facial expressions, and the distance between a query input and an expression model is a measure of the precision of using the model to represent the expression in the query input. Another method, ESTM, is used to measure the similarity based on the shape and texture information using the shape-texture Hausdorff distance between the

combined to form the SMOM-ESTM algorithm, which can achieve a good performance level for expression recognition.

In our algorithm, only the position of the eyes and the middle of the mouth are required for normalization and alignment. The expression models produced by SMOM contain most of the significant visual content in the training data, and are suitable for representing the expression patterns, which have large within-class variations. For ESTM, the shape information and texture information about an image are complementary and supplementary to each other, which can provide a more detailed and exact description of a facial expression. Furthermore, the elastic matching allows expression to vary to a certain extent. With our approach, the recognition rates based on the AR database and the Yale database are 94.5% and 94.7%, respectively.

In document CERTIFICATE OF ORIGINALITY (Page 154-161)