Spiking neural network based approach to EEG signal analysis