Attentional Pattern Classification for Automatic Dementia Detection