Facial Coding in Advertising Research

Measurement
Introduced by
Paul Ekman & Wallace Friesen (FACS); Daniel McDuff & Rana el Kaliouby (automated ad coding)
Year
1978
Type
Facial-expression measurement pipeline for emotional ad response
Family
Marketing / consumer behavior / affective computing

What does it do?

Facial coding measures consumers' emotional responses to advertising by analyzing the movements of their faces while they watch.

It builds on Paul Ekman and Wallace Friesen's Facial Action Coding System (FACS), which describes any expression as a combination of elemental action units, the contractions of individual facial muscles such as the lip-corner pull of a smile. Automated facial coding applies computer-vision models to detect these action units frame by frame and map them to emotions and to continuous valence. McDuff, el Kaliouby, and colleagues reported that automatically coded facial responses to ads were predictive of ad liking and, less strongly, of changes in purchase intent. Aggregated across viewers, the result is a time-resolved emotional response curve over the ad.

The intuition behind the method

Faces leak emotion. Long before a viewer decides whether they liked a commercial, their face may already have smiled at the joke, winced at the awkward moment, or gone flat with boredom, often without the person noticing. Facial coding watches for exactly those movements. Instead of asking 'how did the ad make you feel,' which invites a polite, after-the-fact summary, it reads the response as it happens, expression by expression, and ties each reaction to the precise second of the ad that caused it. The conceptual backbone is that complex expressions can be described as combinations of a small alphabet of muscle actions, so a smile is not a vague impression but a measurable pattern of specific muscle movements. Smiles vary in their muscle configuration and timing, and how far that variation reflects felt enjoyment is debated. Software can now detect these action units in ordinary webcam video at scale. The payoff is an emotional fingerprint of the ad: where the laughs land, whether the brand moment coincides with a positive peak, and whether the overall arc is one people enjoy.

History

Charles Darwin's observations on emotional expression and Paul Ekman's later cross-cultural studies are the early background to the idea that certain facial expressions of emotion are widely recognized. Ekman and Friesen published the Facial Action Coding System in 1978, an anatomically based scheme that decomposes any expression into elemental action units and provides the measurement foundation for the field. For a long time FACS coding was done manually by trained coders, which was accurate but laborious. Later work in computer vision and affective computing, including efforts associated with the MIT Media Lab and its spinout Affectiva, automated action-unit detection from video. McDuff, el Kaliouby, Cohn, and Picard analyzed facial responses to ads collected over the internet and reported that automatically coded responses predicted ad liking and change in purchase intent (published online 2014, in the 2015 journal volume).

When to use it

Use facial coding when the question concerns moment-to-moment emotional response to time-based content, especially video advertising, and you need to know which scenes amuse, surprise, bore, or repel viewers and whether positive emotion lands on the brand. Automated webcam coding suits large, fast, remote samples for ad pre-testing and creative comparison, where self-report would be too coarse or too retrospective to locate the moments that matter. Avoid it for static stimuli that elicit little expression, for attitudes or judgments that do not register on the face, and in contexts where overt expression is suppressed or differs by culture. Because expressions can be polite, suppressed, or ambiguous, pair it with eye-tracking, biometrics, or self-report rather than treating it as a complete account of how an ad works. Before collecting data, make sure you can obtain informed consent for facial video, which is personal and often biometric data.

Limitations and considerations

  • Captures expressed emotion only; suppressed, polite, or felt-but-unexpressed reactions are not measured.
  • Webcam coding is sensitive to lighting, head pose, occlusion, and camera quality, which degrade action-unit detection.
  • Mapping action units to emotion labels is probabilistic, so blended or ambiguous expressions can be misread.
  • Cultural and individual differences in display rules limit the comparability of expression intensity across groups.
  • Reported predictive performance comes from a specific webcam sample and may not transfer to other categories, markets, or tools.
  • Facial video is personal and often biometric data; consent, retention, and anonymization requirements, including jurisdiction-specific rules such as GDPR, constrain how it can be collected and stored.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Grounded in the Facial Action Coding System, which defines expressions through named, anatomically specified action units rather than subjective impressions.
  • Produces a second-by-second emotional response curve that shows where in an ad viewers respond positively or negatively.
  • Webcam-based coding can run on remote respondents without lab equipment, which makes large samples practical.
  • In one large webcam study, automatically coded responses predicted ad liking and, less strongly, changes in purchase intent.

Applications

  • Pre-testing video advertisements to map the emotional arc and locate scenes that delight, bore, or alienate viewers.
  • Comparing creative versions or edits to choose the one that elicits stronger, better-timed positive emotion.
  • Verifying that positive emotional peaks coincide with brand or product appearances to support recall and intent.
  • Testing trailers, social videos, and in-store screen content for emotional engagement at scale via webcams.
  • Combining facial response with eye-tracking and biometrics to relate emotion, attention, and arousal across the ad timeline.

How it works

How it works

1

The pipeline starts by recording video of each respondent's face while they watch the advertisement, with the recording synchronized to the ad's timeline so that any expression can be tied to the moment that triggered it. Current practice often uses ordinary webcams, which allows remote samples, although controlled lab cameras are also used. McDuff and colleagues analyzed facial responses gathered over the internet from webcam video, which indicates that uncontrolled footage can be informative enough for predicting ad outcomes. Accurate synchronization between the video and the stimulus is essential, because the value of the method depends on linking expressions to specific ad events. Facial video is personal and often biometric data, so informed consent that names facial analysis is required before recording (see the pitfalls and in-practice notes).

Formula
F = \{I_1, \dots, I_T\},\quad I_t \in \mathbb{R}^{H\times W\times 3},\ \ \text{synchronized to ad timeline}
2

Each video frame is then analyzed to locate the face, fit a set of facial landmarks, and estimate the intensity of facial action units, the elemental muscle movements defined by Ekman and Friesen's FACS, such as the lip-corner puller, the cheek raiser, the brow lowerer, or the lip-corner depressor. Manual FACS coding has a human expert score these action units; automated systems use computer-vision classifiers trained on FACS-labeled data to output a continuous activation for each action unit per frame. This step grounds the measurement in an anatomically defined vocabulary rather than in subjective impressions, which is the contribution of the Facial Action Coding System.

Formula
\ell_t = \mathrm{Landmark}(I_t),\quad a_{u,t} = g_u(I_t, \ell_t) \in [0,1],\ \ u \in \text{AU set}
3

The per-frame action-unit activations are mapped to emotional categories. FACS-based work associates particular combinations of action units with basic emotions; for example, the cheek raiser combined with the lip-corner puller is commonly linked to enjoyment, and the brow lowerer combined with the lid tightener to anger. The mapping step turns the action-unit vector at each frame into probabilities over a set of emotions, such as joy, surprise, disgust, anger, sadness, fear, and contempt. The softmax form shown is an illustrative, implementation-specific mapping: its weights and bias are fitted by a tool's developer and are not defined by FACS, which supplies only the action-unit definitions. Keeping the link to the underlying action units allows an apparent joy reading to be checked against which units actually fired.

Formula
e_t = \mathrm{softmax}\big(W\, \mathbf{a}_t + b\big),\quad e_t \in \Delta^{K},\ \ K = \text{basic emotions}
4

In addition to discrete emotions, facial coding derives continuous dimensions: valence (how positive or negative the response is) and, in some implementations, arousal (how activated the viewer is). As the formula in this step states, these are weighted combinations of action-unit intensities. The weights, and any normalization that bounds the outputs, are implementation choices and should be reported together with the tool used. Valence gives a single signed measure of moment-to-moment affect that is convenient to track and compare. In the study by McDuff and colleagues, positive expression was the key signal for predicting ad liking, which makes a continuous positive-valence trace a natural summary.

Formula
v_t = \sum_u \beta_u\, a_{u,t},\quad r_t = \sum_u \gamma_u\, a_{u,t},\ \ \beta_u,\gamma_u\ \text{implementation-specific weights (and normalization) reported with the tool}
5

Individual valence and emotion traces are aggregated across the sample to produce a population-level emotional response curve over the duration of the ad. Averaging valence at each time point yields a smooth trajectory whose peaks mark moments that delight viewers and whose troughs mark moments that bore or alienate them, while the timing and number of peaks summarize the ad's emotional arc. This aggregate curve is the central deliverable: it shows creatives not just whether an ad was liked overall but exactly where it succeeded and failed second by second, and whether emotional peaks coincide with key brand or message moments.

Formula
\bar{v}(t) = \tfrac{1}{N}\sum_{n=1}^{N} v_t^{(n)},\quad \text{peak} = \max_t \bar{v}(t),\ \ \text{trace over ad time}
6

Finally, features of the emotional response, such as peak intensity, the dynamics and number of expressions, and whether positive expression coincides with brand appearance, are related to outcomes such as ad liking and change in purchase intent. In McDuff and colleagues' webcam sample of 1,223 viewers and 170 ads, ROC AUC was 0.85 for ad liking and 0.78 for change in purchase intent. Liking was shown by eliciting expressions, particularly positive ones. The same study found that driving purchase intent was more complex than making viewers smile: positive peaks immediately preceded by a brand appearance were more likely to be effective. These figures come from one dataset and may not transfer to other product categories, markets, or coding tools, so predictive performance should be validated on your own data before the model is relied upon.

Formula
\Pr(\text{like}),\ \Pr(\Delta\text{purchase}) = h\big(\text{peaks}, \text{dynamics}, \text{brand-timed expression}\big)

Common pitfalls

  • Equating any smile with genuine enjoyment; smiles vary in muscle configuration and timing, and the link between smile type and felt enjoyment is debated.
  • Reporting overall valence without the time course, hiding whether positive emotion coincided with the brand or the message.
  • Trusting emotion labels from low-quality, poorly lit, or off-angle video where action-unit detection is unreliable.
  • Treating facial coding as a full account of ad effectiveness, neglecting attention, comprehension, and persuasion that the face does not show.
  • Recording faces without informed consent that explicitly names facial analysis, or without a plan for data retention and anonymization.

Frequently asked questions

What is an action unit and why build emotion measurement on it?

An action unit is the movement produced by an individual facial muscle or a small group of muscles, such as the lip-corner puller that pulls the mouth into a smile or the brow lowerer that knits the eyebrows. Ekman and Friesen's Facial Action Coding System catalogs these units so that any expression can be described as a combination of them. Building emotion measurement on action units makes it objective and reproducible: instead of an analyst guessing that someone looks happy, the method records which specific muscles moved and how intensely. Emotion labels are then derived from action-unit configurations, which keeps the higher-level interpretation anchored to verifiable physical movements and allows ambiguous readings to be checked against the underlying units.

Can automated facial coding really predict whether an ad works?

Within limits, yes. McDuff and colleagues analyzed over 12,000 facial responses from 1,223 people to 170 ads and found that ad liking could be predicted from webcam facial responses (ROC AUC 0.85) and a change in purchase intent less well (ROC AUC 0.78). They also found that simply making people smile is not enough for purchase intent: positive peaks immediately preceded by a brand appearance were more likely to be effective. So facial coding predicts outcomes best when it captures not just whether people react but when, relative to brand and message moments. These results come from one dataset and may not transfer to other categories, markets, or tools, so validate performance on your own data. It is a meaningful predictor that complements other measures, not a guarantee.

Does a smile during an ad always mean the viewer liked it?

No. Smiles can be polite, social, ironic, or nervous, and they can occur during an awkward moment rather than an enjoyable one. Smiles vary in their muscle configuration and timing, and the link between smile type and felt enjoyment is debated. A coding scheme such as FACS separates the individual muscle movements involved, so analysts can look at the full action-unit pattern, the timing relative to the content, and the context, rather than reading any upturned mouth, or any single frame, as endorsement. This is why facial coding reports the time course and the underlying units and is often paired with other measures.

Related methods

Sources

  1. Ekman, P., & Friesen, W. V. (1978). Facial Action Coding System: A Technique for the Measurement of Facial Movement. Palo Alto, CA: Consulting Psychologists Press.

    ISBN: 9780931835018
  2. McDuff, D., El Kaliouby, R., Cohn, J. F., & Picard, R. W. (2015). Predicting Ad Liking and Purchase Intent: Large-Scale Analysis of Facial Responses to Ads. IEEE Transactions on Affective Computing, 6(3), 223-235.

    Open DOI reference