Artificial neuron explained

An artificial neuron is a mathematical function conceived as a model of biological neurons in a neural network. Artificial neurons are the elementary units of artificial neural networks.[1] The artificial neuron is a function that receives one or more inputs, applies weights to these inputs, and sums them to produce an output.

The design of the artificial neuron was inspired by neural circuitry. Its inputs are analogous to excitatory postsynaptic potentials and inhibitory postsynaptic potentials at neural dendrites, or, its weights are analogous to synaptic weight, and its output is analogous to a neuron's action potential which is transmitted along its axon.

Usually, each input is separately weighted, and the sum is often added to a term known as a bias (loosely corresponding to the threshold potential), before being passed through a non-linear function known as an activation function or transfer function. The transfer functions usually have a sigmoid shape, but they may also take the form of other non-linear functions, piecewise linear functions, or step functions. They are also often monotonically increasing, continuous, differentiable and bounded. Non-monotonic, unbounded and oscillating activation functions with multiple zeros that outperform sigmoidal and ReLU-like activation functions on many tasks have also been recently explored. The thresholding function has inspired building logic gates referred to as threshold logic; applicable to building logic circuits resembling brain processing. For example, new devices such as memristors have been extensively used to develop such logic in recent times.[2]

The artificial neuron transfer function should not be confused with a linear system's transfer function.

An artificial neuron may be referred to as a semi-linear unit, Nv neuron, binary neuron, linear threshold function, or McCulloch–Pitts (MCP) neuron, depending on the structure used.

that are similar to natural physical neurons.

Basic structure

For a given artificial neuron k, let there be m + 1 inputs with signals x0 through xm and weights wk0 through wkm. Usually, the x0 input is assigned the value +1, which makes it a bias input with wk0 = bk. This leaves only m actual inputs to the neuron: from x1 to xm.

The output of the kth neuron is:

yk=\varphi\left(

m
\sum
j=0

wkjxj\right)

Where

\varphi

(phi) is the transfer function (commonly a threshold function).

The output is analogous to the axon 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 output vector.

It has no learning process as such. Its transfer function weights are calculated and threshold value are predetermined.

McCulloch–Pitts (MCP) neuron

See also: Perceptron. A 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

x1,...,xn

. It has one output, written as

y

. Each input can be either excitatory or inhibitory. The output can either be quiet or firing. An MCP neuron also has a threshold

b\in\{0,1,2,...\}

.

In a MCP neural network, all the neurons operate in synchronous discrete time-steps of

t=0,1,2,3,...

. At time

t+1

, the output of the neuron is

y(t+1)=1

if the number of firing excitatory inputs is at least equal to the threshold, and no inhibitory inputs are firing;

y(t+1)=0

otherwise.

Each output can be the input to an arbitrary number of neurons, including itself (that is, 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".

Any finite state machine can be simulated by a MCP neural network.[4] Furnished with an infinite tape, MCP neural networks can simulate any Turing machine.[5]

Biological models

See main article: Biological neuron model.

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 the XOR 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).

Encoding

Research has shown that unary coding is used in the neural circuits responsible for birdsong 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]

Physical artificial cells

There is research and development into physical artificial neurons – organic and inorganic.

For example, some artificial neurons can receive[10] [11] and release dopamine (chemical signals rather than electrical signals) and communicate with natural rat muscle and brain cells, with potential for use in BCIs/prosthetics.[12] [13]

Low-power biocompatible memristors may enable construction of artificial neurons which function at voltages of biological action potentials and could be used to directly process biosensing signals, for neuromorphic computing and/or direct communication with biological neurons.[14] [15] [16]

Organic neuromorphic circuits made out of polymers, coated with an ion-rich gel to enable a material to carry an electric charge like real 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]

History

The first artificial neuron was the Threshold Logic Unit (TLU), or Linear Threshold Unit,[21] first proposed by Warren McCulloch and Walter Pitts in 1943. The model was specifically targeted as a computational model of the "nerve net" in the brain.[22] As a transfer function, it employed a threshold, equivalent to using the Heaviside 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 any boolean 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 the disjunctive or the conjunctive normal form.Researchers also soon realized that cyclic networks, with feedbacks through neurons, could define dynamical systems with memory, but most of the research concentrated (and still does) on strictly feed-forward networks because of the smaller difficulty they present.

One important and pioneering artificial neural network that used the linear threshold function was the perceptron, developed by Frank 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 by Bernard Widrow in 1960 – see ADALINE.

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 the gradient descent and other optimization algorithms for the adjustment of the weights. Neural networks also started to be used as a general function approximation model. The best known training algorithm called backpropagation has been rediscovered several times but its first development goes back to the work of Paul Werbos.[23] [24]

Types of transfer functions

See main article: Transfer function. The transfer function (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, any multilayer perceptron using a linear transfer function has an equivalent single-layer network; a non-linear function is therefore necessary to gain the advantages of a multi-layer network.

Below, u refers in all cases to the weighted sum of all the inputs to the neuron, i.e. for n inputs,

u=

n
\sum
i=1

wixi

where w is a vector of synaptic weights and x is a vector of inputs.

Step function

The output y of this transfer function is binary, depending on whether the input meets a specified threshold, θ. The "signal" is sent, i.e. the output is set to one, if the activation meets the threshold.

y=\begin{cases}1&ifu\ge\theta\ 0&ifu<\theta\end{cases}

This function is used in perceptrons and often shows up in many other models. It performs a division of the space of inputs by a hyperplane. It is specially useful in the last layer of a network intended to perform binary classification of the inputs. It can be approximated from other sigmoidal functions by assigning large values to the weights.

Linear combination

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 first layers of a network. A number of analysis tools exist based on linear models, such as harmonic analysis, and they can all be used in neural networks with this linear neuron. The bias term allows us to make affine transformations to the data.

See: Linear transformation, Harmonic analysis, Linear filter, Wavelet, Principal component analysis, Independent component analysis, Deconvolution.

Sigmoid

See also: Sigmoid function. A fairly simple non-linear function, the sigmoid 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 in multilayer perceptrons. However, recent work has shown sigmoid neurons to be less effective than rectified linear neurons. The reason is that the gradients computed by the backpropagation 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.

Rectifier

See also: Rectifier (neural networks). In the context of artificial neural networks, the rectifier or ReLU (Rectified Linear Unit) is an activation function defined as the positive part of its argument:

f(x)=x+=max(0,x),

where x is the input to a neuron. This is also known as a ramp function and is analogous to half-wave rectification in electrical engineering. This activation function was first introduced to a dynamical network by Hahnloser et al. in a 2000 paper in Nature[25] with strong biological motivations and mathematical justifications.[26] It has been demonstrated for the first time in 2011 to enable better training of deeper networks,[27] compared to the widely used activation functions prior to 2011, i.e., the logistic sigmoid (which is inspired by probability theory; see logistic regression) and its more practical[28] counterpart, the hyperbolic tangent.

A commonly used variant of the ReLU activation function is the Leaky ReLU which allows a small, positive gradient when the unit is not active:

f(x)=\begin{cases} x&ifx>0,\\ ax&otherwise. \end{cases}

where x is the input to the neuron and a is a small positive constant (in the original paper the value 0.01 was used for a).[29]

Pseudocode algorithm

The following is a simple pseudocode implementation of a single TLU which takes boolean inputs (true or false), and returns a single boolean output when activated. An object-oriented model is used. No method of training is defined, since several exist. If a purely functional model were used, the class TLU below would be replaced with a function TLU with input parameters threshold, weights, and inputs that returned a boolean value.

class TLU defined as: data member threshold : number data member weights : list of numbers of size X function member fire(inputs : list of booleans of size X) : boolean defined as: variable T : number T 0 for each i in 1 to X do if inputs(i) is true then T T + weights(i) end if end for each if T > threshold then return true else: return false end if end function end class

See also

Further reading

External links

Notes and References

  1. Rami A. Alzahrani . Alice C. Parker . Neuromorphic Circuits With Neural Modulation Enhancing the Information Content of Neural Signaling . Proceedings of International Conference on Neuromorphic Systems 2020 . New York . Association for Computing Machinery . en . 19 . 978-1-4503-8851-1 . 10.1145/3407197.3407204. 220794387. free.
  2. Maan. A. K.. Jayadevi. D. A.. James. A. P.. 1 January 2016. A Survey of Memristive Threshold Logic Circuits. IEEE Transactions on Neural Networks and Learning Systems. PP. 99. 1734–1746. 10.1109/TNNLS.2016.2547842. 27164608. 2162-237X. 1604.07121. 2016arXiv160407121M. 1798273.
  3. Book: F. C. Hoppensteadt and E. M. Izhikevich . Weakly connected neural networks . Springer . 1997 . 978-0-387-94948-2 . 4.
  4. Book: Minsky, Marvin Lee . Computation: Finite and Infinite Machines . 1967-01-01 . Prentice Hall . 978-0-13-165563-8 . English.
  5. McCulloch . Warren S. . Pitts . Walter . 1943-12-01 . A logical calculus of the ideas immanent in nervous activity . The Bulletin of Mathematical Biophysics . en . 5 . 4 . 115–133 . 10.1007/BF02478259 . 1522-9602.
  6. Gidon. Albert. Zolnik. Timothy Adam. Fidzinski. Pawel. Bolduan. Felix. Papoutsi. Athanasia. Poirazi. Panayiota. Panayiota Poirazi. Holtkamp. Martin. Vida. Imre. Larkum. Matthew Evan. 2020-01-03. Dendritic action potentials and computation in human layer 2/3 cortical neurons. Science. 367. 6473. 83–87. 10.1126/science.aax6239. 31896716. 2020Sci...367...83G. 209676937. free.
  7. Book: Squire. L.. Albright. T.. Bloom. F.. Gage. F.. Spitzer. N.. Neural network models of birdsong production, learning, and coding. October 2007. Elservier. New Encyclopedia of Neuroscience. 12 April 2015. https://web.archive.org/web/20150412190625/https://clm.utexas.edu/fietelab/Papers/birdsong_review_topost.pdf. 2015-04-12.
  8. Moore . J.M. . etal . 2011. Motor pathway convergence predicts syllable repertoire size in oscine birds . Proc. Natl. Acad. Sci. USA . 108 . 39. 16440–16445 . 10.1073/pnas.1102077108 . 21918109 . 3182746 . 2011PNAS..10816440M . free .
  9. 1411.7406. Error Correction Capacity of Unary Coding. Pushpa Sree. Potluri. 26 November 2014. cs.IT.
  10. News: Kleiner . Kurt . Making computer chips act more like brain cells . 23 September 2022 . Knowable Magazine Annual Reviews . 25 August 2022 . en . 10.1146/knowable-082422-1.
  11. Keene . Scott T. . Lubrano . Claudia . Kazemzadeh . Setareh . Melianas . Armantas . Tuchman . Yaakov . Polino . Giuseppina . Scognamiglio . Paola . Cinà . Lucio . Salleo . Alberto . van de Burgt . Yoeri . Santoro . Francesca . A biohybrid synapse with neurotransmitter-mediated plasticity . Nature Materials . September 2020 . 19 . 9 . 969–973 . 10.1038/s41563-020-0703-y . 32541935 . 2020NatMa..19..969K . 219691307 . en . 1476-4660.
  12. News: Artificial neuron swaps dopamine with rat brain cells like a real one . 16 September 2022 . New Scientist.
  13. Wang . Ting . Wang . Ming . Wang . Jianwu . Yang . Le . Ren . Xueyang . Song . Gang . Chen . Shisheng . Yuan . Yuehui . Liu . Ruiqing . Pan . Liang . Li . Zheng . Leow . Wan Ru . Luo . Yifei . Ji . Shaobo . Cui . Zequn . He . Ke . Zhang . Feilong . Lv . Fengting . Tian . Yuanyuan . Cai . Kaiyu . Yang . Bowen . Niu . Jingyi . Zou . Haochen . Liu . Songrui . Xu . Guoliang . Fan . Xing . Hu . Benhui . Loh . Xian Jun . Wang . Lianhui . Chen . Xiaodong . A chemically mediated artificial neuron . Nature Electronics . 8 August 2022 . 5 . 9 . 586–595 . 10.1038/s41928-022-00803-0 . 10356/163240 . 251464760 . en . 2520-1131. subscription. free .
  14. News: Scientists create tiny devices that work like the human brain . May 17, 2020 . The Independent . April 20, 2020 . en . April 24, 2020 . https://web.archive.org/web/20200424110621/https://www.independent.co.uk/life-style/gadgets-and-tech/news/brain-computing-memory-artificial-synapse-memristor-a9473671.html . live .
  15. News: Researchers unveil electronics that mimic the human brain in efficient learning . May 17, 2020 . phys.org . en . May 28, 2020 . https://web.archive.org/web/20200528112833/https://phys.org/news/2020-04-unveil-electronics-mimic-human-brain.html . live .
  16. Fu . Tianda . Liu . Xiaomeng . Gao . Hongyan . Ward . Joy E. . Liu . Xiaorong . Yin . Bing . Wang . Zhongrui . Zhuo . Ye . Walker . David J. F. . Joshua Yang . J. . Chen . Jianhan . Lovley . Derek R. . Yao . Jun . Bioinspired bio-voltage memristors . Nature Communications . April 20, 2020 . 11 . 1 . 1861 . 10.1038/s41467-020-15759-y . 32313096 . 7171104 . 2020NatCo..11.1861F . free .
  17. News: Bolakhe . Saugat . Lego Robot with an Organic 'Brain' Learns to Navigate a Maze . 1 February 2022 . Scientific American . en.
  18. Krauhausen . Imke . Koutsouras . Dimitrios A. . Melianas . Armantas . Keene . Scott T. . Lieberth . Katharina . Ledanseur . Hadrien . Sheelamanthula . Rajendar . Giovannitti . Alexander . Torricelli . Fabrizio . Mcculloch . Iain . Blom . Paul W. M. . Salleo . Alberto . Burgt . Yoeri van de . Gkoupidenis . Paschalis . Organic neuromorphic electronics for sensorimotor integration and learning in robotics . Science Advances . December 2021 . 7 . 50 . eabl5068 . 10.1126/sciadv.abl5068 . 34890232 . 8664264 . 2021SciA....7.5068K . 10754/673986 . 245046482 . EN.
  19. Sarkar . Tanmoy . Lieberth . Katharina . Pavlou . Aristea . Frank . Thomas . Mailaender . Volker . McCulloch . Iain . Blom . Paul W. M. . Torriccelli . Fabrizio . Gkoupidenis . Paschalis . An organic artificial spiking neuron for in situ neuromorphic sensing and biointerfacing . Nature Electronics . 7 November 2022 . 5 . 11 . 774–783 . 10.1038/s41928-022-00859-y . 253413801 . en . 2520-1131. free . 10754/686016 . free .
  20. Artificial neurons emulate biological counterparts to enable synergetic operation . Nature Electronics . 10 November 2022 . 5 . 11 . 721–722 . 10.1038/s41928-022-00862-3 . 253469402 . en . 2520-1131.
  21. Book: Martin Anthony. Discrete Mathematics of Neural Networks: Selected Topics. January 2001. SIAM. 978-0-89871-480-7. 3–.
  22. Book: Charu C. Aggarwal. Data Classification: Algorithms and Applications. 25 July 2014. CRC Press. 978-1-4665-8674-1. 209–.
  23. [Paul Werbos]
  24. Werbos . P.J. . Paul Werbos. Backpropagation through time: what it does and how to do it . Proceedings of the IEEE . 78 . 10 . 1990 . 0018-9219 . 10.1109/5.58337 . 1550–1560. 18470994 .
  25. Hahnloser . Richard H. R. . Sarpeshkar . Rahul . Mahowald . Misha A. . Douglas . Rodney J. . Seung . H. Sebastian . Digital selection and analogue amplification coexist in a cortex-inspired silicon circuit . Nature . 405 . 6789 . 2000 . 0028-0836 . 10.1038/35016072 . 10879535 . 947–951. 2000Natur.405..947H . 4399014 .
  26. R Hahnloser . H.S. Seung . 2001 . Permitted and Forbidden Sets in Symmetric Threshold-Linear Networks. NIPS 2001.
  27. Xavier Glorot . Antoine Bordes . . 2011 . Deep sparse rectifier neural networks . AISTATS .
  28. Encyclopedia: . . Genevieve B. Orr . . 1998 . Efficient BackProp . G. Orr . K. Müller . Neural Networks: Tricks of the Trade . Springer.
  29. Andrew L. Maas, Awni Y. Hannun, Andrew Y. Ng (2014). Rectifier Nonlinearities Improve Neural Network Acoustic Models.