LIGHT-UP NEURONInside the brain of artificial intelligence, by Shahistha Tabbasum
Explain it
  1. DISCOVER
  2. EXPLORE
  3. BUILD
  4. EXPERIMENT
  5. TRAIN
  6. ANALYSE
  7. APPLY
Discover

How does a machine make a decision?

AI learns patterns from data. Its smallest building block is the artificial neuron: a little calculation that takes in information and makes one decision. Ours decides whether a classroom light should switch on.

Tap each part of the neuron

0 of 7 explored
darkness0.9 presence1.0 energy0.7 x₁ x₂ x₃ w₁ 1.2 w₂ 1.5 w₃ 0.4 b -0.5 Σ z = 2.36 f(z) ON

Start exploring

Tap any part of the diagram, or a button below it. The text changes with the Beginner, Intermediate and Advanced switch at the top.

z = x₁w₁ + x₂w₂ + x₃w₃ + b
output = f(z)

Biological neuron vs artificial neuron

Inspired by, not a copy
dendritescell bodyaxonsynapses
x₁x₂x₃ × w× w× w Σ+ b f numbers, not chemistry
Biological neuronArtificial neuronWhat it does
DendritesInputs x₁, x₂, x₃Receive signals
Synapse strengthWeights wMake some signals count more than others
Cell bodySummation Σ + biasCombines the signals
Firing thresholdActivation functionDecides whether to send a signal on
AxonOutputPasses the result on

An artificial neuron is a maths idea inspired by brain cells. It isn't a tiny brain cell. Real neurons use chemistry and electricity and are far more complicated. Artificial neurons are mathematical models inspired by biological neurons, not replicas. A real neuron fires electrical spikes over time and changes through chemistry. An artificial neuron just multiplies, adds and applies a function. The artificial neuron (McCulloch and Pitts, 1943; Rosenblatt's perceptron, 1958) is a deliberately simple abstraction. Biological neurons show spiking dynamics, dendritic computation and neurochemical plasticity that this weighted-sum-plus-nonlinearity model doesn't capture.

Notes for teachers

Ages: about 11–16. Advanced mode suits older students. Time: 2–3 lessons for all eight modules, or pick modules on their own.

  • All maths is genuine. z = Σxiwi + b. Step: 1 if z ≥ 0, otherwise 0. Sigmoid: 1/(1 + e−z). ReLU: max(0, z). The network uses a sigmoid hidden layer and real forward propagation.
  • Training uses the perceptron rule with a step activation: w ← w + η(t − ŷ)x and b ← b + η(t − ŷ). Accuracy, iterations and charts come from the actual run.
  • The classroom dataset is linearly separable, so training always converges. The staircase dataset is XOR, which shows the limit of a single perceptron.
  • Points, badges and the certificate depend only on what the student actually did. Nothing is saved or sent anywhere.

Light-Up Neuron is part of Shahistha Tabbasum's STEM, AI and Robotics portfolio and Quantum-Inspired Pedagogical Approaches (QIPA) work.