Each neuron of the ANN receives inputs either from many other neurons or from an external stimulus, changes its internal state (activation) correspondingly, and produces output depending on the input and activation, which is sent to the input of other network neurons or its output.