Neural networks for medical diagnosis