From Brain Cells to the McCulloch–Pitts Neuron
On this page 8 headings
When does one neuron fire?
Two excitatory inputs, no inhibitory inputs. The neuron fires when their sum is at least 2.
Try one active input.
Now activate both inputs.
What changed? The threshold turns a sum into a yes/no decision. This neuron implements AND.
Quick check: What is the output for inputs (0, 1)?
0: the sum is 1, below the threshold of 2.
Swipe long formulas, tables or code sideways to see the rest.
Start here Every deep learning model, from a phone’s face unlock to a chatbot, is built from one tiny unit: the artificial neuron. It is a very simple copy of a brain cell. This page shows where the idea came from and builds the very first artificial neuron (from 1943) step by step.
The idea comes from biology — from the brain. A brain cell is called a neuron (also: neural cell, neural processing unit). Deep learning borrows the name and a very rough version of how it works.
| Part | What it does | Simple picture |
|---|---|---|
| Dendrite | receives signals from other neurons | the “ears” |
| Soma | processes (combines) the information | the “brain” of the cell |
| Axon | sends this neuron’s output onward | the “mouth” |
| Synapse | the point where one neuron connects to another | the “handshake” |
Everyday example You see a funny video. Your eyes and ears (sense organs) send signals to neurons. Some neurons fire (become active). They pass the signal to other neurons, which may also fire … and finally you laugh.
One neuron does not do all this. Your brain has about billion neurons in a huge, massively parallel network.
Two big ideas from the brain:
- Division of work. Each neuron has its own job. In the lecture’s cartoon, one neuron fires “if the text is funny”, one “if the visual is funny”, one “if the speech style is funny”, and a top neuron fires “if at least 2 of these 3 fired”.
- Hierarchy (layers). In the visual cortex, information flows from the retina through layers V1, V2, … up to AIT. Lower layers find simple things; higher layers find complex things.
Lecture example — face detection in layers Layer 1: detect edges and corners → Layer 2: group them into features like nose, mouth, eyes → Layer 3: detect a whole face.
The professor’s honest disclaimer: this is a very simplified story of how the brain works. It is enough for this course. Real brains are far more complex.
In one line: An artificial neuron is a tiny, simplified copy of a brain cell; many of them in layers make a neural network.
Warren McCulloch (a neuroscientist) and Walter Pitts (a logician) proposed the first, very simple, computational model of a neuron in 1943.
The rules:
- Inputs are only 0 or 1 (Boolean).
- Output y is also only 0 or 1.
- Each input is either excitatory (normal) or inhibitory (a “veto” input).
Step 1 — g adds up the inputs:
Step 2 — f makes the decision:
- if
- if
(theta) is called the thresholding parameter. This whole idea is called thresholding logic.
Veto rule: if any inhibitory input is 1, the output is 0, no matter what.
Everyday example You go to a cricket match only if at least 2 of these are true: friend is coming , it is a weekend , tickets are cheap . . But if “I have an exam tomorrow” (inhibitory) is 1, you do not go at all.
| Function | Inputs | Why it works | |
|---|---|---|---|
| AND (3 inputs) | 3 | sum only when all three are 1 | |
| OR (3 inputs) | 1 | sum when at least one is 1 | |
| NOR (2 inputs) | both inhibitory | 0 | any 1 vetoes; if both 0, sum |
| NOT (1 input) | inhibitory | 0 | vetoes |
| Tautology (always 1) | 0 | sum is always |
Lecture example — check OR with numbers ( inputs) , and , and ✔ this is OR
With 2 inputs there are only 4 possible points: (0,0), (0,1), (1,0), (1,1). The MP neuron fires when . The boundary is a straight line.
- OR: line . Only (0,0) is below it.
- AND: line . Only (1,1) is on/above it.
- With 3 inputs, the line becomes a plane (for separates (0,0,0) from the other 7 points). With n inputs it is a hyperplane.
Linearly separable (for Boolean functions): there is a line (plane) such that every input with output 1 is on one side and every input with output 0 is on the other side.
In one line: A single MP neuron can represent only linearly separable Boolean functions.
| Limitation | Question it raises |
|---|---|
| Inputs must be 0 or 1 | What about real numbers (like a rating of 7.8)? |
| is set by hand | Can the machine learn from data? |
| All inputs count equally | What if one input is more important? |
| Only linearly separable functions | What about functions like XOR? |
The perceptron (next page) fixes the first three. A network of perceptrons fixes the fourth.
Exam words: artificial neuron, dendrite, soma, axon, synapse, McCulloch–Pitts neuron, excitatory input, inhibitory input, thresholding logic, threshold , linearly separable, hyperplane.
