Inferring internal states across mice and monkeys 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ölvinck

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, here we develop a virtual reality setup in which male mice and macaques engage in the same naturalistic visual foraging task. We exploit 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 identify, on a single-trial basis, a set of internal states that reliably predicts when the animals are going to react to the presented stimuli. Even though the model is trained purely on reaction times, it can also predict task outcome, supporting the behavioural relevance of the inferred states. The relationship of the identified states to task performance is comparable between mice and monkeys. Furthermore, each state corresponds to a characteristic pattern of facial features that partially overlaps between species, highlighting the importance of facial expressions as manifestations of internal cognitive states across species.

Introduction

In neuroscience, internal states—such as boredom, intense focus, or hunger—drastically change how an animal reacts to the world. However, these states are "hidden" and cannot be observed directly. Historically, researchers have used reductionist tasks to study behavior, but these tasks are often so species-specific that comparing the internal lives of different animals is nearly impossible. This research addresses whether "attention" or "engagement" in a mouse is fundamentally the same as in a monkey by using a data-driven approach to measure internal states through facial expressions.

Experimental Framework and Methodology

To create a directly comparable environment, the researchers developed a shared Virtual Reality (VR) pipeline. Both mice and macaques were placed in a spherical dome VR to perform a naturalistic foraging task: navigating toward a target leaf shape while avoiding a distractor.

Experimental setup and modeling pipeline. (A) VR setup for monkeys and mice. (B-C) Facial feature extraction via DeepLabCut (DLC). (D) MSLR model outputs predicting reaction times and state probabilities.

High-resolution facial features—including movements of the ears, eyebrows, nose, and pupils—were tracked using DeepLabCut. These features were then fed into a Markov-Switching Linear Regression (MSLR) model. Unlike standard regression, MSLR assumes the animal "switches" between different internal regimes or states. Crucially, the model analyzed facial features only in the 250ms window before stimuli appeared, ensuring it captured the animal's internal state rather than a reflexive reaction to visual icons.

Modeling Performance and State Identification

The study utilized a large-scale dataset involving over 20,000 trials for monkeys and 12,000 for mice. The MSLR model demonstrated high predictive power, achieving a cross-validated $R^2 \approx 0.8$ for both species. This indicates that facial features alone can explain approximately 80% of the variance in future reaction times (RT).

Model performance across internal states. Cross-validated R² values for monkeys (left) and mice (right) as a function of the number of internal states. Arrows indicate the selected number of states (4 for monkeys, 3 for mice).

By analyzing the model's performance as a function of the number of internal states, the researchers identified four distinct states for monkeys and three for mice as the optimal configurations for capturing behavioral variance.

Key Insights and Cross-Species Commonalities

Several critical findings emerged from this holistic facial mapping:

  • Emergent Behavioral Relevance: Although the model was trained only to predict RT, the discovered "hidden states" automatically sorted trials by outcome (Hits vs. Misses). This suggests these states represent genuine cognitive modes, such as high attention or disengagement.
  • Evolutionary Conservation: Both species exhibited a "globally attentive" state characterized by fast RT and high accuracy, and a "distracted/drowsy" state with slow RT and high miss rates. The constellation of these states was remarkably similar across both mammals.
  • Temporal Dynamics: While the states themselves were similar, their dynamics differed. Mice transitioned between internal states much more frequently than monkeys, who remained in stable, focused states for longer durations. It remains unclear if this stability is a biological trait of primates or a result of the monkeys' higher level of task expertise.

Conclusion

This work demonstrates that the face serves as a reliable window into the internal cognitive regimes of both rodents and primates. By proving that "thoughtful faces" are an evolutionarily conserved trait, this research opens the door for more naturalistic neuroscience that moves beyond restrictive, species-specific hardware and toward a unified understanding of animal cognition.

Summary updated

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, here we develop a virtual reality setup in which male mice and macaques engage in the same naturalistic visual foraging task. We exploit 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 identify, on a singletrial basis, a set of internal states that reliably predicts when the animals are going to react to the presented stimuli. Even though the model is trained purely on reaction times, it can also predict task outcome, supporting the behavioural relevance of the inferred states. The relationship of the identified states to task performance is comparable between mice and monkeys. Furthermore, each state corresponds to a characteristic pattern of facial features that partially overlaps between species, highlighting the importance of facial expressions as manifestations of internal cognitive states across species.
BibTeX
@inproceedings{tlaie2025inferring,
  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 = {{Inferring internal states across mice and monkeys using facial features}},
  booktitle = {Nature Communications},
  year = {2025},
  doi = {10.1038/s41467-025-60296-1},
}
Figure