Picture a little boy imitating his father shaving in the mirror or a little girl wobbling proudly in her mother’s high heels.

From infancy, we learn by watching other people, then use those memories to help us predict outcomes and make decisions in the future. Now a UCLA-Caltech study has pinpointed the individual neurons in the brain that support observational learning.

Published this week in Nature Communications, the findings could provide scientists with a better understanding of how the brain goes awry in conditions like learning disorders and social anxiety disorder.

In a secondary finding, the research team also discovered that neurons in the same region fire in response to schadenfreude — the pleasure of seeing someone else make a blunder or lose a game.

“Observational learning is the cornerstone for our ability to change behavior,” said senior author Dr. Itzhak Fried, a professor of neurosurgery and psychiatry at the David Geffen School of Medicine at UCLA and Semel Institute for Neuroscience and Human Behavior. “It’s human nature to want to learn from other people’s mistakes rather than commit your own.”

Said lead author Michael Hill, a former UCLA and California Institute of Technology scientist now based at the Swiss National Science Foundation: “The ability to quickly learn from others can give humans a critical edge over other species. The skill also contributes to someone feeling he or she is a member of one culture versus another.”

Prior to the study, Fried implanted electrodes deep inside the brains of people with epilepsy being treated at UCLA — a standard medical procedure used to identify the origins of epileptic seizures prior to surgery. The researchers used the electrodes to record the activity of individual neurons in the brains of 10 people playing a card game.

Players were instructed to draw a card from one of two decks. One deck included 70 percent of the winning cards, while the other deck contained only 30 percent of the winning cards. Each person took turns choosing cards on his or her own and then watched two other players draw cards from the same decks. By learning from the results of their own and the other players’ choices, the participants quickly zeroed in on the deck containing better cards.

The research team was surprised to discover that individual neurons deep in the frontal lobe reacted as the patient considered whether they or their opponents would pick a winning card. Called the anterior cingulate cortex, the region plays an important role in high-level functions like decision making, reward anticipation, social interaction and emotion.

“The firing rate of individual neurons altered according to what the patient expected to happen,” Hill said. “For example, would their opponents win or lose? The same cells also changed their response after the patient discovered whether their prediction was on target, reflecting their learning process.”

The findings suggest that individual nerve cells in the person’s brain used the details gleaned by observing the other players to calculate which deck to choose a card from next.

“The anterior cingulate cortex acts as the central executive of human decision-making, yet we know little about the neuronal machinery at this level,” said Fried, who is also a professor of neurosurgery at the Sackler Faculty of Medicine at Tel Aviv University.

According to the authors, the findings will help scientists better understand the organization of neurons in the anterior cingulate cortex and exactly what they do.

Fried and Hill propose that active stimulation of the neurons in the anterior cingulate cortex could influence human behavior and have possible benefits for people struggling with learning disabilities or difficulty reading social cues.

The researchers observed that the cells in the same region fired vigorously each time a person won or the other players lost, and decreased their activity whenever the person lost or the other players won.

“While obviously we don’t know precisely what it is that these neurons encode, it’s fascinating to see something like schadenfreude reflected in the activity of individual neurons in the human brain,” Hill said.