How do simple neurons learn something as complicated as a jump shot?
Lesson 20.2 · Edges, Then Shapes, Then a Jump Shot
Felix · Owen
One neuron: a straight line through a spiral. Useless. Add layers.
Owen’s shot-tracking app can tell a jump shot from a layup.
A single neuron can’t.
It only draws straight cuts, and the difference between those two shots isn’t a straight cut through a grid of pixels.
Felix tries to separate a spiral of dots with one neuron and can’t. He adds a layer. Then another. The spiral comes apart.
The short answer
In layers. No single neuron knows what a jump shot is. The first layer sees edges in the video frame, the middle sees limbs and a ball, the top sees a release above the head. Each layer is simple. The stack isn’t. The spiral came apart the same way.
Try it yourself
Step through adding layers and watch what the network can separate.
One neuron. It can only draw one straight line. The two spirals of dots are hopelessly mixed on both sides.
What you just did has a name
Layers and deep learning
A neural network is neurons arranged in layers: the first layer looks at the raw input, each later layer looks at the outputs of the layer before it, and the last layer gives the answer.
“Deep” just means many layers. Depth is what lets simple pieces add up to something that recognizes a jump shot.
A few more things
Each layer finds a slightly bigger pattern
Pixels become edges. Edges become curves and corners. Corners become an elbow, a ball, a hoop. By the last layer, the network is asking “is the elbow above the shoulder with the ball released?” without anyone writing those words.
Nobody designs the middle
The engineer picks how many layers and how big. What each neuron in the middle ends up detecting is decided by training. Peeking inside afterward is a research field of its own.
Size is why it’s expensive
A small image network has millions of weights. The models behind chatbots have hundreds of billions. Every one of them was nudged, many times, by the training in the next lesson. That’s where the data centers come in.
Go deeper
The longer version, if you want it.
Why depth beats width
A single very wide layer can in theory match any shape, but it needs an enormous number of neurons to do it. Depth is cheaper: a pattern found once in an early layer gets reused by every neuron above it. Detecting “an edge” once and reusing it everywhere beats detecting edges separately in every corner of the image.
Special layer types exist for special data. Convolutional layers slide a small pattern-detector across an image so the same edge-finder works in every position. Module 21’s attention layers do something similar for text. Same neurons, different wiring.
Quick check
A network learns to tell a dog bark from a doorbell. Somewhere inside, one neuron reacts to “a sharp rise in pitch.” Where is it most likely?
Let’s take it slower
Here’s a rule of thumb: no layer is smart, but every layer gets to stand on the one below it. The bottom layer only sees the raw stuff, pixel brightness or sound volume, and reports tiny findings upward. The next layer never sees the raw stuff, only those findings, so it can notice slightly bigger things. Do that ten or fifty times and the top layer is answering a question the bottom one couldn’t even ask. Deep just means a tall stack of not-very-smart.
More examples
Reading a doctor’s handwriting
A network that reads prescriptions doesn’t start with words. Bottom layers find strokes, middle layers find the loops and crossings that make letters, top layers find a drug name. Nobody told it what an “m” looks like, and the stack worked it out anyway.
The self-checkout camera
The camera that catches unscanned items isn’t looking for “a bag of chips.” Low layers find edges and colors, middle layers find shapes like a bag or a bottle, top layers decide whether something crossed the scanner without a beep. One edge-finder, reused for every item in the store.
Back to the question
So how do simple neurons learn a jump shot?
Show the answer
In layers. No single neuron knows what a jump shot is. The first layer sees edges in the video frame, the middle sees limbs and a ball, the top sees a release above the head. Each layer is simple. The stack isn’t. The spiral came apart the same way.
One last question
Build how layers work.
Tap the pieces in order. Tap one again to take it back.
Talk Card
Talk Card · 20.2
Stack neurons in layers and the network builds up from edges to shapes to “a jump shot.” Each layer finds a slightly bigger pattern in the one before it.
Data to AI · pettigrewlab.com/learn

