Thoughtful faces: inferring internal states across species using facial features

Alejandro Tlaie, Muad Y Abd El Hay, Berkutay Mert, Robert T. Taylor, Pierre-Antoine Ferracci, Katharine A. Shapcott, Mina Glukhova, Jonathan W. Pillow, Martha N. Havenith, Marieke L. SchölvinckResearch Square 2024

Abstract

Animal behaviour is shaped to a large degree by internal cognitive states, but it is unknown whether these states are similar across species. To address this question, we developed a virtual reality setup in which mice and macaques engage in the same naturalistic visual foraging task. We exploited the richness of a wide range of facial features extracted from video recordings during the task, to train a Markov-Switching Linear Regression (MSLR). By doing so, we identified, on a single-trial basis, a set of internal states that reliably predicted when the animals were going to react to the presented stimuli. Even though the model was trained purely on reaction times, it could also predict task outcome, supporting the behavioural relevance of the inferred states. The identified states were comparable between mice and monkeys. Furthermore, each state corresponded to a characteristic pattern of facial features, highlighting the importance of facial expressions as manifestations of internal cognitive states across species.

Introduction

In neuroscience, animal behavior is often modeled as a direct input-output system. However, the same stimulus can trigger vastly different responses depending on an animal's internal cognitive state—such as boredom, hunger, or intense focus. These states are "hidden" and difficult to measure directly. Traditionally, researchers have relied on highly restrictive tasks that do not translate well across species, making it difficult to determine if a state like "attention" in a mouse is comparable to that in a primate. This study addresses this gap by using naturalistic behavior and facial expressions as a universal readout of the internal mind.

Methods

Experimental Setup

The researchers developed a "species-neutral" foraging task within a virtual reality (VR) dome. Macaques (using trackballs) and mice (on spherical treadmills) navigated a virtual meadow to approach target leaf shapes (e.g., maple) while avoiding distractors (e.g., birch).

Computational Pipeline

To capture internal states, the team implemented a multi-step pipeline:

  1. Feature Extraction: Using DeepLabCut, the team tracked fine-grained facial movements—including ears, eyes, nose, and whiskers—from high-speed video footage.
  2. Pre-stimulus Analysis: The model analyzed facial features in the 250ms window before a stimulus appeared, ensuring it captured the animal's internal state rather than a reactive motor response.
  3. Markov-Switching Linear Regression (MSLR): This core model assumes the animal switches between several hidden states. In each state, facial features relate to reaction times (RT) differently, allowing the model to identify when an animal transitions between different cognitive modes.
Experimental setup and MSLR modeling pipeline for inferring hidden states from facial features.

Key Results

High Predictive Accuracy and Outcome Decoding

The MSLR model achieved a cross-validated $R^2$ of approximately 0.8 for both species, indicating that facial features explain 80% of the variance in reaction times when accounting for hidden states. Remarkably, although the model was trained only on reaction times, the inferred hidden states automatically predicted task accuracy (hit vs. miss) significantly better than chance. This confirms that these states represent genuine cognitive processing rather than just motor noise.

Species Convergence and State Stability

Despite millions of years of evolutionary divergence, mice and monkeys shared a similar "state space." Both species exhibited a high-performance "attentive" state, a fast but error-prone "impulsive" state, and a slow "disengaged" state. The optimal model identified 4 distinct states for monkeys and 3 for mice.

Transition probability matrices showing state dynamics and stability for macaques (4 states) and mice (3 states).

Analysis of state transitions revealed that macaques tended to remain in a single cognitive state for longer periods (higher "dwell time"), whereas mice flipped between states more frequently. This suggests that primates may possess more stable "attentional sets" compared to the more volatile behavioral dynamics of rodents.

Discussion

This research demonstrates that facial expressions serve as a powerful, holistic manifestation of internal cognitive states across species. While single markers like pupil size are useful, a combined view of the face is significantly more predictive of an animal's internal state.

Future work aims to link these "thoughtful faces" to specific neural activity, such as firing patterns in the prefrontal cortex or the locus coeruleus. Additionally, moving from trial-by-trial analysis to continuous state tracking could reveal the exact moments an animal "zones out" or "locks in" during a decision-making process. Expanding this methodology to more species may eventually determine if these facial readouts are a universal trait of all mammals.

Summary updated

BibTeX
@inproceedings{tlaie2024thoughtful,
  author = {Alejandro Tlaie and Muad Y Abd El Hay and Berkutay Mert and Robert T. Taylor and Pierre-Antoine Ferracci and Katharine A. Shapcott and Mina Glukhova and Jonathan W. Pillow and Martha N. Havenith and Marieke L. Schölvinck},
  title = {{Thoughtful faces: inferring internal states across species using facial features}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-4150179/v1},
}
Figure