Abstract
During navigation, rodents continually sample the environment with their whiskers. How locomotion modulates neuronal activity in somatosensory cortex, and how it is integrated with whisker-touch remains unclear. Here, we compared neuronal activity in layer 2/3 (L2/3) and L5 of barrel cortex using calcium imaging in mice running in a tactile virtual reality. Both layers increase their activity during running and concomitant whisking, in the absence of touch. Fewer neurons are modulated by whisking alone. Whereas L5 neurons respond transiently to wall-touch during running, L2/3 neurons show sustained activity. Consistently, neurons encoding running-with-touch are more abundant in L2/3 and they encode the run-speed better during touch. Few neurons across layers were also sensitive to abrupt perturbations of tactile flow during running. In summary, locomotion significantly enhances barrel cortex activity across layers with L5 neurons mainly reporting changes in touch conditions and L2/3 neurons continually integrating tactile stimuli with running.
Subject terms: Sensorimotor processing, Sensory processing
The influence of locomotion on somatosensory processing in barrel cortex is not well understood. Here the authors report distinct layer-specific responses, with L5 primarily reporting changes in touch condition while L2/3 neurons integrating touch and locomotion continuously.
Introduction
We sense the outside world through continuous interactions between sensory inputs and motor actions. Determining how sensory and motor information are integrated in neuronal circuits in the brain thus is critical for understanding sensory processing during behavior. Accumulating evidence suggests that in the neocortex, integration occurs at early stages of sensory processing. Several recent studies have explored the effects of locomotion on sensory processing in the visual system. These studies have found increased spontaneous and evoked activity of excitatory neurons in both primary visual cortex (V1)1,2 and the lateral geniculate nucleus of the thalamus during locomotion3. These effects could not be explained by simple gain modulation or additive factors as the modulation often was not monotonic2–4, and were also distinct for different GABAergic interneuron subtypes5–7. However, it remains unclear how far locomotion-related modulation of neocortical activity generalizes to other sensory modalities. Indeed, locomotion has been reported to suppress excitatory neuron activity in auditory cortex8, suggesting that the influence of locomotion on sensory processing can be modality-specific. Because rodents heavily utilize their whiskers during navigation, characterizing the influence of locomotion on somatosensory (tactile) processing in the vibrissal system may be of particular ethological relevance.
Studies of sensorimotor integration in the vibrissa-related primary somatosensory cortex (S1 or barrel cortex) have primarily focused on whisking behavior rather than running9–20. For example, membrane potential fluctuations of nearby pyramidal neurons were reported to desynchronize during active whisking, without significant changes in firing rate9,10,12. In addition, whisking was found to modulate different interneuron classes distinctly10,21 and to increase thalamic activity22–24. In contrast, the effects of locomotion on somatosensory processing have been investigated only incidentally5,25, despite the behavioral relevance of locomotion state on somatosensory processing.
In their natural environments, rodents utilize their whiskers during navigation and the occurrence of running and active whisking are typically highly correlated26–29. Somatosensory processing is thus likely to be state-dependent: during locomotion, mice need to monitor their location while remaining sensitive to sudden changes in the environment, such as encountering a large obstacle. During stationary periods on the other hand, mice may emphasize subtler aspects of tactile sensations such as the texture or shape of surfaces.
It is likely that locomotion exerts distinct modulations on neurons in different cortical layers. In barrel cortex, the input and output connections are highly layer-specific. For example, afferent inputs to barrel cortex from the ventral posterior medial (VPM) nucleus in thalamus mainly target L4 (plus L5/6; c.f. see ref. 30), whereas axons from the posterior medial (POM) nucleus terminate in L1 and L5A31–33. Long-range projections between S1 and other cortical areas, e.g., vibrissal motor cortex (M1) and secondary somatosensory cortex (S2), also exhibit substantial laminar specificity32,34–36. Laminar-specific connectivity suggests different functional roles of superficial and deep-layer neurons in S1. In line with this notion, recent studies that directly compared sensory processing across layers have started to uncover functional differences between cortical laminae18,25,37–40. In visual cortex, most studies investigated locomotion effects in superficial (supragranular) layers1,5,41,42 and only few examined deeper (infragranular) layers2,4. A comparison of locomotion-related modulation of cortical activity across layers is missing thus far.
Here, we investigate whether L2/3 and L5 neurons of barrel cortex are modulated during running, and whether they differ in their integration of sensory and motor signals. We use two-photon calcium imaging in head-restrained mice running along a virtual tactile wall. This setting allows us to study how two motor behaviors—whisking and running—are integrated with touch events and prolonged ongoing sensory touches. We find that running strongly modulates ongoing neuronal activity and touch-evoked responses in barrel cortex, and that this modulation cannot be explained by the accompanying whisking behavior. Furthermore, we reveal distinct features of L2/3 and L5 neurons regarding the representation of continuous touch stimuli and the integration of locomotion and touch.
Results
Calcium imaging of L2/3 and L5 in a tactile virtual reality
To study the effects of locomotion on touch processing in barrel cortex, we built a tactile virtual reality setup to mimic running and whisking along a wall in the dark (Fig. 1a; see Methods; Supplementary Video 1). Mice were head-fixed on top of a ladder wheel under a two-photon microscope. We continually recorded run speed and induced touches by bringing a sandpaper-covered rotating cylinder (‘textured-wall’) in contact with the whiskers on one side of the face. Whisker movements were imaged with a high-speed camera (Supplementary Video 2). This setup enabled us to consider several experimental conditions (Fig. 1b): First, the mouse was free to run or rest on the treadmill in the absence of the textured-wall (‘No-touch’). Second, the texture was moved in contact with the whiskers after the mouse had run a predefined distance, rotating at the same speed as the animal’s run speed (‘Closed-loop’). Third, texture speed and run speed were decoupled (‘Open-loop’). The varying combinations of texture and run speed in this ‘Open-loop’ condition allowed us to dissect their respective contributions to neuronal activity in S1. Finally, to explore neuronal responses to an abrupt mismatch of tactile flow and run speed, we applied brief perturbations during Closed-loop trials by halting the rotating texture for 2 s at a random time point during the touch. In all conditions, mice were free to move on the treadmill and did not receive any rewards. To avoid whisker stimulation by the treadmill, the bottom rows of whiskers were trimmed. Measurements were made in several experimental sessions spread over 3 weeks (see Methods).
To measure neuronal activity across cortical layers, we injected AAV2.1-EFα1-R-CaMP1.07 into barrel cortex of adult mice, resulting in expression of the genetically encoded calcium indicator R-CaMP1.0743,44 in L2/3 and L5 neurons (Fig. 1c; see Methods). In line with a previous report45, only few GABAergic neurons expressed R-CaMP1.07 with this virus construct (Supplementary Fig. 1). Thus, R-CaMP1.07-expressing cells mainly represent pyramidal neurons. Based on the lack of expression in L4 (Fig. 1c and Supplementary Fig. 2) we selected imaging areas either above or below this laminar landmark (six areas each in L2/3 and L5; imaging depths 221–385 µm for L2/3 and 450–664 µm for L5; n = 5 mice). In total, we measured calcium signals in 426 neurons in L2/3 and 275 neurons in L5 repeatedly over several days. Figure 1d, e shows example calcium transients measured in L2/3 and L5 subpopulations, respectively. In acute brain slice experiments we verified that pyramidal neurons in L2/3 and L5 display similar action potential-evoked calcium dynamics (Supplementary Fig. 3; see Methods). Measurements from L2/3 and L5 neurons were performed separately in distinct imaging sessions.
Running modulates barrel cortex activity more than whisking
We first investigated how locomotion and whisking affect the activity of S1 neurons in the absence of texture touch (No-touch sessions). Based on the recorded running speed and measured whisker movements, we defined four different behavioral states (Fig. 2a; see Methods): Animals spent about half of their time running, which was always accompanied by simultaneous whisking as reported previously26. Stationary periods included whisking as well as no-whisking episodes whereas animals almost never ran without whisking. To assess activity changes induced solely by whisking, we excluded all running periods and compared the mean fluorescence change during episodes of whisking and no-whisking for each neuron. Whisking barely modulated the mean activity in L2/3 and L5 populations (Fig. 2b and Supplementary Fig. 4). To account for differences in activity levels we calculated a whisking modulation index (MI) for each neuron (as defined in ref. 6, see Methods). Whisking MIs were close to but significantly different from zero (p = 5.3 × 10−11 for L2/3 and p = 3.1 × 10−7 for L5, Wilcoxon signed rank test) and not different for L2/3 and L5 neurons (Fig. 2c; 0.071 ± 0.009, n = 342, and 0.055 ± 0.013, n = 168, respectively; mean ± s.e.m.; p = 0.117, Wilcoxon rank sum test). As an alternative analysis, we averaged neuronal fluorescence changes aligned to onsets of whisking while the animal was stationary (considering only fluorescence trace segments until whisking stopped). Consistent with a weak modulation by whisking, only a minor fraction of neurons (3% in L2/3 and 8% in L5) showed significant fluorescence increases upon whisking onset (Fig. 2d and Supplementary Fig. 4).
Similarly, we examined how running modulates activity of S1 neurons. As animals almost always whisked during locomotion (Fig. 2a; cf. ref. 26), any running period also included whisking (referred to as ‘running/whisking’). For each neuron, we compared the mean activity during running/whisking and during resting periods (including both ‘whisking’ and ‘no-whisking’ episodes). Running/whisking caused significant mean ΔF/F increases in the majority of both L2/3 and L5 neurons and decreases in some neurons (Fig. 2e and Supplementary Fig. 4). Consistently, a running MI—defined in analogy to the whisking MI—revealed increased activity during running/whisking for both populations (Fig. 2f; running MI 0.210 ± 0.016, n = 342, for L2/3 and 0.329 ± 0.023, n = 168, for L5 neurons, respectively; p < 10−20 for both populations, Wilcoxon signed rank test) with significantly larger running modulation for L5 neurons (p = 1.2 × 10−5, Wilcoxon rank sum test). We also computed average fluorescence changes aligned to locomotion onsets, considering only fluorescence trace segments until running stopped. About one-third of neurons showed a significant increase in activity upon running onset (32% and 38% for L2/3 and L5, respectively; Supplementary Fig. 4). This increase persisted over several seconds as reflected in the population average of run-onset-aligned responses of L2/3 and L5 neurons (Fig. 2g). Taken together, the No-touch sessions revealed that running/whisking increases the activity of both L2/3 and L5 neurons in barrel cortex to a larger extent than whisking alone.
We also examined the effect of varying run speed on the activity of barrel cortex neurons in the absence of sensory stimulation. In total, 39% of L2/3 and 45% of L5 neurons were modulated by run speed (p < 0.001; ANOVA for run speed >1 cm s−1; Supplementary Fig. 5; see Methods). Half of these neurons showed band-pass tuning (50% and 54% for L2/3 and L5, respectively), such that their mean calcium signal was highest at a specific intermediate run speed but reduced at lower and higher speeds. Smaller fractions of run-speed modulated cells monotonically increased (19 and 10%) or decreased (31 and 36%) their responses with increasing run speed.
Differential responses to wall touch in L2/3 and L5 neurons
After determining the effect of running and whisking in the absence of sensory stimulation, we next compared responses evoked by texture touch in the Closed-loop condition. In each trial, after the mouse had run a predefined distance, a textured wall moved in contact with the whiskers, rotating at the same speed as the animal was running (Fig. 3a). We aligned the fluorescence traces to ‘touch onset’, defined as the time point when the texture started moving toward the whiskers (see Methods). More than half of the neurons were responsive to wall touch (64%, 268/420, in L2/3 and 57%, 157/275, in L5) and these responses were not induced by the sound of the texture-rotation motor or the linear stage (see Methods). Both L2/3 and L5 neurons displayed a strong initial response to touch. However, L2/3 neurons continued to exhibit a sustained response to ongoing wall touch whereas L5 neurons showed a transient response (Fig. 3b–e). Although a rough-textured wall elicited slightly larger activity than a smooth-textured wall in both L2/3 and L5 neurons, the difference in temporal response profile remained the same, independent of texture identity (Supplementary Fig. 6). Because action-potential-evoked somatic calcium dynamics is fast and similar for L2/3 and L5 neurons (Supplementary Fig. 3; ref. 46), the difference in transient versus sustained touch responses of L5 and L2/3 neurons does not reflect differences in calcium dynamics, but rather points to differences in their local and long-range connectivity governing their synaptic inputs and action potential firing patterns. Consistent with this notion, no difference in temporal profile was observed for locomotion onset responses, with calcium signals showing sustained activation for both L2/3 and L5 neurons (Fig. 2g and Supplementary Fig. 7).
We further evaluated the distinct temporal profiles of L2/3 and L5 responses. In an early response window, the peak ΔF/F change relative to the mean ΔF/F value in a pre-touch period was 32 ± 0.9% and 26 ± 0.9% for responsive L2/3 and L5 neurons, respectively (Fig. 3b; mean ± s.e.m.; p < 10−4, Wilcoxon rank sum test). In a late response window (2–3 s after touch onset) the ΔF/F traces showed a strong decrease in L5 but not in L2/3, which we quantified by calculating the ΔF/F suppression in the late versus the early window. Suppression was significantly larger for L5 compared with L2/3 neurons (Fig. 3c; 69.6 ± 4.4% for L5 and 16.6 ± 2.7% for L2/3, p < 10−4, Wilcoxon rank sum test), reflecting again the difference in transient versus sustained responses. In addition, touch modulation of ΔF/F signals was inversely correlated to locomotion modulation, especially for L5 neurons (Supplementary Fig. 8).
In the Closed-loop condition, the wall touch almost always happened during running as mice had to travel a certain distance before reaching a wall. To test whether laminar specificity of wall touch responses depends on the locomotion state, we also examined touch responses in Open-loop condition (Fig. 4a). This allowed us to sort wall touch events into two groups according to whether the touch occurred during running or during resting (see Methods). Although neuronal activity overall was lower during resting, L2/3 neurons gave a sustained response after wall touch in either condition, whereas L5 neuron activity decreased over time (Fig. 4b–g and Supplementary Fig. 8). In summary, our findings reveal that touch-evoked activity in barrel cortex shows laminar specificity, with L2/3 neuronal subsets showing sustained activity during continuous touch whereas subsets of L5 neurons respond transiently.
Responses to mismatch of running speed and tactile flow
In visual cortex, a subset of neurons report mismatches between the animal’s motion and visual flow by increased activity41,42. Here, we explored whether mismatch-sensitive neurons also exist in barrel cortex. In the Closed-loop condition, we introduced strong mismatches between locomotion and tactile flow by abruptly halting the rotating texture for 2 s at a random time point during the touch. We found small numbers of neurons that either increased (up-modulated) or decreased (down-modulated) their activity upon such perturbation (example cells shown in Fig. 5a, b). For quantification, we averaged ΔF/F traces after alignment to the perturbation onset, and defined the perturbation response amplitude as the mean ΔF/F change in a 2-s time window after perturbation relative to pre-perturbation baseline (Fig. 5b). The distribution of perturbation response amplitudes was similar for L2/3 and L5 neurons, albeit with a slightly but significantly lower mean value for L2/3 neurons (Fig. 5c; −4.2 ± 0.6%, n = 420 and −1.7 ± 0.7%, n = 275, for L2/3 and L5, respectively; p < 0.001, Wilcoxon rank sum test). Overall, 4.5% (19/420) of L2/3 and 3.3% (9/275) of L5 neurons showed a significant increase in response to mismatch between running speed and tactile flow (see Methods). Significantly down-modulated neurons were more abundant in L2/3 (12.4%, 52/420) than in L5 (6.6%, 18/275) (Fig. 5d). Decreased activity was the dominating effect at the population level both in L2/3 and L5 (Supplementary Fig. 9). While such decrease in activity may be explained by reduced stimulation of the whiskers when the rotation of the texture cylinder is stopped, the increased activity upon texture halt can be considered as representing a true mismatch signal. Our Open-loop experiments also revealed that increased mismatch responses were not a pure sensory response: neurons did not show increased activity to texture stall when animals were at rest (Fig. 5e, f), in addition the number of mismatch responsive neurons during running was similar to Closed-loop condition (Fig. 5g).
More-prominent integration of locomotion and touch in L2/3
After revealing neuronal population responses to salient events (e.g., running onset, touch, and perturbation), we evaluated how homogenously these sensorimotor aspects are functionally represented among L2/3 and L5 neurons in barrel cortex. To this end, we conducted Open-loop experiments during which various combinations of running and touch occurred. Some neurons faithfully increased activity when the animal touched the wall, independent of running (‘Touch cells’); another subset of neurons was most active when the animal was running independent of the wall touch (‘Run cells’); a relatively large population of neurons was most responsive when wall touch and running occurred concomitantly (‘Integrative cells’); finally, some rare neurons were most active when the animal was stationary in the absence of wall touch (‘Rest cells’) (Fig. 6a). To classify neurons according to these categories, we computed the mean ΔF/F values for the four combinations of locomotion and touch state (‘no-running/no-touch’, ‘running/no-touch’, ‘no-running/touch’ and ‘running/touch’) and categorized all neurons according to their highest response (see Methods). 77.2 ± 9.6% of L2/3 neurons were integrative cells compared with only about half of the neurons in L5 (51.2 ± 4.5%). Accordingly, the two subpopulations of touch cells and run cells were larger in L5 than in L2/3 (Fig. 6b, c). At the population level, mean ΔF/F values of L2/3 neurons were similar for running/no-touch and no-running/touch conditions with an approximately linear summation for concomitant running/touch (Fig. 6d). In comparison, mean ΔF/F values of L5 neurons were larger for running-only compared with touch-only condition, with only a marginal increase in population activity when wall touch occurred during running.
After categorizing cells according to their responses in the presence or absence of motor and sensory inputs, we also tested how well time-variant information about motor and sensory variables explained neuronal responses. We applied a random forest algorithm to predict calcium signals from texture-rotation speed, run speed and whisking envelope during wall touch periods in ‘Open-loop’ experiments, where these three variables were independent (Supplementary Fig. 10; see Methods). We found that run speed contributed the most to predicting neuronal responses, as prediction quality showed the largest decrease when this parameter was shuffled. Texture speed explained a smaller but significant proportion of the variance whereas shuffling whisking envelope did not affect prediction quality. These findings hold for both L2/3 and L5 populations, with overall prediction quality being slightly lower in L5 than in L2/3.
The larger fraction of integrative neurons in L2/3 and their enhanced mean activity during concurrent wall touch and running suggest a more effective integration of sensory and motor information in superficial layers. To test this hypothesis we compared for each neuron mutual information between the best predictive variable, run speed, and the calcium signal during no-touch and wall-touch periods of the Open-loop condition (see Methods). At the population level mutual information was increased in the presence of wall touch for superficial neurons but decreased for L5 neurons (Supplementary Fig. 10). Although integrative cells increased their mutual information in both L2/3 and L5, the abundance of integrative neurons in superficial neurons explained this difference between layers. Taken all together we conclude that L2/3 neurons show a stronger integration of locomotion and sensory information than neurons in L5.
Discussion
Using a tactile virtual reality setup we found that neuronal activity across barrel cortex layers is strongly increased by running, more than by whisking. Furthermore, we found that continuous wall touch evokes differential responses across layers, transient ones in L5 neurons and sustained ones in L2/3 neurons. In line with this finding, the fraction of neurons best coding for running-with-touch was larger in L2/3 compared with L5. Moreover, in both L2/3 and L5 small subsets of neurons were sensitive to sensorimotor mismatches. Taken together, our findings highlight the strong influence of locomotion on barrel cortex activity and reveal a layer-dependence of touch responses during active locomotion.
Accumulating evidence suggests that running strongly modulates sensory processing, but effects vary across sensory modalities and among cell types (for reviews, see refs. 47,48). We found that S1 neurons increase their activity during running (accompanied by whisking). In the absence of sensory stimulation, about 30% of both L2/3 and L5 neurons displayed a significant run-onset responses, consistent with a previous study reporting similar effects mainly from L4 and L5 neurons25 as the number of extracellularly recorded supragranular neurons in their study were limited. We also characterized S1 neurons to have tuned responses to run speeds. The distribution of speed tuning properties in S1 are similar to what has been described in V14, with majority of neurons being tuned to an intermediate run speed and smaller number of neurons to have monotonically increasing and decreasing responses to increasing run speeds. Another study on somatosensory processing used running as a means to make mice continuously whisk against a stimulus bar, but did not report on neuronal activity changes due to running40.
In our experiments, whisking minimally increased barrel cortex activity, and we found very few whisking-onset responsive cells in both superficial and deep layers. Previous studies have reported inconsistent results regarding modulation of barrel cortex activity by whisking: some have reported changes in membrane potential dynamics but not firing rates9,37,49, while others have reported prominent increases in firing rate upon whisking37,38. Our findings are more consistent with the former results, but further dissection of subtype-specific modulations in both superficial and deep layers is required. Other studies characterized whisking neurons depending on how well they encoded whisking dynamics such as whisker angle and the curvature compared with touch events18. They classified about 17% of superficial neurons and L5A apical dendrites to code for whisking. However this study was conducted in task-performing animals with a single intact whisker, both of which can affect neural responses. In our study, we did not have access to the dynamics of single whiskers.
Our results thus provide evidence that locomotion exerts strong effects on sensory processing in barrel cortex. One may therefore have to rethink the commonly applied notion that barrel cortex employs sparse coding50,51. The increased activity observed both in superficial and deep layers during running suggests that barrel cortex may employ state-dependent encoding strategies. In an ethologically relevant situation such as navigation, increased activity might provide more efficient and faster sensory coding.
Touch-evoked responses during running involved initial strong activation of both L2/3 and L5 neurons, but only in L2/3 activity remained elevated during continuous stimulation. This difference in sustained versus transient response profiles of superficial and deep-layer neurons, respectively, may reflect different functional roles of layers during active behavior. Superficial cortical layers appear to ‘stay online’ during ongoing sensory-motor sampling, presumably to continually monitor the interactions with the world and match external stimuli to internal expectations. In contrast, deeper layers seem to react to salient changes of the behavioral context. Via their output projections, L5 neurons may convey this information to relevant subcortical regions, such as thalamus, striatum, and brain stem, in order to promptly and accordingly adapt the animal’s behavior.
One explanation for such discrepancy in temporal response profiles between L2/3 and L5 could be intrinsic differences of neuronal classes. Indeed, several studies reported differences in adaptation properties of subtypes of pyramidal cells. For example, a recent study revealed distinct membrane depolarizations in S2- and M1-projecting L2/3 neurons: while S2-projecting neurons robustly signaled sensory information during repetitive active touch, M1-projecting neurons displayed strongly adapting postsynaptic potentials52. In our experiments, a predominant activation of a larger population of S2-projecting neurons could explain the observed sustained response in L2/3. Similarly, L5A neurons, which mainly send projections to other cortical areas, have an adapting spiking pattern whereas L5B neurons, whose projections target subcortical areas, have a regular spiking pattern upon current injection53–55. The majority of our L5 imaging fields of views were localized around L5A. Thus, adapting responses of these cells might explain the observed transient activity upon continuous texture stimulation. On the other hand, electrophysiological recordings in rat barrel cortex while stimulating whiskers at different frequencies showed no significant difference in adaptation responses of superficial and deep-layer neurons56. This indicates that sustained versus transient responses may result not only from intrinsic differences of L2/3 and L5 neurons, but in addition, might involve circuit mechanisms on the local as well as long-range scale.
Inhibitory neurons within the local network might mediate differential response profiles across lamina. For instance, Pluta et al.40 reported that activation of L4 neurons, which in turn recruited a population of inhibitory fast spiking neurons in L5, caused suppression of L5 neurons but increases in activity of L2/3 neurons. In this study, mice were continuously running. Our results are in line with this observation and in addition suggest that recruitment of inhibition might be enhanced due to the running state of the mice because suppression was smaller when the animals were stationary. Another plausible mechanism to explain the late suppression of L5 neurons is the recruitment of frequency-dependent disynaptic inhibition (FDDI) of inhibitory Martinotti cells57. In addition to L5 pyramidal cell inputs, L5 Martinotti cells receive strong input from L2/3 neurons58–61. Considering the more sustained activity of L2/3 neurons upon continuous wall-touch, interlaminar recruitment of L5 Martinotti cells might underlie suppression of L5 pyramidal neurons61. In addition, this inhibition through Martinotti cells is initially weak but facilitated with continuous input62, thereby possibly accounting for the delayed suppression of L5 responses. Several studies have also suggested that locomotion effects are mediated via disinhibition of pyramidal neurons by activation of vasoactive intestinal peptide (VIP) expressing interneurons upon locomotion5,6. VIP neurons are more numerous in superficial layers, albeit their axons can reach different layers. Hence, their activation might lead to more effective disinhibition in L2/3 upon running compared with L5, creating a disparity in responses of superficial and deep-layer neurons.
Finally, distinct long-range afferent inputs to L2/3 versus L5 neurons in general could underlie the distinct response profiles32,34–36. For instance, POM sends axons to L1 and L531,33. Although the specificity of targeting of L1 axons onto apical dendrites of both L2/3 and L5 neurons remains unclear, specific inputs to L5A could explain distinct response patterns. To our best knowledge, changes to POM activity upon running remain to be investigated. In addition, layer-specific inputs originating from motor cortex to somatosensory cortex may contribute to response diversity.
An important aspect of our study is that it provides insight about sensory-motor represenations across cortical layers. Laminar organization of a cortical column in the mammalian neocortex is highly preserved throughout evolution and it is of key importance to compare response properties across layers to better understand their functional role. One suggested role of laminar organization in cortex is that it may provide a framework for hierarchical processing such that a ‘higher’ cortical area sends expectation information through axonal projections to superficial neurons of a ‘lower’ sensory area, where top-down inputs are integrated or compared with bottom-up inputs63,64. According to this model, one might expect expectation mismatch signals to be more prominent in superficial than in deep layers. In this study, we indeed found evidence of mismatch responses in barrel cortex but it was not limited to superficial layers. In our experiments, around 5% of both superficial and deep-layer neurons in S1 showed increased activity to a mismatch between the animal’s running speed and texture speed. Abrupt stalling of tactile flow while the animal was stationary did not cause increased activity, suggesting that the perturbation responses we observed were not driven solely by changes in sensory parameters but required integration with the animal’s motor state. A similar study in primary visual cortex reported that a comparable subset (13%) of L2/3 neurons respond to expectation mismatch in visual stimuli, a brief stalling of the visual stimulus flow while the animal is running on a treadmill42. They also reported mismatch responses at the population level, different from our experimental results showing a decrease in population activity upon mismatch, which can be explained by a larger fraction of neurons decreasing their activity upon texture-rotation stall in S1. To our best knowledge, there is no comparison of mismatch responses of L2/3 neurons with that of L5 neurons in visual cortex. Mismatch responses in deeper layers do not disprove the current model of predictive processing, but do provide insight into how these signals might be relayed to other brain areas. Dissection of target-specific subpopulations of deep-layer neurons will be necessary to further reveal how mismatch signals are processed throughout the brain. In addition, the contribution of different subtypes of inhibitory interneurons in shaping the response dynamics of neuronal populations in superficial versus deeper cortical layers during sensorimotor integration warrants further investigation.
Within the local microcircuitry of barrel cortex, we found a distributed representation of sensory information (textured wall) and motor information (running). The majority of neurons, especially in L2/3, responded most strongly during the combined condition of run-with-touch. In L5, fewer neurons exhibited integrative properties whereas half of the neurons responded best to a single modality (wall touch or running). The smaller fraction of integrative cells in L5 is in line with the suppression of L5 neuron activity with continuous touch. L2/3 neurons were also better at encoding information about run speed in the presence of the textured wall. This is explained by the abundance of integrative cells in L2/3, which display improved encoding of run-speed during wall touch.
Overall, these findings provide direct evidence for a more integrative role of superficial neurons during sensory processing in S1, and suggest that L2/3 neurons play the primary role during contextual modulation of cortical activity and multimodal integration of sensory inputs. Our results indicate that L2/3 neurons enter a continuous monitoring mode during running while L5 neurons mainly respond to salient changes. We therefore speculate that L2/3 and L5 neurons might contribute differentially to behavioral tasks with different requirements. For example, L5 neurons might be more involved in obstacle detection, requiring immediate changes in the motor program, while activity of L2/3 neurons might be critical for texture-discrimination during navigation. In future experiments, it will be interesting to verify such distinct task involvement of L2/3 and L5 populations.
Methods
Virus injections and cranial window preparation
All experiments were conducted in accordance with the ethical principles and guidelines for animal experiments of the Veterinary Office of Switzerland and were approved by the Cantonal Veterinary Office in Zurich.
We used 5–9-week-old male C57BL6 mice. Virus injection and cranial window preparation followed a former description45 and were performed under isoflurane anesthesia (1.5–2%) with body temperature maintained at ~37 °C using a regulated heating blanket and a thermal probe. The eyes of the mouse were covered by Vitamin A cream (Bausch & Lomb) during the surgery. After hair removal and disinfection with ethanol (Alkopads B.Braun), the skin was opened with a scalpel and the exposed cranial bone was cleaned from connective tissue and dried with cotton pads (Sugi). To express the red calcium indicator R-CaMP1.0743 in cortical neurons, we injected AAV2.1-EF1α-R-CaMP1.07 into barrel cortex (at 3.3 mm lateral and 1.1 mm posterior to bregma). Two injections of 210 nl of viruses (~1.21 × 1013 vg/ml) were performed 300–700 µm below the pial surface to achieve expression in both deep and superficial cortical neurons. Afterwards a circular piece of cranial bone (Ø 4 or 5 mm) was removed using a dental drill, leaving the injection sites in the center. A coverglass (Ø 4 or 5 mm, 0.17 mm thickness) was inserted and secured in place by UV curable dental acrylic cement (Tetric Evoflow). In order to ensure reproducible positioning of the mouse by head-fixation under the microscope objective, a small aluminum hook was glued to the skull on the contralateral side of the head with dental cement. The hook was mounted at slightly tilted angle so that the cranial window was nearly perpendicular to the optical axis of the microscope objective. Intrinsic optic signal imaging was used to verify viral expression area within barrel cortex45. The barrel field of single whiskers (mainly B1, B2, C1, and C2) for each mouse was identified under light anesthesia (~0.5–1% isoflurane).
Tactile virtual reality setup
Rodents are highly tactile animals. In their natural environment they run through dark tunnels utilizing their whiskers to touch the walls. To simulate this natural behavior, we built a tactile virtual reality setup65. Mice were head-restrained on a rung-ladder treadmill (Ø 23 cm) with regularly spaced rungs (1 cm spacing). Run speed and distance were recorded at 40 Hz with a rotary encoder (incremental 5 VDC 360, RI32-O/360AR.11KB, Hengstler). Textures (sandpapers of various graininess: P100 or P1200) were presented on rotating cylinders and were brought in reach of the whiskers with a linear motorized stage (Zaber T-LSM050B stage with built-in controller). Texture contact was established after mice had run a predefined distance on the treadmill. This distance (5–50 cm) was determined for each mouse individually, to allow several seconds of recording before texture touch. A stepper motor (Phidgets 3305_5 NEMA-17 Bipolar 20 mm Stepper) was used to control the speed of the texture rotation. The texture speed was either coupled (Closed-loop) or decoupled (Open-loop) to the animal’s run speed. All experiments were performed in the dark. Whiskers on the contralateral side of the cranial window were illuminated with 850-nm infrared LED light while being monitored with a CMOS high-speed camera (Optronis, CL600X2) at 200-Hz frame rate. The behavioral setup was controlled by custom software developed in LabVIEW. This software served as the master control unit for controlling and recording behavioral components and triggered whisker monitoring and two-photon calcium imaging.
Behavioral paradigms and experimental design
Animals were free to move on the treadmill and did not receive any reward under any condition. After habituation whiskers were trimmed such that they would not contact the treadmill to avoid somatosensory stimulation by the ladder rungs. We considered three behavioral and stimulation conditions (see Results section in main text for details of conditions): (1) ‘No-touch’ (5 mice, 10 imaging spots; up to three sessions per spot), (2) ‘Closed-loop’ (5 mice, 12 imaging spots; up to nine sessions per spot), and (3) ‘Open-loop’ (5 animals, 11 imaging spots; up to four sessions per spot). To control for confounding effects of the sounds due to motor rotation and linear-stage movement, we rotated the textured cylinder and moved the linear stage in ‘No-touch’ trials as if in ‘Closed-loop’ condition but kept the textured ‘wall’ out of reach for the whiskers.
A week after the cranial surgery, mice were first habituated to the experimenter by handling. Once familiar, animals were accustomed to the behavioral setup, where they freely moved on the rung-ladder treadmill while being head-fixed and presented with Closed-loop rotating texture stimuli. After a week of habituation and training we performed two-photon calcium imaging of neuronal populations in superficial and deep layers of S1 barrel cortex (221–664 µm below the pial surface) during several sessions under all three behavioral conditions. Each behavioral session was composed of 20-s long trials with 3–5 s inter-trial intervals. The number of trials in each session varied from 10 to 80. Animals were kept under these recording conditions maximally for 45 min per recording session and about 1.5 h per day in multiple sessions. For each imaging area, we collected data in 1–6 experimental sessions spread over maximally 10 days. For repeated imaging across several days, individual cells were re-identified by their shape and localization relative to the spatial constellation of the cells in the neighborhood within the imaging field.
In vivo two-photon calcium imaging
We used a custom-built two-photon microscope of the Sutter Movable Objective Microscope (MOM) type. This system was equipped with galvanometric scan mirrors (model 6210; Cambridge Technology) and a Pockels cell (model 350/80 with controller model 302RM, Conoptics) controlled by HelioScan software66. The objective was a water immersion ×16 objective (CFI LWD 16×/0.80; Nikon). For excitation of R-CaMP1.07, we used a ytterbium-doped potassium gadolinium tungstate (Yb:KGW) laser (1040 nm; 2.5-W average power; ~230-fs pulses at 80 MHz; model Ybix; Time-Bandwidth Products). Fluorescence was collected through a red emission filter (610/75 nm; AHF Analysentechnik) and detected by a GaAsP PMT (Hamamatsu H10771P-40 SEL). We performed in vivo calcium imaging using 33–160 mW average power below the objective for focal depths ranging from 221 to 664 µm. Image acquisition rate was 10 Hz over a 140-µm by 180-µm field of view.
In vitro patch clamp recordings and calcium imaging
To compare action potential-evoked calcium dynamics in pyramidal neurons of L2/3 and L5 we performed simultaneous calcium imaging and whole-cell patch clamp recordings in acute brain slices prepared from 2–4 month old wild-type mice. In brief, mice were deeply anesthetized with isoflurane and decapitated. The brain was rapidly removed and put into ice-cold cutting solution containing (in mM): sucrose (189), NaHCO3 (26), NaH2PO4 (1.2), KCl (2.5), CaCl2 (0.1), MgCl2 (5), and dextrose (10), equilibrated by continuous flow of carbogen (95% O2, 5% CO2). The brain was then trimmed and glued on the stage of a Leica VT1000 vibratome. In total, 300-µm thick coronal slices containing S1 were cut and allowed to recover for 30 min at 34 °C in artificial cerebrospinal fluid (ACSF) containing (in mM): NaCl (125), KCl (2.5), NaH2PO4 (1.25), MgCl2 (1), CaCl2 (2), NaHCO3 (25), dextrose (10), pH 7.3 with continuous flow of carbogen. After recovery, slices were stored at room temperature for at least 1 h before recording and used within 5 h after cutting. For recording and imaging, slices were transferred to the stage of an upright two-photon microscope (Scientifica Slice Scope) equipped with a ×60 objective and continuously superfused with ACSF (30 °C, 3 ml/min).
Whole-cell patch clamp recordings were obtained from visually identified pyramidal neurons in L2/3 and L5, respectively. Thick-walled patch pipettes (Harvard Apparatus) were pulled with a Sutter-P87 pipette puller and filled with an internal solution containing (in mM): K-Gluconate (135), NaCl (8), HEPES (10), MgATP (2), Na-GTP (0.3), pH 7.3, ~300 mosm. Pipette resistance was 4–7.5 MΩ in the bath and recordings were corrected for the liquid junction potential. Access resistance ranged from 30 to 35 MΩ and was continually monitored for consistency. Voltage recordings were acquired in current clamp mode with an Axon 700B amplifier and digitized with an Axon Digidata 1550A digitizer controlled by the Axoclamp Software version 10.6. Signals were sampled at 10 kHz and Bessel-filtered at 1 kHz. Single or trains of action potentials were induced by 2-ms current injection pulses (3.5 nA) delivered at 50 Hz through the pipette.
We performed two sets of experiments using the synthetic calcium indicator Cal-520 (AAT Bioquest) and the genetically encoded indicator R-CaMP1.07, respectively. To induce R-CaMP1.07 expression, four mice were injected bilaterally at S1 coordinates with AAV2.1-EF1α-R-CaMP1.07, 2–4 weeks before the experiment. For labeling of neurons with Cal-520, the dye was added to the internal pipette solution (100 µM). S1 pyramidal neurons in L2/3 and L5 were identified based on their distance to the pial surface. For Cal-520 experiments, cells were loaded through the pipette for at least 10 min before imaging. For excitation of the calcium indicators we used a Ti:sapphire laser (MaiTai) tuned to either 790 nm (Cal-520) or 1020 nm (R-CaMP1.07). Fluorescence signals were collected with GaAsP PMTs through green (525/50) and red (620/60) emission filters for Cal-520 and R-CaMP1.07, respectively. Scanning, image acquisition, and triggering of current injections were controlled by ScanImage software. Images were acquired at a rate of 16.67 Hz with 128 × 128 pixel resolution.
For analysis, somatic regions of interests (ROIs) were manually selected in Fiji software and the extracted fluorescence signals were analyzed using custom MATLAB scripts. After background subtraction (estimated as bottom 5th-percentile value across the entire movie) calcium signals were expressed as relative percentage fluorescence change ΔF/F = (F − F0)/F0, where the baseline F0 was calculated as the mean of the initial 300-ms period of the recording. To correct for fluorescence bleaching apparent in the slice experiments, we fit an exponentially decay function to the ΔF/F trace, excluding an ~1.7-s period (−0.24 to +1.44 s) surrounding the peak of the calcium transient and subtracted this fit from the calcium trace. Decay time constants (τ) were obtained from exponential fits to each calcium transient starting from the peak of the transient.
Slice histology and confocal microscopy
After the last in vivo experiments mice were anesthetized by i.p. injection of ketamine (0.15 mL, 50 mg/mL). In total, 0.05 mL heparin was injected in the left hearth ventricle and the animal were intracardially perfused with 20–25 ml of phosphate buffer (0.1 M, pH 7.3, room temperature) and subsequently with 20–30 -ml of paraformaldehyde solution (PFA; 4% in 0.1 M PBS, pH 7.3, room temperature) both at 11 ml/min. The brain was extracted and postfixed in 4% PFA at 4 °C overnight. Afterward, it was rinsed three times with phosphate buffer and preserved in 30% sucrose (0.1 M phosphate buffer) at −20 °C until further processing. After unfreezing the brain was cut into 50-µm free-floating coronal slices with a microtome (Leica VT1000 S). Brain slices were mounted on microscope slides, embedded in Fluoromount (Dako), and covered by a glass cover. We acquired fluorescence stacks (3-µm z-steps) of R-CaMP1.07 expression with a confocal laser-scanning microscope (Olympus FV1000; 546-nm excitation wavelength).
Calcium imaging data analysis
Frames in the time series of two-photon imaging data were registered using a Hidden-Markov-Model, line-by-line motion-correction algorithm67. Regions of interests (ROIs) corresponding to individual neurons were manually selected from the mean image of a single-trial using Fiji software68. Image frames of other trials were then realigned to the reference trial, from which the ROIs were selected, to account for possible shifts of the field of view throughout an imaging session. R-CaMP1.07 fluorescence signals and behavioral data were analyzed using custom MATLAB scripts (Mathworks). Background fluorescence (estimated as bottom 1st percentile of the fluorescence signal across the entire movie) was subtracted from all trials. Insufficiently motion-corrected trials or time periods within a trial were excluded from the analysis. In rare cases, ROIs with large motion artifacts were also excluded. Background- and motion-corrected R-CaMP1.07 signals were expressed as relative percentage change of the fluorescence ΔF/F = (F − F0)/F0, where baseline F0 was calculated as the 1st percentile of the smoothed fluorescence trace (51-point 1st-order Savitsky-Golay filter) after concatenating fluorescence signals over all trials within a session. Smoothing over a large window aimed to estimate the baseline fluorescence of a neuron when it was inactive, likely not firing action potentials. Similarly we defined the baseline noise, σ, as the standard deviation of the fluorescence change during the least noisy 5-s period within a session (1st percentile). We used σ for identifying neurons responsive to salient events (e.g., whisking onset, running onset, touch or perturbation). Assuming linear summation and single action potential-evoked R-CaMP1.07 ΔF/F changes of ~8–11% amplitude with ~0.3–0.4 s decay time constant (Supplementary Fig. 3; ref. 44), a 50% steady-state ΔF/F change reflects a firing rate change of 11–21 Hz69, whereas sharp large calcium transients indicate the occurrence of bursts with variable numbers of action potentials. For each neuron, the signal-to-noise ratio was defined as the 95th percentile of ΔF/F signals recorded during a whole session divided by baseline noise in the same session46.
Whisking and running analysis
We monitored whisker motion at 200 Hz and measured the mean whisker angle across all imaged whiskers using automated whisker tracking software70. Whisker angle traces were down-sampled to the two-photon imaging frame rate of 10 Hz. We assigned whisking and no-whisking periods based on whether the standard deviation of the mean whisker angle trace (calculated in a 51-point sliding window) was above or below a predefined threshold (>2.5°). An encoder recorded run speed at 40 Hz and the run speed trace was smoothed with a 1-s Gaussian filter and also down-sampled to 10 Hz. To assign running versus resting periods, run speed traces were further smoothed with a 1.1-s broad 1st-order Savitsky-Golay filter and periods with absolute values of run speed >0.8 cm s−1 were considered as ‘running periods’.
We analyzed modulatory effects of whisking and running on barrel cortex activity under ‘No-touch’ condition. To determine the effect of whisking alone we excluded any running period. We defined the whisking modulation index (MI) as
1 |
where and denote the mean ΔF/F value during corresponding resting/whisking and resting/no-whisking states, respectively. Similarly, the effect of running was assessed by comparing mean ΔF/F values during running versus resting states independent of the whisking state of the animal. Runns to whisking MI as
2 |
where and denote the mean ΔF/F values in the respective time windows. Neuronal speed tuning was computed similarly to previous studies3,4. Run speed traces were binned such that each speed bin covered equal amounts of time, with the exception of the stationary bin (<1 cm s−1). Neurons were considered run speed modulated if the mean calcium signal across bins were significantly different (One-way ANOVA, p < 10−3). To compute run speed tuning curves we excluded the stationary bin and the rest of the data were fitted by the following equation:
3 |
where s is the run speed (s > 1 cm s−1), smax is the run speed that elicits highest response and σs is the width of the Gaussian curves such that it equals to σ− for s < smax and σ+ for s > smax. smax, σ−, and σ+ were free parameters to be fitted. All tuning data were fit by three curves by adding constraints on smax (i) monotonically increasing function required smax to be larger than animal’s maximum speed; (ii) monotonically decreasing function required ; (iii) in band-pass function smax was not constrained. These three curves were fit on 80% of the data, and we tested the fraction of explained variance of the firing rate on the remaining 20%. For the analysis of the distribution of run speed tuning preferences, we only considered where the proportion of explained variance was at least 30%. A neuron’s run speed response was considered band-pass only if the variance explained by the band-pass curve was greater than both a monotonically increasing or decreasing curve and when smax was >1 cm s−1 and smaller than the maximum run speed in the corresponding session.
Event detection and signal alignment
For detection of the whisking and running onsets we used the binary running/resting and whisking/no-whisking vectors. Any at least 400-ms long period of no-whisking (or resting) period followed by at least 400-ms of whisking (or running) was detected as a whisking onset (or running onset, respectively). To capture the time course of whisking-evoked ΔF/F responses independent of running we considered onset-aligned ΔF/F traces from 2 s before whisking onset until either whisking stopped or the animal started running. Similarly, running-evoked ΔF/F responses were considered from 2 s before running onset until the animal stopped running. As animals were almost always whisking when they were running, it was not possible to isolate running from whisking. Because of uncertainties in determining the first actual texture-whisker touch moment, we defined touch onsets as the time points where the linear stage carrying the texture started to move toward the whiskers. The intact set of whiskers together with whisker motion prevented us from detecting the precise moment of first touch of the whisker corresponding to the imaged barrel column. Our rough estimate of the actual time of first touch (of any whisker) is at 158 ± 48 ms after the texture cylinder started moving in (reaching its final position to 245 ± 44 ms; mean ± s.d.). We also controlled for potential responses to sounds made by the linear stage or the texture rotation by moving and rotating the texture in ‘No-touch’ conditions similar to ‘Closed-loop’ condition but keeping the texture out of reach of whiskers. Both L2/3 and L5 population responses, aligned to the texture moving in, were minimal. Only 3–5% of neurons (16/342 and 5/168 for L2/3 and L5, respectively) were classified as responsive with the same criteria used during touch response analysis.
Finally, perturbation events occurred at the beginning of the 2-s window when texture rotation was halted. To compute the perturbation response we consider only events that occurred when the mean run speed of the animal was larger than 2 cm s−1. This choice of threshold ensured that a mismatch between run-speed and tactile flow was indeed imposed by the perturbation.
We averaged event-aligned ΔF/F traces across trials (smoothed with 1st-order Savitsky-Golay filter, 500-ms window) and calculated the event modulation as the difference in mean ΔF/F values between pre- and post-event windows. For whisking, running and touch modulations we calculated the difference in as the max ΔF/F in the post-event window minus the pre-event mean ΔF/F. Perturbation modulation was computed as the difference of the mean ΔF/F values in both pre and post-event windows. Neurons with modulations larger than twice the baseline noise (2σ) were considered responsive. Specific calculations for each event type are as follows:
For Open-loop condition touch events were divided into ‘touch during running’ and ‘touch during resting’ groups. For each event we computed the mean running speed within a 5-s window (−1 to +4 s) around the touch onset. Events with mean speed >2 cm s−1 were selected as ‘touch during running’ events and those with speed <1 cm s−1 were considered ‘touch during resting’.
If a neuron was imaged over several sessions we randomly selected a session and considered each neuron once in any population analysis. Only for perturbation responses we selected the session the neurons was most responsive. Hence our perturbation results are an overestimation.
Functional classification of neurons
For functional classification of neurons we considered only Open-loop sessions as they comprised various combinations of stimulation and locomotion behavior. Calcium signals were smoothed with a 1st-order Savitsky-Golay filter with 500-ms window and resampled 100 times by selecting equal number of trials of the original session by replacement. For each selection of trials mean ΔF/F and standard deviation were calculated for four different stimulus-behavior conditions: no-running/no-touch; running in the absence of wall touch; wall touch without running; and concurrent running and wall touch. Cells which show the largest activity in any of these categories were labeled as stationary, run, touch and integrative cells, respectively. Cells were initially assigned to the category where their mean ΔF/F was the largest. But if the difference in mean ΔF/F between first and second largest response was smaller than one standard deviation of the largest response category a cell was assigned to the second largest group. The aim of this procedure was to assign cells to single component category (run or texture touch) unless their response significantly increased with the addition of the second component. Final classification of cells, for the first time they were imaged, is shown in Fig. 6b.
This analysis involved four animals, 24 sessions, 11 different imaging areas of 574 cells (338 L3 and 236 L5). Two sessions were not included where one of these four categories were not realized (i.e., there were no periods of texture touch without running). Statistics of cell category distribution was performed by randomly selecting 11 of 24 sessions 10 times. For each selection percent cells in each category was calculated separately for L2/3 or L5 populations. Ten selections provide mean and standard deviation of percent cell category distributions. For each category, two-sampled t-test was performed between percent representations in L2/3 and L5 populations.
Mutual information (I) calculation
We calculated mutual information to estimate the information about texture speed and run speed represented in the calcium responses of single neurons that were imaged during the Open-loop condition. We included 19/26 sessions where mice spent at least 10% of the time running (or resting).
To do so, we first discretized the ΔF/F calcium signals, run speed, and texture speed variables into states using uniform binning. The number of bins (k) were calculated using Freedman–Diaconis’ rule, which aims to minimize the integrated mean squared error of the density estimate:
4 |
where x is the vector of values for the variable of interest, max(x), min(x), and iqr(x) are the maximum, minimum, and interquartile range of x, respectively, and n is the number of data points for each trial.
Mutual information between ΔF/F calcium signals, X, and variables run speed or texture speed, Y, was then estimated with the following equation71:
5 |
where p(x, y) is the joint probability function of x and y, p(x) and p(y) are the marginal probability distribution functions of x and y, respectively.
To account for possible time delays between the calcium signals and variables, we calculated I(X;Y) using time-shifted ΔF/F data, such that calcium signals were staggered between ±1000 ms relative to run speed or texture speed. We observed that mutual information peaked when ΔF/F data were delayed by 200 ms relative to both variables; this delay time was used for all further analyses.
Encoding of neural activity by behavioral and sensory variables
To measure how well the calcium signal of a neuron can be inferred from the behavioral and stimulus variables simultaneously acquired in an experimental session, we used a machine learning approach. Specifically we inferred calcium signals from run speed, average whisker envelope and the texture-rotation speed using a random forest algorithm. We used TreeBagger class implemented in Matlab, with 32 trees and the minimum leaf size of 10. To predict calcium signals we used time shifted (≤ ±300 ms) versions of the sensory and behavioral parameters (also see ref. 72). The algorithm finds the best mapping between the calcium signal (y) and time shifted behavioral or sensory variable (n):
6 |
where tk is discretized time (corresponding to the imaging rate); ni represents the behavioral or sensory variable at time tk and N is the number of predictors (in this case three for run speed, texture speed and whisk envelope), respectively. Here p is the maximum negative and positive shifts of the calcium signal and it is equal to 3 (corresponding to ±300 ms window around time tk). The dimensionality of the input variables is N × (2p + 1).
Prediction of calcium signal was performed separately for each neuron imaged during an ‘Open-loop’ behavioral session. We only considered time periods during which whiskers were in touch with whiskers The algorithm was trained on a subset of data (the training set, 80%) and evaluated on the remaining test data (20%), which were randomly sampled in 2-s long continuous chunks. We repeated this procedure five times. The quality of prediction was evaluated for each set as the fraction of explained variance
7 |
where y(t) is the calcium signal to be predicted at time t, yα(t) is the prediction by the model given sensory and behavioral parameters described above, Ci is the ith test set and μ is the mean of the calcium signal to be predicted of the training set. Any Qi < 0 were replaced with 0. Reported explained variance is is the mean of all Qi values.
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We thank Hansjörg Kasper, Martin Wieckhorst, and Stefan Giger for technical assistance and Yaroslav Sych, Ariel Gilad and Christopher Lewis for comments on the paper. This work was supported by grants from the Swiss National Science Foundation (SNSF) (31003A-149858 and Sinergia grant CRSII3_147660; F.H.), the European Research Council (ERC Advanced Grant BRAINCOMPATH, project 670757; F.H.), Sir Henry Dale Fellowship jointly funded by the Wellcome Trust and the Royal Society (Grant 200501/Z/16/Z; A.B.S.), SNSF Marie Heim-Vögtlin grant (PMPDP3_145476; A.A.), and SNSF Ambizione grant (PZ00P3_161544; A.A.).
Author contributions
Conceptualization, A.A. and F.H.; methodology, A.A.; investigation, A.A., A.S., M.A.W. and M.H.; software and formal analysis, A.A. and M.H.; writing—original draft, A.A. and F.H.; writing—review and editing, A.B.S., A.S., A.A. and F.H.; funding acquisition, A.A.; resources, A.A. and F.H.; supervision, A.B.S., A.A., and F.H.
Data availability
The data that support the findings of this study are available from the corresponding authors upon reasonable request.
Code availability
Custom-written software code for data acquisition (LABView) and data analysis (MATLAB) is available upon reasonable request.
Competing interests
The authors declare no competing interests.
Footnotes
Journal peer review information: Nature Communications thanks the anonymous reviewers for their contribution to the peer review of this work. Peer reviewer reports are available.
Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information accompanies this paper at 10.1038/s41467-019-10564-8.
References
- 1.Niell CM, Stryker MP. Modulation of visual responses by behavioral state in mouse visual cortex. Neuron. 2010;65:472–479. doi: 10.1016/j.neuron.2010.01.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Ayaz A, Saleem AB, Schölvinck ML, Carandini M. Locomotion controls spatial integration in mouse visual cortex. Curr. Biol. 2013;23:890–894. doi: 10.1016/j.cub.2013.04.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Erisken S, et al. Effects of locomotion extend throughout the mouse early visual system. Curr. Biol. 2014;24:2899–2907. doi: 10.1016/j.cub.2014.10.045. [DOI] [PubMed] [Google Scholar]
- 4.Saleem AB, Ayaz A, Jeffery KJ, Harris KD, Carandini M. Integration of visual motion and locomotion in mouse visual cortex. Nat. Neurosci. 2013;16:1864–1869. doi: 10.1038/nn.3567. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Fu Y, et al. A cortical circuit for gain control by behavioral state. Cell. 2014;156:1139–1152. doi: 10.1016/j.cell.2014.01.050. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Pakan JM, et al. Behavioral-state modulation of inhibition is context-dependent and cell type specific in mouse visual cortex. Elife. 2016;5:e14985. doi: 10.7554/eLife.14985. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Polack P-O, Friedman J, Golshani P. Cellular mechanisms of brain state–dependent gain modulation in visual cortex. Nat. Neurosci. 2013;16:1331–1339. doi: 10.1038/nn.3464. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Schneider DM, Nelson A, Mooney R. A synaptic and circuit basis for corollary discharge in the auditory cortex. Nature. 2014;513:189–194. doi: 10.1038/nature13724. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Crochet S, Petersen CCH. Correlating whisker behavior with membrane potential in barrel cortex of awake mice. Nat. Neurosci. 2006;9:608–610. doi: 10.1038/nn1690. [DOI] [PubMed] [Google Scholar]
- 10.Gentet LJ, Avermann M, Matyas F, Staiger JF, Petersen CCH. Membrane potential dynamics of GABAergic neurons in the barrel cortex of behaving mice. Neuron. 2010;65:422–435. doi: 10.1016/j.neuron.2010.01.006. [DOI] [PubMed] [Google Scholar]
- 11.Eggermann E, Kremer Y, Crochet S, Petersen CCH. Cholinergic signals in mouse barrel cortex during active whisker sensing. Cell Rep. 2014;9:1654–1660. doi: 10.1016/j.celrep.2014.11.005. [DOI] [PubMed] [Google Scholar]
- 12.Poulet JFA, Petersen CCH. Internal brain state regulates membrane potential synchrony in barrel cortex of behaving mice. Nature. 2008;454:881–885. doi: 10.1038/nature07150. [DOI] [PubMed] [Google Scholar]
- 13.Poulet JFA, Fernandez LMJ, Crochet S, Petersen CCH. Thalamic control of cortical states. Nat. Neurosci. 2012;15:370–372. doi: 10.1038/nn.3035. [DOI] [PubMed] [Google Scholar]
- 14.Deschênes M, Moore J, Kleinfeld D. Sniffing and whisking in rodents. Curr. Opin. Neurobiol. 2012;22:243–250. doi: 10.1016/j.conb.2011.11.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Sofroniew NJ, Svoboda K. Whisking. Curr. Biol. 2015;25:R137–R140. doi: 10.1016/j.cub.2015.01.008. [DOI] [PubMed] [Google Scholar]
- 16.Petersen CCH. Cortical control of whisker movement. Annu. Rev. Neurosci. 2014;37:183–203. doi: 10.1146/annurev-neuro-062012-170344. [DOI] [PubMed] [Google Scholar]
- 17.Yu J, Gutnisky DA, Hires SA, Svoboda K. Layer 4 fast-spiking interneurons filter thalamocortical signals during active somatosensation. Nat. Neurosci. 2016;19:1647–1657. doi: 10.1038/nn.4412. [DOI] [PubMed] [Google Scholar]
- 18.Peron SP, Freeman J, Iyer V, Guo C, Svoboda K. A Cellular Resolution Map of Barrel Cortex Activity during Tactile Behavior. Neuron. 2015;86:783–799. doi: 10.1016/j.neuron.2015.03.027. [DOI] [PubMed] [Google Scholar]
- 19.Curtis JC, Kleinfeld D. Phase-to-rate transformations encode touch in cortical neurons of a scanning sensorimotor system. Nat. Neurosci. 2009;12:492–501. doi: 10.1038/nn.2283. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Kleinfeld D, Deschênes M. Neuronal basis for object location in the vibrissa scanning sensorimotor system. Neuron. 2011;72:455–468. doi: 10.1016/j.neuron.2011.10.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Gentet LJ, et al. Unique functional properties of somatostatin-expressing GABAergic neurons in mouse barrel cortex. Nat. Neurosci. 2012;15:607–612. doi: 10.1038/nn.3051. [DOI] [PubMed] [Google Scholar]
- 22.Urbain N, et al. Whisking-related changes in neuronal firing and membrane potential dynamics in the somatosensory thalamus of awake mice. Cell Rep. 2015;13:647–656. doi: 10.1016/j.celrep.2015.09.029. [DOI] [PubMed] [Google Scholar]
- 23.Yu C, Derdikman D, Haidarliu S, Ahissar E. Parallel thalamic pathways for whisking and touch signals in the rat. PLoS Biol. 2006;4:e124. doi: 10.1371/journal.pbio.0040124. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Moore JD, Mercer Lindsay N, Deschênes M, Kleinfeld D. Vibrissa self-motion and touch are reliably encoded along the same somatosensory pathway from brainstem through thalamus. PLOS Biol. 2015;13:e1002253. doi: 10.1371/journal.pbio.1002253. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Sofroniew NJ, Vlasov YA, Hires SA, Freeman J, Svoboda K. Neural coding in barrel cortex during whisker-guided locomotion. Elife. 2015;4:e12559. doi: 10.7554/eLife.12559. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Sofroniew NJ, Cohen JD, Lee AK, Svoboda K. Natural whisker-guided behavior by head-fixed mice in tactile virtual reality. J. Neurosci. 2014;34:9537–9550. doi: 10.1523/JNEUROSCI.0712-14.2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Mitchinson B, et al. Active vibrissal sensing in rodents and marsupials. Philos. Trans. R. Soc. B Biol. Sci. 2011;366:3037–3048. doi: 10.1098/rstb.2011.0156. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Arkley K, Grant RA, Mitchinson B, Prescott TJ. Strategy change in vibrissal active sensing during rat locomotion. Curr. Biol. 2014;24:1507–1512. doi: 10.1016/j.cub.2014.05.036. [DOI] [PubMed] [Google Scholar]
- 29.Wineski LE. Movements of the cranial vibrissae in the Golden hamster (Mesocricetus auratus) J. Zool. 1983;200:261–280. doi: 10.1111/j.1469-7998.1983.tb05788.x. [DOI] [Google Scholar]
- 30.Constantinople CM, Bruno RM. Deep cortical layers are activated directly by thalamus. Science. 2013;340:1591–1594. doi: 10.1126/science.1236425. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Lu SM, Lin RC. Thalamic afferents of the rat barrel cortex: a light- and electron-microscopic study using Phaseolus vulgaris leucoagglutinin as an anterograde tracer. Somatosens. Mot. Res. 1993;10:1–16. doi: 10.3109/08990229309028819. [DOI] [PubMed] [Google Scholar]
- 32.Petreanu L, Mao T, Sternson SM, Svoboda K. The subcellular organization of neocortical excitatory connections. Nature. 2009;457:1142–1145. doi: 10.1038/nature07709. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Wimmer VC, Bruno RM, de Kock CPJ, Kuner T, Sakmann B. Dimensions of a projection column and architecture of VPM and POm axons in rat vibrissal cortex. Cereb. Cortex. 2010;20:2265–2276. doi: 10.1093/cercor/bhq068. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Kinnischtzke AK, Simons DJ, Fanselow EE. Motor cortex broadly engages excitatory and inhibitory neurons in somatosensory barrel cortex. Cereb. Cortex. 2014;24:2237–2248. doi: 10.1093/cercor/bht085. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Mao T, et al. Long-range neuronal circuits underlying the interaction between sensory and motor cortex. Neuron. 2011;72:111–123. doi: 10.1016/j.neuron.2011.07.029. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Aronoff R, et al. Long-range connectivity of mouse primary somatosensory barrel cortex. Eur. J. Neurosci. 2010;31:2221–2233. doi: 10.1111/j.1460-9568.2010.07264.x. [DOI] [PubMed] [Google Scholar]
- 37.de Kock CPJ, Sakmann B. Spiking in primary somatosensory cortex during natural whisking in awake head-restrained rats is cell-type specific. Proc. Natl Acad. Sci. USA. 2009;106:16446–16450. doi: 10.1073/pnas.0904143106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.O’Connor DH, Peron SP, Huber D, Svoboda K. Neural activity in barrel cortex underlying vibrissa-based object localization in mice. Neuron. 2010;67:1048–1061. doi: 10.1016/j.neuron.2010.08.026. [DOI] [PubMed] [Google Scholar]
- 39.van der Bourg A, et al. Layer-specific refinement of sensory coding in developing mouse barrel cortex. Cereb. Cortex. 2016;27:4835–4850. doi: 10.1093/cercor/bhw280. [DOI] [PubMed] [Google Scholar]
- 40.Pluta S, et al. A direct translaminar inhibitory circuit tunes cortical output. Nat. Neurosci. 2015;18:1631–1640. doi: 10.1038/nn.4123. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Leinweber M, Ward DR, Sobczak JM, Attinger A, Keller GB. A sensorimotor circuit in mouse cortex for visual flow predictions. Neuron. 2017;95:1420–1432.e5. doi: 10.1016/j.neuron.2017.08.036. [DOI] [PubMed] [Google Scholar]
- 42.Keller GB, Bonhoeffer T, Hübener M. Sensorimotor mismatch signals in primary visual cortex of the behaving mouse. Neuron. 2012;74:809–815. doi: 10.1016/j.neuron.2012.03.040. [DOI] [PubMed] [Google Scholar]
- 43.Ohkura M, Sasaki T, Kobayashi C, Ikegaya Y, Nakai J. An improved genetically encoded red fluorescent Ca2+ indicator for detecting optically evoked action potentials. PLoS One. 2012;7:e39933. doi: 10.1371/journal.pone.0039933. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Bethge P, et al. An R-CaMP1.07 reporter mouse for cell-type-specific expression of a sensitive red fluorescent calcium indicator. PLoS One. 2017;12:e0179460. doi: 10.1371/journal.pone.0179460. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Chen JL, Carta S, Soldado-Magraner J, Schneider BL, Helmchen F. Behaviour-dependent recruitment of long-range projection neurons in somatosensory cortex. Nature. 2013;499:336–340. doi: 10.1038/nature12236. [DOI] [PubMed] [Google Scholar]
- 46.Masamizu Y, et al. Two distinct layer-specific dynamics of cortical ensembles during learning of a motor task. Nat. Neurosci. 2014;17:987–994. doi: 10.1038/nn.3739. [DOI] [PubMed] [Google Scholar]
- 47.Busse L, et al. Sensation during active behaviors. J. Neurosci. 2017;37:10826–10834. doi: 10.1523/JNEUROSCI.1828-17.2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Händel B.F., Schölvinck M.L. The brain during free movement – What can we learn from the animal model. Brain Research. 2019;1716:3–15. doi: 10.1016/j.brainres.2017.09.003. [DOI] [PubMed] [Google Scholar]
- 49.Yu J, Gutnisky DA, Hires SA, Svoboda K. Layer 4 fast-spiking interneurons filter thalamocortical signals during active somatosensation. Nat. Neurosci. 2016;19:1647–1657. doi: 10.1038/nn.4412. [DOI] [PubMed] [Google Scholar]
- 50.Brecht M, Sakmann B. -Dynamic representation of whisker deflection by synaptic potentials in spiny stellate and pyramidal cells in the barrels and septa of layer 4 rat somatosensory cortex. J. Physiol. 2002;543:49–70. doi: 10.1113/jphysiol.2002.018465. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Jadhav SP, Wolfe J, Feldman DE. Sparse temporal coding of elementary tactile features during active whisker sensation. Nat. Neurosci. 2009;12:792–800. doi: 10.1038/nn.2328. [DOI] [PubMed] [Google Scholar]
- 52.Yamashita T, et al. Membrane potential dynamics of neocortical projection neurons driving target-specific signals. Neuron. 2013;80:1477–1490. doi: 10.1016/j.neuron.2013.10.059. [DOI] [PubMed] [Google Scholar]
- 53.Groh A, et al. Cell-type specific properties of pyramidal neurons in neocortex underlying a layout that is modifiable depending on the cortical area. Cereb. Cortex. 2010;20:826–836. doi: 10.1093/cercor/bhp152. [DOI] [PubMed] [Google Scholar]
- 54.Hattox AM, Nelson SB, Berger AJ. Layer V neurons in mouse cortex projecting to different targets have distinct physiological properties. J. Neurophysiol. 2007;98:3330–3340. doi: 10.1152/jn.00397.2007. [DOI] [PubMed] [Google Scholar]
- 55.de Kock CPJ, Bruno RM, Spors H, Sakmann B. Layer- and cell-type-specific suprathreshold stimulus representation in rat primary somatosensory cortex. J. Physiol. 2007;581:139–154. doi: 10.1113/jphysiol.2006.124321. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Musall S, et al. Tactile frequency discrimination is enhanced by circumventing neocortical adaptation. Nat. Neurosci. 2014;17:1567–1573. doi: 10.1038/nn.3821. [DOI] [PubMed] [Google Scholar]
- 57.Silberberg G, Markram H. Disynaptic inhibition between neocortical pyramidal cells mediated by martinotti cells. Neuron. 2007;53:735–746. doi: 10.1016/j.neuron.2007.02.012. [DOI] [PubMed] [Google Scholar]
- 58.Kapfer C, Glickfeld LL, Atallah BV, Scanziani M. Supralinear increase of recurrent inhibition during sparse activity in the somatosensory cortex. Nat. Neurosci. 2007;10:743–753. doi: 10.1038/nn1909. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Jiang X, et al. Principles of connectivity among morphologically defined cell types in adult neocortex. Science. 2015;350:aac9462. doi: 10.1126/science.aac9462. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Naka, A. & Adesnik, H. Inhibitory circuits in cortical layer 5. Front. Neural Circuits10, 35 (2016). [DOI] [PMC free article] [PubMed]
- 61.Pluta SR, Telian GI, Naka A, Adesnik H. Superficial layers suppress the deep layers to fine-tune cortical coding. J. Neurosci. 2019;39:2052–2064. doi: 10.1523/JNEUROSCI.1459-18.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Tan Z, Hu H, Huang ZJ, Agmon A. Robust but delayed thalamocortical activation of dendritic-targeting inhibitory interneurons. Proc. Natl Acad. Sci. USA. 2008;105:2187–2192. doi: 10.1073/pnas.0710628105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Bastos AM, et al. Canonical microcircuits for predictive coding. Neuron. 2012;76:695–711. doi: 10.1016/j.neuron.2012.10.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Keller GB, Mrsic-Flogel TD. Perspective predictive processing: a canonical cortical computation. Neuron. 2018;100:424–435. doi: 10.1016/j.neuron.2018.10.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Thurley K, Ayaz A. Virtual reality systems for rodents. Curr. Zool. 2017;63:109–119. doi: 10.1093/cz/zow070. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Langer D, et al. HelioScan: a software framework for controlling in vivo microscopy setups with high hardware flexibility, functional diversity and extendibility. J. Neurosci. Methods. 2013;215:38–52. doi: 10.1016/j.jneumeth.2013.02.006. [DOI] [PubMed] [Google Scholar]
- 67.Dombeck DA, Khabbaz AN, Collman F, Adelman TL, Tank DW. Imaging large-scale neural activity with cellular resolution in awake, mobile mice. Neuron. 2007;56:43–57. doi: 10.1016/j.neuron.2007.08.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Schindelin J, et al. Fiji: an open-source platform for biological-image analysis. Nat. Methods. 2012;9:676–682. doi: 10.1038/nmeth.2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Helmchen F, Imoto K, Sakmann B. Ca2+ buffering and action potential-evoked Ca2+ signaling in dendrites of pyramidal neurons. Biophys. J. 1996;70:1069–1081. doi: 10.1016/S0006-3495(96)79653-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 70.Knutsen PM, Derdikman D, Ahissar E. Tracking whisker and head movements in unrestrained behaving rodents. J. Neurophysiol. 2005;93:2294–2301. doi: 10.1152/jn.00718.2004. [DOI] [PubMed] [Google Scholar]
- 71.Cover, T. M. & Thomas, J. A. Elements of Information Theory. (Wiley, New York, 1991).
- 72.Petreanu L, et al. Activity in motor–sensory projections reveals distributed coding in somatosensation. Nature. 2012;489:299–303. doi: 10.1038/nature11321. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The data that support the findings of this study are available from the corresponding authors upon reasonable request.
Custom-written software code for data acquisition (LABView) and data analysis (MATLAB) is available upon reasonable request.