Epilepsy diagnosis based on generalized feed forward neural network