Artificial intelligence system that could one day diagnose dementia