Midlife sleep EEG parameters serve as longitudinal predictors of cognitive status, showing associations with language and memory 12 years later.