Temporal coding, also known as timing, refers to the encoding of information through the specific timing of spikes rather than the overall firing rate. The synchronization of spikes across neurons is a well-studied form of temporal coding, which has been observed in various brain regions and has been linked to specific functions. Temporal coding offers the advantage of faster information transmission compared to rate coding, as it does not require time-consuming averaging. It is important to note that rate coding and temporal coding can coexist, allowing for the variation of overall firing rates while synchronous events are incorporated. This multiplexing of codes can potentially enhance the capacity of neuronal pathways to transmit information.

When it comes to sensory neurons, their role is to encode information about stimuli. During the process of sensory transduction, the stimulus needs to be encoded in a way that can be understood by the central nervous system (CNS). The encoded information is an abstraction based on three factors: (1) which sensory receptors are activated, (2) the responses of these receptors to the stimulus, and (3) the processing of information in the sensory pathway. Various aspects of stimuli can be encoded, including sensory modality, location, intensity, frequency, and duration. Further details regarding the encoding of stimuli in specific sensory systems will be discussed in later chapters.

A sensory modality refers to a specific class of sensation. For example, sustained mechanical stimuli applied to the skin result in sensations of touch or pressure, while transient mechanical stimuli may evoke sensations of flutter or vibration. Other cutaneous modalities include cold, warmth, and pain. On the other hand, vision, audition, taste, and smell are examples of noncutaneous sensory modalities. Each sensory pathway has its own set of sensory receptors, defining the typical energy associated with that specific modality. For instance, the visual pathway involves photoreceptors, retinal neurons, the lateral geniculate nucleus of the thalamus, and the visual areas of the cerebral cortex. Normally, visual sensations are triggered by light stimulating the retina. However, mechanical stimulation (e.g., pressure on the eyeball) or electrical stimulation of neurons within the visual pathway can also result in a visual sensation. Hence, the neurons of the visual system can be viewed as a labeled line, where activation by any means leads to a visual sensation.

The location of a stimulus is communicated through the activation of specific groups of sensory neurons whose receptive fields are influenced by the stimulus. This information can be encoded in the CNS as a neural map. For instance, a somatotopic map is formed by arrays of neurons in the somatosensory cortex that receive information from corresponding locations on the body surface. Similarly, the visual system represents points on the retina through neuronal arrays that form retinotopic maps.

Intensity can be encoded through various mechanisms. Since action potentials have a uniform magnitude, some sensory neurons encode intensity by the frequency of their discharges (rate coding). The relationship between stimulus intensity and response can be depicted as a stimulus-response function. In many sensory neurons, this function approximates an exponential curve with an exponent that can be less than, equal to, or greater than 1. Mechanoreceptors, for example, exhibit stimulus-response functions with fractional exponents. Thermoreceptors, responsible for detecting temperature changes, have linear stimulus-response curves (exponent of 1). Nociceptors, which perceive painful stimuli, may have linear or positively accelerating stimulus-response functions, where the exponent is equal to or greater than 1. The positively accelerating stimulus-response functions of nociceptors help explain the sense of urgency experienced as the pain sensation intensifies.

Another method of encoding stimulus intensity is by considering the number of activated sensory receptors. A stimulus at the threshold for perception may activate only one or a few primary afferent neurons of a specific class, while a strong stimulus of the same type may recruit numerous similar receptors. This increased activation of primary afferent neurons would have a more pronounced effect on central sensory neurons. Consequently, greater activity in central sensory neurons may be perceived as a stronger stimulus.
Timing, or temporal coding, refers to spike codes in which the specific timing of spikes rather than the overall firing rate encodes information. One often-studied version of temporal coding is the synchronization of spikes across neurons. Synchronization of neuronal spiking has been shown to occur in a number of brain regions and has been related to function in a number of instances. An advantage of temporal coding is that it can convey information more quickly than can rate coding, inasmuch as it does not require averaging, which takes time. Moreover, rate coding and temporal coding are not mutually exclusive, inasmuch as overall firing rates can be varied while synchronous events are superimposed. Such multiplexing of codes may increase the information transmission capacity of neuronal pathways.
Sensory neurons encode information about stimuli. In the process of sensory transduction, one or more aspects of the stimulus must be encoded in a way that can be interpreted by the CNS. The encoded information is an abstraction based on (1) which sensory receptors are activated, (2) the responses of sensory receptors to the stimulus, and (3) information processing in the sensory pathway. Some stimulus parameters that can be encoded include sensory modality, location, intensity, frequency, and duration. Other aspects of stimuli that are encoded are described in relation to particular sensory systems in later chapters.
A sensory modality is a class of sensation. For example, sustained mechanical stimuli applied to the skin result in sensations of touch or pressure, and transient mechanical stimuli may evoke sensations of flutter or vibration. Other cutaneous modalities include cold, warmth, and pain. Vision, audition, taste, and smell are examples of noncutaneous sensory modalities. The specific sensory receptors define the normal energy associated with the modality of a sensory pathway. For example, the visual pathway includes photoreceptors, neurons in the retina, the lateral geniculate nucleus of the thalamus, and the visual areas of the cerebral cortex (see ). The normal means of activating the visual pathway is light striking the retina. However, mechanical stimulation (e.g., pressure on the eyeball) or electrical stimulation of neurons in the visual pathway also produce a visual sensation. Thus neurons of the visual system can be regarded as a labeled line, which, when activated by whatever means, results in a visual sensation.
The location of a stimulus is signaled by activation of the particular population of sensory neurons whose receptive fields are affected by the stimulus. The information may be encoded in the CNS as a neural map. For example, a somatotopic map is formed by arrays of neurons in the somatosensory cortex that receive information from corresponding locations on the body surface (see ). In the visual system, points on the retina are represented by neuronal arrays that form retinotopic maps (see
Intensity may be encoded in a number of ways. Because action potentials have a uniform magnitude, some sensory neurons encode intensity by their frequency of discharge (rate coding). The relationship between stimulus intensity and response can be plotted as a stimulus-response function. For many sensory neurons, the stimulus-response function approximates an exponential curve with an exponent that can be less than, equal to, or greater than 1. Stimulus-response functions with fractional exponents characterize many mechanoreceptors. Thermoreceptors, which detect changes in temperature, have linear stimulus-response curves (exponent of 1). Nociceptors, which detect painful stimuli, may have linear or positively accelerating stimulus-response functions (i.e., the exponent for these curves is 1 or greater). The positively accelerating stimulus-response functions of nociceptors help explain the urgency that is experienced as the pain sensation increases.
Another way in which stimulus intensity is encoded is according to the number of sensory receptors that are activated. A stimulus at the threshold for perception may activate only one or only a few primary afferent neurons of an appropriate class, whereas a strong stimulus of the same type may recruit many similar receptors. Central sensory neurons that receive input from sensory receptors of this particular class would be more powerfully affected as more primary afferent neurons discharge. Greater activity in central sensory neurons may be perceived as a stronger stimulus.