A Neuron

An artificial neuron starts with three fundamental components: weights, a bias, and an activation function. We will work through what each contributes before putting them together to calculate an output.

15 sections · 15 questions · 4 coding challenges

1 / 15

Could a Machine Learn Which Signals Matter?

BOTIE

Imagine building a machine that can recognise a simple pattern of light. Sensors can tell us which parts of an image are bright, but that does not tell the machine which combination means the pattern is present. We need a way for some signals to matter more than others, and a way to change their influence when the machine gets an answer wrong.

McCulloch and Pitts explored simplified mathematical neurons in 1943: units that respond when their combined inputs meet a condition. Rosenblatt's perceptron work in the 1950s investigated learning from examples. The Mark I Perceptron made adjustable connection strengths physical. Its hardware used motor-driven potentiometers, described in the machine's 1960 operator's manual.

A potentiometer is an adjustable electrical component, like the component behind a traditional volume knob. Used as a voltage divider, it changes how much of an input voltage reaches the next part of a circuit. The signal can stay the same while the knob changes its contribution. That gives us something concrete to picture when we talk about a weight. In the Mark I, motors could change these settings during learning.

For the artificial neuron we will use here, there are three fundamental components:

  1. Weights. Each input has its own weight. Think of a separate control for each incoming signal, rather than one volume knob for the whole neuron. In software, we multiply the input by that weight. A negative weight makes the input oppose the combined score; that signed arithmetic goes beyond a passive volume knob on its own.
  2. A bias. This is a separate adjustable constant added to the combined score. It lets us change how readily the neuron responds without changing the relative influence of all its inputs. With a threshold activation, changing the bias moves the point at which the neuron switches on.
  3. An activation function. This turns the combined score into the output passed onward. An early threshold unit gave an on-or-off response. Other choices let the response vary continuously or suppress negative scores. We will examine those choices after the components themselves are clear.

Learning adjusts the weights and bias so that useful signals contribute appropriately. The activation determines how their combined evidence is expressed. This is a simplified computational model inspired by nervous systems, not a complete description of a biological neuron. We can now follow one small example and see exactly what each component changes.

Sources for this history