Diagnosis with artificial intelligence