Introduction

Acetylcholine is one of the key neuromodulators involved in cortical function and plasticity. A rich body of work has shown that acetylcholine gates experience-dependent changes in the responses of cortical neurons to sensory inputs. This includes receptive field plasticity in auditory cortex (Bakin et al., 2012; Froemke et al., 2007; Kilgard and Merzenich, 1998; Metherate and Weinberger, 1990), somatosensory cortex (Ego-Stengel et al., 2001; Rasmusson and Dykes, 1988; Sachdev et al., 1998), and olfactory cortex (Wilson et al., 2004), or ocular dominance plasticity in visual cortex (Bear and Singer, 1986; Greuel et al., 1988; Gu and Singer, 1993; Kirkwood et al., 1999). In all cases, the central tenet is that pairing of acetylcholine release or its application concurrent with a sensory stimulus results in plasticity that increases the responsiveness of neurons to subsequent presentations of the same stimulus. While the evidence that acetylcholine gates plasticity is overwhelming and unequivocal, it remains less well understood what drives the release of acetylcholine in cortex during behavior and what its functional consequences are on cortical computations acutely.

Cholinergic projections to cortex arise from a population of neurons in the basal forebrain (Li et al., 2018). Within this population of neurons, there is a relatively broad functional heterogeneity (Laszlovszky et al., 2020; Robert et al., 2021), with responses observed during movement – be it locomotion or licking (Harrison et al., 2016), to reinforcers (Hangya et al., 2015), to auditory stimuli (Guo et al., 2019; Robert et al., 2021), and weakly to visual stimuli (Robert et al., 2021). However, inferring acetylcholine release in specific cortical targets based on activity of cholinergic neurons within the basal forebrain is complicated by the fact that different regions (Kim et al., 2016; Pinto et al., 2013) and cholinergic cell types (Laszlovszky et al., 2020) in the basal forebrain project to different areas of cortex. This projection specificity likely underlies the heterogeneity in cholinergic activity across dorsal cortex (Collins et al., 2023; Lohani et al., 2022). Measurements of cholinergic activity in cortex have found that movement in the form of a lever press is associated with cholinergic activity in mouse motor cortex, somatosensory cortex, and prefrontal cortex (Ren et al., 2022). Whisking is associated with cholinergic axonal activity in barrel cortex (Eggermann et al., 2014), while sound (Zhu et al., 2023) and movement (Nelson and Mooney, 2016; Zhu et al., 2023) are associated with cholinergic activity in auditory cortex, and locomotion (Larsen et al., 2018; Lohani et al., 2022), facial movement (Lohani et al., 2022), and pupil dilation (Larsen et al., 2018; Reimer et al., 2016) are associated with cholinergic activity in visual cortex. Overall, cholinergic activity in cortex is closely related to movement, but whether movement is the primary determinant of cholinergic activity and how movement related activity compares to sensory driven activity is less clear.

Likely the primary functional effect of increased levels of acetylcholine in cortex is increased sensory responsiveness. Local application of acetylcholine has been shown to increase sensory responses in somatosensory cortex (Chatfield and Dempsey, 1941), auditory cortex (Forster and McCarter, 1946), as well as visual cortex (Sato et al., 1987) in anesthetized cats. A similar gain in visually evoked responses in rodent visual cortex can be induced by iontophoretic application of acetylcholine in cortex (Sillito and Kemp, 1983), by systemic acetylcholine release following basal forebrain stimulation (Goard and Dan, 2009; Pafundo et al., 2016), or by optogenetic stimulation of basal forebrain cholinergic axons in visual cortex (Pinto et al., 2013). Interestingly, this increase of sensory responses caused by acetylcholine is not homogeneous across cortical layers. Neurons responsive to iontophoretic application of acetylcholine are preferentially found in deep cortical layers (Krnjević and Phillis, 1963). The effects of acetylcholine are primarily one of facilitation of neuronal responses in deep cortical layers and one of suppression in superficial layers (Sillito and Kemp, 1983; Soma et al., 2013). However, depending on how locally acetylcholine is applied, it can also result in selective hyperpolarization of layer 5 neurons (Gulledge et al., 2007). Triggering systemic increase of acetylcholine by nucleus basalis stimulation results in firing rate increases in layers 4, 5, and 6 of visual cortex, but decreased firing rates in layer 2/3 (Goard and Dan, 2009). While it is unclear whether the effect observed in the experiments that use systemic modulation of cholinergic activity is cortical or reflects a combination of changes in subcortical and cortical processing, a direct layer-specific effect on cortical processing would be consistent with differential expression of acetylcholine receptors across cortical layers (Obermayer et al., 2017). Based on these findings it is often assumed that the local release of acetylcholine in cortex differentially influences deep and superficial cortical layers.

A second functional effect of acetylcholine is a decorrelation of cortical activity. Both basal forebrain cholinergic neuron stimulation and local cholinergic axon stimulation in visual cortex desynchronizes activity in visual cortex (Pinto et al., 2013). This effect is thought to be mediated by the influence of acetylcholine on somatostatin positive interneurons and their interaction with the excitatory neurons. This is based on the finding that optogenetic inhibition of somatostatin interneurons blocks acetylcholine induced decorrelation (Chen et al., 2015), and that optogenetically induced acetylcholine release selectively enhances the input from excitatory neurons onto somatostatin interneurons (Urban-Ciecko et al., 2018). A similar decrease in correlation has also been observed during locomotion (Aydın et al., 2018; Erisken et al., 2014), and the effect was stronger in deeper layers of cortex (Dadarlat and Stryker, 2017). It is possible that the decrease of correlations observed during locomotion is driven by locomotion related increases in acetylcholine.

More generally, following the discovery of the modulation of sensory evoked responses by locomotion in visual cortex (Niell and Stryker, 2010), it has been speculated that acetylcholine is involved in locomotion related changes in neuronal activity. Based on studies in rodents, a circuit was delineated that projects from mesencephalic locomotor region to the basal forebrain, which when active, can bring about a gain of responses in visual cortex to visual stimuli (Lee et al., 2014). It has been argued that nicotinic activation of vasoactive intestinal peptide (VIP) expressing interneurons in visual cortex is necessary for this locomotion induced gain of visual responses (Fu et al., 2014). While VIP interneurons are clearly influenced by acetylcholine (Gasselin et al., 2021), cholinergic receptors are expressed in all cortical cell types (Colangelo et al., 2019), and there are likely direct functional effects of acetylcholine on many other cell types (Alitto and Dan, 2012; Chen et al., 2015; Gulledge and Stuart, 2005; Hay et al., 2016; Hedrick and Waters, 2015; Unal et al., 2012; Xiang, 1998; Zolles et al., 2009). This has called into question the interpretation that acetylcholine is involved in locomotion related changes in neuronal activity primarily through nicotinic activation of VIP neurons (Pakan et al., 2016). The specific subtypes of muscarinic and nicotinic receptors expressed across these different cell types further complicate causal attribution of effects. Nevertheless, all these lines of evidence come together to suggest that basal forebrain cholinergic axons in visual cortex increase their activity on locomotion and release acetylcholine to bring about a gain of visually evoked responses. However, a direct measurement of the activity of cholinergic projection from basal forebrain to visual cortex during locomotion has not been made. Throughout the manuscript, we will refer to basal forebrain cholinergic axons simply as cholinergic axons. This distinction notably excludes potential axons that arise from local VIP-ChAT+ neurons (Granger et al., 2020), that are labeled when using a cross of ChAT-Cre mice with a reporter line. Prior measurements of the activity of cholinergic axons in visual cortex have all relied on data from a cross of ChAT-Cre mice with a reporter line (Larsen et al., 2018; Reimer et al., 2016).

In this work, we sought to understand the signals conveyed by the basal forebrain cholinergic system to visual cortex, the consequent changes to activity of layer 2/3 and layer 5 neurons in visual cortex upon release of acetylcholine, and the potential implications this could have on the computations performed by visual cortex. We used two-photon calcium imaging of cholinergic axons in visual cortex in behaving head-fixed mice and found that cholinergic activity in visual cortex was best approximated as a locomotion state signal. The effects of optogenetic activation of cholinergic axons locally in visual cortex were layer-specific: the responsiveness was increased in neurons in layer 5 but not in layer 2/3. Furthermore, we provide evidence that acetylcholine release underlies the locomotion related decorrelation of activity in visual cortex.

Results

To investigate the function of cholinergic input to visual cortex, we first characterized the calcium activity in these axons. We used an AAV vector to express an axon-targeted GCaMP6s (Broussard et al., 2018) in basal forebrain cholinergic neurons using ChAT-IRES-Cre mice (Rossi et al., 2011) and recorded calcium activity of their axons in visual cortex using two-photon microscopy (Figures 1A and 1B). For imaging experiments, mice were head-fixed on a spherical treadmill surrounded by a toroidal screen (Figure 1C). We used a set of different visuomotor conditions known to activate neurons in visual cortex to probe for activation of cholinergic axons. First, mice were exposed to a closed loop condition during which locomotion velocity was coupled to movement in a virtual tunnel. We then measured activity in an open loop condition during which locomotion and movement in the virtual tunnel were uncoupled, in darkness, and during presentation of full field drifting gratings. Throughout all experimental conditions mice were free to locomote on the spherical treadmill.

Cholinergic axons in visual cortex are activated during locomotion independent of visual stimuli.

(A) GCaMP6s was expressed by injecting an AAV2/5-hSyn1-FLEx-axon-GCaMP6s vector in basal forebrain of ChAT-IRES-Cre mice. We then imaged calcium activity of cholinergic axons projecting to visual cortex.

(B) Example two-photon image of cholinergic axons in visual cortex.

(C) Schematic of the virtual reality system. Mice were head-fixed on a spherical treadmill and surrounded by a toroidal screen on which we presented visual stimuli in different visuomotor conditions.

(D) Example trace of the calcium activity of one cholinergic axon in visual cortex (red) and the corresponding locomotion velocity of the mouse (blue).

(E) Average locomotion onset activity of all cholinergic axons (5048 axons in 14 mice), sorted by their average response during locomotion onset.

(F) Average response of cholinergic axons to locomotion onset over all the cholinergic axons, of the data shown in E. Shading indicates SEM over axons. Due to SEM being very small, the shading is fully obscured by the red line.

(G) As in F, but for grating onsets. Green shading marks the duration of grating presentation.

(H) As in F, but for visual flow onset during the open loop condition.

(I) As in F, but for visuomotor mismatch onset. Orange shading marks the duration of visuomotor mismatch. As mismatch events occur only during times of locomotion, and locomotion itself is a strong driver of cholinergic activity, we would expect to find an increase in cholinergic activity by chance at mismatch. To correct for this, we quantified the distribution of cholinergic activity on random triggers during locomotion (95% confidence interval (CI), gray shading).

(J) Locomotion onset activity in different visuomotor conditions.

(K) The fraction of cholinergic axons responsive to locomotion, grating, and visuomotor mismatch onset, quantified for each imaging site. Each datapoint is one imaging site. Boxes show 25th and 75th percentile, central mark is the median, and the whiskers extend to the most extreme datapoints not considered outliers. Dashed line marks chance level. n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

We found that the activity in many cholinergic axons strongly increased during locomotion (Figures 1D and 1E). Activity increased with locomotion onset (Figure 1F) with an average lag across all responsive axons of 477 ms relative to locomotion onset (Figure S1A). Thus, consistent with results reported for auditory cortex (Nelson and Mooney, 2016), we found that locomotion preceded the increase in cholinergic activity in visual cortex. Locomotion onset also results in an increase in activity of neurons in primary visual cortex (Ayaz et al., 2013; Keller et al., 2012; Saleem et al., 2013). It has been speculated that cholinergic input is a driver of locomotion related activity in visual cortex (Lee et al., 2014). We thus compared the observed response latency between cholinergic input and activity of layer 2/3 and layer 5 neurons. The response latency of cholinergic axons was longer than the latency we observed in responses of layer 2/3 neurons (Figure S1B), but shorter than that of layer 5 neurons (Figures S1C and S1D). This would suggest that the initial increase in neuronal activity in layer 2/3 of the visual cortex was not driven by cholinergic input from basal forebrain.

Interestingly, we found no evidence of a response of cholinergic axons to other stimuli that drive responses in visual cortex such as full field drifting gratings (Figure 1G), visual flow onsets in open loop (Figure 1H), or visuomotor mismatches (Figure 1I) (Attinger et al., 2017; Jordan and Keller, 2020; Keller et al., 2012; Niell and Stryker, 2008; Vasilevskaya et al., 2023; Widmer et al., 2022). Visuomotor mismatches are brief visual flow halts that break the coupling between locomotion and visual flow feedback in a closed loop condition. Consistent with the absence of response to visual stimuli – full field drifting gratings or visual flow in open loop, we found that the response to locomotion onset was independent of whether the locomotion occurred in darkness, in the presence of visual stimuli, or with visual flow feedback coupled to locomotion (Figure 1J). For each imaging site, we then quantified the percentage of cholinergic axons that exhibited significant responses to locomotion onset, full field drifting gratings, or visuomotor mismatch, and found that 52.3% ± 4.4% (mean ± SEM) of the axons responded significantly to locomotion onset, while the fraction of responsive axons to gratings and mismatch was not different from chance (Figure 1K).

To confirm that an increase in calcium activity in cholinergic axons corresponds to an increase in extracellular acetylcholine, we measured acetylcholine levels using the genetically-encoded acetylcholine sensor GRAB-Ach3.0 (Jing et al., 2020). The sensor was expressed in visual cortex, and we performed two-photon imaging in layer 2/3 during the same visuomotor conditions as described above. We found that consistent with the calcium activity of cholinergic axons, acetylcholine levels in visual cortex increased on locomotion onsets (Figure S2A), while grating onsets (Figure S2B) and visuomotor mismatches (Figure S2C) resulted in no measurable increase when corrected for hemodynamic artifacts (Figures S2A-S2F). Thus, consistent with previous reports (Larsen et al., 2018), we find that locomotion is associated with a basal forebrain driven increase in acetylcholine levels in visual cortex.

Further characterizing the relationship between locomotion velocity and cholinergic activity, we found that cholinergic axon activity was not linearly related to locomotion velocity, but instead exhibited a locomotion state dependence. Over the course of a locomotion bout, we found that velocity decreased systematically, such that towards the end of a locomotion bout, velocity was lower than at the beginning (Figure 2A). For cholinergic activity, this decrease was absent. We found no evidence of a difference in the average calcium activity of cholinergic axons after locomotion onset to that before locomotion offset (Figure 2B). Indeed, the average cholinergic activity after locomotion onset and before locomotion offset was highly correlated across locomotion bouts, while a similar analysis on locomotion velocity revealed that the time-course of velocity is more variable and less correlated bout-by-bout (Figure 2C). The similarity of locomotion onset and offset responses was not only true for the population average activity, but the activity after locomotion onset, before locomotion offset, and the average activity during the locomotion bout were all well correlated on an axon-by-axon level (Figures 2D and S2G). To quantify the relationship between locomotion velocity and calcium activity in cholinergic axons more generally, we computed the average calcium activity as a function of locomotion velocity (see Methods). This relationship was more step-like than linear, and we found no evidence of an increase in calcium activity between low and high locomotion velocities (Figure 2E). The same held true for extracellular acetylcholine levels as measured by GRAB-ACh3.0 (Figure S2H). If calcium activity in cholinergic axons reflected a step-like change during locomotion, we should find that calcium activity correlates better with a binarized version of locomotion velocity than with locomotion velocity itself. This is indeed what we found (Figure 2F), independent of the value of the threshold used for binarization (Figure S3). Thus, calcium activity in cholinergic axons in visual cortex is better described as a binary locomotion state signal, than a linear locomotion velocity signal.

Activity in cholinergic axons was better explained by a binary locomotion state signal than by locomotion velocity.

(A) Average locomotion velocity profiles aligned to locomotion onset and offset. The isolated datapoint between the two traces is the average locomotion velocity over the locomotion bout. Shading marks SEM. Here and elsewhere, n.s.: not significant; *: p<0.05; **: p<0.01; ***: p<0.001; see Table S1 for all statistical information.

(B) As in A, but for activity of all cholinergic axons in visual cortex, for the data shown in D. Shading marks SEM over axons.

(C) Bout-by-bout correlation coefficient between the locomotion onset and offset changes for average cholinergic activity and locomotion velocity. Each datapoint is one imaging site. Boxes show 25th and 75th percentile, central mark is the median, and the whiskers extend to the most extreme datapoints not considered outliers.

(D) Average onset and offset responses for all cholinergic axons sorted by strength of locomotion onset response.

(E) Activity of cholinergic axons as a function of locomotion velocity. Shown are the hierarchical bootstrap estimates of the median (red dots) and 95% confidence intervals (red shading) for each velocity bin. We found no evidence of a difference in activation between low, intermediate, and high locomotion velocities (indicated by gray shading).

(F) Left: For all axons, the correlation coefficient of their calcium activity with locomotion velocity plotted against the correlation coefficient with a binarized version of the locomotion velocity. Right: Distributions of correlation coefficients between calcium activity and locomotion velocity and binarized velocity. Same data as shown on the left. Boxes show 25th and 75th percentile, central mark is the median, and the whiskers extend to the most extreme datapoints not considered outliers.

A number of behavioral variables, like pupil dilation, facial movements, as well as the overall level of arousal are all correlated with locomotion (Lohani et al., 2022; Reimer et al., 2014; Vinck et al., 2015). It has been shown that cholinergic activity in visual cortex is also well correlated with pupil dilation and facial movements (Larsen et al., 2018; Lohani et al., 2022; Reimer et al., 2014). Disambiguating the effects of locomotion, pupil dilation, and intensity of facial movements on cholinergic activity is complicated by the fact that these three variables are strongly correlated during behavior. It has been shown that under certain conditions, facial movements are a better predictor of cholinergic activity than locomotion across large parts of dorsal cortex (Lohani et al., 2022). To quantify this relationship in visual cortex, we compared the correlation between cholinergic activity, locomotion velocity, pupil diameter, and intensity of facial movements in different visuomotor conditions. This analysis was motivated by our observation that average light levels have a stronger influence on pupil size than locomotion state. We found that the correlation of locomotion velocity and cholinergic activity was independent of visuomotor condition (Figure 3A). This was not the case for the correlation between pupil diameter and cholinergic activity, which was systematically lower in darkness than in conditions with visual stimuli, and lower during closed loop visuomotor coupling than during open loop or grating conditions (Figure 3B). This pattern was also reflected in the correlation between locomotion and pupil diameter (Figure 3C). The reduced correlation between locomotion velocity and pupil diameter in darkness was not a consequence of a decrease in variability due to ceiling-effects in pupil diameter in darkness (Figure S4A). Finally, we also computed the correlation between cholinergic activity and facial movements. The correlation of cholinergic activity with locomotion was higher than that with facial movements under all conditions that we tested (Figure S4B). Thus, of these three behavioral variables, locomotion, pupil diameter, and facial movements, locomotion exhibited the most robust correlation with cholinergic activity in visual cortex (Figure S4C).

Average activity of cholinergic axons was more strongly correlated with locomotion velocity than with pupil diameter.

(A) Correlation of average activity of cholinergic axons activity with locomotion velocity in closed loop, open loop, dark, and grating conditions. Each point represents data from one imaging site, error bars indicate SEM. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

(B) As in A, but for correlation between average activity of cholinergic axons and pupil diameter.

(C) As in A, but for correlation between locomotion velocity and pupil diameter.

Next, we turned to the question of what the influence of increased cholinergic activity in visual cortex is on the activity of neurons in layer 2/3 and layer 5. We know that locomotion influences neuronal activity in visual cortex in a variety of ways. One of these effects is that during locomotion, visual responses in visual cortex are increased (Niell and Stryker, 2010) through a combination of both additive and multiplicative effects (Dadarlat and Stryker, 2017). Consistent with this we found locomotion driven increases in visual responses were apparent in both layer 2/3 (Figure 4A) and in layer 5 neurons (Figure 4B). To test whether this increase in visual responsiveness during locomotion was driven by acetylcholine, we expressed the excitatory opsin ChrimsonR (Klapoetke et al., 2014) in basal forebrain cholinergic neurons using an AAV2/1-hSyn-DIO-ChrimsonR-tdTomato vector in ChAT-IRES-Cre mice. We injected an AAV2/1-Ef1α-GCaMP6f in visual cortex to express GCaMP6f. In cortex, the Ef1α promoter drives highly specific expression in neurons (99.7% of labeled cells in layer 2/3 and 100% of labeled cells in layer 5 are NeuN-positive (Yaguchi et al., 2013)), and biases expression to excitatory neurons, such that approximately 95% of labeled neurons are excitatory in both layer 2/3 (Attinger et al., 2017; Yaguchi et al., 2013) and in layer 5 (Yaguchi et al., 2013). We then performed two-photon calcium imaging in visual cortex to measure the responses of layer 2/3 or layer 5 neurons to the optogenetic activation of local cholinergic axons paired to the presentation of full field drifting grating stimuli while the mouse was stationary (see Methods). We found that in layer 2/3, optogenetic activation of cholinergic axons did not result in a detectable increase in grating onset responses (Figure 4C), while the responses of layer 5 neurons to the same stimulus increased with concurrent optogenetic activation of cholinergic axons (Figure 4D). The effects of optogenetic activation of cholinergic axons on layer 5 neurons could not be explained by a stimulation triggered change in locomotion velocity (Figure S5) or stimulation artifacts (Figures S6A-S6C). In mice that did not express ChrimsonR in cholinergic axons (no ChrimsonR controls), we found no evidence of an optogenetic light stimulation effect. Interestingly, this increase in grating onset responses in layer 5 neurons driven by direct cholinergic activation was smaller than that observed during locomotion (Figures 4B and 4D). This could be either because the acetylcholine release triggered by the optogenetic stimulation of cholinergic axons was weaker than that occurring during locomotion, or because the increase in responses during locomotion is only partially explained by the co-release of acetylcholine. If the former were the case, we would expect that responses occurring during locomotion are less influenced by optogenetic activation of cholinergic axons. This was indeed the case for grating onset responses during locomotion which were not modulated by optogenetic activation of cholinergic axons (Figures S6D and S6E). Interestingly, visuomotor mismatch responses, which also occur only during locomotion, were significantly increased in layer 5 neurons (Figure 4F), but not in layer 2/3 (Figure 4E). Similarly, we found that optogenetic activation of cholinergic axons increased locomotion onset responses in layer 5 neurons (Figure 4H), while layer 2/3 neurons exhibited no significant difference (Figure 4G). Thus, while in layer 5 neurons the effect of optogenetic activation appears to saturate for bottom-up grating responses during locomotion, this was not the case for responses that rely on top-down input. However, it is also likely that the increase in response during locomotion is only partially explained by acetylcholine. Locomotion has been shown to result in both a multiplicative and an additive change in grating responses (Dadarlat and Stryker, 2017). This was also the case in our data for locomotion related increase in grating responses (Figure S7). However, we found that the optogenetic stimulation of cholinergic axons resulted primarily in a multiplicative gain of visual responses (Figure S7). Overall, consistent with previous findings (Goard and Dan, 2009), we find that acetylcholine primarily increases both bottom-up and top-down driven responses in layer 5 but not layer 2/3 neurons, but only partially explains the locomotion driven increases in visual responses.

Optogenetic activation of cholinergic axons in visual cortex primarily enhances responses of layer 5, but not layer 2/3 neurons.

(A) Average calcium response of layer 2/3 neurons in visual cortex to full field drifting gratings in the absence (light brown) or presence of locomotion (brown). Green shading indicates duration of grating stimulus. The responses are compared bin-by-bin using a nested hierarchical bootstrap test. Here and in subsequent panels, bins with a significant difference (p < 0.05) are indicated by a black line above the plot; those with p > 0.05 are marked gray. Shading marks SEM.

(B) As in A, but for layer 5 neurons in visual cortex in the absence (light blue) or presence (dark blue) of locomotion.

(C) Average calcium response of layer 2/3 neurons in visual cortex to full field drifting gratings while the mice were stationary, without (light brown) or with (pink) optogenetic activation of cholinergic axons in visual cortex. Duration of optogenetic stimulation is marked by a pink bar. Green shading indicates duration of the grating stimulus.

(D) As in C, but for layer 5 neurons in visual cortex.

(E) Average calcium response to visuomotor mismatch in layer 2/3 neurons in visual cortex, without (brown) and with (pink) optogenetic stimulation of cholinergic axons in visual cortex. Orange shading indicates mismatch duration, and pink bar indicates optogenetic stimulation.

(F) As in E, but for layer 5 neurons in visual cortex.

(G) Average calcium response of layer 2/3 neurons in visual cortex to locomotion onset in closed loop, without (brown) or with (pink) optogenetic stimulation of cholinergic axons in visual cortex.

(H) As in G, but for layer 5 neurons in visual cortex.

A second effect of locomotion on neuronal activity in visual cortex is that locomotion itself drives neuronal responses (Keller et al., 2012; Saleem et al., 2013). This effect is apparent in both layer 2/3 (Figure 5A) and layer 5 (Figure 5B) neurons. In layer 2/3, locomotion related activity is suppressed by closed loop visual feedback (Widmer et al., 2022), as a function of the strength of visuomotor mismatch responses (Figure S8A and S8B). In layer 5, closed loop visual feedback did not suppress running related activity on average in either visuomotor mismatch or grating responsive neurons (Figure S8C and S8D). Thus, locomotion related activity likely has functionally distinct roles in layer 2/3 and layer 5. To test whether artificial activation of cholinergic axons would result in increased neuronal activity, we again performed two-photon calcium imaging in visual cortex neurons to measure responses of layer 2/3 or layer 5 neurons upon optogenetic activation of local cholinergic axons. We found no evidence of any increase in calcium activity in either layer 2/3 (Figure 5C) or layer 5 neurons (Figure 5D). This absence of a stimulation response is consistent with previous reports that found that cholinergic axon stimulation in visual cortex does not result in a response of layer 2/3 neurons (Chen et al., 2015) and that electrical stimulation of basal forebrain primarily activates inhibitory neurons in superficial layers of visual cortex (Alitto and Dan, 2012). This, combined with our finding that on average the layer 2/3 locomotion onset related activity preceded the activity increase in cholinergic axons (Figure S1), would indicate that the locomotion related increase in layer 2/3 and layer 5 activity observed in visual cortex is not driven by acetylcholine.

Optogenetic activation of cholinergic axons in visual cortex did not drive responses in either layer 2/3 or layer 5 neurons.

(A) Average calcium response of layer 2/3 neurons in visual cortex to locomotion onset in open loop. Shading indicates SEM.

(B) As in A, but for layer 5 neurons in visual cortex.

(C) Average calcium response of layer 2/3 neurons in visual cortex during local optogenetic stimulation of cholinergic axons while the mice were stationary. Pink bar marks duration of the optogenetic stimulus.

(D) As in C, but for layer 5 neurons in visual cortex.

A third effect locomotion has on neuronal activity in visual cortex is to decorrelate the activity of nearby neurons (Dadarlat and Stryker, 2017; Erisken et al., 2014). Consistent with these studies, we found that locomotion results in a reduction of pairwise correlations between activity of layer 2/3 neurons (Figures 6A and 6E) as well as between layer 5 neurons (Figures 6B and 6F). We could induce this decorrelation by optogenetically activating the cholinergic axons while mice were stationary. This optogenetically induced decorrelation in layer 2/3 (Figures 6C and 6E) was stronger than that driven by locomotion, while the two were similar in layer 5 (Figures 6D and 6F). Note, we used calcium activity of apical dendrites of L5 neurons in L2/3 as a proxy for somatic L5 activity in these experiments (see Methods). This decorrelation was not due to a visual response to the stimulation laser (Figure S6F). Interestingly, we found that in both layer 2/3 and layer 5, the locomotion induced decorrelation was observed primarily for neurons with low pairwise correlations. Pairs of neurons with high correlation of activity tended to further increase their correlation during locomotion (Figure S9). Finally, we tested whether the correlation in visual cortex was similarly influenced by chemogenetic manipulation of basal forebrain cholinergic neurons. We expressed either a DREADD activator or a DREADD inhibitor in ChAT-Cre mice to systemically increase or decrease cholinergic activity. Interestingly, we noticed that the systemic increase or decrease of cholinergic release resulted in behavioral changes in the mice. Upon chemogenetic activation mice increased their locomotion velocity, and upon chemogenetic inhibition, mice decreased their time spent locomoting, resulting in a bidirectional modulation of the total distance traveled by the two manipulations (Figure S10). Importantly, chemogenetic manipulations bidirectionally modulated the decorrelation effect on locomotion in layer 5 neurons in visual cortex. DREADD activation resulted in an increased strength of the locomotion driven decorrelation, while DREADD inhibition resulted in a reduced strength of locomotion driven decorrelation in layer 5 (Figures 6H and S11B). This effect was absent in layer 2/3 where neither manipulation influenced the locomotion driven decorrelation (Figures 6G and S11A). Thus, cholinergic activation is likely sufficient to explain the locomotion induced decorrelation of activity in visual cortex.

Cholinergic axon activation reduced pairwise correlations between neurons in visual cortex.

(A) Average pairwise correlation in calcium activity of layer 2/3 neurons while the mouse was stationary and while the mouse was locomoting. Each dot is the mean of the pairwise correlations for one neuron to all others in the same field of view.

(B) As in A, but for layer 5 neurons.

(C) As in A, but comparing the correlation while the mice were stationary, to that while cholinergic axons were stimulated optogenetically.

(D) As in C, but for layer 5 neurons. Note, for this experiment the imaging plane was in L2/3 to simultaneously image layer 2/3 neurons and apical dendrites of layer 5. The latter were traced to their soma in layer 5 offline and were used to compute layer 5 activity correlations.

(E) Average change in pairwise correlations of layer 2/3 neurons on locomotion (gray) or on optogenetic stimulation of cholinergic axons during stationary periods (pink), compared to the correlations during stationary (stat.) periods at baseline. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

(F) As in E, but for layer 5 neurons of visual cortex.

(G) Change in the average pairwise correlations of layer 2/3 neurons during locomotion, upon DREADD activation (pink) or inhibition (orange) of basal forebrain cholinergic neurons.

(H) As in G, but for layer 5 neurons.

Finally, an effect of locomotion on the responses of layer 5 neurons, which to the best of our knowledge is unreported, is a decrease in latency to response. In layer 5 neurons, responses to grating stimuli appeared earlier during locomotion than they did while the mouse was stationary (Figures 4B and 7B). This decrease in response latency during locomotion was absent in layer 2/3 neurons (Figures 4A and 7A). Optogenetic activation of cholinergic axons was able to recapitulate the decrease in response latency in layer 5 neurons (Figures 4D, 7B and S12B), while leaving layer 2/3 neuron response latency unaffected (Figures 4C, 7A and S12A). Thus, cholinergic input decreases the response latency of layer 5 neurons.

Discussion

We set out to address the question of why acetylcholine is released in visual cortex by answering two simpler, intermediate questions: what drives acetylcholine release, and what immediate effects does the released acetylcholine have on the cortical circuits. We found that locomotion was the main driver of ChAT axons activity (Figure 1) and acetylcholine release (Figure S2) in visual cortex, and cholinergic activity depended on locomotion velocity in a non-linear, step-like manner (Figure 2). The acute effects of this increase in acetylcholine on cortical responses were layer-specific: acetylcholine release enhanced responses specifically in layer 5 neurons, but not in layer 2/3 (Figure 4). Using chemogenetic manipulations of basal forebrain cholinergic neurons, we found that we could bidirectionally influence the activity correlations of layer 5 neurons. Cholinergic activation resulted in a decrease of pairwise correlations while inhibition resulted in an increase (Figure 6H). We observed a similar decrease in pairwise correlations during optogenetic stimulation of cholinergic axons in visual cortex, arguing that this effect is, at least in part, mediated locally (Figure 6F). Similarly, optogenetic stimulation of cholinergic axons in visual cortex drove a decrease in pairwise correlation of layer 2/3 (Figure 6E), while global manipulation of the basal forebrain cholinergic system using chemogenetic tools did not significantly change correlations on activation or inhibition (Figure 6G). Our results would be consistent with the interpretation that the acute effects of acetylcholine are stronger in layer 5 where they act to increase responsiveness to inputs from outside of the local layer 5 network.

While the optogenetic activation of cholinergic axons in visual cortex likely recapitulates the local effects of acetylcholine more directly than those observed with basal forebrain stimulation, the method comes with the following caveats. First, we don’t know how the pattern of acetylcholine release induced by optogenetic activation of cholinergic axons compares to that observed endogenously during locomotion. The pattern of cholinergic axon activation was not uniform across axons (Figures 1E and 2D), consistent with different modes of activity in cholinergic subpopulations observed in basal forebrain (Laszlovszky et al., 2020). It is unclear whether the exact pattern of cholinergic axon activation substantially influences the observed effects in cortex. However, given that the effects on changes in the correlation of activity induced by optogenetic activation of cholinergic axons was at least as strong as that observed during locomotion, we estimate that optogenetic activation of cholinergic axons can induce levels and patterns of acetylcholine release similar to those observed endogenously. Second, the activation of cholinergic axons likely antidromically activates cholinergic neuron soma in basal forebrain. Thus, we cannot exclude the possibility of a systemic contribution to the effects we observe through shared projections between different cortical and subcortical targets. However, the projection specificity of basal forebrain cholinergic neurons (Kim et al., 2016; Pinto et al., 2013) would argue against this. Finally, it is important to note that here we labeled basal forebrain cholinergic neurons with targeted viral injection. Thus, we cannot exclude the possibility that our labelling of cholinergic axons was incomplete. The alternative approach to label these neurons by crossing ChAT-Cre mice to a reporter line expressing a calcium indicator comes with the caveat of the presence of a substantial fraction of VIP interneurons in visual cortex that also are ChAT positive (Granger et al., 2020). Being unable to separate basal forebrain axons from those of local VIP interneurons complicates the interpretation of results.

Another caveat of our conclusions is the fact that our neuronal populations in both layer 2/3 and layer 5 are not random subsets. While the Ef1α promoter is specific to neurons (Tsuchiya et al., 2002; Yaguchi et al., 2013) and predominantly labels excitatory neurons (Attinger et al., 2017; Yaguchi et al., 2013), the expression levels are likely not equal across the different excitatory neuron types. In layer 5, for example, we are likely undersampling Tlx3-positive layer 5 neurons. Tlx3-positive layer 5 neurons exhibit a visually driven reduction in activity and consequently have a systematic difference between open and closed loop locomotion onsets (Heindorf and Keller, 2022). We do not see either a visually driven inhibition on average (Figure 4D), nor a difference between closed and open loop locomotion onsets (Figure S8). Thus, it should be kept in mind that with any virus based protein expression, the population of labeled cells is likely not random genetically, and that descriptor of ‘layer 2/3 (or 5) neuron’ should be understood to mean, a ‘layer 2/3 (or 5) neuron that exhibits high expression levels under the artificial Ef1α promoter when used in an AAV delivery vector’.

Given our results, what are the implications for the computational role of acetylcholine in visual cortex? There are likely two aspects to this, the acute effect on cortical activity and the effect on plasticity. We find that acetylcholine was released in visual cortex as a locomotion state signal. This state signal could be used to gate visuomotor plasticity. In systems engaged in sensorimotor learning, plasticity related to feedback prediction errors should occur primarily during self-motion and not when passively experiencing sensory input. Visuomotor development is critically dependent on coupling of locomotion and sensory feedback (Attinger et al., 2017; Held and Hein, 1963; Kaneko and Stryker, 2014), and depends on local plasticity mechanisms in visual cortex (Widmer et al., 2022). Acetylcholine is known to gate plasticity in visual cortex (Bear and Singer, 1986; Greuel et al., 1988; Gu and Singer, 1993; Kirkwood et al., 1999) and could function to gate visuomotor plasticity to phases of self-motion. Given that acetylcholine release is associated with other types of movement as well (Eggermann et al., 2014; Harrison et al., 2016; Lohani et al., 2022; Nelson and Mooney, 2016; Zhu et al., 2023), this is consistent with acetylcholine functioning more generally as a movement state signal. We would predict that in visual cortex, this would primarily relate to movements that result in changes to visual input.

The absence of an acute effect of optogenetically stimulating cholinergic axons locally on activity of visual cortex neurons is consistent with the idea that locomotion driven neuronal activity in visual cortex (Keller et al., 2012; Saleem et al., 2013) is likely not driven by acetylcholine, but is the consequence of a combination of motor-related top-down input (Leinweber et al., 2017) and noradrenaline (Polack et al., 2013), another neuromodulator that is known to accompany locomotion onset (Jordan and Keller, 2023; Reimer et al., 2016). Consistent with previous reports (Goard and Dan, 2009), we find that acetylcholine acutely increases visuomotor responses more strongly in layer 5 neurons than in layer 2/3 neurons and that it decorrelates neuronal activity. One of the key questions here is why these effects are induced during locomotion. There are a number of explanations that have been proposed previously that often focus on increasing sensory gain to counteract the noisier visual input during locomotion (Minces et al., 2017; Pinto et al., 2013). We propose a slightly more specific explanation. This is based on the idea that the observed effects of acetylcholine on layer 5 can be explained by assuming the layer 5 network exhibits attractor dynamics and that acetylcholine modifies these attractor dynamics (Kanamaru and Aihara, 2019). The observed differences in the effect of acetylcholine on layer 5, where response strength increased, and layer 2/3, where they did not, are consistent with the interpretation that attractor dynamics are stronger in layer 5 than in layer 2/3. This would, also agree with a proposed microcircuit for predictive processing (Keller and Mrsic-Flogel, 2018), where layer 5 is postulated to maintain an internal representation (Heindorf and Keller, 2022). Thus, acetylcholine could act to increase the sensitivity and speed of response of the internal representation neurons to inputs arriving from outside the local network at the expense of reducing the influence among neurons in the local network. Such an acetylcholine driven increase in the speed of transition between different internal representations would also be consistent with the finding that layer 5 neurons exhibit faster responses to the transitions between different stimuli (Figure 7). Assuming the internal representation in cortex is a substrate of conscious perception, as proposed by predictive processing, this would be consistent with the finding that anesthesia decouples layer 5 neurons from their inputs onto apical dendrites by cholinergic mechanisms (Suzuki and Larkum, 2020).

Cholinergic input reduced response latency of layer 5 neurons in visual cortex to grating stimuli.

(A) Locomotion (brown) or optogenetic stimulation of cholinergic axons (pink) induced change in the response latency of layer 2/3 neurons in visual cortex to full field drifting grating onset. Here and elsewhere, n.s.: not significant; *: p<0.05; **: p<0.01; ***: p<0.001; see Table S1 for all statistical information.

(B) As in A, but for layer 5 neurons.

What makes this hypothesis all the more tantalizing is the observation that a decrease in cortical cholinergic activation is correlated with the severity of dementia in Alzheimer’s disease (Perry et al., 1978). All three drugs currently approved for the management of dementia in Alzheimer’s disease are cholinesterase inhibitors, drugs that increase acetylcholine levels. If cholinergic activation alters network dynamics to make the putative layer 5 attractor network more sensitive to external inputs – and hence more easily influenced by long-range cortical inputs – this could explain why cholinergic activation enhances memory retrieval. A decrease in cholinergic tone in Alzheimer’s disease is also consistent with the increases of correlation of neuronal activity in cortex observed in mouse models of the disease (Korzhova et al., 2021). Thus the cholinergic gating of the sensitivity of layer 5 to external inputs could constitute a possible mechanism for the cholinergic hypothesis for Alzheimer’s disease (Davies and Maloney, 1976; Francis et al., 1999; Hampel et al., 2019; Terry and Buccafusco, 2003).

In summary, we show that cholinergic activity in visual cortex conveys a locomotion state signal, that preferentially augments the response of layer 5 neurons to external inputs and decorrelates activity across neurons, possibly to both sculpt the receptive field tuning of neurons to sensory stimuli as well as to regulate the influence of external input on internal representation to affect our conscious percept.

Methods

Key Resources Table

Mice

All mice used in experiments described in the paper were ChAT-IRES-Cre (Rossi et al., 2011) heterozygotes, kept on a C57BL/6 background. A total of 64 mice, both male and female, 6-16 weeks old at the start of the experiment, were used. See Table S2 for details of mouse inclusion for the different figures. Between experiments, mice were group-housed in a vivarium (light/dark cycle: 12/12 hours). All animal procedures were approved by and carried out in accordance with the guidelines laid by the Veterinary Department of the Canton of Basel-Stadt, Switzerland.

Surgery

For all surgical procedures, mice were anesthetized with a mixture of fentanyl (0.05 mg/kg; Actavis), midazolam (5.0 mg/kg; Dormicum, Roche), and medetomidine (0.5 mg/kg; Domitor, Orion) injected intraperitoneally. Analgesics were applied perioperatively (2% lidocaine gel, meloxicam 5 mg/kg) and postoperatively (buprenorphine 0.1 mg/kg, meloxicam 5 mg/kg). Eyes were covered with ophthalmic gel (Virbac Schweiz AG). Cranial windows were implanted as previously described (Keller et al., 2012; Leinweber et al., 2014). Briefly, using a dental drill, a 4 mm craniotomy was made over the right visual cortex, centered 2.5 mm lateral and 0.5 mm anterior to lambda. After injection of AAV vectors, the exposed cortex was sealed with a 4 mm circular glass coverslip and glued in place using gel superglue (Ultra Gel, Pattex). The remaining exposed surface of the skull was covered with Histoacryl (B. Braun), and a titanium head bar was fixed to the skull using dental cement (Paladur, Heraeus Kulzer). After surgery, anesthesia was antagonized by a mixture of flumazenil (0.5 mg/kg; Anexate, Roche) and atipamezole (2.5 mg/kg; Antisedan, Orion Pharma) injected intraperitoneally.

Axonal labeling

To image the activity of basal forebrain cholinergic axons in visual cortex, we expressed a calcium indicator in basal forebrain cholinergic neurons. Surgery was performed as described above, and either an AAV2/5-hSyn1-FLEx-axon-GCaMP6s (1013 GC/ml) or an AAV-PHP.eB-Ef1α-DIO-GCaMP6s (1012 GC/ml) was injected at four locations ipsilateral to the imaging site (AP, ML, DV (in mm): +1.1, +0.1, −3.7 (medial septum); +1.1, +0.1, −4.1 (vertical limb of the diagonal band); +0.8, +0.1, −4.2 (horizontal limb of the diagonal band); +0.6, +0.6, −4.9 (nucleus basalis)) in ChAT-IRES-Cre mice.

GRAB imaging

We injected an AAV vector carrying GRAB-ACh 3.0, AAV2/9-hSyn-GRAB-ACh3.0 (1013 GC/ml), in visual cortex. A 4 mm craniotomy was made over right visual cortex and sealed with a glass coverslip as described above.

Chemogenetic experiments

To manipulate the activity of the basal forebrain cholinergic system, we used chemogenetic DREADD inhibitor AAV2/1-EF1α-DIO-hM4D(Gi)-mCherry (1011 GC/ml) or DREADD activator AAV2/1-EF1α-DIO-hM3D(Gq)-mCherry (1011 GC/ml). AAVs were injected in anterior basal forebrain with coordinates as used for axonal imaging described above. DREADDs were stimulated using Clozapine N-oxide (CNO), which was dissolved in DMSO, diluted with saline, and injected intraperitoneally at a dose of 0.5 mg/kg body weight. Activity from each imaging site in the DREADD series was acquired starting 30 min - 60 min after CNO injection.

Optogenetic experiments

We injected AAV2/1-hSyn-DIO-ChrimsonR-tdTomato (1011 GC/ml) into basal forebrain at the same coordinates as for axonal imaging described above, and injected AAV2/1-Ef1α- GCaMP6f-WPRE (1011-14 GC/ml) into visual cortex for imaging neurons in layer 2/3 and layer 5. In no-opsin control mice, instead of ChrimsonR, we injected an AAV2/1-DIO-tdTomato-WPRE (1014 GC/ml) virus. ChrimsonR stimulation and functional imaging of GcaMP6f-expressing neurons was done as previously described (Attinger et al., 2017). For imaging, we used a modified Thorlabs B-Scope with a 12 kHz resonance scanner (Cambridge Technology). The illumination source for the optogenetic stimulation was a 637nm laser (OBIS LX, Coherent). We used a dichroic mirror (ZT775sp-2p, Chroma) to combine the two-photon laser and stimulation laser. A second long-pass dichroic mirror (F38-555SG, Semrock) was used to split the GCaMP emission from both illumination light sources. Light leak from the 637 nm stimulation laser was reduced by synchronizing the stimulation laser to the turnaround times of the resonant scanner (during which imaging data were not acquired). Lastly, amplified PMT signals were digitally bandpass filtered at 80 MHz to reduce the effect of ringing in the amplifier. This allowed for near stimulation-artifact free synchronous imaging and optogenetic stimulation. For all experiments with stimulation of cholinergic axons locally in visual cortex, we used a square-wave pulse of 1s duration and 10 mW/mm2 power (measured at objective). The median inter-trial interval for different stimulation events was 15 s for optogenetic stimulation only trials, 12 s for optogenetic stimulation with grating onset, 35 s for optogenetic stimulation with visuomotor mismatch, and 45 s for optogenetic stimulation with locomotion onset in closed loop. To measure correlation changes, we employed a longer laser stimulation window of 1 minute, at 40 Hz (50% duty cycle), with an average power output of 20 mW/mm2 (measured at objective). For sham stimulation, we used an optical guide coupled to a high-power LED (UHP-T-595, Prizmatix) to diffusely illuminate the mouse and surrounding virtual reality setup.

Virtual reality environment

The virtual reality setup is based on the design of Dombeck and colleagues (Dombeck et al., 2007). Briefly, mice were head-fixed and free to run on an air-supported spherical treadmill. The rotation of the ball was restricted around the vertical axis with a pin. The virtual reality environment was projected onto a toroidal screen covering approximately 240 degrees horizontally and 100 degrees vertically of the mouse’s visual field, using a projector (Samsung SP-F10M) synchronized to the resonant scanner of the two-photon microscope. The virtual environment consisted of an infinite corridor with walls patterned with vertical sinusoidal gratings with a spatial frequency of approximately 0.04 cycles per degree (Leinweber et al., 2014). In closed loop condition, the locomotion of the mouse was coupled to movement along a virtual tunnel. In open loop condition, we uncoupled the two and replayed the visual flow from a preceding closed loop condition. In grating condition, we presented full field drifting gratings (0°, 45°, 90°, 270°, moving in either direction) in a pseudo-random sequence. Grating stimuli were presented for between 2 s and 3 s. In the inter-stimulus interval (between 2 s and 4 s), mice were shown a gray screen with average luminance matched to that of the grating stimuli.

Eye tracking and facial movement measurement

During all experiments, we recorded the mouse’s left eye (contralateral to the imaged hemisphere) with a CMOS infrared camera at 30 Hz frame rate. The pupil was backlit by the 930 nm laser used for two-photon imaging. We calculated pupil diameter offline by fitting a circle to the pupil. Frames with occluded pupil were excluded from analysis. To extract facial movements, we computed the average image displacement in different image patches on the face of the mouse.

Two-photon microscopy

Functional two-photon calcium imaging was performed using custom-built two-photon microscopes (Leinweber et al., 2014). The illumination source was a tunable femtosecond laser (Insight, Spectra Physics or Chameleon, Coherent) tuned to 930 nm. Emission light was band-pass filtered using a 525/50 filter for GCaMP and a 607/70 filter for tdTomato/mCherry (Semrock) and detected using a GaAsP photomultiplier (H7422, Hamamatsu). Photomultiplier signals were amplified (DHPCA-100, Femto), digitized (NI5772, National Instruments) at 800 MHz, and band-pass filtered at 80 MHz using a digital Fourier-transform filter implemented in custom-written software on an FPGA (NI5772, National Instruments). The scanning system of the microscopes was based either on a 12 kHz or an 8 kHz resonant scanner (Cambridge Technology). Images were acquired at a resolution of 750 x 400 pixels (60 Hz or 40 Hz frame rate, respectively), and a piezo-electric linear actuator (P-726, Physik Instrumente) was used to move the objective (Nikon 16x, 0.8 NA) in steps of 15 µm between frames to acquire images at 4 different depths. This resulted in an effective frame rate of 15 Hz or 10 Hz, respectively. The field of view was 375 µm x 300 µm.

Extraction of neuronal activity

Calcium imaging data were processed as previously described (Keller et al., 2012) and all data analysis was done in MATLAB (MathWorks). Briefly, raw images were full-frame registered to correct for lateral brain motion. Neurons and axons were manually selected based on mean and maximum fluorescence images. For GRAB imaging, neuropil and blood vessels were manually selected. For a subset of mice, the apical dendrites of layer 5 neurons were marked in layer 2/3 by manually tracing them to their soma in layer 5 using a z-stack acquired at the end of an experiment. Raw fluorescence traces were corrected for slow drift in fluorescence using an 8th-percentile filtering with a 66 s (or 1000 frames) window (Dombeck et al., 2007). ΔF/F traces were calculated as mean fluorescence in a selected region of every imaging frame, subtracted and normalized by the overall median fluorescence. All neuronal calcium activity data was acquired at 15 Hz. For axonal imaging, 9 (of 25 sites) were imaged at 10 Hz, and analytically resampled at 15 Hz using a polyphase antialiasing filter to make the time-base compatible with the rest of the axonal imaging data.

Data analysis

All data analysis was done using custom scripts written in MATLAB (MathWorks). To quantify the average population response traces, we first calculated the average event-triggered fluorescence trace for each region of interest (ROI). The responses of all ROIs was then averaged and baseline-subtracted.

Locomotion onset was defined as locomotion velocity crossing a threshold of 0.25 cm/s for at least 1 s, while having been below the threshold for 1 s before. The same criteria were used to define visual flow onsets in the open loop condition using visual flow speed. Visuomotor mismatch responses were probed by presenting brief 1 s full field visual flow halts in the closed loop condition. For a mismatch event to be included in analysis, mice had to be locomoting uninterrupted above threshold (0.25 cm/s) from −0.5 s to +1 s after the event onset. Additionally, for a ROI to be included for analysis of the response to a particular event, it had to have at least 5 onsets to the event.

In Figure 1E, the calcium responses were baseline subtracted using a −1 s to −0.5 s window relative to locomotion onset and sorted based on the average response in the +0.5 s to +1.5 s activity window. In Figures 1F-1H, the activity was averaged over all axons, with a baseline subtraction window of −1 s to −0.5 s relative to onset. In Figure 1I, the baseline window was −0.5 s to 0 s relative to mismatch onset (to include the locomotion related response in the baseline), and a 95% confidence interval was calculated from randomly drawn timepoints during locomotion. In Figure 1J, the locomotion onset response is plotted across different visuomotor conditions, and the baseline window was −1 s to −0.5 s. In Figure 1K, cholinergic axons ware classified as responsive to a particular stimulus if the mean activity in a window +0.5 s to +1.5 s after stimulus onset was significantly different (paired two-sample t-test over onsets, p < 0.05) from the mean of the baseline window (−1 s to −0.5 s).

Locomotion offset was defined as the threshold crossing at which locomotion velocity decreased below 0.25 cm/s for at least 1 s after mice ran above the threshold for at least 1 s. To isolate locomotion bouts, we identified consecutive locomotion onset and offset events that were separated by at least 4 s. In Figure 2C, we computed correlations in average calcium activity (or locomotion velocity) between locomotion onset and offset across locomotion bouts. Onset responses were defined as the average population activity (or locomotion velocity) +0.5 s to +1.5 s after locomotion onset with a baseline of −1 s to −0.5 s. Offset responses were similarly defined as the average population activity (or locomotion velocity) over - 1.5 s to −0.5 s before locomotion offset with the same baseline as for bout onset. In Figure 2D, axons were sorted based on their average activity at locomotion onset (defined as above), and the same sort order was preserved for plotting the average activity during the bout and at bout offset. In Figure 2E, locomotion velocity was binned into 100 evenly spaced bins in the range of 0 cm/s to 6.25 cm/s, and the activity of cholinergic axons in each bin was averaged. In Figure 2F, the correlation of the activity of each cholinergic axon was computed against the mouse locomotion velocity, and this was compared against the correlation computed with a binarized version of locomotion velocity, binarized using a threshold of 0.25 cm/s.

In Figures 3B, 3C and S4B with pupil data, we excluded frames with blinks. For variability and correlation analysis involving pupil diameter, sites with less than 30 s of pupil data in a visuomotor condition were excluded.

In Figures 4A-4H, to probe for the influence of cholinergic stimulation on responses in visual cortex, the optogenetic stimulation laser was turned on for 1 s coincident with the onset of mismatch or grating stimuli. Further, to isolate the influence of cholinergic stimulation based on the locomotion state, an instance of grating stimulus presentation was defined as occurring during ‘locomotion’ if mice had a locomotion velocity that was above a threshold (0.25 cm/s) in the time-window of −0.5 s to +1 s from the stimulus onset, otherwise it was defined as occurring while the mouse was ‘stationary’. Note, the same criteria to define locomotion state was used to isolate visuomotor mismatches, and also during control optogenetic stimulation experiments (Figures S6A-S6E). For stimulation on locomotion onset, we detected locomotion onsets based on locomotion velocity in real-time. The average delay between locomotion onsets and laser stimulation onsets was 406 ms ± 41 ms (mean ± SEM).

In Figure S7, for each neuron, we determined the preferred orientation using half the trials while the mice were stationary, and plotted responses relative to this preferred orientation in the other half of the stationary trials, or while the mice were locomoting, or during optogenetic stimulation of cholinergic axons while stationary. As before, a velocity threshold of 0.25 cm/s was used to separate stationary trials from locomoting.

In Figures 6A-6F, to compute the average pairwise correlation in activity of neurons, we first split the activity trace based on the locomotion state of the mouse and the presence of optogenetic stimulation. Then, for each condition, we computed the average over all pairwise correlations of a given neuron with every other neuron from the same imaging site. For the chemogenetic experiment, we further compared the change in average pairwise correlation before and after injection of the DREADD ligand. We only included those sites in this analysis which had at least 15 s behavior for each of the two compared conditions.

We defined latency to activation on locomotion onset (Figure S1) for a neuron or axon as the time after onset when the calcium activity, averaged across onsets, first was 2 standard deviations above baseline, and remained above this threshold thereafter for at least 1 s. Neurons that did not reach threshold within the analysis window −2 s to +3 s and were not significantly responsive to locomotion onset (paired two-sample t-test over onsets, p < 0.05, between baseline −1 s to −0.5 s and response +0.5 s to +1.5 s), were not included in the analysis.

Response latency to grating stimuli (Figure 7) was defined for a neuron as the time after onset when the calcium activity, averaged across onsets, first was 2 standard deviations above baseline, and remained above this threshold for at least 1/3 s. Neurons that did not reach threshold within the analysis window of 0 s to +2 s (equal to the duration of grating presentation) were not included in the analysis.

Statistical Analysis

All statistical information for the tests performed in the manuscript is provided in Table S1. Unless stated otherwise, the shading indicates the standard error of the mean across axons or neurons. For analysis where the experimental unit was axon, neuron, or pair of neurons, we used hierarchical bootstrap (Saravanan et al., 2020) for statistical testing due to the nested nature (axons/neurons and mice) of the data. Briefly, we first resampled the data (with replacement) at the level of imaging sites, and then, from the selected sites, resampled for axons (or neurons or neuron pairs). We then computed the mean of this bootstrap sample and repeated this 10 000 times (or 1000 times when comparing response traces in Figures 4 and S6) to generate a bootstrap distribution of the mean estimate. For paired tests, the p-value was defined as the proportion of bootstrap samples higher (or lower, depending on the hypothesis) than zero. For unpaired tests, the distribution of the mean for the two variables were compared as the proportion of values higher (or lower, depending on the hypothesis). For analysis where the experimental unit was imaging site, we first tested for normality using Kolmogorov-Smirnov test at a significance level of 5%. For datasets that did not pass the test for normality, the medians were compared with Wilcoxon rank-sum test or signed rank test, as applicable. Otherwise, the means were compared using paired or unpaired t-test, as applicable.

Supplemental tables

Statistical information on all analysis.

For statistical comparisons we used paired or unpaired t-tests, or hierarchical bootstraps as indicated in the table below. The units (ROIs, sites, or mice) over which testing was done are boldfaced. For hierarchical bootstraps the two levels of units used are boldfaced.

Number of mice in different experimental groups

Supplementary figures

Cholinergic axons in visual cortex were activated after layer 2/3 but before layer 5 visual cortex neurons. Related to Figure 1.|

(A) Distribution of time to first significant response after locomotion onset for cholinergic axons in visual cortex. Axons without any response to locomotion onset are omitted.

(B) As in A, but for layer 2/3 neurons in visual cortex.

(C) As in A, but for layer 5 neurons in visual cortex.

(D) Nested bootstrap resampling of the distributions shown in A-C. Here and elsewhere, n.s.: not significant; *: p<0.05; **: p<0.01; ***: p<0.001; see Table S1 for all statistical information.

Responses of GRAB-ACh3.0 in visual cortex are similar to the calcium responses in cholinergic axons. Related to Figure 2.

(A) Average change in GRAB-ACh3.0 fluorescence during locomotion onset. We used the fluorescence change measured in blood vessels (purple) to estimate hemodynamic occlusion and subtracted this from the raw activity (black) to generate a corrected response (red). Shading marks SEM.

(B) As in A, but for the GRAB-ACh3.0 response to grating onsets. The green shading marks the duration of the grating stimulus.

(C) As in A, but for the GRAB-ACh3.0 response to visuomotor mismatch. The orange shading marks the duration of the visuomotor mismatch.

(D) To estimate hemodynamic occlusion effects while two-photon imaging, we measured fluorescence changes on locomotion onset in layer 2/3 neurons in visual cortex that express GFP.

(E) As in D, but for responses to grating onsets.

(F) As in D, but for responses to visuomotor mismatch.

(G) The correlation coefficient between the population activity vectors during locomotion onset (on), offset (off), and during locomotion bout (btw), compared to shuffle (rnd.) controls. Here and elsewhere, n.s.: not significant; *: p<0.05; **: p<0.01; ***: p<0.001; see Table S1 for all statistical information.

(H) GRAB-ACh3.0 fluorescence as a function of locomotion velocity. Shown are the mean acetylcholine level in each bin, corrected for hemodynamics. Shading marks SEM. We found no evidence of a difference in acetylcholine level between low and high locomotion velocities (indicated by gray shading). Note, the x-axis range is matched to that in Figure 2E. Because we had overall less data in these GRAB experiments, reliable estimates of mean acetylcholine levels were not possible for locomotion velocities above approximately 13 cm/s.

Cholinergic axon activity correlated better with a binarized locomotion vector than with the unfiltered locomotion vector over a large range of binarization thresholds. Related to Figure 2.

The correlation between activity of cholinergic axons in visual cortex and locomotion velocity was higher when we used a binarized version of the locomotion velocity trace. This difference was present over a large range of thresholds. The black bar at the top of the plot indicates threshold values for which the correlation with binarized locomotion velocity was higher than that with raw locomotion velocity.

Activity of cholinergic axons correlated better with locomotion velocity than with facial movement. Related to Figure 3.

(A) Standard deviation of pupil diameter as a function of visuomotor condition. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

(B) Average correlation of activity of cholinergic axons in visual cortex with facial movements as a function of visuomotor condition, compared with the same activity correlation to locomotion velocity (same data as Figure 3A). Error bars indicate SEM. Individual data points are imaging sites.

(C) Average correlation of activity of cholinergic axons in visual cortex and locomotion velocity (blue), pupil diameter (red), or facial movement (black) as a function of smoothing window. The black arrow marks the smoothing window used for facial movements.

Optogenetic stimulation of basal forebrain cholinergic axons in visual cortex did not change the locomotion velocity of the mice. Related to Figure 4.

(A) Locomotion velocity before, during, and after optogenetic stimulation of cholinergic axons. Shown are the mean (red line) and SEM (red shading) across imaging sites. Here and elsewhere, n.s.: not significant; *: p<0.05; **: p<0.01; ***: p<0.001; see Table S1 for all statistical information.

(B) Average locomotion velocity before optogenetic stimulation (−2 s to 0 s) is indistinguishable from the locomotion velocity during and immediately after stimulation (0 s to 2 s; stimulation occurs from 0 s to 1 s). Each dot is an imaging site. Boxes show 25th and 75th percentile, red line is the median, and the whiskers extend to the most extreme datapoints not considered outliers.

Optogenetic activation did not increase grating responses during locomotion and had no effect in opsin-negative control mice. Related to Figures 4 and 6.

(A) Average calcium response of layer 5 neurons in visual cortex to full field drifting gratings (green shading) presented while the mice were stationary, without (pale blue) and with (pale pink) optogenetic stimulation in mice that did not express ChrimsonR in cholinergic axons. The duration of stimulation is marked by a pink bar.

(B) Average calcium response of layer 5 neurons in visual cortex to visuomotor mismatch (orange shading) without (blue) and with (pale pink) optogenetic light stimulation in mice that do not express ChrimsonR in cholinergic axons. The duration of stimulation light is marked by a pink bar.

(C) As in B, but for locomotion onset responses. Note, the locomotion onset threshold was relaxed to 0.025 cm/s to increase the number of onsets we could analyze.

(D) Average calcium response of layer 2/3 neurons in visual cortex to full field drifting gratings (green shading) presented while the mice were locomoting, without (brown) and with (pink) optogenetic stimulation of cholinergic axons in visual cortex. The duration of optogenetic stimulation is marked by a pink bar. The responses are compared bin-by-bin using a nested hierarchical bootstrap test. Here and in subsequent panels, bins with a significant difference (p < 0.05) are indicated by a black line above the plot; those with p > 0.05 are marked gray. Shading marks SEM.

(E) As in D, but for layer 5 neurons.

(F) Change in pairwise correlations in layer 2/3 neurons and in layer 5 neurons in visual cortex during sham stimulation while the mice were stationary. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

Cholinergic stimulation primarily has a multiplicative influence on the orientation tuning curve of layer 5 neurons. Related to Figure 4.

(A) Average calcium response of layer 2/3 neurons in visual cortex to different orientations of full field drifting gratings while mice were stationary (black), on optogenetic stimulation of cholinergic axons while mice were stationary (red), and while mice were locomoting (blue). Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

(B) As in A, but for layer 5 neurons in visual cortex.

(C) Muliplicative factor (a) and additive factor (b) of a linear fit of the form y = ax +b, for the scaling of the orientation tuning curve in layer 2/3 induced by locomotion and optogenetic stimulation of cholinergic axons. Error bars indicate the standard error of the coefficients.

(D) Same as in C, but for layer 5 neurons in visual cortex.

Locomotion onset responses are suppressed by closed loop visual feedback in layer 2/3, but not layer 5. Related to Figures 4G and 4H.

(A) Average calcium response of layer 2/3 neurons in visual cortex to locomotion onset in closed loop, with neurons split into positive prediction error (PE) neurons (blue), negative PE neurons (red), and the rest of the population (black). We defined the top 30% responders to grating stimuli as positive PE neurons, the top 30% responders to visuomotor mismatch as negative PE neurons, and the remaining 60% of the neurons along with any neurons that responded to both gratings and mismatch as rest.

(B) As in A, but during open loop.

(C) As in A, but for layer 5 neurons.

(D) As in A, but for layer 5 neurons in open loop.

Locomotion increases the correlation between those layer 5 neurons in visual cortex that on average have a higher correlation. Related to Figure 6.

(A) Change in the pairwise correlation between pairs of layer 2/3 neurons in visual cortex on locomotion and their average correlation over the entire imaging session.

(B) As in A, but for layer 5 neurons in visual cortex.

(C) Related to A, with all neuron pairs binned by their average correlation. Bars indicate SEM.

(D) As in C, but for layer 5 neurons in visual cortex.

Chemogenetic manipulation of basal forebrain cholinergic neurons affects locomotion behavior of mice. Related to Figure 6.

(A) Average locomotion velocity before and after administration of CNO in ChAT-Cre mice that expressed a DREADD activator (pink) or a DREADD inhibitor (orange) in basal forebrain. Each dot is an experimental session.

(B) Quantification of the data shown in A. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information.

(C) As in A, but for fraction of time spent running.

(D) Quantification of the data shown in C.

(E) CNO induced change in the total distance traveled.

Change in locomotion-related decorrelation upon chemogenetic manipulation of basal forebrain cholinergic neurons. Related to Figure 6.

(A) Average change in pairwise correlations of layer 2/3 neurons of visual cortex during locomotion in the group of mice before (gray, left) and after (pink) DREADD activation, and in the group before (gray, right) and after (orange) DREADD inhibition of basal forebrain cholinergic neurons. Here and elsewhere, n.s.: not significant; *: p < 0.05; **: p < 0.01; ***: p < 0.001; see Table S1 for all statistical information. Note, the differences in pre-CNO locomotion driven decorrelation between the different groups of mice complicate the direct comparison of the DREADD effects. To ease this comparison, we represented the same data in Figure 6G and 6H as a difference to pre-CNO levels.

(B) As in A, but for layer 5 neurons of visual cortex.

Locomotion and optogenetic stimulation of basal forebrain cholinergic axons decreased the latency of response to a visual stimulus in layer 5 neurons but not in layer 2/3 neurons. Related to Figure 7.

(A) Three example layer 2/3 neurons from visual cortex with the average response to grating stimuli in responsive trials while the mouse is stationary (black), locomoting (red), or on optogenetic stimulation of cholinergic axons in visual cortex (purple).

(B) As in A, but for three example layer 5 neurons.

Acknowledgements

We thank all the members of the Keller lab for discussion and support. This project has received funding from the Swiss National Science Foundation (GBK), the Novartis Research Foundation (GBK), and the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 865617) (GBK).

Author contributions

BY designed and performed the experiments and analyzed the data. All authors wrote the manuscript.

Declaration of interests

The authors declare no competing financial interests.