Key points from article :
A study by Uppsala University found that a high-fat, high-sugar diet can disrupt sleep quality by messing with the brain's electrical activity during deep sleep.
The study was conducted on 15 men who were randomly assigned to eat either a high-fat, high-sugar diet or a low-fat, low-sugar diet for one week.
The EEG recordings showed that the high-fat, high-sugar diet disrupted slow-wave sleep by reducing the proportion of delta waves and increasing beta waves.
The researchers believe that this may be because sugar and fat activate brain pathways that increase how awake people feel.
The long-term impact of disrupting slow-wave sleep is not yet known, but it is thought to be linked to worse health outcomes.
Eating a healthy diet may be particularly important in older age to protect against further losses in sleep quality.
The findings of the research are published in the journal Obesity.