A stochastic Model based on SOM Neural Networks