The Artificial Neuron
Every face your phone recognizes, every sentence a chatbot understands, every move a game-playing AI makes — all of it traces back to a single, humble building block called an artificial neuron. It is simpler than you might expect, and understanding it completely is the foundation of everything else in this module.
Inspired by Biology — but Not a Copy
Your brain contains about 86 billion neurons. Each one receives chemical signals from thousands of other neurons, weighs those signals somehow, and either fires an electrical pulse or stays quiet. Artificial neurons borrow that idea at a high level, but they are made of math, not biology. An artificial neuron is a mathematical function. It takes in a list of numbers (its inputs), multiplies each one by a corresponding weight, adds all those products together, and produces a single output number. That is it. No mystery.
An artificial neuron takes several numerical inputs, multiplies each by a weight, sums the results (the weighted sum), and passes that sum forward as its output. Every weight controls how strongly that particular input influences the outcome.
Here is a concrete example. Imagine a neuron that tries to decide how likely a student is to finish their homework tonight. It receives three inputs: Input 1: Hours of free time today. Value = 3. Input 2: How interesting the homework is (1-10 scale). Value = 7. Input 3: How tired the student is (1-10, higher = more tired). Value = 4. The neuron has three weights, one per input: Weight 1 = 0.5 (free time matters moderately) Weight 2 = 0.4 (interest matters quite a bit) Weight 3 = -0.6 (being tired reduces the chance — so the weight is negative) Weighted sum = (3 × 0.5) + (7 × 0.4) + (4 × -0.6) = 1.5 + 2.8 + (-2.4) = 1.9 The neuron outputs 1.9. A higher number signals a stronger prediction that homework gets done. A negative weight simply reduces the total when its input is large — elegant and powerful.
Inputs, Weights, and the Weighted Sum
Every piece of information entering a neuron is an input. Inputs might be pixel brightness values in an image, word scores in a sentence, or sensor readings from a robot — anything reduced to a number. Each input has exactly one weight. The weight determines that input's importance. A weight near zero means 'almost ignore this input.' A large positive weight means 'pay close attention.' A negative weight means 'this input pushes the output in the opposite direction.' The weighted sum is the dot product of the inputs and weights: multiply each pair, then add. The result is a single number that blends all the information together in a weighted way. In a real neural network, this operation happens millions of times per second across thousands of neurons.
Match each term to its definition.
Terms
Definitions
Drag terms onto their definitions, or click a term then click a definition to match.
Why One Neuron Is Not Enough
A single neuron can only draw one straight-line boundary in its input space. It can answer 'is this value above or below a threshold?' but it cannot recognize a handwritten digit, understand a sentence, or distinguish a cat from a dog. Those tasks require many neurons working together in layers — which is exactly where this module goes next. But every layer, every network, every breakthrough AI system starts here: inputs times weights, summed up, forwarded on. Master this and the rest unfolds logically.
Each weight in a neuron has one job: decide how much its input matters. During training, the network adjusts every weight a tiny amount at a time until the outputs are useful. Weights are the network's learned knowledge.
A neuron has inputs [2, 5] and weights [0.3, -0.1]. What is the weighted sum?
What does a weight of 0 do to its input?
Build a Neuron on Paper
- Step 1: Pick any three facts about a song you like. Turn each into a number from 1 to 10. For example: energy (8), how familiar it is (9), how long it is in minutes (4).
- Step 2: Assign a weight to each: energy weight = 0.5, familiarity weight = 0.3, length weight = -0.2.
- Step 3: Compute the weighted sum by hand.
- Step 4: Try different weights and see how the output changes.
- Step 5: Write one sentence explaining what the output number means in your example.