Several studies have suggested that a diet rich in sugar and saturated fat can contribute to inflammation in the brain, potentially damaging brain cells and raising the risk of dementia.