Skip to content

Capuchin AI: A new approach to cognitive studies of wild primates

Primates

Wild Capuchin Monkey

Every day for nearly a decade, researchers in Costa Rica’s Taboga Forest Reserve have followed a community of white-faced capuchin monkeys (Cebus imitator), recording their behavior and tracking their movements. They know the individual monkeys, their life histories, and where each one sits in the group’s social hierarchy. What’s more complicated to measure is how these monkeys think.

Now, researchers at Emory University and the Georgia Institute of Technology have developed and tested CapuchinAI, a portable field station that pairs a webcam and touchscreen with machine learning to help scientists study primate cognition in the wild.

The apparatus, described in a new paper in the American Journal of Primatology, uses AI-powered facial recognition software to detect capuchins in real time and record their responses to a simple learning task. The Leakey Foundation supported the work with a research grant to the first author, Federico Sánchez Vargas, a doctoral student in anthropology at Emory. The paper lays out a practical roadmap toward systematic, scalable evaluation of cognitive abilities in wild primates. The authors included the code and build plans, enabling other researchers to adapt the technology to their own study species and field sites.

During a two-week test with two habituated groups of wild white-faced capuchins at the Taboga Forest Reserve, the system identified individual capuchins with 97% accuracy after training on still images and videos. The capuchins rapidly habituated and learned touchscreen-reward associations, demonstrating that the system provides a scalable field method for cognitive testing, while also mapping individual differences across tasks.

Capuchin monkeys are known for their intelligence, complex social structures and curiosity, making them ideal models for investigating the evolution of cognition.

The primate brain didn’t evolve in a lab

Ongoing development of CapuchinAI aims to address several long-standing challenges of studying cognition in the field. “The primate brain didn’t evolve in a lab, it evolved in complex, competitive environments,” says Marcela Benítez, a Leakey Foundation grantee, assistant professor of anthropology at Emory University, and senior author of the paper. “Yet primate cognition is rarely studied in the wild because the experimental control needed to measure cognition is difficult in unpredictable environments.”

Benítez’s work lies at the intersection of anthropology, psychology, and evolutionary biology. She studies cooperation and other social behaviors in monkeys, and is a co-director of Capuchinos de Taboga, a field research project launched in 2017 in collaboration with the Universidad Nacional Técnica of Costa Rica. She decided to investigate the potential of AI in cognitive research with primates.

“This project builds on the legacy of Frans de Waal,” says Federico Sánchez Vargas. Frans de Waal pioneered studies of animal cognition as director of Emory’s Living Links Center for the Advanced Study of Ape and Human Evolution, while also writing best-selling books that helped popularize the field. He passed away in 2024.

In addition to lab-based behavioral experiments, de Waal “gave us intimate, beautiful portraits of the lives of primates, treating them as individuals,” Sánchez Vargas says. “Our AI method allows us to more deeply understand individuals that we already have data on through field observation. We can now automate cognitive testing of them and quantify the findings. It’s a way of getting into the minds behind the personalities. Studying individuals in their natural environments, where there are tons of variations in their life experiences, lets us learn how environmental influences shaped them.”

Marcela Benítez and Jacob Abernethy in the field in Costa Rica to test the initial version of the facial-recognition software.

YOLO

Co-authors of the paper include Jacob Abernethy, Georgia Tech associate professor of computer science; and Sai Rakshith Potluri, a former Georgia Tech graduate research assistant who is now a software engineer at ExtraHop in Seattle. Abernethy and Potluri used an open-source software known as YOLO (You Only Look Once) to develop an AI facial recognition model to run on a laptop. The researchers trained the model on high-quality GoPro imagery of six wild capuchins interacting with testing platforms in Taboga.

Emory and Georgia Tech undergraduate students performed the labor-intensive task of digitally placing “bounding boxes” to frame the faces of the monkeys in thousands of still images and videos tagged with their identities.

The project “was a lot of work but also a lot of fun,” says Sánchez Vargas, shown enjoying a sunset in the Taboga Forest Reserve.

AI Meets DIY

Sánchez Vargas, took on the next phase of the AI project: figuring out how to integrate the facial-recognition model into a field-friendly, scalable computer interface that could present tasks to interacting capuchins and dispense food rewards.

“The model was great at identifying six monkeys, but there are 100 capuchins at the Costa Rica field site,” he says. “And we didn’t have high quality video of all of these individuals, which is needed to train the model.”

Sánchez Vargas’ undergraduate degrees are in evolutionary biology and psychology. He is not an expert computer coder, but he dove into the challenge, using Python programming language to simplify and change the parameters of the original facial-recognition model.

“I essentially dumbed it down,” he says, so that instead of classifying individual capuchin faces, the system recognized any capuchin monkey — and only capuchins.

The idea, he explains, was to enable the system to trigger a webcam to record video whenever a capuchin approached a computer touchscreen, rapidly generating a larger, more up-to-date dataset of faces from the interacting monkeys. The resulting videos could then be used to keep training the facial-recognition model, expanding its face-recognition repertoire.

A second Python script Sánchez Vargas developed uses a program called “pygame” to facilitate interactive stimuli for use in games or cognitive testing. The researchers created a simple stimulus to habituate the monkeys to the system: a blue-square covering the computer touchscreen that records when a capuchin touches it. At the monkey’s touch, the script signals a motor circuit to dispense a food reward.

The two Python scripts are integrated to run simultaneously on a Raspberry Pi, a tiny computer about half the size of an iPhone. The entire system can run for eight hours on a lightweight battery pack before it needs recharging.

“It was important to us that our technology be both low cost and ecologically friendly,” Sánchez Vargas says.

Sánchez Vargas and Benítez worked until 11 p.m. the night before flying to Costa Rica for field testing, making last-minute tweaks to the box they designed and built.

Build it and they will come

The next challenge was to create a wildlife-proof, weather-proof platform to house all the components of the system.

“We built it in my garage,” Benítez says.

She and Sánchez Vargas bought planks of pine, deck sealant, rubber insulating strips and plastic piping from Home Depot.

“A person helping us asked, ‘What is the project you’re working on?’” Benítez says. “We didn’t go into it; it would have been a bit complicated to explain.”

Emory TechLab helped Sánchez Vargas create a 3D printed, plastic food dispenser.

The two researchers put together a wooden box, only about 20 inches tall, to house the system’s components: a webcam, a computer touchscreen, the Raspberry Pi, the food dispenser and a rotary motor to power the dispenser.

“It was a lot of work but also a lot of fun,” Sánchez Vargas says. “One of the best parts of working in animal cognition is getting creative, trying to put yourself into the mind of the animal you’re studying, so you can develop a good way to engage them in experiments.”

Finally, it was time to test their creation in the field.

In the field with dreams

Upon arriving at the Capuchinos de Taboga research facility in Costa Rica, Sánchez Vargas remembers feeling a few last-minute jitters. Would the prototype function as envisioned?

“We had to get up super early, at four in the morning,” he says, “and drive a long way down this bumpy road to get to the research site.”

The team secured the CapuchinAI box to a platform, loaded its food dispenser with dried slices of forest banana, a food the capuchins already forage at Taboga, provisioned in quantities small enough not to alter their movement patterns, and waited nearby.

“For the first couple of days that we did this, no capuchins visited,” Sánchez Vargas says. “I was beginning to worry.”

The third day, however, a large male capuchin named Trompudo, which means “big snout,” could not resist the scent of banana.

“He climbs on the box and starts slapping the back of it,” Sánchez Vargas recalls. “Finally, he slaps the touchscreen and a banana slice pops out.”

Trompudo gobbled up the food then put his hand on the screen again. Another banana slice popped out.

“It was almost like you could see him realizing, ‘Ah, that’s what you have to do, touch the screen!’” Sánchez Vargas says. “It was amazing to watch an individual learn something so quickly.”

Different learning styles

After Tompudo broke the ice, more monkeys began engaging with CapuchinAI.

“Even I was surprised by their enthusiasm,” Sánchez Vargas says.

The researchers are already noting individual differences within the 16 monkeys who engaged with the CapuchinAI prototype during the pilot phase.

Some capuchins are remarkably fast learners. Others take more time to figure out that they need to touch the screen to get a food reward. Individuals who investigated the box with their lips learned to kiss the screen to get a banana slice. Then there are the late adopters. They hang back and watch their friends interact with the box, seeing how the apparatus works before approaching it.

The box stood up to the occasional aggressive moves of capuchins trying to bust it open.

The facial-recognition software prevents the system from activating when other wildlife approach, but some animals still try to tinker with the box, including coatis. Members of the raccoon family, coatis are notorious for their ability to break into manmade containers and even houses. The box passed the coati test.

The research team is now updating its facial-recognition model, training it on the recorded videos of the 16 capuchins from the pilot phase.

They are developing cognitive experiments for four broad domains of cognition, including tests of individual capuchins’ ability to learn, their level of impulse control, their cognitive flexibility, and their skill at both short- and long-term memory.

If the model recognizes a capuchin it was trained on, it will present a specific cognitive test on the touchscreen, depending on the individual’s “level” in the testing sequence. If the individual is unfamiliar, the model will assign the baseline habituation stimulus — touch the screen to get a reward.

Machine vision allows the model to quickly shift tests from one identified capuchin to another, so multiple individuals can participate. The system is also programmed to limit the number of food rewards an individual can receive during a session, discouraging a dominant capuchin from monopolizing the platform.

A powerful new tool

The researchers can draw from decades of accumulated observational data on the life histories of individuals in the capuchin population of Taboga Forest Reserve. CapuchinAI allows them to learn how variations in the capuchins’ lives may have influenced their cognition.

“We can explore outstanding questions about how the environment, individual experiences and behaviors connect to cognitive abilities,” Benítez says. “Why are some individuals better at some tasks than others? How do different individuals adapt to different situations? How do different cognitive strategies relate to fitness?”

“Frans de Waal said that you cannot study cognition if you don’t understand the animals,” adds Sánchez Vargas. “Our AI methodology doesn’t replace the need for human researchers in the field. It’s essential to have rich, observational datasets gathered by people working on the ground.”

The unusually large brains of primates and their advanced cognition compared to other animals make them key models for the study of how brains and minds evolve and adapt. The researchers believe their AI model is adaptable to other species of wild primates living in the wild for which scientists have recorded individual life histories.

“It’s a powerful new tool in the primatology toolkit,” Benítez says.

In addition to seed funding from AI.Humanities, the project was supported by the National Institute on Drug Abuse of the U.S. National Institutes of Health (R34DA061925), the U.S. National Science Foundation (BCS-2127373), The Leakey Foundation, the Lewis and Clark Fund for Exploration and Field Research; and the Emory Center for Mind, Brain and Culture.

Sánchez Vargas, F., Potluri, S. R., Abernethy, J., & Benítez, M. E. (2026). CapuchinAI 1.0: Development of a Machine Learning-Based Touchscreen Paradigm to Test Cognition in Wild Capuchins. American Journal of Primatology, 88, e70194. https://doi.org/10.1002/ajp.70194

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

I [name], of [city, state ZIP], bequeath the sum of $[ ] or [ ] percent of my estate to L.S.B. Leakey Foundation for Research Related to Man’s Origins, Behavior & Survival, (dba The Leakey Foundation), a nonprofit organization with a business address of 1003B O’Reilly Avenue, San Francisco, CA 94129 and a tax identification number 95-2536475 for its unrestricted use and purpose.

If you have questions, please contact Sharal Camisa Smith sharal at leakeyfoundation.org. 

This will close in 0 seconds