Deep Learning Slides 📂 Introduction · 2 of 18 32 min read

The Biological Neuron & the McCulloch-Pitts Model

Meet the first artificial neuron. This visual guide traces how the 1943 McCulloch-Pitts model turned a real neuron — dendrites, soma, axon — into simple math: weighted inputs, a threshold, and an all-or-nothing firing rule. See it build AND, OR, and NAND gates, hit its limits, and spark all of AI.

The Biological Neuron & McCulloch-Pitts Model

In 1943 — before the first computer ran a program — two scientists asked whether a neuron could be written as an equation. Their answer became the very first artificial neuron, and every network since is its child.
Dendrites to Math Fire or Stay Silent Logic Gates The Inhibitory Veto

Press Next → or use ← → arrow keys

Section 01

The Story That Started Everything

A neurophysiologist and a logician walk into a problem
Warren McCulloch, a neuroscientist, teamed up with Walter Pitts, a self-taught logic prodigy. Their question: can the brain's all-or-nothing "fire / don't fire" neuron be captured in pure logic? Together they published a model that treated a neuron as a tiny threshold logic unit — and quietly founded the entire field of neural networks.
🌱
Real-world analogy: a strict committee vote

Picture a committee where each member votes yes or no. The chair only approves a motion when the total "yes" weight crosses a set bar. That bar is the threshold, the votes are inputs, and the approval is the neuron firing.

Section 02

Anatomy of a Biological Neuron

A real neuron collects signals, adds them up, and fires a pulse down its output wire when the total is strong enough. Four parts do all the work:

Somasums inputs 1/0 Dendritesreceive signals Axon — carries the pulse Synapsepasses it on
All-or-nothing firing

A neuron never fires "a little." Once the summed input crosses threshold it sends a full action potential — a clean 1. Below threshold, nothing — a 0. That binary snap is what the M-P model copies.

Section 03

Biological Parts → Model Parts

Every piece of the M-P neuron maps directly onto a piece of the real thing. That one-to-one translation is why it felt so convincing in 1943:

BiologyModel equivalentRole
DendritesInputs x₁ … xₙCarry incoming signals (0 or 1)
Synaptic strengthWeights wᵢHow much each input counts
Soma (cell body)Weighted sum Σ wᵢxᵢAdds everything up
Firing thresholdThreshold θThe bar the sum must clear
Action potentialStep activation → yOutputs a clean 1 or 0
AxonOutput ySends the decision onward
🔗
Same skeleton, 80+ years later

Swap the step for a smooth activation and let the weights be learned, and you have the exact neuron inside today's deep networks. The bones haven't changed.

Section 04

The McCulloch-Pitts Neuron

Binary inputs flow in, get summed, and the neuron fires only if the total reaches the threshold θ. In the original model the weights are fixed by hand — there is no learning yet.

x₁ x₂ x₃ w₁w₂w₃ Σ≥ θ ? y 1 or 0
🔒
Fixed weights, by design

The engineer chooses the weights and threshold to build a specific logic gate. The neuron never adjusts them itself — that leap comes 15 years later with Rosenblatt's perceptron.

Section 05

The Maths — Two Tiny Steps

Add up the weighted inputs, then compare to the threshold. That's the whole neuron.

z = Σ wᵢ · xᵢ + b
1 · Weighted sum (soma)
y = 1 if z ≥ θ, else 0
2 · Step activation (firing)
Fire only when z reaches θ fire · y = 1 silent · y = 0 z = θ (threshold)
🧮
Threshold and bias are two views of one dial

Writing z ≥ θ is the same as z − θ ≥ 0. Fold −θ into the sum as a bias b and the rule becomes "fire if z ≥ 0" — exactly how modern neurons phrase it.

Section 06

Worked Example: The AND Gate

Set both weights to 1 and the threshold to θ = 2. The sum only reaches 2 when both inputs are 1 — so the neuron computes logical AND.

x₁x₂z = x₁ + x₂z ≥ 2 ?Output y
000no0
011no0
101no0
112yes1
🎯
Change one number, change the gate

Keep the weights but drop the threshold to θ = 1 and the very same neuron becomes an OR gate — now any single 1 is enough to fire. The threshold is the logic.

Section 07

One Neuron, Many Gates

By choosing weights and threshold, a single M-P neuron reproduces most basic logic gates:

OR
w = [1, 1], θ = 1. Fires when at least one input is 1. Any single vote passes the bar.
🔁
NOT
A single inhibitory input, w = [−1], θ = 0. Input 0 → fires; input 1 → silent. It inverts.
🚫
NAND
w = [−1, −1], θ = −1. Fires on every combination except (1, 1) — the universal gate.
🧩
NAND is a big deal

NAND is functionally complete — wire enough of them together and you can build any logic circuit, including a whole computer. A single threshold neuron already reaches it.

Section 08

Inhibitory Inputs — The Biological Veto

Some synapses don't add to the vote — they block it. One inhibitory signal can shut a neuron down no matter how many excitatory inputs are shouting "fire." Model it with a big negative weight: with w = [1, 1, −10] and θ = 1.5, the third input is a kill-switch.
x₁x₂x₃ (inhibit)zy
1102.01 · fires
1001.00
111−8.00 · vetoed
🧠
Real brains rely on inhibition

Roughly a fifth of your neurons are inhibitory. Without them the brain would fire out of control — inhibition is what makes precise, selective computation possible.

Section 09

The M-P Neuron in Python

The model is so small it fits in a few lines — a weighted sum and a threshold test:

def mcculloch_pitts(inputs, weights, threshold):
    z = sum(x * w for x, w in zip(inputs, weights))
    return 1 if z >= threshold else 0

# AND gate: w = [1, 1], θ = 2
print(mcculloch_pitts([1, 1], [1, 1], 2))   # 1
print(mcculloch_pitts([1, 0], [1, 1], 2))   # 0

class MPNeuron:
    def __init__(self, weights, threshold):
        self.weights, self.threshold = weights, threshold
    def fire(self, inputs):
        z = sum(x * w for x, w in zip(inputs, self.weights))
        return int(z >= self.threshold)

nand = MPNeuron([-1, -1], -1)
print(nand.fire([1, 1]))              # 0
💻
No training loop anywhere

You hand it the weights; it just evaluates. That absence of learning is the model's defining limitation — and the reason the next chapter exists.

Section 10

Why M-P Neurons Led to the Perceptron

The 1943 model was revolutionary — and sharply limited. Three walls pushed the field forward:

🔒
No learning
Weights and thresholds are hand-set. The neuron can't improve from data — an engineer must design every gate.
0️⃣
Binary only
Inputs must be 0 or 1. Real-valued signals — pixel brightness, temperature, price — don't fit.
✖️
Can't do XOR
A single threshold unit is a linear classifier. XOR isn't linearly separable, so one neuron can never solve it.
➡️
The fixes came in stages

Learnable weights arrived with Rosenblatt's perceptron (1958); real inputs and non-linear boundaries arrived with multilayer networks and backpropagation. Each limitation named the next breakthrough.

Section 11

The Family Tree — From Neuron to GPT

Draw a straight line from a single 1943 equation to today's largest models:

1943M-P neuronfixed weights 1958Perceptronlearnable weights 1986MLP + BackpropXOR solved 2012Deep LearningAlexNet · GPUs 2017Transformerattention → GPT
🌳
Every leaf shares the same root

GPT-scale transformers are built from billions of neurons — and each one is still, at heart, a weighted sum passed through an activation. The M-P idea never left; it just multiplied.

Section 12

7 Things to Remember

  The M-P neuron in a nutshell
1It's the original artificial neuron (1943) — every modern unit descends from it.
2Weights = synaptic strength. They set how much each input matters.
3The threshold defines the decision. Change θ and the same neuron becomes a different gate.
4Firing is all-or-nothing — a hard step from 0 to 1, just like a real action potential.
5Inhibitory inputs can veto the whole neuron with a large negative weight.
6One neuron is a linear classifier — great for AND/OR/NAND, powerless against XOR.
7Its limits drove progress — no learning led to the perceptron; no depth led to deep networks.
🚀
You've met the ancestor of all AI

Understand this one threshold unit and the perceptron, MLPs, CNNs, and transformers all become the same idea, scaled up and made learnable.