Skip to content

Artificial neuron

Also called: artificial neurons

Published:

How does an artificial neuron compute?

Google's ML glossary defines a neuron as a distinct unit within a hidden layer of a neural network [1]. Each input is multiplied by its own weight, the products are summed and a bias is added [1]. The scikit-learn documentation adds the next step: the weighted sum goes through a non-linear activation function such as tanh [2]. IBM likens weights to dials that set how strongly each input sways the decision, and the bias to a value that shifts the decision threshold [3].

A concrete case: Google's example network has three inputs and a hidden layer of four neurons. Each neuron holds three weights and a bias, so the hidden layer has 16 parameters; the output node adds four weights and a bias for a total of 21 [1].

How are neurons arranged in layers?

Neurons in the input layer represent the input features [2]. Each hidden neuron transforms the values from the layer before it, and the output layer turns the last hidden layer's values into the final output [2]. Without an activation function every neuron computes a linear function, and stacking more layers still won't let the network learn non-linear relationships [1].

Where does the idea come from?

The inspiration is the biological neuron, which communicates through electrical signals [3]. Warren McCulloch and Walter Pitts proposed the first mathematical model of a neuron in 1943, and Frank Rosenblatt introduced the perceptron, a pattern-recognition algorithm, in 1958 [3]. Today's artificial neuron is a descendant of that simplified model, not a copy of a brain cell.

Frequently asked questions

Is an artificial neuron the same as a perceptron?

Not quite. The perceptron is an early algorithm Rosenblatt introduced in 1958; modern artificial neurons generalise the idea and can use many different activation functions.

Sources

  1. Neural networks: Nodes and hidden layers — Google for Developers
  2. Neural network models (supervised) — scikit-learn
  3. What Is a Neural Network? — IBM