Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-06T15:21:52.480Z Has data issue: false hasContentIssue false

Using automated computer vision and machine learning to code facial expressions of affect and arousal: Implications for emotion dysregulation research

Published online by Cambridge University Press:  28 March 2019

Nathaniel Haines
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Ziv Bell
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Sheila Crowell
Affiliation:
Department of Psychology, University of Utah, Salt Lake City, UT, USA Department of Psychiatry, University of Utah, Salt Lake City, UT, USA
Hunter Hahn
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Dana Kamara
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Heather McDonough-Caplan
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Tiffany Shader
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
Theodore P. Beauchaine*
Affiliation:
Department of Psychology, Ohio State University, Columbus, OH, USA
*
Author for Correspondence: Theodore P. Beauchaine, Department of Psychology, Ohio State University, 1835 Neil Avenue, Columbus, OH 43210; Email: beauchaine.1@osu.edu.
Rights & Permissions [Opens in a new window]

Abstract

As early as infancy, caregivers’ facial expressions shape children's behaviors, help them regulate their emotions, and encourage or dissuade their interpersonal agency. In childhood and adolescence, proficiencies in producing and decoding facial expressions promote social competence, whereas deficiencies characterize several forms of psychopathology. To date, however, studying facial expressions has been hampered by the labor-intensive, time-consuming nature of human coding. We describe a partial solution: automated facial expression coding (AFEC), which combines computer vision and machine learning to code facial expressions in real time. Although AFEC cannot capture the full complexity of human emotion, it codes positive affect, negative affect, and arousal—core Research Domain Criteria constructs—as accurately as humans, and it characterizes emotion dysregulation with greater specificity than other objective measures such as autonomic responding. We provide an example in which we use AFEC to evaluate emotion dynamics in mother–daughter dyads engaged in conflict. Among other findings, AFEC (a) shows convergent validity with a validated human coding scheme, (b) distinguishes among risk groups, and (c) detects developmental increases in positive dyadic affect correspondence as teen daughters age. Although more research is needed to realize the full potential of AFEC, findings demonstrate its current utility in research on emotion dysregulation.

Information

Type
Special Issue Articles
Copyright
Copyright © Cambridge University Press 2019 
Figure 0

Figure 1. Steps in AFEC modeling. For each video frame (or image), AFEC uses computer-vision technology to detect a face, which is then preprocessed (cropped). Computer-vision then identifies a set of features on the preprocessed face (here represented by an Active Appearance Model that matches a statistical representation of a face to the detected face), which are tabulated and entered into a mathematical model. This model is developed to detect some aspect of emotion from a previously coded set of data (e.g., presence of a discrete emotion, valence intensity, FACS AUs, etc.), and outputs these emotion ratings based on extracted facial features of the new data. Ratings are output for each frame, resulting in a rich time series of emotional expressions. Of note, AFEC models can perform these steps in real time. In some cases, there can be a two-step mathematical model (e.g., FACS detection and then emotion detection given FACS AUs).

Figure 1

Figure 2. Relative importance weights for the 20 AUs used by the Random Forest model to generate ratings of positive and negative affect intensity. Relative importance is computed based on the change in standard deviation attributable to each given AU while integrating over all other AUs, which indicates the AUs that are most predictive of changes in positive/negative affect intensity. Images representing the five most important AUs are superimposed on each subplot. Image adapted with permission from Haines et al. (2019).

Figure 2

Table 1. Correlations between AFEC and FPPC ratings

Figure 3

Figure 3. Heterogeneity of raw facial expression correspondence (correlations) among dyads. (a) Some dyads showed high correspondence of only positive affect, (b) some showed no correspondence of either positive or negative affect, (c) some showed high correspondence of both positive and negative affect, and (d) some showed positive correspondence of positive affect but negative correspondence of negative affect. Intensity ratings range from 1 (no emotion) to 7 (extreme emotion) within each 10-s interval across the 10-min discussion.

Figure 4

Table 2. Summary of fixed slope and centered intercept effects from multilevel models

Figure 5

Figure 4. Sample-wide increase in dyadic correspondence of facial expressions of positive affect from ages 13 to 18 years (daughters).