Neural network simulation