Synapses and Circuits
How do neurons talk, and how does talking change them?
For half a century physiologists argued over what crosses the gap between two neurons, a current or a chemical. In 1921 Otto Loewi slows one frog's heart through its nerve, moves the fluid to a second heart, and the second slows too. The connection is chemical, and a chemical step has quantities in it that can change. The part takes the synapse apart: six steps from spike to clearance, transmitter released in packets by chance (Katz), two kinds of receptor, and the handful of places where a drug can act. It computes how a membrane adds its inputs within about ten milliseconds and how a shunt divides. Then learning: Hebb's rule, local and unstable; Oja's repair, which makes a cell find the first principal component of its inputs; long-term potentiation, the NMDA receptor as the molecule that detects input and output together, spike timing, and a sliding threshold that makes a cell selective. Three circuits follow from one motif, mutual inhibition: neighbours that inhibit each other exaggerate edges (the horseshoe crab, Mach's bands); with self-excitation two rivals choose and hold the choice; with fatigue they alternate, as the spinal cord does in walking. Populations of excitatory and inhibitory cells rest, oscillate or saturate as their drive rises, and the neuromodulators set gain and learning rate. The viewer looks at the Hermann grid, hears and computes its textbook explanation, and watches it fail on a grid with curved streets.
What you need. Part 5's membrane: batteries, conductances and the time constant. Vectors and the idea of a principal component help in chapter 4, which derives what it uses. Chapters 8 to 10 read differential equations as 'relaxes toward', which is explained there.
- Hook
- Loewi's two frog hearts, 1921
- Ideas, models and mathematics
- packets and receptors, synaptic integration and shunting, Hebb and Oja, LTP and spike timing, lateral inhibition, winner-take-all, half-centre oscillators, Wilson and Cowan's populations, where drugs act
- Psyche gains
- plastic synapses; three small circuits; populations
- On you
- Mach bands and the Hermann grid, straight and curved
What you will be able to do
Psych 101 and the major
- Follow a signal across a chemical synapse step by step, and say where each of four families of drug acts.
- Explain why a neuron responds to inputs that arrive together, and what excitation and inhibition do to its voltage.
- Say what Hebb's rule is, what long-term potentiation showed, and how mutual inhibition sharpens an edge, holds a choice and makes a rhythm.
Graduate
- Compute a synapse's mean response, variance and failure rate from n, p and q, and the steady voltage of a membrane with a shunt.
- Show that Hebb's rule diverges along the first eigenvector of the inputs' correlations, and derive Oja's rule and its fixed point.
- Write the equations of lateral inhibition, a winner-take-all pair, a half-centre oscillator and Wilson and Cowan's populations, and say what each parameter sets.
Research
- Say what the curved Hermann grid shows about testing a model, and what a model must predict beyond the effect it was built for.
- State what is and is not established about where a memory is stored, and design an experiment that separates strengthened synapses from chosen cells.
Practice
- Read a dose-occupancy curve and the shift a competitive antagonist makes, and connect a drug's site of action to its side effects.
- Compare the registered and the published record of a set of trials, and say what each would lead a reader to believe.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 56 min · Graduate 61 min · Research 64 min · Practice 61 min.
- 0Two hearts and a dreamPsych 101 and the major5 min
- 1The chemical synapsePsych 101 and the major4 min
- 2Transmitters, and where the drugs actPsych 101 and the major4 min
- 3Adding upPsych 101 and the major4 min
- 4Hebb's rulePsych 101 and the major5 min
- 5A synapse that remembersPsych 101 and the major7 min
- 6Lateral inhibitionPsych 101 and the major4 min
- 7On you: a grid of grey spotsPsych 101 and the major4 min
- 8A circuit that decidesPsych 101 and the major3 min
- 9A circuit that keeps timePsych 101 and the major3 min
- 10PopulationsPsych 101 and the major4 min
- 11Knobs: the neuromodulatorsPsych 101 and the major3 min
- 12The LedgerPsych 101 and the major2 min
- 13In practice: drugs at the synapsePractice5 min
- 14Frontier: where is a memory?Research3 min
- Recap, problems, and the road aheadAll tracks4 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.
Two hearts and a dreamPsych 101 and the major5 min
Part 5 ended with a signal racing down an axon, and stopping at a gap. Ramón y Cajal had shown that neurons are separate cells. So at the end of the axon the signal has to get across to the next cell somehow. For the first half of the twentieth century physiologists split into two camps over how, and they had names for each other. The sparks held that the electric current simply jumps the gap. It's fast, and nerve signals are electrical after all. The soups held that the nerve ending releases a chemical, and the chemical does the work on the other side. In 1921 the question got its first clean answer, and by the account of the man who gave it, the experiment came to him in his sleep. Otto Loewi, a pharmacologist in Graz, said that on the night before Easter Sunday he woke, scribbled an idea on a slip of paper, and fell asleep again. In the morning he couldn't read his own writing. The next night, at three o'clock, the idea came back, and this time he got up and went straight to the laboratory. That's his own telling, years afterwards, and historians aren't sure how much of it to believe. The experiment, though, is in the journal.
Here it is. Two frog hearts, removed from the animals and kept beating in salt solution, each in its own vessel. The first still has its vagus nerve attached, the nerve that slows the heart. The second has no nerve at all. Loewi stimulates the nerve of the first heart, and it slows, as everyone knew it would. Then he takes some of the fluid that has been bathing the first heart and transfers it to the second. And the second heart slows too. Nothing electrical connects the two. Only the fluid crossed. So the nerve must have released a substance into it, and the substance is what tells a heart to slow. Loewi called it Vagusstoff: vagus stuff. It was later identified as acetylcholine, and in 1936 he shared a Nobel Prize for it with Henry Dale, who showed the same chemical at work where nerves meet muscles.
Why does it matter which camp was right? If a connection between two neurons were a wire, there'd be nothing to adjust. The signal crosses, or it doesn't. A chemical step is different. How much is released. How many receptors are waiting for it. How quickly it's cleared away. Every one of those is a quantity, and quantities can change. So a chemical synapse has a strength. And a strength that can change is something that can store what has happened. That's the idea of this part. If learning and memory are anywhere in the machine, they're in the adjustment of these strengths. It's also where nearly every drug that alters the mind does its work, as we'll see. A footnote on the sparks. Their leader, John Eccles, held out until 1951, when an experiment in his own laboratory came out against his own theory, and he gave it up. And it turned out later that a minority of synapses really are electrical. So both camps were partly right, again. But most of the synapses in your brain are chemical, and those are the ones we'll build with.
Part six: synapses and circuits. We'll take the chemical synapse apart, step by step, and find that it releases its transmitter in packets. We'll meet the transmitters, and the handful of places where a drug can interfere. We'll compute how a neuron adds up its inputs, and find a kind of inhibition that divides instead of subtracting. Then learning. Hebb's rule, why it can't work as stated, what repairs it, and the synapse that was found doing it. Then we wire neurons together, into three small circuits. One sharpens edges, and we'll test it on your own eyes. One holds a decision. One keeps time. And we'll finish with whole populations of neurons, the rhythms they fall into, and the chemicals that turn the whole thing up and down.
What it does: The gap; sparks against soups; Loewi's experiment; why a chemical step can be adjusted; objectives
1The chemical synapsePsych 101 and the major4 min
Here's a chemical synapse, drawn large. Above, the ending of an axon. Below, the membrane of the next cell. Between them a cleft, about twenty millionths of a millimetre wide. Inside the ending are vesicles: small bags, each packed with thousands of molecules of transmitter. One. A spike arrives. Two. The change of voltage opens channels that let calcium in. Three. The calcium makes vesicles fuse with the membrane and spill their contents into the cleft. Four. The transmitter drifts across. The gap is so narrow that this takes far less than a millisecond. Five. On the far side, receptor molecules bind it, and open. Ions flow, and the voltage of the next cell moves a little. Six. The transmitter is cleared away: pumped back into the ending, or broken up by an enzyme. That ends the message. Start to finish, about half a millisecond. That delay was one of the things that finally sank the sparks. A current jumping a gap wouldn't need it.
How much transmitter is released? In the early nineteen-fifties Bernard Katz and his colleagues, in London, were recording from the place where a frog's nerve meets its muscle, and they noticed something odd. Even with the nerve silent, there were tiny blips of voltage, all about the same size. So they lowered the calcium, to make the nerve release very little, and watched the response to one impulse after another. It didn't shrink smoothly. It came in steps. Nothing, or one blip's worth, or two, or three. Never one and a half. This histogram is a model synapse behaving that way: release sites, each letting go of one packet with a probability of three in ten. The peaks sit at whole numbers of packets. And look at the peak on the left. percent of impulses release nothing at all. So transmitter comes in packets, and a packet is the contents of one vesicle. And a synapse is a gamble. Its average effect is a product of three numbers: how many sites it has, how likely each one is to release, and how big a response one packet makes. Three numbers, so three ways to make a synapse stronger. Keep that in mind when we come to learning.
Two more facts, and we can start building. First, receptors come in two kinds. In one, the receptor is itself a channel. Transmitter binds, the channel opens within a millisecond, and it closes a few milliseconds later. That's the kind that carries signals. In the other, the receptor isn't a channel at all. It sets off a chain of chemical reactions inside the cell. That's slower to begin, it can last for seconds or minutes, and it changes how the cell behaves: how excitable it is, even which proteins it makes. That's the kind that adjusts. Second. What a fast synapse does to the next cell depends on which ions its channels let through, and you know how to work that out from Part 5. A channel pulls the voltage toward the battery of the ions it passes. A channel that passes sodium and potassium together pulls toward zero millivolts, which is well above threshold. That's excitation. A channel that passes chloride, or potassium alone, pulls the voltage toward rest or below it, away from threshold. That's inhibition. Notice that it's the receptor that decides, not the transmitter.
What it does: Six steps from spike to clearance; packets, failures and strength as n p q; two kinds of receptor and two directions
2Transmitters, and where the drugs actPsych 101 and the major4 min
More than a hundred transmitters are known. Seven will carry us through this series. Two of them do most of the wiring. Glutamate is the brain's accelerator: nearly every fast excitatory synapse uses it. GABA is the brake: most fast inhibition. Between them they account for the great majority of the synapses you have. The rest work differently. Acetylcholine is what Loewi found at the heart, and it's what your nerves release onto your muscles. In the brain it has to do with attention. Dopamine: movement, motivation, and, as Part 17 will show, learning from reward. Serotonin: mood, sleep, appetite, and a long list besides. Noradrenaline: alertness and alarm. The opioids: pain, and relief from it. For each of these, the cells that make it are few, a small cluster deep in the brain, but their axons reach almost everywhere. They don't pass a message from one cell to the next. They broadcast, and what they change is how the circuits that receive them behave. One line each, and every line is too simple. We'll earn the detail as the series goes.
Now, drugs. A receptor recognizes its transmitter by shape, the way a lock recognizes a key. The transmitter fits, and the channel opens. But other molecules can have the right shape too. A molecule that fits the receptor and opens it, as the transmitter would, is called an agonist. Nicotine is one, at a receptor for acetylcholine. Morphine is one, at the receptors for your own opioids. A molecule that fits and does nothing is an antagonist. It just sits there, and while it sits there, the real transmitter can't get in. Curare, the arrow poison of South American hunters, is an antagonist at the receptor on muscle. The nerve fires, the acetylcholine is released, and the muscle never hears it. And antagonists save lives. Naloxone fits the opioid receptor tightly and opens nothing. Given to someone who has stopped breathing after an overdose, it pushes the drug off its receptors within minutes.
A drug doesn't have to act at the receptor. Go back through the steps of the synapse, and every one of them is a place to interfere. The supply. In Parkinson's disease the cells that make dopamine die. L-DOPA is the raw material, given so that the cells that remain can make more. The release. Botulinum toxin stops vesicles of acetylcholine from fusing, and the muscle goes slack. The receptor, opened by an agonist. Or blocked by an antagonist. Caffeine is one: it blocks the receptor for adenosine, a chemical that builds up while you're awake and makes you sleepy. The antipsychotic drugs block a receptor for dopamine. A receptor can also be helped. The benzodiazepines, and in part alcohol, bind beside GABA on its receptor and make it work better. More brake. And the clearing. Block the pump that takes serotonin back up, and it lingers in the cleft: that's an SSRI. Block the pump for dopamine: that's cocaine. Block the enzyme that destroys acetylcholine, and muscles can't stop contracting: that's a nerve agent. Most of psychopharmacology is on this one diagram. Chapter thirteen comes back to it, and asks what these drugs do to a person.
What it does: Seven transmitters in two groups; agonist and antagonist; six sites on one diagram
3Adding upPsych 101 and the major4 min
Take the membrane from Part 5, sitting at rest, and open one excitatory synapse on it for a few milliseconds. The voltage rises by millivolts, and then decays, over the membrane's time constant. This bump is an excitatory postsynaptic potential. Everyone says EPSP. An inhibitory synapse does the opposite. An IPSP: here, millivolts down. And up here is threshold, fifteen millivolts above rest. One input gets a sixth of the way. A neuron in your cortex receives thousands of synapses, and no single one of them can make it fire. What the cell does with them is add.
Two inputs, then. If they arrive at the same moment, the peak is millivolts. Not quite double, and I'll come back to that. Three milliseconds apart: . The second rides on what's left of the first. Thirty milliseconds apart, and there's almost nothing left to ride on: , hardly more than one input alone. Here's the peak against the gap between the two. It falls away at a pace set by the membrane's time constant, milliseconds in this cell. So a neuron is a detector of things that happen together, and together means within about ten milliseconds. That's summation in time. Summation in space is the same arithmetic, for inputs arriving at different synapses on the same cell.
Now many at once. If inputs simply added, twelve of them would give twelve times : this straight line. They don't quite. The computed peaks bend below it. The reason is in the last chapter. An open channel pulls the voltage toward its battery, and the pull is proportional to how far away the voltage is. As the voltage climbs toward zero, each new input has less distance to pull through. For this cell it takes inputs arriving together to reach threshold, where simple addition says six. It's a small effect here. But it's the first sign that a neuron's arithmetic isn't just a sum.
And inhibition can do something stranger than subtract. Here's the steady voltage of the membrane as excitation is turned up. Add an inhibitory synapse whose battery sits below rest, and the whole curve moves down. That's subtraction, more or less. Now add one whose battery sits exactly at rest. With no excitation, it does nothing at all. The voltage doesn't move, and you'd never see this synapse in a recording. But it has opened a hole in the membrane, and whatever current excitation brings in leaks out through the hole. Look at the formula. Excitation is on top. The inhibition appears only underneath. It divides. Here it cuts the effect of a weak input in half. This is shunting inhibition, and it gives a neuron a volume control: the same pattern of input, scaled down. Division of one signal by another will turn up again and again, in vision and in attention.
What it does: One EPSP against the threshold; summation in time; many inputs add to less than the sum; a shunt that divides
4Hebb's rulePsych 101 and the major5 min
In 1949 the Canadian psychologist Donald Hebb published a book, The Organization of Behavior, and in it he made a guess. When an axon of cell A is near enough to excite a cell B, and repeatedly or persistently takes part in firing it, some growth process or metabolic change takes place in one or both cells, such that A's efficiency, as one of the cells firing B, is increased. In short: if A keeps helping to fire B, the synapse from A to B gets stronger. Nobody had seen a synapse do this. Hebb needed it, because he wanted to explain how experience could leave a lasting trace in a brain, and this was the simplest rule that would. As an equation: the change in the weight is the input, times the output, times a small learning rate. Look at what kind of rule that is. The synapse needs to know two things. Was my input active? Did my cell fire? Both are available right there, at the synapse. No supervisor. No error signal from somewhere else. A rule like that is called local, and locality is the constraint that any theory of learning in a brain has to respect.
Let's run it. Give a model cell two inputs. Each dot on the left is one moment: the activity of input one across, and of input two upwards. The two are correlated. When one is high the other tends to be. On the right is the cell's pair of weights, starting small. The circle marks a total length of one. Now apply Hebb's rule at every moment. The weights turn toward the long axis of the cloud, the direction in which the inputs vary most. That part is good, and I'll say why in a minute. But watch their length. Stronger weights give a bigger output. A bigger output gives a bigger change in the weights. That's a positive feedback, and it runs away. After steps the weights are fifty times their natural size and still accelerating. Hebb's rule, as he stated it, has no way to stop. Every synapse grows until it hits whatever ceiling biology imposes. And a brain with every synapse at its ceiling has learned nothing.
The repair is simple to state. After each step of Hebb's rule, shrink all the weights back to a fixed total length. Written out, that's a division by the new length. For a small learning rate you can expand it, and the division becomes a factor of one minus the learning rate times the output squared. Multiply through, keep the terms of first order, and here's what's left. The change in a weight is still input times output: Hebb's term. But now there's a second term, which takes away a little of every weight, in proportion to the square of the output. The more active the cell, the faster all of its synapses decay. This is Oja's rule, from 1982. And it's still local. The synapse needs its input, its cell's output, and its own strength.
Run it on the same inputs. The weights turn toward the long axis, as before. And this time they stop, on the circle, at a length of . Where they stop has a name. It's the first principal component of the inputs. Of all the ways to combine these inputs into one number, it's the combination that varies the most, and so the one that tells you the most about them. Here it carries percent of the variance. Statisticians find this direction with matrix algebra. One model neuron found it by adjusting its own synapses, with nobody telling it what to look for. That's the general lesson. Correlation in, structure out. A cell that strengthens the inputs that are active together ends up as a detector for whatever tends to occur together in its world. That is a kind of learning that needs no teacher, and it's the kind Hebb was after.
What it does: The postulate and locality; the rule run until it diverges; Oja's rule derived; a cell that finds the first principal component
5A synapse that remembersPsych 101 and the major7 min
Hebb's rule sat for more than twenty years as a guess. Then, in Oslo, Terje Lømo and Tim Bliss were recording from the hippocampus of anaesthetized rabbits. They stimulated a bundle of fibres called the perforant path with single test pulses, and recorded how strongly the cells at the far end, in the dentate gyrus, responded. Pulse after pulse, the same response. Then they gave a brief burst of fast stimulation. And afterwards, the response to the very same test pulse was larger. Not for a moment. It stayed larger, for hours. They called it long-lasting potentiation, and it's now known as long-term potentiation, LTP. A synapse had been changed by use, and had held the change. The picture is a sketch of their design. I haven't drawn their data.
How could a synapse know that its own input was active and that its own cell fired, both at once? The answer turned out to be a single kind of molecule. Most excitatory synapses carry two kinds of receptor for glutamate. One, the AMPA receptor, is the ordinary kind. Glutamate binds, the channel opens, and you get an EPSP. The other, the NMDA receptor, is peculiar. Glutamate opens it too. But near the resting voltage its pore is plugged by a magnesium ion, held in by the negative charge inside the cell. So input alone gets nothing through this channel. If the cell is strongly depolarized, because it's firing, the plug is pushed out. But with no glutamate, the channel is shut anyway. Only when both happen together, glutamate from the input and a depolarized cell, is the channel open and clear. And what comes through it is calcium, which sets off the reactions that put more AMPA receptors into that synapse. Input and output. A logical AND, computed by one protein. It's Hebb's product, x times y, in molecular form. And remember the three numbers from chapter one. This changes the third: the response to one packet.
Hebb wrote, takes part in firing it, and that phrase has an order in it. To take part in firing a cell, an input has to arrive before the cell fires. In 1998 Guo-qiang Bi and Mu-ming Poo tested exactly that, on pairs of neurons grown in a dish, where they could set the timing of single spikes. When the input arrived just before the cell's own spike, the synapse got stronger. When it arrived just after, the synapse got weaker. And it mattered only within about milliseconds either side. The curve is Psyche's version of the rule, with that shape. So a synapse isn't only registering that two cells were active around the same time. It keeps the inputs that predicted the cell's firing, and drops the ones that came too late to have caused it. That's a rule about causes. Whether this exact rule is what operates in a living brain is still argued, and we'll come to that at the frontier.
One more piece. A rule that can only strengthen runs away, as we saw. Real synapses can also be weakened, and the theory that ties the two together is due to Bienenstock, Cooper and Munro, in 1982. Their rule. When an input is active and the cell responds strongly, above a threshold, strengthen that synapse. When the cell responds weakly, below the threshold, weaken it. And the threshold isn't fixed. It slides up when the cell has been very active lately, and down when it's been quiet. That's the brake Hebb's rule lacked. Here's a model cell shown two patterns of input, by turns. At first it responds about equally to both. Then one pulls ahead. The threshold rises behind it, the other pattern drops below the threshold, and it's weakened away. The rule even says where this should stop. With two patterns shown equally often, the response to the winner should settle at two. The simulation gives , and for the loser. The cell has become selective. It began with no preference, and its own activity gave it one. Cells in the visual cortex acquire their preferences in much this way, and we'll meet them in the act on perception.
Everything so far has come from the hippocampus of mammals. The first memory traced all the way to a synapse was in a sea slug. Eric Kandel chose Aplysia because its neurons are few and large, some big enough to see, and because it has a simple reflex. Touch its siphon, and it pulls in its gill. A sensory neuron excites a motor neuron, which moves the gill. Touch the siphon again and again, gently, and the withdrawal shrinks: habituation, the simplest kind of learning. In 1974 Vincent Castellucci and Kandel found where it lives. The sensory neuron releases less transmitter onto the motor neuron with each touch. Now shock the tail. The reflex comes back bigger than before: sensitization. An interneuron releases serotonin onto the sensory neuron's terminals, and they release more transmitter. That much lasts minutes. With repeated training the change lasts days or weeks, and then it needs new proteins and new structure. In 1983 Craig Bailey and Mary Chen looked at the sensory neurons' synapses under the electron microscope: more release sites after long-term sensitization, fewer after long-term habituation. Kandel shared the Nobel Prize in 2000. A memory, in a slug as in a rabbit, is written as a change at a synapse: in its strength for minutes, and in its structure for longer.
What it does: Long-term potentiation; the NMDA receptor as an AND; spike timing; a sliding threshold and a cell that becomes selective
6Lateral inhibitionPsych 101 and the major4 min
The first circuit comes from an animal that has hardly changed in hundreds of millions of years. The horseshoe crab has a compound eye of about a thousand receptor units. Each has its own nerve fibre, and the fibres are large enough to record from one at a time. Keffer Hartline spent decades doing exactly that. Shine a spot of light on one unit, A, and its fibre fires at a steady rate. Now light its neighbour, B, as well. A's rate drops. Nothing about the light on A has changed. Its neighbour is inhibiting it. Make B's light brighter, and A drops further. In 1957 Hartline and Floyd Ratliff showed that the relation is about as simple as it could be. The inhibition on each unit is proportional to how fast the other one is firing. And it's mutual. A does the same to B. So each unit's response is its own excitation, less a weighted sum of its neighbours' responses, with nearer neighbours counting for more. This is lateral inhibition, and Hartline shared a Nobel Prize for it in 1967. These equations were measured in the animal. So we can compute with them.
Take a row of eighty such units, and show it an edge. Dim light on the left half, twice as bright on the right. The grey bar at the top is the light itself. Here's what the units do. Far from the edge, each one is inhibited equally from both sides, and the response is just a scaled copy of the light: on the dim side, on the bright side. Still a ratio of two. At the edge it's different. The last unit on the bright side has dim neighbours on one side. So it's inhibited less than its fellows, and it responds more: . The last unit on the dark side has bright neighbours. It's inhibited more, and it responds less: . Across the edge, the ratio in the responses is , where the light's was two. The circuit has exaggerated the edge. Hartline and Ratliff went on to record just this pattern from the crab's own eye.
You can see this circuit's signature in your own vision. The physicist Ernst Mach described it in 1865. Here's a strip that's dark on the left and light on the right, with a short ramp between. The line under it is the actual light: flat, then a ramp, then flat. Look at the foot of the ramp, where it begins. Most people see a thin line there that's darker than the dark side. And at the top of the ramp, a thin line that's brighter than the bright side. Neither one is in the light. Now the model: the same row of units, shown this ramp. A dip at the foot, and a peak at the top. These are Mach bands, and lateral inhibition predicts them. What is it for? Where the light is uniform, every unit is held down by its neighbours, and the response is small. The circuit spends little on what's the same everywhere, and it shouts where something changes. Edges are where the information is. One caution before we go on. At a perfectly sharp step, the model predicts bands too, and people mostly don't see any. This is a model of a crab's eye. Hold that thought for the next chapter.
What it does: The horseshoe crab's eye; a row of units shown an edge; Mach's bands on the viewer and in the model
7On you: a grid of grey spotsPsych 101 and the major4 min
Now an experiment on you, with the same circuit in two dimensions. In 1870 the physiologist Ludimar Hermann noticed something while reading a book with a grid of figures in it. Black squares, white streets. Look at the whole thing for a few seconds, and attend to the places where the streets cross. Most people see faint grey smudges sitting on the crossings. They flicker in and out, and they're always somewhere you're not quite looking. Now pick one crossing and look straight at it. The spot on that one is gone, and the others carry on. There is no grey anywhere on this screen. The streets are the same white all the way along.
For most of the last sixty years, every textbook gave the same explanation, and it's a lovely one. It's due to Günter Baumgartner, in 1960. A cell early in your visual system looks at a small patch of the image, and it's wired like the crab's eye. Light on the centre of its patch excites it. Light on the surrounding ring inhibits it. Put such a cell on a street, half way between two crossings. Its centre is on white. Its surround catches white from two directions, along the street. Now put it on a crossing. The centre is on white again. But the surround catches white from four directions. More light on the surround means more inhibition, and a weaker response. So the crossing should look dimmer than the street. We can compute it. Pass the grid through a centre-surround filter, and the response on the street is ; at the crossing, . And the spot vanishes where you look, the account says, because at the centre of your gaze the receptive fields are tiny, smaller than the street, so centre and surround are both in the light. It explains the spots, where they are, and where they aren't. It's hard to ask for more.
So let's ask for more. Here's the same grid with one change. The streets have been given a slight wave. The squares are the same size, the streets the same width, the crossings where they were. Look at it the way you looked before. Are the spots still there? In 2008 János Geier and his colleagues reported what you've probably just found. With curved streets, the spots vanish. Now ask the model. Each crossing still has four arms of white around it, and each street two. The filter gives on the street and at the crossing. The model still predicts spots. And nobody sees them. The account has nothing in it about whether a street is straight, so it can't be the whole explanation, and it may not be the right one at all. What does produce the spots is still argued. Take the lesson, because we'll use it for the rest of the series. A model that predicts an effect has passed half a test. The other half is whether it predicts when the effect goes away.
What it does: The Hermann grid; the receptive-field account, computed; the curved grid, where the account predicts spots and none are seen
8A circuit that decidesPsych 101 and the major3 min
The second circuit makes decisions. Two units. Each receives its own input. Think of it as the evidence for one of two options. Each one inhibits the other. That's the lateral inhibition of the last two chapters, now between two rivals. And each one excites itself: some of its output comes back round as input. The equation says that each unit's activity relaxes toward a function of what it receives: its input, plus its own activity, minus its rival's. The function is an S-shaped curve, with nothing below a threshold and a ceiling at the top. So what does a circuit like this do?
Give A an input of 1.2 and B an input of 1.0. Both start to rise. A rises a little faster. That pushes B down a little, which frees A to rise more, which pushes B down further. Within milliseconds A is close to , and B is at nearly zero. A difference of twenty percent going in. All or nothing coming out. Swap the inputs, and B wins instead. This is called a winner-take-all circuit. It turns a graded comparison into a choice. And that's something a brain has to do all the time. You reach for one cup, not for the average of two.
Now the interesting part. Run it again, and at a hundred and fifty milliseconds make the two inputs equal. The evidence that favoured A is gone. A stays on. B stays off. The circuit goes on holding its choice, with nothing in its input to say which it chose. Take away the self-excitation, and it can't. The two units drift back to the same level, and the choice is lost. So the loops are doing the remembering. Not a changed synapse this time. Activity that keeps itself going. That's a second kind of memory, quick to write and easy to erase. When we get to working memory, in Part 19, this is the mechanism on the table.
One more property, and it's the one a psychologist cares about. How long does the circuit take to decide? When the two inputs differ a lot, milliseconds. As the difference shrinks, the decision takes longer and longer. For the smallest difference here, milliseconds. The two units start close together, and it takes time for one to pull clear. People do the same. In Part 1 we measured that harder discriminations take more time, and we couldn't say why. Here's a candidate reason. Part 25 turns it into a model of deciding, and tests it against the reaction times of people.
What it does: Two rivals; winner-take-all; a choice held after the evidence has gone; harder choices take longer
9A circuit that keeps timePsych 101 and the major3 min
The third circuit keeps time. When you walk, the muscles that bend each leg and the muscles that straighten it take turns, about once a second, and you give it no thought. Where does the rhythm come from? Around 1900 the leading view, Charles Sherrington's, was that walking is a chain of reflexes. The feel of each step triggers the next. In 1911 Thomas Graham Brown tested that, in cats. He cut the spinal cord off from the brain. And he cut the sensory nerves coming in from the legs, so that no feeling of a step could arrive. The leg muscles still contracted in alternation. Flexor, extensor, flexor, extensor. The rhythm was being made inside the spinal cord itself. And Graham Brown proposed how. Two groups of neurons, one driving the flexors and one the extensors, each inhibiting the other. He called them half-centres. The idea was ignored for half a century. It's now the starting point for how every rhythmic movement is understood.
Here's the circuit in Psyche. Mutual inhibition, as in the last chapter. No self-excitation this time. Instead, each unit tires: the longer it has been active, the weaker it gets. Both units receive the same steady drive. Nothing rhythmic goes in. Watch. One unit gets ahead, and silences the other. But it's tiring. Its output sags, its grip on the other loosens, and the other, which has been resting, escapes and takes over. Now it's the first one's turn to rest. And round it goes, with a period of milliseconds. When one is up, the other is down: the correlation between the two outputs is . A steady input has been turned into a rhythm, by two units and two ingredients.
Two questions about this circuit. First, what sets the tempo? The fatigue does. Make the units tire quickly, and a full cycle takes milliseconds. Make them tire slowly, and the period stretches to seconds. Second, what kills the rhythm? Weaken the inhibition, and there's nothing to make them take turns. Both units settle at the same steady level. The alternation needs the inhibition to be strong enough, though not so strong that one unit wins for good. Circuits of this kind are called central pattern generators, and they run walking, swimming, breathing and chewing. The brain tells them to go, and how fast. It doesn't have to send the rhythm. Now look back over three chapters. Inhibit your neighbours, and you sharpen edges. Add self-excitation, and you hold a choice. Add fatigue instead, and you keep time. One motif, three behaviours. That's what a circuit is: the same cells, doing different things because of how they're wired.
What it does: Graham Brown's cats; mutual inhibition with fatigue; what sets the tempo and what stops the rhythm; one motif, three behaviours
10PopulationsPsych 101 and the major4 min
In the nineteen-twenties, in Jena, the psychiatrist Hans Berger attached electrodes to people's scalps and recorded a tiny, fluctuating voltage. When his subjects sat with their eyes closed, the voltage swung in a steady rhythm, about ten waves a second. When they opened their eyes, the rhythm broke up into something smaller and faster. He published in 1929, and this was the first recording of the human brain at work: the electroencephalogram, the EEG. Think about what it takes to see that. The electrode is centimetres from the cells, on the far side of the skull. One neuron's voltage would be lost. A signal reaches the scalp only when a very large number of neurons do the same thing at the same time. So a rhythm on the scalp means whole populations, rising and falling together. We can't follow that cell by cell. So we change the variable. Not the voltage of one neuron, but the fraction of a population that's active.
In 1972 Hugh Wilson and Jack Cowan wrote down the simplest model of that kind. Two populations in one patch of tissue: excitatory cells and inhibitory cells. E is the fraction of the excitatory cells that are active; I, the fraction of the inhibitory ones. The excitatory cells excite each other, and they excite the inhibitory cells. The inhibitory cells inhibit the excitatory ones. And something outside drives the excitatory population. Two equations, of the kind you've now seen three times: each activity relaxes toward an S-shaped function of what that population receives. And you can read off what might happen. E rises, and feeds itself. That recruits I. I shuts E down. With E quiet, I loses its own drive and falls. And then E is free to rise again. A loop with a delay in it.
Compute it. With no drive, the population sits at rest. Almost nothing is active. Turn the drive up past a critical value, and it doesn't settle at some higher level. It starts to swing, about times a second, with the inhibitory cells following the excitatory ones round the loop. Turn the drive up much further, and the rhythm stops again. Now the excitatory population is pinned at its ceiling, and inhibition can't pull it down. Here's the whole picture: the range that E covers, at each level of drive. Rest. Then, at a drive of , a rhythm switches on, and its tempo runs from to waves a second depending on the drive. Then saturation. Two things to take away. No cell in this model oscillates. The rhythm is a property of the loop. And the interesting behaviour lives in the middle, where excitation and inhibition are in balance. Lose the balance toward excitation, and you get runaway activity; in a real brain, that's a seizure. This isn't a claim about where Berger's rhythm comes from. Real rhythms have several generators. It's the simplest demonstration that populations wired this way will oscillate without being told to. What the EEG can and can't tell us is Part 8.
What it does: Berger's rhythm; Wilson and Cowan's two equations; rest, rhythm and saturation as the drive rises
11Knobs: the neuromodulatorsPsych 101 and the major3 min
Back in chapter two we set four transmitters to one side, as broadcasters. Here's what's different about them. Each is made by a small cluster of cells deep in the brain, and those cells send their axons almost everywhere. And they act mainly through the slow kind of receptor, the kind that changes how a cell behaves over seconds. Now think about what such a system could possibly be for. A signal that reaches everything at once can't carry content. It can't say, there's an edge here, or, choose the left one. What it can carry is something about the state of the whole animal, something every circuit ought to know. In a model, that means it turns a knob. There are two knobs we've already built, and I'll show you both.
The first knob is gain. Every unit in the last four chapters had an S-shaped response curve. Gain is its steepness. Take two inputs a little way apart. With the gain low, the unit responds to them almost alike: a difference of . With the gain high, the same two inputs are driven far apart: . Now imagine that turned up across a whole brain. Every winner-take-all circuit decides faster and commits harder to whatever is strongest. Turned down, the circuits loosen, and weaker alternatives get a hearing. Exploit, or explore. That's a leading hypothesis for what noradrenaline does. It's a hypothesis, and we'll put it to the evidence when we get to attention.
The second knob is the learning rate. Go back to the cell learning by Oja's rule, and run it twice. With a large learning rate it finds the right direction in steps. But it never settles. Every new sample jerks it about. With a small learning rate it takes steps, ten times as long, and then it's steady. Fast and unstable, or slow and stable. No single setting is right. It depends on whether the world has just changed. So let a broadcast signal set it. Multiply Hebb's term by a third factor, delivered to every synapse at once, that says: something important just happened, learn from it now. A three-factor rule of this kind is a leading proposal for how learning is steered in a real brain. And the best-studied candidate for the third factor is dopamine. Part 17 is about exactly what it signals.
What it does: Broadcast systems; gain; the learning rate and a three-factor rule
12The LedgerPsych 101 and the major2 min
Three rows today. The first. The claim: a brief burst of strong activity leaves a synapse stronger for a long time. The original: Bliss and Lømo, 1973, in the hippocampus of anaesthetized rabbits. What happened next: it has been produced again and again, in many preparations, and Bi and Poo, in 1998, tied it to the timing of single spikes. The note matters. That synapses can be strengthened by use isn't in doubt. Whether that's how your memories are stored is a different claim, and it gets its own hearing in Part 20. Replicated.
The second. The claim: neighbouring receptors in an eye inhibit one another, in proportion to how active each one is. The original: Hartline and Ratliff, 1957, recording from single fibres of the horseshoe crab's optic nerve. A year later they showed that the inhibition from several neighbours simply adds. These are the equations of one animal's eye, measured unit by unit, and they predict the bands Mach described a century before. Replicated. Like the row from Part 5, it's a claim stated as an equation, on parts that could be measured separately.
And the third, which uses the second. The claim: the grey spots of the Hermann grid are produced by centre-surround receptive fields. The original: Baumgartner's argument of 1960, repeated in textbooks ever since. The record: Geier and colleagues, 2008. Curve the streets, leave everything the account depends on in place, and the spots vanish. So the textbook explanation predicts spots where nobody sees them. Lateral inhibition is real. This famous application of it is at best incomplete, and what does cause the spots is still disputed. The status is one we've used before: story and record. The story is a tidy mechanism. The record says it fails a test it should have passed. That makes rows. And notice the pattern in today's three. The mechanisms stood up. The step from a mechanism to an experience is where it went wrong.
What it does: Long-term potentiation, lateral inhibition, and the Hermann grid's explanation
13In practice: drugs at the synapsePractice5 min
Suppose your job is to study a drug for the mind. Your first question is the plainest one. How much of it sticks, and to what? Drug molecules and receptors meet at random, bind, and come apart again. At a steady state, the fraction of receptors occupied depends on the concentration in one simple way. Plot it on a scale where each step is ten times more drug, and you get this S-curve. The concentration that fills half the receptors is called the dissociation constant, and it measures how tightly the drug binds. The smaller it is, the tighter. Now add an antagonist that competes for the same site. The curve keeps its shape and slides to the right. It takes more of the first drug to reach the same occupancy: here, ten times more. The size of that shift is how an antagonist is measured. Laboratories run this measurement on thousands of compounds, against dozens of receptors, before one of them is ever given to an animal.
Now the drugs that are actually prescribed. Four families, and each acts at one of the six places from chapter two. The SSRIs block the pump that clears serotonin from the cleft. They're given for depression and anxiety. And here's a puzzle. The pump is blocked within hours of the first dose. The benefit, when it comes, takes weeks. So whatever these drugs do for mood, it isn't simply topping up a chemical. The slow part must be the brain adapting to the change. The benzodiazepines help GABA's receptor, which means more brake everywhere: calm, sleep, an end to a seizure. And the brain adapts to that too, which is tolerance, and then dependence. The stimulants block or reverse the pumps for dopamine and noradrenaline. That's the same pump that cocaine blocks. What differs is the dose, and how fast the drug arrives. The antipsychotics block a receptor for dopamine. But that receptor also serves the control of movement, and so the older drugs cause tremor and stiffness. Notice what each catch has in common. A drug reaches every synapse that uses its target, not only the ones you wanted. And what it does at the synapse is only the first link in a long chain. Knowing the first link isn't knowing why a person feels better. That question waits for the parts on disorder and treatment.
And then the question that matters to a patient. Does it work? You already know how that has to be answered, from Part 2. People are assigned at random to the drug or to a placebo, and neither they nor the staff know which. There's a snag, and it's Part 2's lesson again. These drugs have side effects. People who feel them can guess that they got the real thing, and the blind is partly broken. And from Part 4: the plan is registered with the regulator before the trial starts. Which makes a check possible. In 2008 Erick Turner and colleagues took trials of antidepressants, as registered with the American regulator, and compared them with what had been published. By the regulator's own analysis, percent of the trials were positive. In the published literature, it looked like percent. Nearly every positive trial had been published. Most of the others had not, or had been written up as successes. The drugs do something. But the record a doctor could read made them look better than the record the regulator held. That's the file drawer of Part 4, measured, in a field where the stakes are someone's treatment. The people who do this work, pharmacologists, trial statisticians, regulators, use everything in these first six parts.
What it does: Receptor occupancy and the shift an antagonist makes; four families of drug and their catches; registered against published trials
14Frontier: where is a memory?Research3 min
Hebb's idea was that a memory is a set of cells bound together by strengthened synapses. For decades nobody could find such a set. The next part tells the story of the man who spent thirty years looking. Then, in 2012, a laboratory at MIT did something Hebb couldn't have imagined. Xu Liu, Steve Ramirez and their colleagues put a mouse in a box and gave it a mild shock to the feet. The mouse learns to fear that box. And with a genetic trick, the cells of the hippocampus that were active during that learning, and only those, were made to carry a channel that opens when blue light falls on it. Later, the mouse is put in a quite different box. It has no reason to be afraid there, and it explores. Then light is sent down an optical fibre onto the tagged cells. And the mouse freezes, which is what a frightened mouse does. The controls are what make it convincing. No freezing if the mouse was never shocked. None if the tagged cells carry no channel. None if the cells were tagged in a harmless box. So switching on the cells that were active during an experience is enough to bring something of that experience back, at least as behaviour. A year later the same group used the method to attach a fear to a place where nothing bad had ever happened.
That experiment answers one question and opens three. First. Is the memory in the synapses, or in the cells? The method finds the cells. Whether the strengthened synapses between them are the memory itself, or only the usual way of getting to it, is being argued right now. Second. Is spike timing really the rule in a living brain? In a dish, yes. In an animal, how fast the cells are firing, where on the dendrite the synapse sits, and which modulators are present all change the answer. Third, and deepest. Hebb's rule knows about two cells. But suppose an animal makes a mistake, and the synapse that ought to change is many steps away from the place where the mistake shows. How does it know? Artificial networks solve that with a signal no real synapse could receive in the same way. Whether brains have an equivalent is one of the central open problems, and Part 58 takes it up. And a problem for you. Design the experiment that would tell those first two possibilities apart. What would you block, what would you switch on, and what would each answer look like?
What it does: A memory switched on with light; three open questions and a research problem
Recap, problems, and the road aheadAll tracks4 min
Part six in ten lines. Loewi's two hearts showed that the signal crosses the gap as a chemical. It's released in packets, by chance, so a synapse's strength is a product of three numbers. A handful of transmitters do the work, and there are six places where a drug can interfere. A neuron adds the inputs that arrive within about ten milliseconds of each other, and one kind of inhibition divides. Hebb's rule is local, and as stated it runs away. Oja's repair makes a cell find the direction in which its inputs vary most. Long-term potentiation, the NMDA receptor and spike timing are Hebb's rule in a molecule. Lateral inhibition exaggerates edges, and it doesn't explain the Hermann grid. The same motif with self-excitation holds a choice, and with fatigue it keeps time. And populations swing when excitation and inhibition are in balance, while the modulators set the gain and the learning rate.
Kant's wager. The first objection was that the mind admits no mathematics. Part 5 gave the strongest reply we have. Today adds two things to it. A model of an eye, measured in a crab, predicted an illusion that Mach had described a century earlier. That's the reply getting stronger. And a model of the Hermann grid was mathematical, was computed, fitted what people see, and failed the first new test anyone gave it. That's a warning about what the reply requires. Equations aren't enough. What counts is a prediction made before the measurement, about something the model was never fitted to. The second and third objections stand as Act one left them.
Where this comes back. Where things are in a brain, with damage as the experiment, is the next part. What a recording of the brain measures is Part 8. Lateral inhibition in your own retina is Part 13. Dopamine as the third factor, Part 17. A choice held in activity becomes working memory in Part 19. Whether long-term potentiation is how memories are stored is argued in Part 20. The circuit that decides is tested against people's reaction times in Part 25. What these drugs do for a disorder begins in Part 40. And learning without a local rule is Part 58.
Seven problems, with full solutions in this part's README. One works out what a synapse's failures tell you about where learning changed it. One adds two inputs in time. One shows that a shunt divides. One proves that Hebb's rule runs away along the first principal component, and that Oja's rule stops there. One finds where a BCM cell settles. One uses Psyche's circuits to see what sets the size of Mach's bands. And the last, with the star, is the frontier's problem. Pause here if you'd like to try them.
The books and papers behind this part are listed here and in the README. Hebb's book is still worth reading, seventy-five years on, for how much he got right from an armchair.
So now the machine has connections. Neurons that talk through chemical synapses, synapses that change with use, and small circuits that sharpen, decide and keep time. What we haven't done is say where anything is. A brain has eighty-six billion of these cells. Is a memory, or a word, or a decision, in one place, or spread through all of it? For a long time the only way to find out was to wait for an accident. In September 1848, in Vermont, an explosion blew an iron rod more than a metre long through the head of a railway foreman called Phineas Gage. He stayed conscious, and he lived for years. What happened to him afterwards, what the record really supports, and what a century of retelling added to it, is where Part 7 begins: the brain.
Where it goes next. Where things are in a brain, and what recordings measure, are Parts 7 and 8. Lateral inhibition returns in the retina (Part 13), dopamine as the third factor of a learning rule in Part 17, a choice held in activity as working memory in Part 19, and whether long-term potentiation is how memories are stored in Part 20. The circuit that decides is tested against reaction times in Part 25, the four families of drug meet the disorders in Parts 40 to 42, and learning without a local rule is Part 58.
Key results
The part's results in one place, for revision.
Try it
Lab 6 · A synapse, a learning rule and three circuits built on mutual inhibition
Simulate a synapse that releases packets by chance and recover n p q from its responses; add inputs on a membrane in time and divide them with a shunt; run Hebb's rule until it diverges and Oja's until it settles on the first principal component; then show an edge to a row of units with lateral inhibition, let two rivals choose and hold a choice, and make two half-centres keep time.
python -m videos.psychology.labs 6
needs numpy, scipy, matplotlib · download lab06.py ·
source on GitHubmodel synapse: mean response, n p q 0.597, 0.600 mV
... variance, n p (1 - p) q^2 0.172, 0.168 mV^2
... share of failures, (1 - p)^n 0.173, 0.168
one EPSP; two 3 ms apart; two 30 ms apart (mV) 2.50; 4.56; 2.63
steady response to g_E = 0.05: alone, with a shunt 21.7, 10.8 mV
the shunt by itself moves the voltage by 0.0 mV
Hebb's rule: length of the weights after 100, 200 steps 11.4, 2914
Oja's rule: final length; cosine with the first PC 1.00; 1.000
share of the inputs' variance on the first PC 0.97
lateral inhibition: plateaus either side of an edge 0.56, 1.13
... dark band, bright band 0.32, 1.37
... ratio across the edge, in the light and in the responses 2.0, 4.3
two rivals, inputs 1.2 and 1.0 then equal: final activities 0.98, 0.00
... without self-excitation 0.12, 0.12
half-centres: period; correlation of the two outputs 740 ms; -0.86
... with inhibition of 0.8: spread of each output late in the run 0.000
A synapse's failures depend on how many sites it has and how readily they release, and not on the size of a packet, which is how recordings locate a change. Inputs add when they arrive within about a time constant, and a shunt halves them without moving the voltage by itself. Hebb's rule finds the right direction and never stops growing; Oja's stops at length one on the first principal component. Mutual inhibition among neighbours exaggerates an edge; with self-excitation it holds a choice after the evidence has gone; with fatigue it alternates.
The code (109 lines; it asserts its own result)
"""Lab 6: a synapse that releases by chance, a cell that learns a principal component, and three small circuits."""
import numpy as np
from videos.coursekit import labs
from explainer.psychology.psyche import circuits as C
TITLE = "A synapse, a learning rule and three circuits built on mutual inhibition"
GOAL = ("Simulate a synapse that releases packets by chance and recover n p q from its responses; add inputs on a "
"membrane in time and divide them with a shunt; run Hebb's rule until it diverges and Oja's until it "
"settles on the first principal component; then show an edge to a row of units with lateral inhibition, "
"let two rivals choose and hold a choice, and make two half-centres keep time.")
TASKS = [
"Raise the release probability of the model synapse from 0.3 to 0.6 and, separately, double the size of a "
"packet. Both double the mean response. Which one changes the share of failures, which changes the ratio of "
"variance to mean, and how would a recording tell the two kinds of learning apart?",
"Train the Oja cell on inputs whose two principal components carry nearly equal variance (change the mixing "
"matrix to [[2, 0], [0, 1.9]]). How long does it take to settle, and why does the answer depend on the gap "
"between the two eigenvalues?",
"Give the half-centre oscillator inhibition of 0.9, 2.5 and 4.0 (HalfCentre(a=...)). Which of the three keeps "
"time, what do the other two do, and how does that match the condition 1 + tau/T < a < 1 + beta?",
]
def run(seed=0):
out = labs.Lab()
g = np.random.default_rng(seed + 60)
# 1. packets
n, p, q = 5, 0.3, 0.4
k = g.binomial(n, p, 4000)
resp = k * q
out.row("model synapse: mean response, n p q", f"{resp.mean():.3f}, {n * p * q:.3f} mV")
out.row("... variance, n p (1 - p) q^2", f"{resp.var():.3f}, {n * p * (1 - p) * q * q:.3f} mV^2")
out.row("... share of failures, (1 - p)^n", f"{(k == 0).mean():.3f}, {(1 - p) ** n:.3f}")
assert abs(resp.mean() - n * p * q) < 0.03 and abs((k == 0).mean() - (1 - p) ** n) < 0.03
# 2. adding up
m = C.Membrane()
one = m.response(exc=[5.0])["peak"]
close, apart = m.response(exc=[5.0, 8.0])["peak"], m.response(exc=[5.0, 35.0])["peak"]
alone = m.steady_voltage(0.05) - m.e_l
shunt = m.steady_voltage(0.05, 0.15, e_i=m.e_l) - m.e_l
out.row("one EPSP; two 3 ms apart; two 30 ms apart (mV)", f"{one:.2f}; {close:.2f}; {apart:.2f}")
out.row("steady response to g_E = 0.05: alone, with a shunt", f"{alone:.1f}, {shunt:.1f} mV")
out.row("the shunt by itself moves the voltage by", f"{m.steady_voltage(0.0, 0.15, e_i=m.e_l) - m.e_l:.1f} mV")
assert one < apart < close < 2 * one and abs(shunt / alone - 0.5) < 0.01
# 3. Hebb and Oja
x = g.standard_normal((4000, 2)) @ np.array([[2.0, 0.0], [1.2, 0.5]])
h = C.hebb(x, eta=0.01, rule="hebb", rng=np.random.default_rng(seed + 61))
o = C.hebb(x, eta=0.01, rule="oja", rng=np.random.default_rng(seed + 61))
vals = np.linalg.eigvalsh(x.T @ x / len(x))
out.row("Hebb's rule: length of the weights after 100, 200 steps", f"{h['norm'][100]:.1f}, {h['norm'][200]:.0f}")
out.row("Oja's rule: final length; cosine with the first PC", f"{np.linalg.norm(o['w']):.2f}; "
f"{abs(o['cosine'][-1]):.3f}")
out.row("share of the inputs' variance on the first PC", f"{vals[-1] / vals.sum():.2f}")
assert h["norm"][200] > 20 * h["norm"][50] and abs(np.linalg.norm(o["w"]) - 1) < 0.05 and abs(o["cosine"][-1]) > 0.99
# 4. an edge
step = np.r_[np.full(40, 1.0), np.full(40, 2.0)]
r = C.lateral(step)
low, high = r[15:25].mean(), r[55:65].mean()
out.row("lateral inhibition: plateaus either side of an edge", f"{low:.2f}, {high:.2f}")
out.row("... dark band, bright band", f"{r[34:40].min():.2f}, {r[40:46].max():.2f}")
out.row("... ratio across the edge, in the light and in the responses", f"2.0, {r[40:46].max() / r[34:40].min():.1f}")
assert abs(high / low - 2) < 0.01 and r[34:40].min() < low and r[40:46].max() > high
# 5. a choice, held
w = C.WTA()
def then_equal(t):
return (1.2, 1.0) if t < 150 else (1.1, 1.1)
held = w.simulate(then_equal)
loose = C.WTA(w_self=0.0, w_cross=0.5).simulate(then_equal)
out.row("two rivals, inputs 1.2 and 1.0 then equal: final activities", f"{held['r'][-1, 0]:.2f}, {held['r'][-1, 1]:.2f}")
out.row("... without self-excitation", f"{loose['r'][-1, 0]:.2f}, {loose['r'][-1, 1]:.2f}")
assert held["margin"] > 0.9 and loose["margin"] < 0.05
# 6. a rhythm
hc = C.HalfCentre()
s = hc.simulate()
quiet = C.HalfCentre(a=0.8).simulate()
out.row("half-centres: period; correlation of the two outputs", f"{s['period']:.0f} ms; {s['correlation']:.2f}")
out.row("... with inhibition of 0.8: spread of each output late in the run",
f"{np.ptp(quiet['y'][len(quiet['y']) // 2:, 0]):.3f}")
assert hc.oscillates and s["correlation"] < -0.5 and np.ptp(quiet["y"][len(quiet["y"]) // 2:, 0]) < 0.01
out.note = ("A synapse's failures depend on how many sites it has and how readily they release, and not on the "
"size of a packet, which is how recordings locate a change. Inputs add when they arrive within "
"about a time constant, and a shunt halves them without moving the voltage by itself. Hebb's rule "
"finds the right direction and never stops growing; Oja's stops at length one on the first "
"principal component. Mutual inhibition among neighbours exaggerates an edge; with "
"self-excitation it holds a choice after the evidence has gone; with fatigue it alternates.")
fig, ax = labs.figure(2, size=(11, 4.2))
xs = np.arange(len(step))
ax[0].plot(xs[8:72], step[8:72], color=labs.BLUE, lw=1.5, ls="--", label="the light")
ax[0].plot(xs[8:72], r[8:72], color=labs.GREEN, lw=2, label="the units' responses")
ax[0].set(title="An edge of light, and what a row of units makes of it", xlabel="position along the row",
ylabel="light, response")
ax[0].legend(loc="upper left", fontsize=8)
ax[1].plot(s["t"] / 1000, s["y"][:, 0], color=labs.PINK, lw=1.8, label="one half-centre")
ax[1].plot(s["t"] / 1000, s["y"][:, 1], color=labs.PURPLE, lw=1.8, label="the other")
ax[1].set(title=f"Two half-centres, a steady drive: period {s['period']:.0f} ms", xlabel="time (s)",
ylabel="output")
ax[1].legend(loc="upper right", fontsize=8)
out.fig = fig
return out
Now change it
- Raise the release probability of the model synapse from 0.3 to 0.6 and, separately, double the size of a packet. Both double the mean response. Which one changes the share of failures, which changes the ratio of variance to mean, and how would a recording tell the two kinds of learning apart?
- Train the Oja cell on inputs whose two principal components carry nearly equal variance (change the mixing matrix to [[2, 0], [0, 1.9]]). How long does it take to settle, and why does the answer depend on the gap between the two eigenvalues?
- Give the half-centre oscillator inhibition of 0.9, 2.5 and 4.0 (HalfCentre(a=...)). Which of the three keeps time, what do the other two do, and how does that match the condition 1 + tau/T < a < 1 + beta?
Problems, with solutions
Try each problem before opening its solution.
1. Packets. A synapse has n = 5 release sites, each releasing with probability p = 0.3, and one packet gives q = 0.4 mV. Find the mean response, its variance, and the share of impulses that release nothing. If learning doubled the mean and left the share of failures unchanged, which of n, p, q changed?
Solution
The number of packets is binomial. Mean: n p q = 5 × 0.3 × 0.4 = 0.6 mV. Variance (ignoring the spread of single packets): n p (1 − p) q² = 5 × 0.3 × 0.7 × 0.16 = 0.168 mV², a standard deviation of 0.41 mV. Failures: (1 − p)ⁿ = 0.7⁵ = 16.8%. The share of failures depends on n and p only, so if it did not move, q doubled: the change is on the receiving side (more receptors). Had p doubled to 0.6 the failures would have fallen to 1%; had n doubled, to 2.8%. This is how recordings of failures are used to ask on which side of a synapse a change was made.
2. Adding in time. Treat an EPSP as a jump of 2.5 mV that decays as e^(−t/τ) with τ = 10 ms. Two arrive a time Δ apart. Find the peak of the sum, and how close they must be for it to reach 4 mV.
Solution
The sum peaks when the second arrives, at 2.5 (1 + e^(−Δ/τ)) mV. Setting this to 4 gives e^(−Δ/10) = 0.6, so Δ = 10 ln(1/0.6) = 5.1 ms. For Δ = 3 ms the formula gives 4.35 mV; Psyche's membrane gives 4.56, because its EPSPs take a millisecond or two to rise and so overlap more. Thirty milliseconds apart the formula gives 2.62 mV and the membrane 2.63.
3. A shunt divides. For a passive membrane with g_L = 0.1 mS/cm² and E_E − E_L = 65 mV, find the steady response to g_E = 0.05 with and without a shunt g_I = 0.15 whose battery is at rest. Show that for small g_E the shunt divides the response by (g_L + g_I)/g_L.
Solution
At a steady state the currents balance: g_L (V − E_L) + g_E (V − E_E) + g_I (V − E_L) = 0, so V − E_L = g_E (E_E − E_L) / (g_L + g_E + g_I). Without the shunt: 0.05 × 65 / 0.15 = 21.7 mV. With it: 0.05 × 65 / 0.30 = 10.8 mV, half as much. When g_E is small beside the other two conductances it can be dropped from the denominator, and the response is g_E (E_E − E_L)/(g_L + g_I): the unshunted response divided by (g_L + g_I)/g_L = 2.5. With g_E = 0 the shunt changes nothing, which is why it cannot be seen by itself.
4. Hebb and Oja. Average Hebb's rule over the inputs to get dw/dt = η C w, and show that w grows fastest along the first eigenvector. Then show that a fixed point of Oja's rule satisfies C w = (wᵀ C w) w, so that w is an eigenvector of length 1.
Solution
With y = wᵀx, the average of η x y is η ⟨x xᵀ⟩ w = η C w. Write w in the eigenvectors of C, w = Σ aₖ eₖ. Then daₖ/dt = η λₖ aₖ and aₖ(t) = aₖ(0) e^(η λₖ t): every component with a positive eigenvalue grows without bound, and the one with the largest eigenvalue outgrows the rest, so the direction of w tends to e₁ while its length diverges. For Oja's rule the average of η y (x − y w) is η (C w − (wᵀ C w) w), since ⟨y²⟩ = wᵀ C w. At a fixed point C w = (wᵀ C w) w, so w is an eigenvector, with eigenvalue λ = wᵀ C w = λ ‖w‖²; hence ‖w‖ = 1. Perturbing a fixed point eₖ along another eigenvector eⱼ gives a component that changes at the rate η (λⱼ − λₖ), which is negative for every j only when k is the first: the first principal component is the one stable fixed point.
5. Where a BCM cell settles. A BCM cell sees two patterns equally often and responds y₁ and y₂; its threshold is θ = ⟨y²⟩. Show that in the selective state (y₂ = 0) the response settles at y₁ = 2. Where does it settle if pattern 1 is shown only a quarter of the time?
Solution
A synapse active in pattern k changes in proportion to yₖ (yₖ − θ), so at a fixed point each pattern has either yₖ = 0 or yₖ = θ. In the selective state θ = ½ y₁² + ½ × 0 = y₁, so y₁ = 2 (and θ = 2). Psyche's cell ends at 2.03, with the other pattern at 0.00. If pattern 1 has probability p, θ = p y₁² = y₁ gives y₁ = 1/p: 4 for a quarter. A cell that settles on a rare pattern responds to it more strongly, since the threshold is an average over time.
6. What sets the bands. With explainer.psychology.psyche.circuits: apply lateral to a step of light with
the strength of inhibition at 0.1, 0.25 and 0.4. How does the ratio across the edge change? What does a wider
reach (space=4) do to the bands?
Solution
import numpy as np
from explainer.psychology.psyche import circuits as C
step = np.r_[np.full(40, 1.0), np.full(40, 2.0)]
for strength in (0.1, 0.25, 0.4):
r = C.lateral(step, strength=strength)
print(strength, r[40:46].max() / r[34:40].min())
The plateaus keep the light's ratio of 2 at every strength (0.76 and 1.53; 0.56 and 1.13; 0.45 and 0.90), while
the ratio across the edge grows from 2.6 to 4.3 to 11.7: stronger inhibition lowers the response everywhere and
exaggerates the edge more. With space=4 the inhibition reaches twice as far, the bright band is about seven
units wide where it was four, and the dark band is driven to zero, where the response is clipped. The width of a
Mach band measures the reach of the inhibition, which is how Ratliff and Hartline used it.
7. ★ Synapses or cells. Design the experiment that would tell "the memory is the pattern of strengthened synapses" from "the memory is which cells were chosen", and say what each outcome would look like.
Solution
One design: tag the cells active during learning with a light-sensitive channel, as Liu et al. did, and straight after the learning give a treatment that prevents synapses from being strengthened (blocking the synthesis of new protein does this). Then test recall twice, once with the natural cue (the box) and once by lighting the tagged cells. If the memory is the strengthened synapses, both tests fail: the cells are there, and nothing useful is stored in them. If the memory is in which cells were chosen and how they are wired to the rest of the brain, the natural cue fails (it reaches the cells through synapses that were never strengthened) and the light succeeds. Controls: light on cells tagged in another box, and animals given the treatment after the memory has had time to settle. What the design cannot show is that what the light brings back is the memory as the animal would recall it; freezing is one behaviour. Experiments of this kind have been reported and their reading is disputed, which is why this is on the frontier.
Notes and sources
Where it comes back
What damage and a scanner can say about circuits: Parts 7 and 8. Transmitters, hormones and the body's clock:
Part 10. Lateral inhibition in the viewer's own retina, and receptive fields: Part 13. Dopamine as the third
factor of a learning rule: Part 17. A choice held in activity, as working memory: Part 19. Whether long-term
potentiation is how memories are stored: Part 20. The circuit that decides, against people's reaction times:
Part 25. What the four families of drug do for a disorder: Parts 40 to 42. Learning without a local rule: Part 58.
Psyche's circuits (psyche/circuits.py) are the motifs every later model is assembled from.
Sources
Books. E. R. Kandel, J. D. Koester, S. H. Mack and S. A. Siegelbaum (eds.), Principles of Neural Science (6th ed., 2021), the chapters on synaptic transmission and plasticity. P. Dayan and L. F. Abbott, Theoretical Neuroscience (2001), chapters 7 and 8. D. O. Hebb, The Organization of Behavior (1949). E. S. Valenstein, The War of the Soups and the Sparks (2005). F. Ratliff, Mach Bands: Quantitative Studies on Neural Networks in the Retina (1965).
Papers.
- O. Loewi, "Über humorale Übertragbarkeit der Herznervenwirkung", Pflügers Archiv 189 (1921) 239–242.
- P. Fatt and B. Katz, "Spontaneous subthreshold activity at motor nerve endings", Journal of Physiology 117 (1952) 109–128. J. del Castillo and B. Katz, "Quantal components of the end-plate potential", Journal of Physiology 124 (1954) 560–573.
- E. Oja, "A simplified neuron model as a principal component analyzer", Journal of Mathematical Biology 15 (1982) 267–273. E. L. Bienenstock, L. N. Cooper and P. W. Munro, "Theory for the development of neuron selectivity", Journal of Neuroscience 2 (1982) 32–48.
- T. V. P. Bliss and T. Lømo, "Long-lasting potentiation of synaptic transmission in the dentate area of the anaesthetized rabbit following stimulation of the perforant path", Journal of Physiology 232 (1973) 331–356.
- G.-Q. Bi and M.-M. Poo, "Synaptic modifications in cultured hippocampal neurons: dependence on spike timing, synaptic strength, and postsynaptic cell type", Journal of Neuroscience 18 (1998) 10464–10472.
- H. K. Hartline and F. Ratliff, "Inhibitory interaction of receptor units in the eye of Limulus", Journal of General Physiology 40 (1957) 357–376.
- G. Baumgartner, "Indirekte Größenbestimmung der rezeptiven Felder der Retina beim Menschen mittels der Hermannschen Gittertäuschung", Pflügers Archiv 272 (1960) 21–22. J. Geier, L. Bernáth, M. Hudák and L. Séra, "Straightness as the main factor of the Hermann grid illusion", Perception 37 (2008) 651–665.
- T. Graham Brown, "The intrinsic factors in the act of progression in the mammal", Proceedings of the Royal Society B 84 (1911) 308–319. K. Matsuoka, "Sustained oscillations generated by mutually inhibiting neurons with adaptation", Biological Cybernetics 52 (1985) 367–376.
- H. R. Wilson and J. D. Cowan, "Excitatory and inhibitory interactions in localized populations of model neurons", Biophysical Journal 12 (1972) 1–24.
- X. Liu, S. Ramirez et al., "Optogenetic stimulation of a hippocampal engram activates fear memory recall", Nature 484 (2012) 381–385.
- E. H. Turner et al., "Selective publication of antidepressant trials and its influence on apparent efficacy", New England Journal of Medicine 358 (2008) 252–260.
About this partfrom its README
Part 5 ended with a signal at the end of an axon, and a gap. For half a century physiologists argued over what crosses it: a current (the "sparks") or a chemical (the "soups"). In 1921 Otto Loewi, in Graz, slowed one frog's heart by stimulating its vagus nerve, moved the fluid that had bathed it to a second heart with no nerve at all, and the second heart slowed too. The connection is chemical. A chemical step has quantities in it (how much is released, how many receptors wait, how fast it is cleared), and a quantity can change. A synapse therefore has a strength, and a strength that can change can store what happened.
This part asks how neurons talk, and how talking changes them. The route: the chemical synapse step by step, and the packets Katz found; seven transmitters and the six places where a drug can act; how a membrane adds its inputs in time, and how a shunt divides; Hebb's rule, why it runs away, and Oja's repair, which finds a principal component; long-term potentiation, the NMDA receptor as the molecule that computes "both at once", spike timing, Kandel's Aplysia (habituation and sensitization at one synapse, then new structure), and a sliding threshold; then three small circuits built on one motif, mutual inhibition, which sharpen edges (Hartline's crab, Mach's bands), hold a choice (winner-take-all), and keep time (Graham Brown's half-centres); populations of excitatory and inhibitory cells that rest, oscillate or saturate (Wilson and Cowan); and the neuromodulators as two knobs, gain and learning rate. On the way the viewer looks at the Hermann grid, hears its textbook explanation, computes it, and then watches it fail on a grid with curved streets.
What is computed and built
explainer/psychology/psyche/circuits.py, Psyche's second piece of tissue: conductance synapses on a passive membrane (Membrane.response,steady_voltage), learning rules for a linear unit (hebbwith Hebb's and Oja's rules,bcm,stdp), a row of units with lateral inhibition (lateral,inhibition_kernel), a centre-surround filter and the Hermann grid straight and curved (dog,hermann_grid,hermann_response), a winner-take-all pair (WTA), a half-centre oscillator (HalfCentre) and Wilson and Cowan's two populations (WilsonCowan). Tested intests/psychology/test_circuits.pyagainst closed forms and fixed points.- The Ledger gains three rows and the Archive nine datasets.
- On the Homunculus map nothing lights yet: these circuits are parts of faculties, not faculties. The map's first rooms are opened by the act on perception.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | Two hearts and a dream | The gap; sparks against soups; Loewi's experiment; why a chemical step can be adjusted; objectives |
| 1 | The chemical synapse | Six steps from spike to clearance; packets, failures and strength as n p q; two kinds of receptor and two directions |
| 2 | Transmitters, and where the drugs act | Seven transmitters in two groups; agonist and antagonist; six sites on one diagram |
| 3 | Adding up | One EPSP against the threshold; summation in time; many inputs add to less than the sum; a shunt that divides |
| 4 | Hebb's rule | The postulate and locality; the rule run until it diverges; Oja's rule derived; a cell that finds the first principal component |
| 5 | A synapse that remembers | Long-term potentiation; the NMDA receptor as an AND; spike timing; a sliding threshold and a cell that becomes selective |
| 6 | Lateral inhibition | The horseshoe crab's eye; a row of units shown an edge; Mach's bands on the viewer and in the model |
| 7 | On you: a grid of grey spots | The Hermann grid; the receptive-field account, computed; the curved grid, where the account predicts spots and none are seen |
| 8 | A circuit that decides | Two rivals; winner-take-all; a choice held after the evidence has gone; harder choices take longer |
| 9 | A circuit that keeps time | Graham Brown's cats; mutual inhibition with fatigue; what sets the tempo and what stops the rhythm; one motif, three behaviours |
| 10 | Populations | Berger's rhythm; Wilson and Cowan's two equations; rest, rhythm and saturation as the drive rises |
| 11 | Knobs: the neuromodulators | Broadcast systems; gain; the learning rate and a three-factor rule |
| 12 | The Ledger | Long-term potentiation, lateral inhibition, and the Hermann grid's explanation |
| 13 | In practice: drugs at the synapse | Receptor occupancy and the shift an antagonist makes; four families of drug and their catches; registered against published trials |
| 14 | Frontier: where is a memory? | A memory switched on with light; three open questions and a research problem |
| Recap, problems, and the road ahead | Ten lines; what today adds to the reply to Kant; payoffs; problems; references; Part 7 |
NotesWhere the numbers come from
| What | Source |
|---|---|
| Two frog hearts and a transferred fluid; Vagusstoff; the dream | Loewi (1921) and his own later account; registered in SOURCES.md, with what was read and what was not |
| Transmitter released in packets of one size at the frog's nerve-muscle junction | del Castillo and Katz (1954), from the PubMed Central record and a 2006 retrospective; no figure is quoted |
| Hebb's postulate, quoted | Hebb (1949), p. 62, as quoted in textbooks |
| Long-lasting potentiation in the rabbit's dentate gyrus | Bliss and Lømo (1973), from later reviews; the plot in chapter 5 is a sketch of the design, not their data |
| The sign of a synaptic change depends on spike order, within about 20 ms | Bi and Poo (1998), from the abstract |
| Mutual inhibition of receptor units in Limulus, linear in the neighbour's activity | Hartline and Ratliff (1957), from the abstract |
| Curving the streets of the Hermann grid abolishes its spots | Geier, Bernáth, Hudák and Séra (2008), from the first author's pages and secondary summaries |
| Reactivating cells tagged during fear learning makes mice freeze | Liu, Ramirez et al. (2012), from the abstract; no percentages are quoted |
| 74 registered antidepressant trials: 51% positive as registered, 94% as published | Turner et al. (2008), from the abstract |
| Every curve, voltage, response, period and frequency "computed by Psyche" | explainer.psychology.psyche.circuits |
The numbers that depend on choices made for the film. The membrane is a passive patch with a time constant of 10 ms, an excitatory battery at 0 mV and an inhibitory one at −80 mV; one synaptic event is an alpha function of 1 ms, sized so that a single input gives 2.5 mV. The model synapse of chapter 1 has five release sites, each releasing with probability 0.3, and a packet worth 0.4 mV; its histogram is 2,000 simulated impulses. The inputs to the Hebbian cell are 4,000 draws from a correlated Gaussian whose first principal component carries 97% of the variance. The spike-timing curve has the shape and the scale (tens of milliseconds) of Bi and Poo's window with illustrative constants, and is tagged as Psyche's. The row of 80 units has inhibition of strength 0.25 that falls by half every two units; the film shows units 8 to 72, leaving off the two ends, where a unit has neighbours on one side only. The ramp of the Mach-band demonstration is ten units wide. The Hermann grid is five squares of 40 pixels with streets of 10, filtered with a difference of two Gaussians whose centre is a fifth of the street; the curved grid bends each street by a sine of amplitude 4 pixels. The winner-take-all pair, the half-centre oscillator (Matsuoka's equations) and the Wilson-Cowan populations use round parameters chosen so that each shows its behaviour; the periods and frequencies they give (740 ms; 18 a second) are properties of those choices and not measurements of any animal. The EEG trace in chapter 10 and the beating hearts of the hook are drawings.
Notes
| Finding | Original | Status |
|---|---|---|
| A brief burst of strong activity leaves a synapse stronger for a long time (long-term potentiation) | Bliss and Lømo 1973 | replicated |
| Neighbouring receptors in an eye inhibit one another in proportion to their activity (lateral inhibition) | Hartline and Ratliff 1957 | replicated |
| The grey spots of the Hermann grid are produced by centre-surround receptive fields | Baumgartner 1960 | story and record |
Shown without a row, with the reason recorded in explainer/psychology/ledger.py: Loewi's experiment and Katz's
packets (settled physiology, told as history), Hebb's postulate (a hypothesis; the finding that bears on it is the
first row), the reactivated memory of Liu et al. (one laboratory's report at the frontier; whether strengthened
synapses are the memory is argued in Part 20), and Turner et al.'s comparison of registered and published trials
(entered with the evidence on treatments, Part 42). Bi and Poo's timing window rests under the first row.
Notes
Before the narrated master:
- Loewi (1921) was not read. The design and result are from standard accounts; the dream is his own later telling (the night before Easter Sunday, a note he could not read, three o'clock the next night), and the film says so. The Nobel Prize of 1936 shared with Dale is from memory.
- Eccles's change of mind is given as 1951, "on his own experiment", from an institutional history and an encyclopedia entry; check his own account. That a minority of synapses are electrical is from textbooks.
- del Castillo and Katz (1954) and Fatt and Katz (1952) were not read; the narration's description (spontaneous blips of one size; responses in steps when calcium is lowered) follows the retrospective, and "the early 1950s, in London" should be checked. The cleft of about 20 nm, "thousands of molecules" in a vesicle, and a delay of about half a millisecond are textbook figures.
- The lines on the seven transmitters, on curare, naloxone, botulinum toxin, L-DOPA, caffeine, the benzodiazepines, the SSRIs, cocaine and the nerve agents are general pharmacology and carry no figures; "more than a hundred transmitters" should be checked or cut.
- Hebb's postulate is quoted from memory of the usual textbook quotation; check the wording and the page.
- Bliss and Lømo (1973) was not read. "For hours" is the film's only statement of duration; check it against the abstract. "In Oslo" and the order of the two names in the narration follow the history as usually told.
- The NMDA receptor's magnesium block and the insertion of AMPA receptors are stated from textbooks.
- Bi and Poo (1998): "about 20 ms either side" is from the abstract as summarized; the curve is Psyche's.
- Bienenstock, Cooper and Munro (1982) and Oja (1982) are cited from memory; the derivations are in the README.
- Hartline and Ratliff (1957) was read only as an abstract. "About a thousand receptor units", "hundreds of millions of years", and the statement that they recorded the overshoot at an edge in the crab's own eye (Ratliff and Hartline 1959) are from memory and should be checked or softened.
- That Mach bands are seen at the ends of a ramp and mostly not at a sharp step is from a secondary source (Kingdom 2014, on Ratliff 1984); check before the master.
- Baumgartner (1960) was not read; Geier et al. (2008) was not read. Whether a wave of 4 pixels on a 10-pixel street abolishes the spots for most viewers of this film should be tried on people before the master; the narration says "what you've probably just found".
- Graham Brown (1911), Sherrington's reflex-chain view, and "ignored for half a century" are from standard
accounts. Matsuoka's condition for oscillation is tested in
test_circuits.py. - Berger's recordings (Jena, published 1929; a rhythm near ten a second with the eyes closed) are from memory.
- The statement that a dopamine receptor blocked by antipsychotics also serves movement, that the stimulants act on the transporter cocaine blocks, and that the benefit of an SSRI takes weeks, are textbook pharmacology; check each against a current text.
- Turner et al. (2008): 74 trials, 12 drugs, 51% and 94% are from the abstract. "Nearly every positive trial had been published; most of the others had not, or had been written up as successes" is from memory of the paper (37 of 38; 22 unpublished and 11 published as positive, of 36) and should be checked there.
- Liu et al. (2012) was read only as an abstract; the false-memory experiment of 2013 is cited from memory.
- Phineas Gage (the hook for Part 7): September 1848, Vermont, a rod "more than a metre long", conscious afterwards. Check against Harlow's reports before Part 7 is written.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the gap; sparks against soups; Loewi's two hearts; why a chemical step can be adjusted (Eccles gives up in 1951).
- The chemical synapse in six steps; transmitter released in packets by chance (Katz), strength as n p q; two kinds of receptor, and the direction a channel pulls.
- Seven transmitters in two groups, the wiring and the broadcast; agonist and antagonist; six places where a drug can act, on one diagram (used again in Parts 10 and 40-42).
- Adding up: one EPSP against the threshold; summation in time (within about 10 ms); many inputs add to less than their sum; shunting inhibition as division.
- Hebb's postulate (1949), local and unstable (run until it diverges); Oja's rule derived; a cell that finds the first principal component.
- Long-term potentiation (Bliss and Lømo 1973, as a sketch of the design); the NMDA receptor as an AND; spike timing (Bi and Poo 1998); a sliding threshold (BCM) and a cell that becomes selective, settling where the rule says.
- Lateral inhibition: Hartline's horseshoe crab; a row of units shown an edge (a ratio of 2 becomes 4.3); Mach's bands on the viewer and in the model.
- On you: the Hermann grid; the receptive-field account, computed; Geier's curved grid, where the account still predicts spots and none are seen.
- A circuit that decides: two rivals, winner-take-all, a choice held after the evidence has gone, and harder choices taking longer (returns in Parts 19, 25).
- A circuit that keeps time: Graham Brown's cats (1911); mutual inhibition with fatigue; what sets the tempo and what stops the rhythm; one motif, three behaviours.
- Populations: Berger's rhythm; Wilson and Cowan's two equations; rest, rhythm and saturation as the drive rises (paid off in Part 8).
- Knobs: the neuromodulators as gain and as learning rate; a three-factor rule (a preview of Part 17).
- The Ledger. 13. In practice: drugs at the synapse. 14. Frontier: where is a memory?
Psyche: circuits (explainer/psychology/psyche/circuits.py): conductance synapses on a passive membrane;
Hebb's, Oja's and the BCM rule and a spike-timing window; a row of units with lateral inhibition; a
centre-surround filter and the Hermann grid, straight and curved; a winner-take-all pair; a half-centre
oscillator; Wilson and Cowan's populations.
On you: Mach's bands and the Hermann grid in the film, each predicted by the model first. The interactive is
the grid as an experiment: the reader judges grids with straight and wavy streets, and their reports collect
beside what the receptive-field account predicts.
Ledger: long-term potentiation (replicated, with the link to memory argued in Part 20); lateral inhibition
(replicated); the Hermann grid's textbook explanation (story and record). Shown without rows, with reasons:
Loewi, Katz's packets, Hebb's postulate, the tagged memory of 2012 (due in Part 20), and the registered and
published antidepressant trials (due in Part 42).
In practice: receptor occupancy and the shift a competitive antagonist makes; SSRIs, benzodiazepines,
stimulants and antipsychotics at the synapse, each with its catch; Turner et al.'s registered against published
trials (51% positive against 94%).
Frontier: a memory switched on with light (Liu et al. 2012, from the abstract); whether the memory is in the
synapses or the cells; whether spike timing is the rule in a living brain; credit assignment (Part 58).
Reading: Loewi 1921; del Castillo & Katz 1954; Hebb 1949; Oja 1982; Bienenstock, Cooper & Munro 1982; Bliss &
Lømo 1973; Bi & Poo 1998; Hartline & Ratliff 1957; Geier et al. 2008; Graham Brown 1911; Wilson & Cowan 1972;
Liu et al. 2012; Turner et al. 2008; Dayan & Abbott chs. 7-8; Valenstein, The War of the Soups and the Sparks.
Build the film
python -m videos.psychology.psych6.compute # the part's numbers, into .cache/psych6
python tools/build.py psych6 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych6 Hook # one chapter, silent, with a contact sheet
Scenes: videos/psychology/psych6. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.psychology.psych6.compute # every number (a few seconds), into .cache/psych6/
python tools/qa_scene.py psych6 Grid # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych6 -q l # the whole part, silent preview
python tools/build.py psych6 # 1080p30 with narration
python tools/qa_scene.py psych6 Grid --lang zh # the Chinese edition of one chapter
python tools/make.py psych6 # both editions, with the checks a long build needs
python -m videos.psychology.labs 6 # the lab: a synapse, a learning rule and three circuits
python tools/check_ledger.py psych6 # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology # Psyche's circuits, the Pool, the Ledger, the Archive
The Chinese edition is zh_lines.py (the narration, line by line) and the series table
videos/psychology/psychology_text_zh.json (the text on screen); the terms are in
PSYCHOLOGY_ZH_GUIDE.md.