An overtraining-resistant stochastic modeling method for pattern recognition | Synapse