Identifying Facial Expressions in Acquired Digital Images
A face is detected and identified within an acquired digital image. One or more features of the face is/are extracted from the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both. A model including multiple shape parameters is applied to the two independent eyes or subsets of features of each of the two eyes, and/or to the lips or partial lips or one or more other mouth features and one or both eyes. One or more similarities between the one or more features of the face and a library of reference feature sets is/are determined. A probable facial expression is identified based on the determining of the one or more similarities.
This application is a Continuation of U.S. patent application Ser. No. 12/784,418, filed May 20, 2010; which claims the benefit of priority to U.S. provisional patent applications Nos. 61/179,808, filed May 20, 2009 and 61/221,417, filed Jun. 29, 2009 and 61/221,425, filed Jun. 29, 2009. This application is related to U.S. patent application Ser. Nos. 12/038,147, published as 20080205712, and 12/203,807, published as 20090003661, and 11/027,001, now U.S. Pat. No. 7,715,597, and Ser. No. 11/833,224, now U.S. Pat. No. 7,515,740, and Ser. No. 11/761,647, published as 20080013798. Each of these patents and patent applications is incorporated by reference.
BACKGROUNDIn the recent past, a digital camera was only able to capture images. Recently, however, face-tracking technology has become a common feature of consumer digital cameras, e.g., U.S. Pat. Nos. 7,403,643, 7,460,695, 7,315,631 and U.S. application Ser. Nos. 12/063,089 and 12/479,593 are incorporated by reference. The most recent implementations feature hardware coded face tracking in an IP-core. Applications to date have been limited to optimizing the exposure and acquisition parameters of a final image. Yet there are many additional applications which have even greater potential to enrich the user experience. The rapid deployment of face tracking technology in cameras suggests that other more advanced face analysis techniques will soon become feasible and begin to offer even more sophisticated capabilities in such consumer devices.
The detailed analysis of facial expression is one such technique which can offer a wide range of new consumer applications for mobile and embedded devices. In the context of managing our personal image collections, it is useful to be able to sort images according to the people in those images. It would be even more useful if it were possible to determine their emotions and thus enable images to be further sorted and categorized according to the emotions of the subjects in an image.
Other consumer device applications also can gain from such capabilities. Many such devices now feature a camera facing the user, e.g. most mobile smartphones, and thus user-interfaces could respond directly to our facial expressions as set forth in certain embodiment of the present invention. In one example, an e-learning system could match its level of difficulty to the degree of puzzlement on the student's face, for example. In another example, a home health system could monitor the level of pain from an elderly person's facial expression. In further examples, other domains such as entertainment and computer gaming, automotive, or security can also benefit from such applications. As the underlying expression recognition technologies improve in accuracy, the range of applications will grow further.
Computer gaming has grown from its humble origins to become a global industry rivaling the movie industry in terms of scale and economic impact. The technology of gaming continues to improve and evolve at a very rapid pace both in terms of control interface and the graphical display of the gaming world. Today's user interfaces feature more sophisticated techniques for players to interact and play co-operatively with one another. It is possible to have real-time video and audio links between the real players so they can co-ordinate their group gameplay.
However the emphasis remains on the player being drawn into the artificial game world of the computer. There is still little scope for the conventional gaming environment to reach back to the players, sensing and empathizing with their moods and feelings. Given the sophistication of modern AI game engines, it is believed that this is a missed opportunity and that gaming engines can be advantageously evolve in accordance with embodiments described below to develop and provide methods to empathize with individual game players.
Y. Fu et al have presented a framework of multimodal human-machine or human-human interaction via real-time humanoid avatar communication for real-world mobile applications (see, e.g., Hao Tang; Yun Fu; Jilin Tu; Hasegawa-Johnson, M.; Huang, T. S., “Humanoid Audio—Visual Avatar With Emotive Text-to-Speech Synthesis,” Multimedia, IEEE Transactions on, vol. 10, no. 6, pp. 969-981, October 2008, incorporated by reference). Their application is based on a face detector and a face tracker. The face of the user is detected and the movement of the head is tracked detecting the different angles, sending these movements to the 3D avatar. This avatar is used for low-bit rate virtual communication. A drawback of this approach is that the shape of the avatar needs to be specified by the user and forward-backward movement of the user is not detected, so the avatar appears as a fixed-distance portrait in the display.
The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
Techniques of recognizing a facial expression or an identity of a face, or both, are provided. A face is detected and identified within an acquired digital image. The technique involves separately extracting one or more features of the face within the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both. A model is applied including multiple shape parameters to the two independent eyes or subsets of features of each of the two eyes, and/or to the lips or partial lips or one or more other mouth features and one or both eyes. One or more similarities are determined between the one or more features of the face and a library of reference feature sets. A probable facial expression is identified based on the determining of the one or more similarities.
The extracting separately of the one or more features of the face may be performed before the identifying of the face.
The one or more features may include one or more geometric features. The one or more geometric features may include one or more shapes, deformations or locations of facial components, and/or pose variations.
The one or more features may include one or more appearance features. The one or more appearance features may include one or more skin texture changes such as one or more furrows, bulges, expression wrinkles, or illumination variations, and/or blushing.
The library may include face features of faces captured in multiple pose variations and/or under multiple directional illumination conditions.
The facial expression may be categorized as indicating surprise, fear, happiness, anger, neutral, sadness, disgust, or a combination thereof.
A game difficulty and/or workflow may be adapted based on the identified probable facial expression. The identified probable facial expression may be mirrored in an avatar within a game display.
The model may include an Active Appearance Model (AAM).
The multiple shape parameters may include seven or fewer shape parameters, such as six or seven.
A digital image acquisition device may be configured to recognize a facial expression or an identity of a face, or both, including any of the features described herein. The device may include a lens and image sensor for capturing a digital image, and a processor. A face detection and recognition module may be configured to program the processor to detect and identify a face within the digital image. A feature extraction module may be configured to program the processor to extract one or more features of the face within the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both. A classification module may be configured to program the processor to determine one or more similarities between the one or more features of the face and a library of reference feature sets. A facial expression identification module may be configured to program the processor to identify a probable facial expression based on the determining of the one or more similarities.
One or more computer-readable media are also provided that have code embedded therein for programming a processor to perform a method of recognizing a facial expression or an identity of a face, or both, in accordance with any of the described techniques.
An advantageous modelling approach is provided for improved determination of facial expressions captured for example from a low-resolution video stream. An extension of an Active Appearance Model (AAM) is provided in certain embodiments to measure facial parameters, and a set of classifiers to determine facial states are described.
Embodiments for this technique are described for example to determine the emotional state of the players of a computer game and suggest how this information can be integrated into the workflow of a game. A number of other uses are described where the game environment can be adapted based on feedback from the players.
A direct connection back to the game player is also provided in certain embodiments. An advantageous approach to modelling and classifying the facial expressions of a game player is provided that uses a low-resolution webcam and state-of-art face detection and face modelling techniques. The system is capable of running in real-time on a standard desktop PC or other processor-enabled consumer appliance, such as on a dedicated embedded device, or converted to a dedicated hardware subsystem.
System ArchitectureA system that performs automatic face recognition or expression recognition may typically comprise three main subsystems, as shown in
In the face detection module 6, it is decided whether the input picture or the input video sequence contains one or more faces. If so, then facial features are extracted from the detected faces using the feature extraction module 10, for example, by applying an advanced face model which encodes the facial features by a set of parameters. As a next step, using the face recognition and/or expression recognition modules 14, 16, facial features, determined as a set of output parameters from the model, are classified in order to perform facial recognition or expression classification.
Face Detection ModuleIn a system in accordance with certain embodiments, a face detector module 6 is employed as initialization for an AAM search. Face detection can be defined as the ability to detect and localize faces within an image or a scene. In the last few years, many different face detection techniques have been proposed in literature. A comprehensive survey of conventional face detection methods is presented at Yang, M.-H., D. J. Kriegman, and N. Ahuja, Detecting Faces in Images: A Survey. IEEE Transactions on pattern analysis and machine intelligence, 2002. 24(1): p. 34-59, incorporated by reference. State-of-the-art face detection methods provide real-time solutions that report high detection rates.
In this field, significant advances have been due to the work of Paul Viola and David Jones who proposed a face detector based on rectangular Haar classifiers and the integral image representation of an input image, e.g., at P. A. Viola, M. J. Jones, “Robust real-time face detection”, International Journal of Computer Vision, vol. 57, no. 2, pp. 137-154, 2004, incorporated by reference. Such face detection methods are among the fastest reported in the literature so far. It is able to perform for semi-frontal faces in real-time and is highly accurate. In certain embodiments, the Viola-Jones face detector is employed as initialization for an AAM search. An example of face detection using a Viola-Jones based method is shown in
In certain embodiments, the AAM approach is extended for facial feature extraction. AAM can be utilized as a powerful tool for image interpretation in accordance with certain embodiments, particularly when dealing with generalized facial expressions. It is a global face model whereas the key features which determine facial expressions are local features. It is these local features which are responsible for most of the relevant facial variation.
Component-based AAM, e.g., see Zhang and F. S. Cohen Component-based Active Appearance Models for face Modeling, in International Conference of Advances in Biometrics, ICB, Hong Kong, China, January 5-7 2006, incorporated by reference, offers a practical solution that may be combined with other described features within certain embodiments. It combines a global face model with a series of sub-models. These sub-models may be typically component parts of the object to be modeled. This approach benefits from both the generality of a global AAM model and the local optimizations provided by its sub-models. The model may be adjusted through training to be robust to small to medium pose variations and to directional illumination changes.
Expression Classification ModuleIn various embodiments, generally either of two classifiers are used: Nearest Neighbor (NN) and Support Vector Machine (SVM), e.g., as described at Vishnubhotla, S., Support Vector Classification. 2005, and Dasarathy, B. V., Nearest Neighbor (NN) Norms: NN Pattern Classification Techniques. 1991, respectively, incorporated by reference. The Euclidean-NN rule or the cosine-NN rule may be used. These classifiers may use the relevant AAM parameters in accordance with certain embodiments to choose between facial expressions.
The Extraction of Facial Features Using AAMStatistical models of appearance such as AAM may be used as a deformable model, capable of interpreting and synthesizing new images of an object of interest. The desired shape to be modelled—in our case a facial region—is annotated by a number of landmark points. A shape vector is given by the concatenated coordinates of all landmark points and may be formally written as, s=(x1, x2, . . . , xL, y1, y2, . . . , yL)T, where L is the number of landmark points. The shape model may be obtained by applying Principal Component Analysis (PCA) on the set of aligned shapes, e.g., as follows:
where
The texture, defined as the pixel values across the object of interest, may also be statistically modelled. In one embodiment, face patches are first warped into the mean shape based on a triangulation algorithm. Then a texture vector t=(t1, t2, . . . , tp)T is built for each training image by sampling the values across the shape normalized patches. The texture model is also derived by means of PCA on the texture vectors:
where
The sets of shape and texture parameters
are used in certain embodiments to describe the overall appearance variability of the modelled object, where Ws is a vector of weights used to compensate the differences in units between shape and texture parameters. After a statistical model of appearance is created, an AAM algorithm may be employed in certain embodiments to fit the statistical model to a new image. This determines the best match of the model to the image allowing to find the parameters of the model which generate a synthetic image as close as possible to the target image.
Relevant AAM Parameters for Illustrating EmotionsAAM may be used in certain embodiments to extract two types of features: geometric features and appearance features. Geometric features describe shapes, deformations and locations of facial components, and poses variations. Appearance features describe skin texture changes, e.g., furrows and bulges, blushing, expression wrinkles, illumination variations.
Geometric features are more affected when expressing emotions. As examples, when surprised, eyes and mouth open widely, the latter resulting in an elongated chin. When sad, people often blink. When angry, eyebrows tend to be drawn together. Both types of features may be advantageously used to fit an AAM model to unseen pictures. The right choice of parameters may serve to provide an optimal determination of expression, as described in more detail below.
Relevant Facial Features to Indicate ExpressivityFacial expressions are defined by the dynamics of the individual facial features. Psychophysical experiments (see, e.g., M. Nusseck, D. W. Cunningham, C. Wallraven, H. H. Biilthoff, The contribution of different facial regions to the recognition of conversational expressions, Journal of Vision, 8(8):1, pp. 1-23, 2008, incorporated by reference), indicate that the eyes and the mouth can be generally in most images the most relevant facial features in terms of facial expressions. Experiments show that, in some cases, one individual facial region can entirely represent an expression. In other cases, it is better to use the interaction of more than one facial area to clarify the expression.
A thorough description of the eye area is provided using an AAM model at I. Bacivarov, M. Ionita, P. Corcoran, Statistical Models of Appearance for Eye Tracking and Eye-Blink Detection and Measurement. IEEE Transactions on Consumer Electronics, August 2008, incorporated by reference. A detailed AAM lip model, including a hue filtering is proposed for the lips area at I. Bacivarov, M. C. Ionita, and P. Corcoran, A Combined Approach to Feature Extraction for Mouth Characterization and Tracking, in ISSC, Galway, Ireland, 2008, incorporated by reference. Each of these independent models may be used alone or in combination for expression recognition.
On average, in certain embodiments, the scores obtained for the eyes shape represent 70% of the information contained by the entire face shape and the mouth is also an important emotion feature carrier for certain emotions, e.g., surprise, with around 60% independent contribution in certain embodiments. Further, when combined and processed together emotion decoding accuracies increase.
Component-Based AAM Representation of ExpressivityComponent-based AAM, as described for example at Zhang and F. S. Cohen Component-based Active Appearance Models for face Modelling, in International Conference of Advances in Biometrics, ICB, Hong Kong, China, January 5-7 2006, incorporated by reference) is an approach that benefits from both the generality of a global AAM model and the local optimizations provided by its sub-models. In addition to a global model, component models of the mouth and two eye-models and/or other features may be used alone or in combination.
In summary, a component-based algorithm may be used in certain embodiments as follows. Two sub-models are built, one for the eye region and one for the lips. The eye sub-model is then derived in a left and, respectively, a right eye model. At each iteration, the sub-models are inferred from the global model. Their optimums are detected by an AAM fitting procedure. Then, the fitted sub-models are projected back into the global model.
Improved Component Eye Models Extension of the Eye ModelAn initial eye model may be based in certain embodiments on a standard formulation of AAM, e.g., as in T. F. Cootes, G. J. Edwards, and C. J. Taylor, “Active appearance models”, Lecture Notes in Computer Science, vol. 1407, pp. 484-, 1998, incorporated by reference. The model may use a detailed analysis of the eye region in terms of degree of eyelid opening, position of the iris, and/or shape and/or texture of the eye. The model may be designed to be robust to small pose variation. Blink and gaze actions may also be modelled as in I. Bacivarov, M. Ionita, P. Corcoran, Statistical Models of Appearance for Eye Tracking and Eye-Blink Detection and Measurement. IEEE Transactions on Consumer Electronics, August 2008 and/or Ioana Barcivarov, “Advances in the modeling of Facial Subregions and Facial Expression using Active Appearance Modeling Techniques”, PhD Thesis, National University of Ireland Galway, June 2009, each being incorporated by reference.
Other expression conditions that may be taken into account in certain embodiments include head pose, occlusions of one or more components of the eye model, and/or differences in expression between the two eyes such as “winking” where one eye is open, and the other closed. In certain embodiments, an advantageous model is not constrained to the variations learned during the training phase. For example, this permits the two eyes to deform together and/or independently.
A visual explanation is provided by
A component-based AAM, as described for example at M. D. Cordea, E. M. Petriu, T. E. Whalen, “A 3D-anthropometric-muscle-based active appearance model, in IEEE Symposium on Virtual Environments”, Human-Computer Interfaces and Measurement Systems, (VECIMS), pp. 88-93, 2004 and/or H. Choi, S. Oh, “Real-time Recognition of Facial Expression using Active Appearance Model with Second Order Minimization and Neural Network”, International IEEE Conference on Systems, Man and Cybernetics, SMC 06, vol. 2, pp. 1559-1564, is used in certain advantageous embodiments that do not constrain model components to global variations. A face model may combine a global model with a series of sub-models. This approach benefits from both the generality of a global model and the local optimizations provided by its sub-models. This approach is adapted in certain embodiments to independently model the eye regions within a face. Two advantageous example versions of the component-based model adapted for the eye region are described below, particularly for application of facial expression recognition.
Component-Based AAM FormulationsIn a first stage, a component-based AAM is provided for the eye-region using two different approaches. For the first approach, the open-eye and closed-eye states are modelled separately. For the second approach, each eye is modelled separately, retaining the mixed (overlapping points) open/closed information for each eye region.
Separation of Open and Closed Eye StatesIn our first approach, the two-eye appearance for open or closed eyes is used. Mixing open and closed eye shapes or textures can introduce errors into the model, and so care is taken here in developing the model. First, a global model uses both eyes open and then both eyes closed. The model is refined with two sub-models modelling only some particular features of both eyes, meticulously annotated as shown in
In the case of closed eyes, the inner eyelid is not composed by overlapped points, but represented as a straight line. The eyebrows may be included in the global model for better eye location. They are considered generally superfluous for local modelling stages, as the eyebrows may be mostly used for accurate eye location. In these stages, the eye location is believed accurate, coming from the initial global stage.
The fitting process is represented in
Only one of the open or closed sub-models is typically used in this fitting process at 30 or 32, saving computational time. A new global AAM may be applied at 34, along with an error check at 36 before the process is stopped 38. Another advantage is the accuracy of the shape annotation, as closed-eye shape is no longer obtained from open-eye shape. In consequence, fewer errors are introduced in the appearance model. The blinking information is still extracted thanks to the global model, but the accuracy of the shape is refined by the relevant sub-model.
Independent Modeling of the Left and the Right EyesIn a second approach, each eye is modelled independently. A two-eye global model may be used for an accurate location and initial modeling. Then, the matching of each of the two eyes is performed independently.
A global model is created using both eyes open and closed. Then a separate sub-model is created describing a single open or closed eye and the different variations in between the two states. The two models, i.e., one global model and one sub-model, are trained and are independently generated using the same procedures described above.
One valuable aspect of the eye-model is the symmetry between the two eyes. This characteristic permits, starting from one eye model, e.g. left eye, to auto-generate an equivalent model for the other eye, e.g., right eye, respectively, simply by mirroring the data. An additional advantage is reduced memory space requirements, as only one set of eye-model characteristics is stored. This can be very important when considering the implementation of such techniques in low-cost consumer electronic devices such as gaming peripherals.
An advantage of this modelling approach is that it permits that the two eyes find their optimal position and shape independently. There are situations, especially when dealing with large pose variations, plane rotations, occlusions, or strong facial expressions, when the 2-D projection of the eyes loses the property of global symmetry. An example of such a situation was presented in
In
Two different versions of adapting a component-based AAM for the eye region are described. The first version locally models both eyes, separating the open and closed eye situations. The second version independently models each eye, but it simultaneously includes open and closed eyes. Both versions may be trained using the same training set as for the standard eye model. A dataset of 70 pictures, e.g., may be carefully selected to provide a high degree of variability in terms of subject individuality, pose, illumination, and facial features. Samples of the training set are illustrated at
The version of the component-based AAM which uses independent left and right eye-models proved in tests to be more useful and effective across a range of applications. In this version, local sub-models used were single-eye models, adapted for open and closed eyes. This approach proved capable of accurately determining the eye parameters, particularly in cases of facial expression, where the two eyes deform independently. It is especially robust to pose variations and to in-plane rotations.
The first version depends more particularly on the accuracy of blink detection.
Even if the global model fails by matching open eyes, the sub-models can still correctly match the eye image with closed eyes because each local model contains both open and closed-eye training data. This situation is represented in
After visually inspecting the results, a quantitative evaluation of the proposed model is performed on representative examples of the three test sets. The quantitative evaluation of a model performance is realized in terms of boundary errors, calculated as Point-to-Point (Pt-Pt) shape error, calculated as the Euclidean distance between the ground-truth shape vector and the converged shape vector inside the image frame:
where the index g marks the ground truth data, obtained by hand annotation.
Another type of error can be calculated, namely the Point-to-Curve shape error. It is calculated as the Euclidian norm of the vector of distances from each landmark point of the exact shape to the closest point on the associated border of the optimized model shape in the image frame:
The mean and standard deviation of Pt-Pt and Pt-Cry are used to evaluate the boundary errors over a whole set of images.
Lips models have been developed with advantageous results based on a standard AAM formulation (see, e.g., I. Bacivarov, M. C. Ionita, and P. Corcoran, A Combined Approach to Feature Extraction for Mouth Characterization and Tracking, in ISSC, Galway, Ireland, 2008, and Ioana Barcivarov, “Advances in the modeling of Facial Subregions and Facial Expression using Active Appearance Modeling Techniques”, PhD Thesis, National University of Ireland Galway, June 2009, incorporated by reference). A weak contrast between the color of the lips and the surrounding skin can provide a challenge, as there can be significant overlap in color ranges between the lips and skin regions of the face (see N. Eveno, A. Caplier, P. Y. Coulon, New color transformation for lips segmentation, Proceedings of IEEE Fourth Workshop on Multimedia Signal Processing, October 2001, Cannes, France, pp. 3-8, incorporated by reference). An improved version of an AAM lips model is provided in accordance with these embodiments. The standard AAM formulation is improved by applying a pre-processing step that offers a more accurate initialization of the lip region. The overall approach, embracing the initialization and the AAM modeling, is described below. The performance of the lip model has been tested, including developing two consumer applications: a lip tracker and a smile detector.
Initialization of the Lip Region by Chrominance AnalysisThe lips model works advantageously well when a strong initialization is provided in order to achieve an accurate fitting to unseen images. Consequently, a pre-processing method is provided in accordance with these embodiments that provides such a robust initialization. Key information related to lips is their red color, although red varies with respect to individuals, make-up, illumination etc. Therefore, by filtering the red lip color from the face region, the system is better able to identify the global shape of the lip region. This approach is based on the work of Pantic et al. (see, e.g., M. Pantic, L. J. M. Rothkrantz, “Automatic Analysis of Facial Expressions: The State of the Art”, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 22, no. 12, 2000, pp 1424-1445; M. Pantic, M. Tomc, L J. M. Rothkrantz, “A Hybrid approach to mouth features detection”, in Proceeding of the 2001 Systems, Man and Cybernetics Conference, 2001, pp. 1188-1193; and M. Pantic, M. F. Valstar, R. Rademaker, L. Maat, Web-based database for facial expression analysis, IEEE International Conference on Multimedia and Expo (ICME'05), http://www.mmifacedb.com, 2005, each being incorporated by reference), and is adapted for our AAM models. Firstly, the input image is transformed into the HSV colour space, as hue representation is less affected by variations in illumination. This colour space brings invariance to shadows, shading, and highlights and it permits using only the hue component for segmentation. Then the object of interest is filtered into the red domain, by applying the following hue filter (see S. Chindaro, F. Deravi, “Directional Properties of Colour Co-occurrence Features for Lip Location and Segmentation”, Proceedings of the 3rd International Conference on Audio and Video-Based Biometric Person Authentication, pp. 84-89, 2001):
where h is the shifted hue value of each pixel so that h0=1/3 for red color. Note that h0 controls the positioning of the filter in the hue color plane and w controls the color range of the filter around its h0 value. As the color for the lip region varies with respect to person identity, light conditions, make-up, etc., the challenge is to find optimal parameters for the filter. Although an optimal solution would be an adaptive hue filter, the simplified solution adopted in our case is to find the optimal parameters for predefined conditions, e.g., for a specific database.
A statistical analysis was performed on our training set to study the variation of lip colour between individuals and the differences caused by varying illumination on lip pixels for the each picture was investigated. Standard deviation does not vary much from picture to picture, as the pictures belong to the same database, with controlled acquisition conditions. The filter coefficients are chosen after performing an average on the mean and on the standard deviation for all pictures. The overall mean is 0.01 and it corresponds to the positioning of the filter h0. The overall standard deviation approximating the filter width w is 0.007.
After determining the parameters of the filter and performing the actual filtering operation, each image may be binarized using a predefined threshold, as illustrated at
A lips modelling in accordance with certain embodiments is composed of two main steps: an initialization step and a modeling step. Referring to
In a further step, AAM is applied at 84 and 86 in order to perform a refined detection and to determine detailed lips features. The starting point for the algorithm is the COG of the hue filtered ROI. The AAM adjusts the parameters so that a synthetic example is generated, which matches the image as closely as possible, as seen in
It is impractical to include all possible variations of shape and texture in a training set, particularly with limited processing resources such as with an embedded device. The overall degrees of freedom inherent in the model are restricted by the number of model parameters. That is, a model which did incorporate practically all possible facial variations in its training set would have a correspondingly large set of model parameters making it unwieldy and impractical, particularly for applications in consumer electronics or for implementations in low-cost gaming peripherals. Thus any practical model would restrict its potential variations.
To achieve real improvements, more than a single holistic AAM model is provided in accordance with certain embodiments.
The component-based AAM may be adapted for facial expression analysis. This approach benefits from both the generality of a global AAM and the optimizations provided by local sub-models. It adds degrees of freedom to the global model, by accounting for individual variations of facial features.
Now
Now, in order to quantitatively evaluate the overall performances of a component-based AAM, its accuracy is measured in terms of expression classification/recognition rates. First, consider which AAM features are most relevant for expression analysis.
Relevant Feature Extraction for Facial ExpressionsFeature selection involves keeping the most relevant features for classification and discarding irrelevant or redundant features. The quality of the extracted features plays a key role in their classification. Two types of features can be extracted when applying an AAM: geometric features and features depicting the texture. Optionally, appearance parameters can be obtained by applying PCA on the concatenated geometric and texture parameters. Information regarding both types of features are valuable when fitting an AAM model to unseen images. Now it is determined which of these parameters are more significant for determining and recognizing facial expressions.
Features for Facial Expression Recognition (FER)Shape features have a large role to play in facial expression recognition (see, e.g. Lucey, S., A. B. Ashraf, and J. Cohn, “Investigating Spontaneous Facial Action Recognition through AAM Representations of the Face”, Face Recognition Book, edited by K. Kurihara, ProLiteratur Verlag, Mammendorf, Germany, 2007, and Zalewski, L. and S. Gong. “2D statistical models of facial expressions for realistic 3D avatar animation”, in Computer Vision and Pattern Recognition, CVPR, 20-25 Jun. 2005, each being incorporated by reference). It may be advantageous to have both shape and texture features to achieve results (Kotsia, I., et al. “Texture and Shape Information Fusion for Facial Action Unit Recognition”, in First International Conference on Advances in Computer-Human Interaction (ACHI), 2008, incorporated by reference).
On one hand, the skin texture of the facial region exhibits only slight changes during facial expressions. These minor changes arise due to local lighting effects, blushing, or wrinkling of the skin. Such changes can be considered relatively invariant when compared with the more obvious changes of shape observed for different facial expressions. Such geometrical features are very directly related to expressions. As examples, when surprised, we widely open the eyes and eventually the mouth, resulting in an elongated chin; when sad, we often blink; when angry, the eyebrows are usually drawn together. Thus, shape parameters are typically the most significant features in facial expression decoding.
Quantitative Determination of AAM Parameters for FERWhile shape parameters of an AAM face model contain the greatest “information density” for determining facial expression, there can tend to be a significant amount of redundant information within this parameter set. Contra-wise, there may also be significant useful information contained in a small subset of the texture parameters. Advantageously, we have further refined our use of AAM model parameters to achieve a more optimal set of parameters which are more closely tuned to facial expression analysis.
The particular shape parameters that best represent facial expressions were investigated. A customized database and images from the FEEDTUM database were used. A set of 42 images were used to train the improved component model, 21 from each database. This training set was picked to include images of many different individuals, with varying facial poses, and facial expressions. Corresponding recognition tests were performed on a set of 50 unseen images from a database and 100 from FEEDTUM. A Euclidean NN based classifier was used for measuring each category of facial expression and, after discarding the lowest order shape parameter which is dominated by the facial pose information, the 17 lowest order shape parameters of the AAM model were used as features.
A maximum of 17 shape parameters is used in total in accordance with certain embodiments. Then, the number of parameters is reduced, eliminating in turn the parameter with the smallest variation across the test set of images. As the number of parameters is reduced, what are left are the parameters which exhibit the widest variation. These results are presented in the plot of
Optimal results are obtained in accordance with certain embodiments when the five to six most variable parameters are used. As the number of parameters is increased beyond the 6th parameter, the model accuracy deteriorates. An educated choice of parameters positively affects the system performances. It is shown empirically that using the first 30-40% of model parameters provides higher expression recognition rates.
A Note on the Lowest-Order Shape ParameterAfter performing PCA on shape parameters, the information on out-of-plane head pose was encoded in the first shape parameter. This is explained by the fact that the variations caused by pose cause significantly more geometric distortion than the variation caused by differences between individuals or between facial expressions. Consequently, pose variation is uncorrelated to a large extent with other sources and manifests itself in the first-order PCA parameter.
Based on the results of these tests, shape parameters did indeed prove to be overall the most valuable features for facial expression decoding accuracy. Other tests confirmed that while shape results are comparable with the results obtained when applying a combined shape and texture model, i.e., when using the AAM appearance features, the number of shape parameters is significantly less. In turn the computational requirements both for feature extraction and to subsequently perform classification are also reduced. Thus, shape parameters on their own have a demonstrable advantage over approaches based on texture-only and both concatenated and merged shape and texture. These finding were also confirmed by the authors Zalewski, L. and S. Gong, see “2D statistical models of facial expressions for realistic 3D avatar animation”, in Computer Vision and Pattern Recognition, CVPR. 20-25 June 2005, incorporated by reference. The accuracy rates of classification were not specifically addressed in this series of experiments. Improvements are described below to increase the accuracy of expression classifiers.
Expression Classification and RecognitionThe last step in a facial expression recognition (FER) system is expression classification and recognition. Two classifiers may be compared: SVM and NN (see Gualtieri, J. A. and R. F. Cromp. Support vector machines for hyperspectral remote sensing classification, in 27th AIPR Workshop: Advances in Computer-Assisted Recognition. 1998. Washington, D.C.: SPIE, incorporated by reference). In accordance with certain embodiments, the classifiers use as input relevant AAM parameters and they present at output the choice between two facial expressions. When dealing with poses, the pose parameters may be discarded.
Defining a Fixed Set of Classes for Facial ExpressionFacial Action Coding System (FACS), originally developed by Ekman and Friesen in 1976 (see, Ekman, P. and W. Friesen, “Facial Action Coding System: A Technique for the Measurement of Facial Movement”. Consulting Psychologists Press, Palo Alto, 1976, incorporated by reference) is the most widely used coding system in the behavioural sciences. The system was originally developed by analysing video footage of a range of individuals and associating facial appearance changes with contractions of the underlying muscles. The outcome was an encoding of 44 distinct action units (AUs), i.e., anatomically related to contraction of specific facial muscles, each of which is intrinsically related to a small set of localized muscular activations. Using FACS, one can manually code nearly any anatomically possible facial expression, decomposing it into the specific AUs and their temporal segments that produced the expression. Resulting expressions can be described using the 44 AUs described by Ekman or combinations of the 44 AUs. In 2002, a new version of FACS was published, with large contributions by Joseph Hager (see, J. Hager, P. Ekman, and W. Friesen, “Facial action coding system”, Salt Lake City, Utah: A Human Face, 2002, incorporated by reference).
Ekman and Friesen have also postulated six primary emotions which they consider to be universal across human ethnicities and cultures. These six universal emotions, commonly referred as basic emotions are: happiness, anger, surprise, disgust, fear, and sadness, illustrated in
The choice of the two classifiers is based on their positive results obtained in the literature. E.g., in T. F. Cootes, G. J. Edwards, and C. J. Taylor, “Active appearance models”, Lecture Notes in Computer Science, vol. 1407, pp. 484-, 1998, incorporated by reference, it is stated and it is proved by experiments for gender classification and face recognition that SVM is typically among the top two classifiers, and the other top ranking classifier is one of the Euclidean-NN rule or the cosine-NN rule.
Nearest Neighbour (NN)-Based ClassifierSome experimental results are provided below with variations on the NN technique to determine its practical utility. In particular, several different types of similarity metric and templates for NN were investigated, including the Euclidean, cosine, and Mahalanobis distances. Also, two types of templates can be employed, based on calculating the mean or the median over the input AAM parameters.
For these experiments, each picture in the test set is classified by comparing its parameters with a template corresponding to each expression. The class yielding the minimum distance is selected. The templates for each class are obtained by a mean, or a median, over the shape parameter vector for each expression. The classifiers are of type expression 1/expression 2, i.e., neutral/non-neutral, sad/non-sad, angry/non-angry, disgusted/non-disgusted, fear/non-fear, surprised/non-surprised, and happy/non-happy, and of type expression/non-expression. Considering that there are six expressions and the neutral one, then 28 classifiers are obtained, seven for the former type and 21 for the latter.
For a first set of experiments, the AAM training and test sets coincide, i.e., there are no unseen images. This is so that the results are not biased with poor AAM fittings. The Tables NN1-NN4 summarise the classification rates, as for example, in Table 8.2: the system 80% correctly recognises angry from non-angry faces and 75% angry from disgusted faces.
Generalization of the AAM to unseen subjects is tested in a second series of experiments with “leave-one-out” tests, in which images of the tested subject are excluded from training. A decrease in the classification accuracies is observed. Tables NN5 and NN6 summarize the corresponding results of these tests. The classifier performs better on the FEEDTUM database. The MMI presents more variations in illumination, which is a condition that affects the AAM fitting and, in consequence, the precisions of facial feature extraction, particularly for unseen images.
A template obtained by averaging the AAM shape parameters outperforms, slightly, a template based on the median approach. Thus in the experiments that follow, a template obtained by averaging the shape parameters is used for NN. From these experiments on NN-based expression classification, it has been determined that Euclidean and cosine distances perform almost equally well, but there is a slight advantage for the Euclidean distance from the point of view of a more consistent level of performance. Thus in accordance with certain embodiments, the Euclidean distance is used as a representative of the optimal NN technique.
Support Vector Machines (SVM) ClassifierExperiments on SVM classifiers were also performed to determine the optimal settings for SVM when applied to expression classification. Here we search for the best kernel function, and also for the optimal settings for each function. Two potential kernel functions are investigated: the residual basis function (RBF) and the polynomial function. Best grade for a polynomial kernel and the optimal δ values for an RBF kernel are searched. In the first part of the experiment, seven SVM classifiers of type expression 1/expression 2 are built to distinguish the six universal expressions and the neutral one. The polynomial kernel, with order from 1 to 6 and the RBF kernel with δ from 2−2 to 26 results are investigated. The results for the MMI database are detailed in Table SVM1. The optimal kernel function proved to be RBF, with δ fixed on small values. In certain embodiments, RBF is used based on the accuracy and the consistency of its results. In a second series of experiments, we sought to confirm the previous conclusions, this time using 28 classifiers, as in our earlier NN trials. The results, presented in tables SVM2 and SVM3, confirm that RBF with δ fixed on small values achieves the highest classification rates.
The RBF kernel function with δ fixed on small values gave the best results. Our findings are confirmed also in the literature, where the RBF kernel is the most common function to be used in expression recognition with SVM. The choice is also motivated by theory. RBF has fewer adjustable parameters than any other commonly used kernel and it thus has less numerical complexity.
Now, after training a set of classifiers to discriminate between two facial expressions, we would like to be able to associate a human face with one of the six universal expressions or the neutral one. This process is known as facial expression recognition. We will again compare NN and SVM based techniques, but this time adapted for a multi-class decision framework.
Nearest NeighbourThe first set of experiments was performed on FEEDTUM, MMI and our own database using the Euclidean-NN and the optimal number of 7 shape parameters. Between 20 and 30 pictures were used for training and 150 test images were drawn each from FEEDTUM and MMI with an additional 50 from our own database. Table AAM1 summarizes expression recognition rates when a conventional AAM facial representation is used. The highest recognition rates are obtained on the MMI database. This is explained by the fact that MMI has a better image resolution and less variation in illumination than many other datasets. The poorest results are obtained on databases which contain the strongest pose and illumination variations. These results serve mainly to confirm the relatively poor performance of conventional AAM.
By their nature SVMs are binary classifiers. However, there exist strategies by which SVMs can be adapted to multi-class tasks, such as One-Against-One (1A1), One-Against-All (1AA), Directed Acyclic Graph (DAG), and SVMs in cascade structures. In the following experiments we only exemplify the 1A1 and the cascade structures. The choice is based on their simplicity and their good results (see Wallhoff, F, “The Facial Expressions and Emotions Database Homepage (FEEDTUM)”, www.mmk.ei.tum.de{tilde over (/)}waf/fgnet/feedtum.html. September 2005; and Wallhoff, F., et al. Efficient Recognition of authentic dynamic facial expressions on the FEEDTUM database. in IEEE International Conference on Multimedia and Expo. 9-12 July 2006, each being incorporated by reference). The following experiments use the same test inputs as the NN tests presented in table AAM1.
For the first part of this experiment, we employed the 1A1 approach. Altogether 21 classifiers are applied for each picture in our test-bench. A general score is calculated for each picture. The “recognized” facial expression is considered to be the one which obtains the highest score. As an example, to calculate the score for a “happy face” we apply: happy/fear; happy/sad; happy/surprised; happy/neutral; happy/angry; and happy/disgusted. Every time that a happy face is identified, a counter is incremented that represents its score. Results are summarized in Table AAM2.
In the second part of the experiment, another alternative to extend the binary SVM to a multi-class SVM is investigated. A cascaded structure including the most effective six classifiers of the seven classifying the six universal expressions and the neutral expression are used. The workflow and the corresponding results are summarized in
In this section, we analyzed approaches and corresponding results for expression classification and recognition in still images. Two classifiers, namely SVM and NN, were compared. After performing a series of five experiments, we conclude the following:
-
- Overall, happiness proved to be the most recognizable expression, followed by surprise. These observations can be explained by the fact these particular expressions affect the shape of the facial features more than other expressions, e.g., note the open mouth and raised mouth corners. These expressions are followed in terms of recognisability by anger, sadness, disgust, neutral state, and fear.
- The results prove system behaviour is consistent across subjects of both genders and several races and ages.
- SVM is more effective than NN as a classifier, both with respect to higher classification/recognition rates and better consistency of the results
- Best results for SVM were obtained when using RBF kernel function with fixed on small values.
Best results for NN were obtained when using the Euclidean distance and a template obtained from averaging the shape parameters as a metric for classification. These settings are also to be used in our next series of experiments.
Results and Applications FER Compared Across Different Modeling StrategiesTowards the end of the previous section we presented results for both NN and SVM FER using a conventional AAM model for feature extraction. The results of both approaches were quite disappointing. In this section we present a summary of detailed comparisons across different modeling strategies for both NN and SVM techniques.
The expression classification and recognition methods are tested on the specialized databases FEEDTUM and MMI, while their accuracy against pose variations is tested on pictures collected especially for this experiment. The results obtained from our tests, suggest that the system is robust in dealing with subjects of both genders. Also, it is independent of race and age.
Here the contributions of each of the AAM sub-models to expression analysis are evaluated. The results are compared with the results of a holistic AAM face model and a component-based AAM facial representation. Table NN-Final summarizes the classification results for a mouth model, two-eye model, a conventional AAM face model, and a component-based face AAM when using NN. In the corresponding Table SVM-Final we show corresponding results for the SVM classification scheme.
Comparison and Discussion of FER ResultsThe classification rate average when using a component-based AAM is of 73.02%, while for a classical AAM is of 69.43%. The results confirm the improvement brought by a sub-model representation although these are not quite as impressive as we would have felt from the initial improvements noted during our studies on the feature extraction and the classifiers for individual facial expressions. The SVM is quite good at compensating for the deficiencies of the conventional AAM and has reduced the benefits we would have expected from the use of our improved component-AAM approach.
Our system demonstrates the real-time capability to determine a person's emotions. Such a system suggests a range of applications relevant to computer gaming environments, both single and multi-player.
Adaptation of Game Difficulty Based on User EmotionsMost computer games allow a user to select between a number of difficulty levels. Typically, this selection is made only once, at the beginning of a game and cannot be changed without starting a new instance of the game. A new game workflow is provided in accordance with certain embodiments where the emotions presented by a user via their facial expressions are evaluated in an ongoing basis and, where certain criteria are met, the difficulty level of a game will be adjusted upwards or downwards accordingly. In particular, the system in certain embodiments uses the angry, disgusted and sad face expressions as negative indicators suggesting that the current difficulty level is making the player unhappy. If a user continues in such negative states, then after a couple of minutes, the system can ease the difficulty level or provide some hints to achieving the next gameplay goal, or some other action to lift the spirits of the player, such as for example adjusting the foreground, background and/or characteristics of interactive objects like speed, intensity, potency of potential negative effect on the player, and/or adjusting the tone of audio or text and/or improving the performance of the subject. Contra-wise if the player is showing too much neutral face then it is determined in certain embodiments that the game has become too easy and they are bored. A happy face can be considered as an indicator of the correct level of difficulty as the user is still enjoying the game and presumably succeeding in realizing their objectives. These are just examples of ways to adjust game parameters based on recognized expressions on a player's face.
Adapting Game Workflow from User ResponsesIn addition to the basic determination of difficulty level based on facial expression recognition and/or recognized identity of the person's face and predetermined settings, we have also demonstrated a graded classification of several of these emotions in a real-time embodiment (see, e.g., Ioana Barcivarov, “Advances in the modeling of Facial Subregions and Facial Expression using Active Appearance Modeling Techniques”, PhD Thesis, National University of Ireland Galway, June 2009, incorporated by reference). When combined, this enables not only the classification of these expressions but a measurement of the transition from a mild to a more intense expression. Such a metric provides interesting possibilities for adapting the more detailed workflow and storyline of a game.
In certain further embodiments, we take the use of facial expressions to the next level suggesting that the actual workflow and storyline of the gaming environment can be adapted according to the emotional state of the game player at critical waypoints or challenges along the game path. In conventional gaming, such alterations are only achieved based on the actual outcomes of a challenge in the game environment. Our techniques provide means for the game designer to achieve a richer and more detailed interaction with the players' states of mind before, during and immediately after critical junctures in the gaming storyline.
Real-Time Personalized AvatarsIn a recent computer game, Little Big Planet, the game avatars associated with each player can be endowed with rudimentary facial expressions, e.g., pushing the up-arrow on the gamepad will generate a smiling face; a second press makes the expression even happier and a few more button-presses and your avatar will have a very silly grin throughout the game! Our concept is more challenging. In certain embodiments, dynamic detection of user facial expression is mirrored by their in-game avatar in real-time.
In a companion disclosure we describe an enhanced face model derived from active appearance model (AAM) techniques which employs a differential spatial subspace to provide an enhanced real-time depth map. Employing techniques from advanced AAM face model generation [31] and the information available from an enhanced depth map we can generate a real-time 3D face model. The next step, based on the 3D face model is to generate a 3D avatar that can mimic the face of a user in real time. We are currently exploring various approaches to implement such a system using our real-time stereoscopic imaging system.
While exemplary drawings and specific embodiments of the present invention have been described and illustrated, it is to be understood that that the scope of the present invention is not to be limited to the particular embodiments discussed. Thus, the embodiments shall be regarded as illustrative rather than restrictive, and it should be understood that variations may be made in those embodiments by workers skilled in the arts without departing from the scope of the present invention as set forth in the claims that follow and their structural and functional equivalents.
In addition, in methods that may be performed according to preferred and alternative embodiments and claims herein, the operations have been described in selected typographical sequences. However, the sequences have been selected and so ordered for typographical convenience and are not intended to imply any particular order for performing the operations, unless a particular ordering is expressly indicated as being required or is understood by those skilled in the art as being necessary.
Many references have been cited above herein, and in addition to that which is described as background, the invention summary, brief description of the drawings, the drawings and the abstract, these references are hereby incorporated by reference into the detailed description of the preferred embodiments, as disclosing alternative embodiments of elements or features of the embodiments not otherwise expressly set forth in detail above. In addition, the following are incorporated by reference as disclosing alternative embodiments: U.S. Pat. Nos. 7,565,030, 7,715,597, 7,515,740, and 7,620,218 and US published patent applications nos. 2009/0179998, 2010/0066822, 2008/0013798, 2008/0175481, 2009/0263022, 2009/0238419, 2009/0167893, 2009/0003661, 2009/0196466, 2009/0080713, 2009/0189998, 2009/0185753, 2009/0190803, 2009/0179999, 2007/0201724, 20070201725, 2010/0026833 and 2009/0303342, and U.S. patent applications Nos. 12/374,040, 12/631,711, 61/182,625, 61/221,455 and 60/221,467.
Claims
1. A method of initiating one or more further actions based on recognizing a facial expression and an identity of a face within a digital image, comprising:
- using a processor;
- acquiring a digital image;
- detecting a face within the digital image;
- applying a facial model to the face to identify the face or a facial expression of the face, or both, within the digital image;
- separately extracting one or more features of the face within the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both;
- applying a feature model including multiple shape parameters to said two independent eyes or subsets of features of each of the two eyes, or to said lips or partial lips or one or more other mouth features and one or both eyes, or both;
- determining one or more similarities between the one or more features of the face and a library of reference feature sets;
- identifying a probable facial expression based on the determining of the one or more similarities; and
- initiating one or more further actions based on the identity of the face and the probable facial expression.
2. The method of claim 1, wherein the one or more features comprise one or more geometric features.
3. The method of claim 2, wherein the one or more geometric features comprise one or more shapes, deformations or locations of facial components, or pose variations, or combinations thereof.
4. The method of claim 1, wherein the extracting comprises extracting one or more appearance features.
5. The method of claim 4, wherein the one or more appearance features comprise one or more skin texture changes.
6. The method of claim 5, wherein the one or more skin texture changes comprise one or more furrows, bulges, expression wrinkles, or illumination variations, or blushing, or combinations thereof.
7. The method of claim 1, wherein the library comprises face features of faces captured in multiple pose variations or under multiple directional illumination conditions, or both.
8. The method of claim 1, further comprising categorizing the facial expression as indicating surprise, fear, happiness, anger, neutral, sadness, disgust, or a combination thereof.
9. The method of claim 1, further comprising adapting a game difficulty based on the identified probable facial expression.
10. The method of claim 1, further comprising adapting a game workflow based on the identified probable facial expression.
11. The method of claim 1, further comprising mirroring the identified probable facial expression in an avatar within a game display.
12. The method of claim 1, wherein the extracting separately of the one or more features of the face is performed before the identifying of the face.
13. The method of claim 1, wherein the model comprises an Active Appearance Model (AAM).
14. The method of claim 1, wherein the multiple shape parameters comprise seven or less shape parameters.
15. The method of claim 1, wherein the multiple shape parameters comprise six or seven shape parameters.
16. The method of claim 1, wherein the initiating one or more further actions comprises adjusting the feature model to change the probable facial expression based on the identity of the face.
17. The method of claim 16, wherein the initiating one or more further actions further comprises adjusting the feature model to change the probable facial expression based on the probable facial expression.
18. The method of claim 1, wherein the initiating one or more further actions further comprises adjusting the feature model to change the probable facial expression based on the probable facial expression.
19. A digital image acquisition device configured to recognize a facial expression or an identity of a face, or both, comprising:
- a lens and image sensor for capturing a digital image;
- a processor;
- a face detection module configured to program the processor to detect a face within the digital image;
- a facial recognition module configured to program the processor to apply a facial model to identify the face within the digital image;
- a feature extraction module configured to program the processor to extract one or more features of the face within the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both;
- a feature model application module configured to program the processor to apply a feature model including multiple shape parameters to said two independent eyes or subsets of features of each of the two eyes, or to said lips or partial lips or one or more other mouth features and one or both eyes, or both;
- a classification module configured to program the processor to determine one or more similarities between the one or more features of the face and a library of reference feature sets; and
- a facial expression identification module configured to program the processor to identify a probable facial expression based on the determining of the one or more similarities, and
- wherein the device is further configured to program the processor to initiate one or more further actions based on the identity of the face and the probable facial expression.
20. The device of claim 19, wherein the one or more features comprise one or more geometric features.
21. The device of claim 20, wherein the one or more geometric features comprise one or more shapes, deformations or locations of facial components, or pose variations, or combinations thereof.
22. The device of claim 19, wherein the extracting comprises extracting one or more appearance features.
23. The device of claim 22, wherein the one or more appearance features comprise one or more skin texture changes.
24. The device of claim 23, wherein the one or more skin texture changes comprise one or more furrows, bulges, expression wrinkles, or illumination variations, or blushing, or combinations thereof.
25. The device of claim 19, wherein the library comprises face features of faces captured in multiple pose variations or under multiple directional illumination conditions, or both.
26. The device of claim 19, further comprising a categorization module configured to program the processor to classify the facial expression as indicating surprise, fear, happiness, anger, neutral, sadness, disgust, or a combination thereof.
27. The device of claim 19, further comprising a game adaptation module configured to adjust a game difficulty based on the identified probable facial expression.
28. The device of claim 19, further comprising a game adaptation module configured to program the processor to adjust a game workflow based on the identified probable facial expression.
29. The device of claim 19, further comprising an avatar expression module configured to program the processor to adjust an expression of an avatar in a game display to mirror the identified probable facial expression.
30. The device of claim 19, wherein the extracting separately of the one or more features of the face is performed before the identifying of the face.
31. The device of claim 19, wherein the model comprises an Active Appearance Model (AAM).
32. The device of claim 19, wherein the multiple shape parameters comprise seven or less shape parameters.
33. The device of claim 19, wherein the multiple shape parameters comprise six or seven shape parameters.
34. The device of claim 19, wherein the device is programmed to adjust the feature model to change the probable facial expression based on the identity of the face.
35. The device of claim 34, wherein the device is programmed to adjust the feature model to change the probable facial expression based on the probable facial expression.
36. The device of claim 19, wherein the device is programmed to adjust the feature model to change the probable facial expression based on the probable facial expression.
37. One or more non-transitory computer-readable media having code embedded therein for programming a processor to perform a method of initiating one or more further actions based on recognizing a facial expression and an identity of a face within an acquired digital image, wherein the method comprises:
- detecting a face within the acquired digital image;
- applying a facial model to the face to identify the face or a facial expression of the face, or both, within the digital image;
- separately extracting one or more features of the face within the digital image, including two independent eyes or subsets of features of each of the two eyes, or lips or partial lips or one or more other mouth features and one or both eyes, or both;
- applying a feature model including multiple shape parameters to said two independent eyes or subsets of features of each of the two eyes, or to said lips or partial lips or one or more other mouth features and one or both eyes, or both;
- determining one or more similarities between the one or more features of the face and a library of reference feature sets;
- identifying a probable facial expression based on the determining of the one or more similarities; and
- initiating one or more further actions based on the identity of the face and the probable facial expression.
38. The one or more computer-readable media of claim 37, wherein the one or more features comprise one or more geometric features.
39. The one or more computer-readable media of claim 38, wherein the one or more geometric features comprise one or more shapes, deformations or locations of facial components, or pose variations, or combinations thereof.
40. The one or more computer-readable media of claim 37, wherein the extracting comprises extracting one or more appearance features.
41. The one or more computer-readable media of claim 40, wherein the one or more appearance features comprise one or more skin texture changes.
42. The one or more computer-readable media of claim 41, wherein the one or more skin texture changes comprise one or more furrows, bulges, expression wrinkles, or illumination variations, or blushing, or combinations thereof.
43. The one or more computer-readable media of claim 37, wherein the library comprises face features of faces captured in multiple pose variations or under multiple directional illumination conditions, or both.
44. The one or more computer-readable media of claim 37, wherein the method further comprises categorizing the facial expression as indicating surprise, fear, happiness, anger, neutral, sadness, disgust, or a combination thereof.
45. The one or more computer-readable media of claim 37, wherein the method further comprises adapting a game difficulty based on the identified probable facial expression.
46. The one or more computer-readable media of claim 37, wherein the method further comprises adapting a game workflow based on the identified probable facial expression.
47. The one or more computer-readable media of claim 37, wherein the method further comprises mirroring the identified probable facial expression in an avatar within a game display.
48. The one or more computer-readable media of claim 37, wherein the extracting separately of the one or more features of the face is performed before the identifying of the face.
49. The one or more computer-readable media of claim 37, wherein the model comprises an Active Appearance Model (AAM).
50. The one or more computer-readable media of claim 37, wherein the multiple shape parameters comprise seven or less shape parameters.
51. The one or more computer-readable media of claim 37, wherein the multiple shape parameters comprise six or seven shape parameters.
52. The one or more computer-readable media of claim 37, wherein the initiating one or more further actions comprises adjusting the feature model to change the probable facial expression based on the identity of the face.
53. The one or more computer-readable media of claim 52, wherein the initiating one or more further actions further comprises adjusting the feature model to change the probable facial expression based on the probable facial expression.
54. The one or more computer-readable media of claim 37, wherein the initiating one or more further actions further comprises adjusting the feature model to change the probable facial expression based on the probable facial expression.
Type: Application
Filed: Jul 15, 2013
Publication Date: Nov 14, 2013
Inventors: Ioana Bacivarov (Galway), Peter Corcoran (Claregalway)
Application Number: 13/942,442
International Classification: G06K 9/00 (20060101);