When you call your dog, does she really understand you — or just recognize your voice? Researchers at Harvard University are getting closer to an answer, and their findings might change how we think about our four-legged friends.

Scientists led by Mélina Cordeau used a noninvasive 3D brain imaging technique to scan 108 dogs and see exactly what happens in their brains when they communicate with humans. What they found suggests that both where a dog comes from — its breed and ancestry — and how it has been trained work together to shape its ability to understand us.

The research revealed that dogs who were selectively bred over many generations to live and work closely with humans developed different brain pathways for processing voices and words compared with dogs from more ancient lineages. In other words, centuries of breeding dogs to be our companions appears to have physically changed the wiring in their brains.

But genes alone do not tell the whole story. When the team compared trained service dogs with dogs of similar breeding backgrounds, they discovered that training also changed the brain — specifically, the strength of pathways involved in interpreting human cues and carrying out responses. Trained dogs showed stronger connections between brain areas tied to responsiveness, suggesting that experience shapes the brain just as genetics do.

Perhaps most interestingly, the researchers found they could actually predict how trainable a dog would be by looking at the connections between different regions of its brain. This means there may be biological signs that tell us which dogs will excel at learning new commands or tasks.

Cordeau said the findings could eventually help improve how people interact with and train dogs, including making assistance-dog programs more effective. "By identifying how dogs process human communication, and how breeding and training shape these abilities, we may eventually be able to refine training approaches," she explained.

The study, published in the journal JNeurosci, adds to a growing understanding that dogs are not simply trained — they are shaped by a combination of ancestry and experience. For the estimated 65 million dog owners in the United States alone, the research offers a new appreciation for just how complex the bond between humans and dogs truly is.