Sensory receptors convert physical stimuli into electrical signals via transduction, with stimulus intensity encoded in firing rate and population coding. Sensory adaptation reduces responses to constant stimuli, allowing detection of changes. Different sensory pathways preserve different stimulus features and project to distinct cortical areas.
From your understanding of action potentials and receptor signaling, you know that neurons communicate via all-or-nothing electrical impulses and that receptor proteins convert extracellular signals into intracellular responses. Sensory neural coding applies these principles to a fundamental problem: how does the nervous system represent the infinite variety of the physical world — light intensity, sound pitch, skin pressure, temperature — using a communication system that has only one signal type, the action potential? The answer lies in a set of coding strategies that extract and preserve stimulus information as patterns of neural activity.
Transduction is the first step: specialized sensory receptors convert a specific form of physical energy into a change in membrane potential called a receptor potential (or generator potential). Mechanoreceptors in the skin deform ion channels that open in response to pressure; photoreceptors in the retina contain light-sensitive pigments that trigger signaling cascades; hair cells in the cochlea bend stereocilia that gate ion channels. Each receptor type is tuned to one form of energy — this specificity is the basis of modality coding, the principle that the type of sensation you perceive (touch, vision, hearing) depends on which neural pathway is activated, not on the nature of the electrical signal itself. Electrical stimulation of the optic nerve produces the sensation of light, not touch, because the brain interprets activity in that pathway as visual information regardless of how it was generated.
Once a receptor potential is generated, stimulus intensity must be encoded. Since all action potentials are the same size, intensity cannot be communicated by making individual spikes bigger. Instead, the nervous system uses two strategies. Rate coding means that stronger stimuli produce larger receptor potentials, which generate action potentials at higher frequencies — a light touch might produce 10 spikes per second, while a firm press produces 100. Population coding means that stronger stimuli activate more receptors over a larger area, recruiting additional neurons into the response. The brain reads both the firing rate of individual neurons and the number of active neurons to reconstruct stimulus intensity. Stimulus location is preserved through topographic mapping — neighboring receptors project to neighboring neurons in the cortex, creating orderly spatial maps (the somatosensory homunculus for touch, the tonotopic map for hearing).
Sensory adaptation is the progressive decrease in receptor response during sustained, unchanging stimulation — it is why you stop noticing the feeling of your clothes within minutes of putting them on. Rapidly adapting receptors (like Meissner's corpuscles in the skin) fire only at the onset and offset of a stimulus, making them ideal for detecting changes and vibration. Slowly adapting receptors (like Merkel cells) fire continuously as long as the stimulus is present, encoding sustained pressure or position. Adaptation is not a failure of the system; it is a computational strategy that prioritizes novelty and change over static conditions, freeing neural bandwidth for information that is most likely to require a behavioral response. Together, these coding principles — modality specificity, rate and population coding, topographic mapping, and adaptation — allow the nervous system to construct a rich, continuously updated representation of the external world from the simple vocabulary of action potentials.