Neural networks for EEG diagnosis