labeled-line coding
Labeled-line coding is the brain's trick of figuring out what kind of thing you are sensing simply by paying attention to which nerve is doing the shouting. Picture an old-fashioned switchboard with a separate wire running to each room of a house. The wire from the kitchen always means kitchen, the wire from the bedroom always means bedroom — the operator can tell which room is calling without anyone saying a word, just from which line lit up. In the same way, each sensory nerve is permanently dedicated, or labeled, to one type of message, so the brain reads the identity of a stimulus from the address of the line that fired, not from the shape of the signal traveling down it.
This matters because the actual electrical pulses neurons send are nearly identical no matter what they are reporting — a pain signal and a sweet-taste signal look almost the same as little blips of voltage. What makes them feel utterly different is where they are wired to go. A nerve carrying sweetness connects to brain regions for sweetness and nowhere else; a nerve carrying pain connects only to pain circuits. So sweet always tastes sweet and a pinprick always hurts, because each line keeps its own private label from the sense organ all the way up to the brain. This is why artificially stimulating a single taste line can make you experience a flavor that is not in your mouth at all: the brain trusts the label, not the world.
Labeled lines are one of two broad strategies the nervous system uses to encode information. The other relies on the timing or rate of firing — patterns spread across many neurons — rather than on which specific neuron is active. Real senses usually blend both: separate labeled lines may tell apart the five basic tastes, while finer details, like how strong or how fast something is, ride on the firing patterns within those lines.
Taste is the classic textbook example: separate dedicated lines for sweet, sour, salty, bitter, and umami.