A new test reveals an association between poor lifestyle choices and an increased risk of cognitive decline leading to dementia.