Dementia disrupts the circadian rhythm, causing irregular sleep patterns and excessive daytime sleepiness.