Dietary assessment for detecting cognitive changes