Artificial neural network principle and its simulation