Artificial intelligence may diagnose dementia as accurately as clinicians