PHILADELPHIA — None of us has the brain we were born with. Brains grow and adapt. This process, called neuroplasticity, doesn’t end when you step out of the classroom. Even habits — reaching for cookies when stressed out, keeping your head down during staff meetings — cut “trails” in the brain throughout life that can be hard to overcome.

When it comes to drug habits, the effect on the brain can be dramatic.

“These are things we can see under the microscope,” said Ellen Unterwald, director of the Center for Substance Abuse Research at Temple University. “There are actually structural changes to neurons in different brain regions, and those are different for different drugs of abuse. They each have their own signature,” she said.

As the national opioid crisis continues, neuroscientists like Unterwald are beginning to peel back the mystery of opioid addiction in the brain. Their findings are shedding light on how best to deal with addiction, and are even helping doctors spot people who may be more likely to get hooked in the first place.

No one — even those who have never taken a prescription painkiller or used heroin — is truly opioid-free. Fact is, opioids occur naturally. Experiences like runner’s high and the beneficial effects of acupuncture depend on opioids made in the brain, such as endorphins, that help us enjoy good feelings, said Unterwald.

Even looking at tasty food can activate opioid-linked reward circuits in the brain, according to new imaging research out of Finland. A new Penn State study used brain imaging to track children’s responsiveness to food rewards, and how this might predict obesity.

Subtle differences in how individual brains sense and respond to everyday pleasure may help explain a range of behaviors, from overeating to the likelihood of opioid abuse.

“Certainly more than half the risk (for opioid abuse) is genetic,” said Henry Kranzler, director of the Center for the Studies of Addiction at the University of Pennsylvania. “Risk is not about character. It’s about genetics and environmental exposure.”

Substance-abuse disorders are “genetically complex,” said Kranzler, who has published hundreds of scientific papers on the topic over more than 30 years of research. “There are many different genes — we’re not even sure how many — that contribute to risk.”

Last year, Kranzler and colleagues identified a gene variant in African American children associated with a lower sensitivity to prescription pain medication. The team is now looking to see if the same genetic pattern could explain how older African Americans respond to prescription opioids after hip or knee replacement. The long-term goal of this research, said Kranzler, is to customize prescription pain management, making it both more effective and less risky.

The feel-good effects of opioids are well understood. “The reward pathway that’s stimulated by things that we find pleasurable — eating, social interaction, sex — causes dopamine to be released. Opioids act at the beginning of that pathway,” says Unterwald.

But opioid drugs like morphine do much more than stimulate pleasure. Many opioids also target the amygdala, an almond-shaped bulb buried deep in the brain where emotions and motivation are concocted. This drives up drug cravings.

The effects of opioids are now being discovered throughout the brain. In a study published in June, a team of researchers from Temple University, the Max Planck Institute of Biochemistry in Germany, and the Medical University of Innsbruck in Austria used sensitive instruments to detect drug-induced molecular changes in the brains of rats.

“We found more than 1,000 changes after exposure to an opioid-like drug, showing a global effect of these drugs on signaling in the brain,” Jeffrey Liu, the lead author of the study, said in a statement.

When hit by high doses of opioids every day for several months, tiny structures throughout the brain called dendritic spines begin to disappear, said Wade Berrettini, director of the Center for Neurobiology and Behavior at Penn. These specialized structures allow neurons to communicate with one another. Losing the structures leads to “trouble reasoning and thinking through problems,” he said.

As addiction progresses, the brain’s reward system gets pushed further and further off balance. Nearly irresistible cravings begin steering behavior, Berrettini said. Specific triggers like old friends and familiar street corners can spur the urge to use again, as can general life stressors. And because of widespread brain changes including the loss of dendritic spines, those in addiction may have “limited ability to resist,” he said.

“Part of the dysregulation that occurs,” said Temple’s Unterwald, “is because the drug is onboard and then goes away. Opioid users take heroin many times a day, so (the brain) cycles through periods of highs and withdrawals.”

The nightmarish symptoms of opioid withdrawal — intense nausea, cramping, sweating, shaking, and more — are the result of brain adaptations, she said.

When opioids are first taken, a stress-associated region of the brain called the locus coeruleus gets quieted. But after long-term exposure, the brain compensates by supercharging the neurons in that region. If the dampening effects of opioids are taken away, an altered locus coeruleus can wreak havoc on the body, producing the agonizing symptoms of withdrawal.

Some opioid-induced brain changes reverse themselves quickly. Others take more time.

Cancer patients who need to stop using prescription opioids are typically weaned off over several weeks to avoid withdrawal symptoms, Unterwald said. “But that’s not what usually happens with opioid abusers.”

“People who would like to be drug-free often transition to one of the medication-assisted therapies like methadone or buprenorphine,” said Unterwald, and may gradually reduce intake of these stabilizing opioids, though experts say long-term use is the gold standard for achieving long-term recovery. “These drugs are not really replacing (opioids),” she said. “They are resetting the neurobiological changes that have occurred.”