Another week, another modern-day mystery solved.

According to the boffins at Canada’s MacEwan University, cheese does indeed give you weird dreams.

The new study, published in Frontiers in Psychology , surveyed about 1000 university students on their diet, sleep patterns, allergies and the self-perceived effects of specific foods.

Around one in 20 respondents felt that food affected their dreams – more specifically, sweets and dairy products were associated with higher nightmare recall.

This effect was also associated with food allergies and gluten intolerance.

The worst sleepers and (some of the) biggest nightmare-havers were people with lactose intolerance.

Rather than cheese containing some sort of undiscovered nightmare-inducing chemical, though, the researchers arrived at a far simpler idea; people with lactose intolerance get sore bellies.

“This analysis supports the notion that specific food-induced symptoms such as bloating, cramping or excess gas arising during sleep have a negative impact on dreaming,” they wrote.