
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Artificial neuron" – news ·newspapers ·books ·scholar ·JSTOR(September 2025) (Learn how and when to remove this message) |
Anartificial neuron is amathematical function conceived as amodel of abiological neuron in aneural network. The artificial neuron is the elementary unit of anartificial neural network.[1]
The design of the artificial neuron was inspired by biologicalneural circuitry. Its inputs are analogous toexcitatory postsynaptic potentials andinhibitory postsynaptic potentials at neuraldendrites, oractivation. Its weights are analogous tosynaptic weights, and its output is analogous to a neuron'saction potential which is transmitted along itsaxon.
Usually, each input is separatelyweighted, and the sum is often added to a term known as abias (loosely corresponding to thethreshold potential), before being passed through anonlinear function known as anactivation function. Depending on the task, these functions could have asigmoid shape (e.g. forbinary classification), but they may also take the form of other nonlinear functions,piecewise linear functions, orstep functions. They are also oftenmonotonically increasing,continuous,differentiable, andbounded. Non-monotonic, unbounded, and oscillating activation functions with multiple zeros that outperform sigmoidal andReLU-like activation functions on many tasks have also been recently explored. The threshold function has inspired buildinglogic gates referred to as threshold logic; applicable to buildinglogic circuits resembling brain processing. For example, new devices such asmemristors have been extensively used to develop such logic.[2]
The artificial neuron activation function should not be confused with a linear system'stransfer function.
An artificial neuron may be referred to as asemi-linear unit,Nv neuron,binary neuron,linear threshold function, orMcCulloch–Pitts (MCP)neuron, depending on the structure used.
Simple artificial neurons, such as the McCulloch–Pitts model, are sometimes described as "caricature models", since they are intended to reflect one or more neurophysiological observations, but without regard to realism.[3] Artificial neurons can also refer toartificial cells inneuromorphic engineering that are similar to natural physical neurons.
For a given artificial neuron, let there be inputs with signals through and weights through. Usually, the input is assigned the value +1, which makes it a bias input with. This leaves only actual inputs to the neuron: to.
The output of the-th neuron is:
where (phi) is the activation function.
The output is analogous to theaxon of a biological neuron, and its value propagates to the input of the next layer, through a synapse. It may also exit the system, possibly as part of an outputvector.
It has no learning process as such. Its activation function weights are calculated, and its threshold value is predetermined.
An MCP neuron is a kind of restricted artificial neuron which operates in discrete time-steps. Each has zero or more inputs, and are written as. It has one output, written as. Each input can be eitherexcitatory orinhibitory. The output can either bequiet orfiring. An MCP neuron also has a threshold.
In an MCP neural network, all the neurons operate in synchronous discrete time-steps of. At time, the output of the neuron is if the number of firing excitatory inputs is at least equal to the threshold, and no inhibitory inputs are firing; otherwise.
Each output can be the input to an arbitrary number of neurons, including itself (i.e., self-loops are possible). However, an output cannot connect more than once with a single neuron. Self-loops do not cause contradictions, since the network operates in synchronous discrete time-steps.
As a simple example, consider a single neuron with threshold 0, and a single inhibitory self-loop. Its output would oscillate between 0 and 1 at every step, acting as a "clock".
Anyfinite state machine can be simulated by a MCP neural network.[4] Furnished with an infinite tape, MCP neural networks can simulate anyTuring machine.[5]

Artificial neurons are designed to mimic aspects of their biological counterparts. However a significant performance gap exists between biological and artificial neural networks. In particular single biological neurons in the human brain with oscillating activation function capable of learning theXOR function have been discovered.[6]
Unlike most artificial neurons, however, biological neurons fire in discrete pulses. Each time the electrical potential inside the soma reaches a certain threshold, a pulse is transmitted down the axon. This pulsing can be translated into continuous values. The rate (activations per second, etc.) at which an axon fires converts directly into the rate at which neighboring cells get signal ions introduced into them. The faster a biological neuron fires, the faster nearby neurons accumulate electrical potential (or lose electrical potential, depending on the "weighting" of the dendrite that connects to the neuron that fired). It is this conversion that allows computer scientists and mathematicians to simulate biological neural networks using artificial neurons which can output distinct values (often from −1 to 1).
Research has shown thatunary coding is used in the neural circuits responsible forbirdsong production.[7][8] The use of unary in biological networks is presumably due to the inherent simplicity of the coding. Another contributing factor could be that unary coding provides a certain degree of error correction.[9]
There is research and development into physical artificial neurons – organic and inorganic.
For example, some artificial neurons can receive[10][11] and releasedopamine (chemical signals rather than electrical signals) and communicate with natural ratmuscle andbrain cells, with potential for use inBCIs/prosthetics.[12][13]
Low-power biocompatiblememristors may enable construction of artificial neurons which function at voltages of biologicalaction potentials and could be used to directly processbiosensing signals, forneuromorphic computing and/ordirect communication with biological neurons.[14][15][16]
Organic neuromorphic circuits made out ofpolymers, coated with an ion-rich gel to enable a material to carry an electric charge likereal neurons, have been built into a robot, enabling it to learn sensorimotorically within the real world, rather than via simulations or virtually.[17][18] Moreover, artificial spiking neurons made of soft matter (polymers) can operate in biologically relevant environments and enable the synergetic communication between the artificial and biological domains.[19][20]
The first artificial neuron was the Threshold Logic Unit, or Linear Threshold Unit,[21] first proposed byWarren McCulloch andWalter Pitts in 1943 inA logical calculus of the ideas immanent in nervous activity. The model was specifically targeted as a computational model of the "nerve net" in the brain.[22] As an activation function, it employed a threshold, equivalent to using theHeaviside step function. Initially, only a simple model was considered, with binary inputs and outputs, some restrictions on the possible weights, and a more flexible threshold value. Since the beginning it was already noticed that anyBoolean function could be implemented by networks of such devices, what is easily seen from the fact that one can implement the AND and OR functions, and use them in thedisjunctive or theconjunctive normal form.Researchers also soon realized that cyclic networks, withfeedbacks through neurons, could define dynamical systems with memory, but most of the research concentrated (and still does) on strictlyfeed-forward networks because of the smaller difficulty they present.
One important and pioneering artificial neural network that used the linear threshold function was theperceptron, developed byFrank Rosenblatt. This model already considered more flexible weight values in the neurons, and was used in machines with adaptive capabilities. The representation of the threshold values as a bias term was introduced byBernard Widrow in 1960 – seeADALINE.
A further development was theHebbian Learning Rule, proposed byDonald O. Hebb, which provided a fundamental rule for adjusting the weights in neural networks.[23] The principle of Hebbian learning posits that the connection between two neurons strengthens if they activate simultaneously and weakens if they activate separately.[23] A refinement of Hebbian learning, known asspike-timing-dependent plasticity, was developed to account for the precise timing of neuron spikes.[23] This form of learning has been implemented inspiking neural networks, which are believed to be more energy-efficient than traditional ANNs[clarification needed][23] and require less energy for transmission since they process data based on the occurrence of events rather than continuous computation.[23]
In the late 1980s, when research on neural networks regained strength, neurons with more continuous shapes started to be considered. The possibility of differentiating the activation function allows the direct use of thegradient descent and other optimization algorithms for the adjustment of the weights. Neural networks also started to be used as a generalfunction approximation model. The best known training algorithm calledbackpropagation has been rediscovered several times but its first development goes back to the work ofPaul Werbos.[24][25]
The activation function of a neuron is chosen to have a number of properties which either enhance or simplify the network containing the neuron. Crucially, for instance, anymultilayer perceptron using a linear activation function has an equivalent single-layer network; anon-linear function is therefore necessary to gain the advantages of a multi-layer network.[citation needed]
Below, refers in all cases to the weighted sum of all the inputs to the neuron, i.e. for inputs,
where is a vector of synaptic weights and is a vector of inputs.
The output of this activation function is binary, depending on whether the input meets a specified threshold, (theta). The "signal" is sent, i.e. the output is set to 1, if the activation meets or exceeds the threshold.
This function is used inperceptrons, and appears in many other models. It performs a division of thespace of inputs by ahyperplane. It is specially useful in the last layer of a network, intended for example to perform binary classification of the inputs.
In this case, the output unit is simply the weighted sum of its inputs, plus a bias term. A number of such linear neurons perform a linear transformation of the input vector. This is usually more useful in the early layers of a network. A number of analysis tools exist based on linear models, such asharmonic analysis, and they can all be used in neural networks with this linear neuron. The bias term allows us to makeaffine transformations to the data.
A fairly simple nonlinear function, thesigmoid function such as the logistic function also has an easily calculated derivative, which can be important when calculating the weight updates in the network. It thus makes the network more easily manipulable mathematically, and was attractive to early computer scientists who needed to minimize the computational load of their simulations. It was previously commonly seen inmultilayer perceptrons. However, recent work has shown sigmoid neurons to be less effective thanrectified linear neurons. The reason is that the gradients computed by thebackpropagation algorithm tend to diminish towards zero as activations propagate through layers of sigmoidal neurons, making it difficult to optimize neural networks using multiple layers of sigmoidal neurons.
In the context ofartificial neural networks, therectifier orrectified linear unit is anactivation function defined as the positive part of its argument:
where is the input to a neuron. This is also known as aramp function and is analogous tohalf-wave rectification in electrical engineering. Thisactivation function was first introduced to a dynamical network by Hahnloser et al. in a 2000 paper inNature[26] with strongbiological motivations and mathematical justifications.[27] It has been demonstrated for the first time in 2011 to enable better training of deeper networks,[28] compared to the widely used activation functions prior to 2011, i.e., thelogistic sigmoid (which is inspired byprobability theory; seelogistic regression) and its more practical[29] counterpart, thehyperbolic tangent.
A commonly used variant of the rectified linear unit activation function is the leaky rectified linear unit which allows a small, positive gradient when the unit is not active:
where is the input to the neuron and is a small positive constant (set to 0.01 in the original paper).[30]
The following is a simplepseudocode implementation[citation needed] of a single Threshold Logic Unit which takesBoolean inputs (true or false), and returns a single Boolean output when activated. Anobject-oriented model is used. No method of training is defined, since several exist. If a purely functional model were used, the class Threshold Logic Unit below would be replaced with a function Threshold Logic Unit with input parameters threshold, weights, and inputs that returned a Boolean value.
class Threshold Logic Unitdefined as:data member threshold: numberdata member weights: list of numbersof size Xfunction member fire(inputs: list of booleansof size X): booleandefined as:variable T: number T← 0for each iin 1to Xdoif inputs(i)is truethen T← T + weights(i)end ifend for eachif T > thresholdthenreturn trueelse:return falseend ifend functionend class