Researchers developing AI tool that could speed up dementia