Bayesian interpretation of artificial neural network models in perception