AFFECTIVE COMPUTING
Face and Head Action Detection
Detection of face and head actions is done by locating feature points on the face and tracking them across consecutive frames in a video.
The concept of tracking feature points is based on the Facial Action Coding System published in 1978 by Paul Ekman, in which the contraction or relaxation of one or a group of muscles is described as an Action Unit. There are over 40 defined Action Units (AU), such as (AU6) cheek raiser and (AU12) lip corner puller, which are two units responsible for a smiling gesture.
Facial feature points being tracked are shown in the diagram. They are identified by comparing the initial frame of the video to a face template. The displacement of feature points from the initial position is recognized as motion or geometric changes in the system.
A change in colour (luminance) can also be recognized, for example, when whiter teeth is shown between red lips.
Example of Facial Action Detection from Feature Points
-- Detecting Mouth Actions:
The mouth is represented as polygon formed of 8 feature points (in blue), surrounding an anchor point (in yellow).
The polar angles of the feature points are tracked, with respect to the anchor point; and the displacement from the anchor point measured as a ratio to the initial position.
Lip Pull Lip Pucker
Lip pull and lip pucker actions are determined by the magnitude and direction of the change in displacement of the lip corners.
Lip pull:
Displacement between lip corners increase above a threshold value
Lip pucker:
Displacement between lip corners decreases above a threshold value
Lips Part Mouth Stretch Jaw Drop
A colour filter applied shows aperture of mouth as red, and teeth as green.
Lips part:
A small ratio of aperture to the overall mouth size, and lack of teeth
Mouth Stretch:
A small ratio of aperture to the overall mouth size, show of teeth
Jaws Drop:
A large ratio of aperture to the overall mouth size
Head Actions:
Out-of-plane motion of the head can skew the tracking of feature points, hence anchor points are used in an attempt to compensate.
An anchor point remains unskewed to head rotations along the three axes, and is normalised against the distance between the two eye corners to account for scale variations.
The diagram shows the inital position of the anchor point. It is between the two mouth corners when the mouth is at rest, and is at a distance d from the line joining the two inner eye corners l. In subsequent frames the point is measured at distance d from l, after accounting for head turns.
This model also allows the detection of head actions as follows:
Head action Detection
Head pitch (up or down) Vertical displacement of the nose tip
Head yaw (turn) Ratio of left to right eye widths
Head roll (tilt) Slope of the two inner eye corners
* All diagrams on this page (El Kaliouby & Robinson, 2004, 2005)
![](https://static.wixstatic.com/media/219881_bb48fce91a6344398a20e2365207625b.png/v1/fill/w_293,h_289,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/219881_bb48fce91a6344398a20e2365207625b.png)
![](https://static.wixstatic.com/media/219881_4380eb0596e34a398a8150ece427f488.png/v1/fill/w_127,h_71,al_c,lg_1,q_85,enc_avif,quality_auto/219881_4380eb0596e34a398a8150ece427f488.png)
![](https://static.wixstatic.com/media/219881_d98eb26a05d24fa2bb98a8d20f80448d.png/v1/fill/w_127,h_65,al_c,lg_1,q_85,enc_avif,quality_auto/219881_d98eb26a05d24fa2bb98a8d20f80448d.png)
![](https://static.wixstatic.com/media/219881_d7e6c672e92f46cea44b776facb31165.png/v1/fill/w_125,h_79,al_c,lg_1,q_85,enc_avif,quality_auto/219881_d7e6c672e92f46cea44b776facb31165.png)
![](https://static.wixstatic.com/media/219881_ba9892598f2043839a387947c779faff.png/v1/fill/w_126,h_88,al_c,lg_1,q_85,enc_avif,quality_auto/219881_ba9892598f2043839a387947c779faff.png)
![](https://static.wixstatic.com/media/219881_3a7ae5ea0af3483e925753255aedecca.png/v1/fill/w_127,h_94,al_c,lg_1,q_85,enc_avif,quality_auto/219881_3a7ae5ea0af3483e925753255aedecca.png)
![](https://static.wixstatic.com/media/219881_823670b26bd4478bbb819512d56a2cbe.png/v1/fill/w_194,h_223,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/219881_823670b26bd4478bbb819512d56a2cbe.png)
![](https://static.wixstatic.com/media/219881_af85b81b21b04ffaafe7f5a75d7df298.png/v1/fill/w_193,h_210,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/219881_af85b81b21b04ffaafe7f5a75d7df298.png)