Spiking Neurons for Analysis of Patterns