How Does the Brain Turn an Internal Need into a Focused Craving?


To a fruit fly running amok, the scent of chocolate isn’t dessert, it’s a lifesaver. Flies, like all animals, instinctively sense when something is missing in their diet and adjust their eating habits to restore balance. What remains undetermined is how the brain transforms this internal signal – the body’s calm “I need this” – into a focused urge. In other words, how a physiological need becomes a sensory need.
New research from the Champalimaud Center reveals how the absence of a single essential amino acid can reshape a fruit fly’s brain, sharpening its nose for microbial allies that offer a nutritional boost.
“By following their noses toward bacteria, it appears that flies have evolved to use microbes as allies, seeking partners that increase their chances of survival when faced with amino acid deprivation,” said SĂlvia Henriques, co-first author of the study, in a press release.
How the brain transforms nutritional needs into desires
To explore this link, researchers looked at essential amino acids; the building blocks of proteins that animals cannot produce themselves and must obtain from food. Even a single missing amino acid throws the body out of balance, slowing metabolism and causing the brain to seek protein-rich foods.
The researchers fed the fruit flies controlled diets, each lacking one of 10 essential amino acids, and analyzed which genes were activated in their heads. Each deprivation left its own genetic imprint, but some responses were universal. Two genes linked to smell – Or92a and Ir76a – systematically activate whenever an amino acid is lacking, revealing a common molecular pathway linking nutrient need to sensory change.
Learn more: These fruit flies age faster after seeing death
Hunger sharpens the senses towards yeast and microbes
Both genes were found to be critical to how hunger changes behavior. The Or92a receptor detects diacetyl, a buttery compound released by yeast fermentation – the flies’ main protein source. When this receptor was turned off, the insects could still find yeast but ate less of it, showing that scent not only locates food but also helps determine how rewarding it seems.
The second receptor, Ir76a, responds to PEA, a molecule made by bacteria that ferment foods like cheese and chocolate.
“That’s when things clicked,” Henriques said in the press release. “The flies weren’t attracted to the chocolate itself, they were responding to the bacteria growing in these foods. And these bacteria are also natural residents of the flies’ microbiome.”
When private flies encountered live Lactobacillus and Acetobacter – the same microbes responsible for fermentation – their neurons fired more strongly and they fed eagerly. Dead bacteria, however, had no appeal.
“This is the most surprising finding,” added Gili Ezra-Nevo, the first author of the study. “This showed that flies’ sense of smell was literally tuned to detect bacteria, and that this tuning depended on their internal nutritional state.”
By reprogramming their sense of smell, the flies weren’t just looking for food; they focused on microbial partners that could help them recover.
What we can learn about human appetite
The research expands a key question in biology: how our internal state reshapes what we perceive. This shows that when nutrients decrease, the brain doesn’t just respond: it rewires its sensory machinery, changing the way information from the world is processed.
In these flies, hunger was not a signal but a switch, changing the way they perceived their environment to meet their needs. This reminds us that the boundary between the body and the brain is not fixed: it shifts with each signal of need.
Learn more: Scientists share stunning insights into human memory by mapping fly brains
Article Sources
Our Discovermagazine.com editors use peer-reviewed research and high-quality sources for our articles, and our editors review the articles for scientific accuracy and editorial standards. See the sources used below for this article:

