You've been practicing social isolation for a couple of weeks now, and suddenly you can't stop devouring every sweet thing in sight.

You used to sleep like a rock but now sleep like a newborn — waking up every few hours, only to find yourself craving even more carbs.

There's a scientific reason behind that behavior: Poor sleep disrupts our ancient endocannabinoid system, responsible for regulating immune response, appetite, metabolism and more; leaving us craving fatty, starchy and sugary foods.

"When you're sleep-deprived, you're not like, 'Oh, you know what, I want some carrots,' " said University of Chicago behavioral neuroscientist Erin Hanlon, who studies the connection between brain systems and behavior.

"You're craving sweets and salty and starchy things," Hanlon told CNN in a prior interview. "You want those chips, you want a cookie, you want some candy, you know?"

The yin and yang of cortisol and sleep

Chronic stress day in and day out — which pretty much describes our national environment right now — can create major sleep issues. You sleep less, and what restless sleep you do get is of poor quality, often with frequent awakenings.

That likely means you're getting little deep sleep, the type of rest the brain and body need for rejuvenation. It's also during deep sleep that your brain tells the body to stop making stress hormones, particularly cortisol, according to the National Sleep Foundation.