AI can accurately predict who will develop dementia