Bayesian modeling and classification of neural signals