Your Brain Craves Junk Food After Bad Sleep Because It’s Getting the Wrong Signals From Your Gut (Here’s How to Fix the Loop)

 Written by 

Julien Raby

 Last updated on 


Professor Tim Spector wants people to understand something crucial: the gut isn’t just about digestion.

It’s about mental health, brain function, and nearly every aspect of wellbeing.

optimize-gut-brain-mouth-axis-mental-health
  • Save

In a comprehensive discussion, the epidemiologist from King’s College London and co-founder of ZOE revealed how trillions of microbes in our intestines act like a “virtual organ” we’ve only recently discovered.

And according to Spector, understanding this connection might be the key to preventing everything from depression to dementia.

Your Gut Microbiome: A Hidden Organ With Massive Power

Spector describes the gut microbiome as comparable to discovering we had a liver all along. This collection of bacteria, fungi, parasites, and viruses lives primarily in the lower colon, functioning as mini pharmacies that convert food into thousands of chemicals.

The numbers are staggering. These microbes contain 200 times more genes than human cells and actually outnumber our own cells.

This collection of microbes has something like 200 times more genes than we have in our own human cells. That means they’re much more versatile.

Without these microscopic inhabitants, our brains wouldn’t develop normally. They’re not optional—they’re essential to human function.

Think of Your Gut as an Ecological Zoo

Spector uses a fascinating analogy to explain gut diversity. Imagine your intestines as a natural jungle or zoo where thousands of species occupy specialized niches.

Each microbe has evolved to prefer specific foods. His research discovered one bug that exclusively “eats” coffee, lying dormant until that first cup arrives.

If we start thinking of coffee as a great example, then you think about all the other bugs that we might have lying dormant in our guts that are waiting for us to eat something unusual, say a bit of baobab or some beetroot.

This specificity explains why diversity matters so much. The more varied your gut microbes, the healthier you are.

Different bugs process different foods—some prefer cabbage leaves, others love seeds and nuts, while some consume leftovers from other microbes. They work together in a perfectly sustainable ecosystem where waste doesn’t exist.

Your Gut Microbiome Is Uniquely Yours

Despite having trillions of microbes, people are remarkably different from one another. Born sterile, babies acquire microbes somewhat randomly during early life.

The average person shares only 20% of their gut microbes with another individual. Even identical twins don’t share significantly more.

This means everyone has a slightly different set of microbes producing unique chemical functions—which helps explain why nutrition isn’t one-size-fits-all.

The Gut-Brain Highway: How Microbes Control Your Mind

When Spector began his research, scientists thought the microbiome only influenced obesity and metabolism. They were wrong.

The gut microbiome interacts with three critical body systems: metabolism and energy regulation, the immune system (crucial for autoimmune diseases, allergies, cancer prevention, and aging), and the nervous system.

Your Second Brain Lives in Your Gut

The intestines contain a massive network of nerves—as large as a cat’s brain—sometimes called our “second brain.” These nerves probably evolved around our intestine before our actual brain formed in the womb.

This network connects to the brain primarily through the vagus nerve, which Spector compares to a fast internet cable.

This discovery has really changed our whole idea of the gut brain axis because we used to think the brain was telling the gut what to do. Turns out most of the traffic is from the gut to the brain.

The gut lining actively senses everything happening with microbes—picking up short-chain fatty acids from fiber breakdown, hormones like GLP-1, and both beneficial and hostile chemicals. All this information feeds through neurons into the vagus nerve and directly to the brain.

Inflammation: The Hidden Link Between Gut and Mental Health

Spector learned about inflammation early—his father was a professor studying it. Inflammation is a normal response to threats like infections or stress, sending white blood cells to problem areas.

The issue? Chronic inflammation that persists too long.

Western populations now maintain elevated threat levels compared to people in Africa or India. This chronic state stems from terrible diets, pollution, pesticides, and stressful lives.

Nearly all mental health problems—depression, anxiety, psychosis, schizophrenia, even epilepsy and migraines—show above-average inflammation levels and abnormal gut microbes.

We’re seeing this picture developing whereby we are getting much more common ground to explain this explosion in mental health problems.

Why Bad Food Creates Depression

Since the 1970s, Western diets have deteriorated dramatically. The standard American diet (SAD) lacks fiber, contains excessive saturated fats, and overflows with ultra-processed foods.

These foods cause gut inflammation, feeding bad bugs while starving good ones. Bad bugs thrive in inflammatory environments and produce chemicals that make the gut lining toxic, raising immune cell levels.

The gut microbes evolved to communicate environmental conditions to the brain. When they detect bad food and inflammation, they signal danger.

The brain responds with “sickness behavior”—lowering mood, reducing sociability, decreasing activity, and triggering fatigue. In evolutionary terms, this mimics infection response, but it becomes chronic depression when triggered by continuous poor diet.

It’s like, gosh, there’s something bad going on here. Let’s signal that back to the brain. What does the brain do? It goes into some sort of lockdown mode.

This explains why children raised on ultra-processed foods show pandemic levels of mental health issues—their good microbes never had a chance to develop.

Dementia, Gum Disease, and Your Microbiome

Spector’s mother suffered a stroke and developed dementia, spending her final years in a care home. The experience motivated him to investigate connections between gut health and cognitive decline.

Dementia comes in two main forms: vascular dementia (affecting one-third of cases, caused by reduced blood supply to the brain) and Alzheimer’s (affecting 60%, characterized by protein folds in the brain).

Despite different mechanisms, both share common risk factors—and poor gut health ranks high among them.

Your Mouth Microbiome Matters Too

Gut microbes exist throughout the entire intestinal tract, from mouth to anus. The mouth contains colonies that protect us and begin digestion, with good bugs and bad bugs competing for resources.

Poor oral hygiene leaves food waste, allowing bad bugs to accumulate and cause inflammation, particularly where teeth meet gums. This manifests as periodontitis—redness, swelling, tenderness, and bleeding gums.

Research reveals shocking connections. Poor mouth hygiene increases heart disease risk by roughly 25% and dementia risk by 20-50%.

We learned about 10 or even 15 years ago that dental decay was related to heart disease. This was very strange when that first came out.

The good news? Brushing teeth regularly reduces that risk by half. Adding flossing can eliminate the increased risk entirely by removing plaque and stopping inflammation.

Eight Practical Guidelines for Gut Health

Spector emphasizes that old nutritional thinking—focused only on calories, fat, protein, and sugar—has been a complete disaster for public health over 40 years.

Real food contains thousands of chemicals that nourish trillions of microbes, producing thousands more chemicals our bodies can’t make alone. Progress requires a seismic shift focusing on gut microbes.

1. Practice Mindfulness Before Eating

When Spector temporarily adopted a vegan diet, it forced him to pause at buffets and consider ingredients. You don’t need to go that extreme.

Simply stop and think before eating: Am I hungry? What’s in this? How will it affect my mood in three hours? What are the long-term consequences? Will I genuinely enjoy it, or is marketing driving this choice?

This three-step process helps people realize food is much more than calories.

2. Eat 30 Different Plants Weekly

This is Spector’s most important principle, backed by research from the American Gut Project showing that 30 plants weekly represents the sweet spot for optimal gut health.

This applies whether you’re vegan, vegetarian, or omnivore—people eating the most plants have the healthiest guts.

30 plants to many people say that sounds way too much. The average American probably has between 10 and 12 plants a week.

Remember that plants include fruits, vegetables, nuts, seeds, herbs, spices, and even coffee (a fermented bean). Changing your definition makes the target achievable and fun.

Microbes wait for specific foods—that bit of baobab, that particular nut or berry. The more variety you provide, the better.

3. Consume Three Fermented Foods Daily

Three years of research convinced Spector that fermented foods deserve attention. A Stanford study comparing five daily ferments to high-fiber diets showed fermented foods improved gut health and reduced inflammation by 25%.

Fermented foods are transformed by microbes into something better—milk into cheese, grapes into wine, cabbage into sauerkraut.

Think of the “4Ks”:

  • Kefir (fermented milk drink)
  • Kimchi (Korean fermented vegetables)
  • Kraut (sauerkraut and other fermented vegetables)
  • Kombucha (fermented tea)

Add cheese, yogurt, miso paste, and salt-fermented pickles. These contain diverse microbial species and likely outperform pharmacy probiotics.

4. Diversify Your Protein Sources

Despite current protein obsession, most people aren’t deficient. Your body can’t store excess protein—it’s converted to fat or excreted.

For the 10% who need more protein (elderly, unwell, building muscle, or using weight-loss drugs), consider beans and lentils. They provide high protein plus fiber that feeds microbes simultaneously.

They’re cheap, accessible, planet-friendly, and microbe-approved.

5. Focus on Quality, Not Calories

Decades of calorie obsession have failed. Few nutrition scientists still believe in calorie dominance—it’s primarily a food company marketing tool.

Calorie-restricted diets fail for most people beyond a few weeks. Even when weight drops initially, nearly everyone regains it because the brain increases hunger signals.

Your body is designed by evolution to overcome that pure calorie signal.

Calorie counting also disguises food quality, exactly what food companies want. Gut microbes want whole foods in original states with intact casings and skins—where most nutrients reside.

Disregarding calories is liberating. Generally, anything labeled “low calorie” signals poor quality food worth avoiding.

6. Avoid High-Risk Ultra-Processed Foods

These foods comprise 50-70% of American diets (higher in children), and most are harmful.

The worst offenders—making up 25% of American diets—share four damaging characteristics:

  • Harmful additives: Emulsifiers that damage gut microbes, artificial sweeteners from petrochemicals, cancer-linked chemicals
  • Hyper-palatability: Engineered combinations of salt, sugar, and fat that override fullness signals
  • Ultra-soft texture: Stripped of structure, requiring no chewing, enabling mindless overconsumption
  • Calorie density: Delivering massive energy quickly without satiation

High-risk foods include children’s breakfast cereals, flavored yogurts, savory snacks, cookies, ready meals, and sodas (even low-calorie versions).

Spector acknowledges occasional treats are realistic but emphasizes these shouldn’t form regular diet components.

7. Eat the Rainbow

Bright plant colors indicate high levels of polyphenols—defense chemicals plants use against insects, sunlight, and drought that benefit humans tremendously.

Previously called antioxidants, polyphenols now are understood as fuel for microbes, making them more productive.

Nature provides color clues. Choose purple radicchio over iceberg lettuce—it contains a thousand times more polyphenols. Iceberg’s only advantage? It stays fresh during vacation.

Bitterness also signals polyphenols. Embrace cruciferous vegetables, nuts, seeds, extra virgin olive oil (the best makes you cough slightly), dark chocolate over 70%, and coffee.

For alcohol, red wine contains high polyphenol levels—in moderation, it’s Spector’s only recommended drink for gut health.

8. Give Your Gut 12-14 Hours Rest Overnight

Twenty years ago, medical schools taught grazing was better than feasting. Science now shows the opposite—constant grazing harms gut microbiomes.

Like humans need sleep, gut microbes have circadian rhythms. They need repair time, especially for the gut lining’s mucosa—crucial for immune barrier health.

If it’s eating all the time and you’re having late night snacks, early breakfast, they’re not getting the natural time they need that our ancestors had for millions of years to clean up our gut.

Time-restricted eating works through multiple mechanisms: nighttime “defense teams” clean the mucosa, metabolic advantages reduce unhealthy bugs, and mental health improvements follow.

In a ZOE study of 140,000 people, one-third hated time restriction, one-third loved it (still practicing years later), and adherers reported improved mood, energy, and reduced hunger.

Start simple: stop eating 2 hours before bed, allowing only black tea or water. If successful, extend to a 12-hour overnight fast.

Many people thrive on two main meals daily—the “brunch” concept. The three-meals-plus-snacks model was food industry marketing, not biological necessity.

Why Internet Diet Advice Fails

Media thrives on conflicting food stories—coffee alternates between villain and hero, eggs swing from dangerous to beneficial. Newspapers and social media love these narratives.

Spector’s key insight? Don’t overreact. If you’re following the eight core principles 80% of the time, occasional deviations don’t matter.

Whether eggs or coffee are momentarily “good” or “bad” becomes irrelevant when your plate is mostly filled with gut-healthy foods.

The Problem With Exclusion Diets

Paleo, keto, carnivore, and strict gluten-free diets attract followers because people love belonging to “excluder clubs”—similar to religious food restrictions building community.

These diets often work short-term because they eliminate ultra-processed foods. People feel benefits for weeks, lose weight, and evangelize enthusiastically.

Then problems start. Restriction is hard to sustain. Long-term, reduced plant intake kills good microbes while bad ones overgrow on scraps, eventually causing immune, gut health, and mental problems.

What I like about our message is that it’s not about exclusion. It’s about inclusion at the very best level.

The Supplement Trap

Marketing suggests diet doesn’t matter if you take supplements or green powders with “80 different chemicals and vitamins.” This reductionist thinking—simple solutions to complex problems—is almost always wrong.

Studies consistently show eating whole food beats consuming isolated chemicals derived from it. Foods contain components not represented in purified supplements, often made artificially by yeast in factories with numerous additives.

Spector’s example: For years, he prescribed calcium tablets to rheumatology patients, believing it helped bones. Research now links calcium supplementation to increased heart disease and atherosclerosis across six studies.

The body can’t handle large calcium doses properly—calcium deposits in arteries rather than bones. Natural calcium from foods and mineral water gets incorporated gradually in tiny amounts.

Supplements also interact poorly. Zinc and iron taken simultaneously cancel each other out. Quality varies wildly.

Even vitamin D supplementation doesn’t replace sunshine, which provides many other beneficial but unknown components. Epidemiology shows sun exposure improves immune systems and outcomes better than vitamin D tablets alone.

The Bottom Line: Feed Your Microbes, Help Your Brain

Spector’s message is revolutionary yet simple: if anyone offers a single solution to nutrition or gut problems, it’s probably rubbish.

Nutrition science is among the most complex we have—far from the oversimplified calories-and-macronutrients model. Complexity means no single vitamin or product will cure you.

The goal isn’t six-week diets or quick weight loss. It’s changing accumulated bad habits for years ahead, making bodies and brains healthier.

Science takes an average 20 years to change medical practice after discoveries are proven. The public sits in this gap, needing to educate themselves about study quality, human trials, and placebo controls.

Government guidelines lag behind current science. Social media often jumps too far ahead with test-tube or mouse studies.

We make hundreds of food choices every day. And the food choices we make are the most important choices we can make for our health. So make them wisely.

The key insight connecting everything? Your gut microbiome directly communicates with your brain, influencing mood, energy, cognition, and disease risk. When gut microbes are happy, you’re happy.

Focus on diversity—30 plants weekly, fermented foods, colorful produce, and regular overnight fasting. Avoid ultra-processed foods that starve good microbes while feeding bad ones.

Don’t forget to floss.

Share via
Copy link