The present invention is in the image analysis field. The invention particularly concerns performing face localization based on a conditional density propagation (CONDENSATION) framework.
Face localization detects the locations of predefined detailed facial features and outlines in images. It plays important roles in human face related applications. For example, after faces of different size, shape, pose and expression are aligned, face variations caused by different factors, such as human identity, facial expressions, illumination, etc., can be extracted independently for face recognition, facial expression analysis, and face modeling and synthesis. Face localization is also employed in visual face tracking and model based video coding, in which the face model needs to be aligned with the first video frame so that facial geometry and head pose can be customized. Face localization also plays important roles, for example, in computer vision applications for human-machine interaction. It provides two-dimensional (2D) facial geometry information, which allows face recognition to align faces of different size, shape, pose and expression during training and evaluation stages, so that face variations caused by human identity is modeled better and higher recognition rate can be achieved.
In recent years, some have proposed techniques to do face localization automatically. In other words, the locations of predefined facial features and outlines are automatically detected and returned in an image in which the upright frontal view of a human face in arbitrary scene, under arbitrary illumination, and with typical facial expressions is presented. In one known technique, facial features are extracted using deformable template matching, which models facial features and outlines as parametrized mathematical model (e.g., piecewise parabolic/quadratic template) and tries to minimize some energy function that defines the fitness between the model and the facial outlines in the image with respect to the model parameters. In another known technique, shape statistic model is proposed which models the spatial arrangement of facial features statistically, and is used to localize the facial features from a consternation of facial feature candidates calculated using multi-orientation, multi-scale Gaussian derivative filters.
The present invention is directed to a method for performing shape localization in an image. The method includes deriving a model shape, which is defined by a set of landmarks, from a database of a plurality of sample shapes. A texture likelihood model of present sub-patches of the set of landmarks defining the model shape in the image is derived, and a new set of landmarks that approximates a true location of features of the shape based on a sample proposal model of the present sub-patches at the set of landmarks, is then proposed. A CONDENSATION algorithm is used to derive the texture likelihood model and the proposed new set of landmarks.
Generally, face localization can be formulated in a Bayesian framework as shown in
In the present invention, a hierarchical face localization algorithm is proposed based on a conditional density propagation (CONDENSATION) approach. The face outline, i.e., the a prior distribution for intrinsic model parameters, is modeled with Active Shape Model (ASM), with local texture likelihood model (p(I|m)) at each landmark defining features of a face outline modeled with Mixture of Gaussian. By formulating the face localization problem into a Maximum a posterior Probability (MAP) problem, a CONDENSATION framework is employed to solve this problem, as shown in
As the face localization problem is formulated as a MAP problem, the CONDENSATION algorithm, which is known to those skilled in the art, provides a tool to approximate the unknown distribution in high dimensional space based on a factored random-sampling approach. The idea of factored sampling is that the a posterior probabilistic distribution or posterior p(m|I) can be modeled by a set of N samples {s(n)} drawn from the a prior probabilistic distribution, or prior p(m) with corresponding weight π(n)=p(I|m=s(n)) evaluated from the local texture likelihood distribution p(I|m). The expectation of function h(X) with respect to the posterior p(m|i) can be approximated as
However, this approach may not be practical as many samples drawn from the model prior p(m) might be wasted if corresponding π(k) is too small and does not make contribution to the computation. In one embodiment of the invention, this problem is reformulated in a probabilistic framework of CONDENSATION propagation so that all samples have significant observation probability, and thus sampling efficiency is improved. Denoting mi to be the state vector at iteration step i, and Ii to be the observation at iteration i,
p(mi|Ii)=p(mi|Ii,Ii-l)˜p(Ii|mi)p(mi|Ii-l)
is obtained.
Therefore, starting from the initial guess of N samples of models, a new set of random samples {mi(k),k=1, . . . ,N} is drawn from the conditional a prior p(mi|Ii-l), and weighted by their measurements πi(k)=p(Ii|m=mi(k)). This iterates until convergence condition satisfies. Accordingly, to make CONDENSATION framework 12 complete for the task of face localization, the a prior model p(m) representing the model face shape 14 or geometry, the local texture likelihood model p(Ii/mi) 16 representing the features of a face shape such as the eyes, nose, mouth, etc., and a conditional a prior model p(mi/Ii-1) representing the sample proposal model, are required (see
Turning now to
By taking the first k principal components, (e.g., k=15 to preserve 85% variations), a face shape can be modeled as
S={overscore (S)}+Uw, (2)
where {overscore (S)} is the mean shape of the face, and U2K×k is the eigenvector matrix, and wk×l is the parameter vector that define the face shape model 14. The a prior model probability p(m) can be obtained by learning a mixture of Gaussian model after projecting the face vectors in the k dimensional ASM eigenspace.
The shape vector S can also be rearranged into another form as
where {circumflex over ((˜)} denotes the rearrangement operation of shape vector. As the face in image may be subject to scaling, rotation and translation, the relation can be denoted as
where s is scaling factor, θ is the angle of rotation, and
is the translation of the face in the image. Thus, the landmark set of a face in image can be represented as a compact parameter model m=(s, θ, T, w). The goal of face localization thus becomes to recover the model parameter m given a face image.
Given a sample in the model parameter space m=mi at iteration i, the shape vector of the landmark set in image can be retrieved by inverse transformation of equations (2) and (3) (block 20). A sub-patch of each landmark (i.e., a small area surrounding each landmark) in the image is then cropped or cut to a specified size. Letting Γj denote the sub-patch of landmark j, then the local texture likelihood model is defined as
supposing the texture of each landmark is independent. To learn the texture likelihood p(θj) of landmark i from training images, i.e., the sample face shapes 26 from the database 28, the sub-patch of landmark i in the training images is collected, and projected into low dimensional texture eigenspace. Mixture of Gaussian model is learned from these sub-patch projections to represent the distribution.
The sample proposal model p(mi|Ii-l) enables the samples {mi} in the model parameter space to migrate toward regions of higher likelihood distribution according to their evaluation of the local observation of facial features in image (block 22). The collection of local observation of facial features image at iteration i can be represented as Ii={Γ1(i),Γ2(i), . . . ,ΓK(i)}. By regarding the shape model as landmark set {p1, p2, . . . , pK} and the proposal model for landmark j can be represented as p(pj(i)|Γj(i)), then
is obtained by assuming independence of the proposal model of each landmark.
The proposal model of each landmark is formulated as
where Γ(x,y) means a subpatch centered at (x, y).
According to Bayesian rule,
p(pj=(x,y)|Γ(x,y))˜p(Γ(x,y)|pj=(x,y))p(pj=(x,y))=p(Γ(x,y)j)p(pj=(x,y)),
where p(Γ(x,y)j) is the texture likelihood of landmark j at location (x, y), and p(pj=(x, y)) can be simply modeled as a uniform distribution in the image.
After the new model sample is. proposed as {p1(i), p2(i), . . . ,pK(i)}, the derivative is represented as
to convert from a landmark space to a model parameter space (block 24).
By supposing the rotation angle is very small, the following approximation is obtained
By taking derivative of Xi Yi with respect to θ, T, and w′, we have the following equation
The above equation (4) enables ΔS(i) to be converted into derivates in parameter space Δm(i)=(Δs(i),Δθ(i),ΔT(i),Δw(i)), and m(i+l)=m(i)+aΔm(i) for some 0 <a <=1.
Turning now to
While specific embodiments of the present invention have been shown and described, it should be understood that other modifications, substitutions and alternatives are apparent to one of ordinary skill in the art. Such modifications, substitutions and alternatives can be made without departing from the spirit and scope of the invention, which should be determined from the appended claims.