Skip to main content
eLife logoLink to eLife
. 2021 Dec 23;10:e62583. doi: 10.7554/eLife.62583

Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements

Allison E Hamilos 1,, Giulia Spedicato 1, Ye Hong 1, Fangmiao Sun 2, Yulong Li 2, John A Assad 1,3,
Editors: Jesse H Goldberg4, Kate M Wassum5
PMCID: PMC8860451  PMID: 34939925

Abstract

Clues from human movement disorders have long suggested that the neurotransmitter dopamine plays a role in motor control, but how the endogenous dopaminergic system influences movement is unknown. Here, we examined the relationship between dopaminergic signaling and the timing of reward-related movements in mice. Animals were trained to initiate licking after a self-timed interval following a start-timing cue; reward was delivered in response to movements initiated after a criterion time. The movement time was variable from trial-to-trial, as expected from previous studies. Surprisingly, dopaminergic signals ramped-up over seconds between the start-timing cue and the self-timed movement, with variable dynamics that predicted the movement/reward time on single trials. Steeply rising signals preceded early lick-initiation, whereas slowly rising signals preceded later initiation. Higher baseline signals also predicted earlier self-timed movements. Optogenetic activation of dopamine neurons during self-timing did not trigger immediate movements, but rather caused systematic early-shifting of movement initiation, whereas inhibition caused late-shifting, as if modulating the probability of movement. Consistent with this view, the dynamics of the endogenous dopaminergic signals quantitatively predicted the moment-by-moment probability of movement initiation on single trials. We propose that ramping dopaminergic signals, likely encoding dynamic reward expectation, can modulate the decision of when to move.

Research organism: Mouse

Introduction

What makes us move? Empirically, a few hundred milliseconds before movement, thousands of neurons in the motor system suddenly become active in concert, and this neural activity is relayed via spinal and brainstem neurons to recruit muscle fibers that power movement (Shenoy et al., 2013). Yet just before this period of intense neuronal activity, the motor system is largely quiescent. How does the brain suddenly and profoundly rouse motor neurons into the coordinated action needed to trigger movement?

In the case of movements made in reaction to external stimuli, activity evoked first in sensory brain areas is presumably passed along to appropriate motor centers to trigger this coordinated neural activity, thereby leading to movement. But humans and animals can also self-initiate movement without overt, external input (Deecke, 1996; Hallett, 2007; Lee and Assad, 2003; Romo et al., 1992). For example, while reading this page, you may decide without prompting to reach for your coffee. In that case, the movement cannot be clearly related to an abrupt, conspicuous sensory cue. What ‘went off’ in your brain that made you reach for your coffee at this particular moment, as opposed to a moment earlier or later?

Human movement disorders may provide clues to this mystery. Patients and animal models of Parkinson’s Disease experience difficulty self-initiating movements, exemplified by perseveration (Hughes et al., 2013), trouble initiating steps when walking (Bloxham et al., 1984), and problems timing movements (Malapani et al., 1998; Meck, 1986; Meck, 2006; Mikhael and Gershman, 2019). In contrast to these self-generated actions, externally cued reactions are often less severely affected in Parkinson’s, a phenomenon sometimes referred to as ‘paradoxical kinesia’ (Barthel et al., 2018; Bloxham et al., 1984). For example, patients’ gait can be normalized by walking aids that prompt steps in reaction to visual cues displayed on the ground (Barthel et al., 2018).

Because the underlying neuropathophysiology of Parkinson’s includes the loss of midbrain dopaminergic neurons (DANs), the symptomatology of Parkinson’s suggests DAN activity plays an important role in deciding when to self-initiate movement. Indeed, pharmacological manipulations of the neurotransmitter dopamine causally and bidirectionally influence movement timing (Dews and Morse, 1958; Lustig and Meck, 2005; Meck, 1986; Mikhael and Gershman, 2019; Schuster and Zimmerman, 1961). This can be demonstrated in the context of self-timed movement tasks, in which subjects reproduce a target timing interval by making a movement following a self-timed delay that is referenced to a start-timing cue (Malapani et al., 1998). Species across the animal kingdom, from rodents and birds to primates, can learn these tasks and produce self-timed movements that occur, on average, at about the target time, although the exact timing exhibits considerable variability from trial-to-trial (Gallistel and Gibbon, 2000; Meck, 2006; Mello et al., 2015; Merchant et al., 2013; Rakitin et al., 1998; Remington et al., 2018; Schuster and Zimmerman, 1961; Sohn et al., 2019; Wang et al., 2018). In such self-timed movement tasks, decreased dopamine availability/efficacy (e.g., Parkinson’s, neuroleptic drugs) generally produces late-shifted movements (Malapani et al., 1998; Meck, 1986; Meck, 2006; Merchant et al., 2013), whereas high dopamine conditions (e.g., amphetamines) produce early-shifting (Dews and Morse, 1958; Schuster and Zimmerman, 1961).

Although exogenous dopamine manipulations can influence timing behavior, it remains unclear whether endogenous DAN activity is involved in determining when to move. DANs densely innervate the striatum, where they modulate the activity of spiny projection neurons of the direct and indirect pathways, which are thought to exert a push-pull influence on movement centers (Albin et al., 1989; DeLong, 1990; Freeze et al., 2013; Grillner and Robertson, 2016). Most studies on endogenous DAN activity have focused on reward-related signals, but there are also reports of movement-related DAN signals. For example, phasic bursts of dopaminergic activity have been observed just prior to movement onset (within ~500ms; Coddington and Dudman, 2018; Coddington and Dudman, 2019; da Silva et al., 2018; Dodson et al., 2016; Howe and Dombeck, 2016; Wang and Tsien, 2011), and dopaminergic signals have been reported to reflect more general encoding of movement kinematics (Barter et al., 2015; Engelhard et al., 2019; Parker et al., 2016). However, optogenetic activation of dopamine neurons—within physiological range—does not elicit immediate movements (Coddington and Dudman, 2018; Coddington and Dudman, 2019). We hypothesized that rather than overtly triggering movements, the ongoing activity of nigrostriatal DANs could influence movement initiation over longer timescales by controlling or modulating the moment-by-moment decision of when to execute a planned movement.

To test this hypothesis, we trained mice to make a movement (lick) after a self-timed interval following a start-timing cue. The mice learned the timed interval, but, as observed in other species, the exact timing of movement was highly variable from trial-to-trial, spanning seconds. We exploited this inherent variability by examining how moment-to-moment nigrostriatal DAN signals differed when animals decided to move relatively early versus late. We found that dopaminergic signals ‘ramped up’ during the timing interval, with variable dynamics that were highly predictive of trial-by-trial movement timing, even seconds before the movement occurred. Because reward was delivered at the time of movement, the ramping dopaminergic signals likely related to the animal’s expectation of when reward would be available in response to movement. Furthermore, optogenetic DAN manipulation during the timing interval produced bidirectional changes in the probability of movement timing, with activation causing a bias toward earlier self-timed movements and suppression causing a bias toward later self-timed movements. These combined observations suggest a novel role for the dopaminergic system in the timing of movement initiation, wherein slowly evolving dopaminergic signals, likely driven by reward expectation, can modulate the moment-to-moment probability of whether a reward-related movement will occur.

Results

We trained head-fixed mice to make self-timed movements to receive juice rewards (Figure 1A). Animals received an audio/visual start-timing cue and then had to decide when to first-lick in the absence of further cues. Animals only received juice if they waited a proscribed interval following the cue before making their first-lick (>3.3 s in most experiments). As expected from previous studies, the distribution of first-lick timing was broadly distributed over several seconds, and exhibited the canonical scalar property of timing, as described by Weber’s Law (Figure 1B and Figure 1—figure supplement 1A-B; Gallistel and Gibbon, 2000). We note this variability in timing was not imposed on the animal by training it to reproduce a variety of target intervals (e.g., 2 vs. 5 s), but is rather a natural consequence of timing behavior, even for a single target interval.

Figure 1. Self-timed movement task.

(A) Task schematic (3.3 s version shown). (B) First-lick timing distributions generated by the same mouse exhibit the scalar property of timing (Weber’s Law). Red: 3.3 s target time (four sessions); Blue: 5 s target time (four sessions). For all mice, see Figure 1—figure supplement 1B. (C–E) Hazard-function analysis. Time = 0 is the start-timing cue; dashed vertical lines are target times. (C) Uniform instantaneous probability of movement over time is equivalent to a flat hazard rate (bottom) and produces an exponential first-lick timing distribution (top). (D) Before Training: First day of exposure to the self-timed movement task. Top: average first-lick timing distribution across mice; bottom: corresponding hazard functions. Gray traces: single session data. Red traces: average among all sessions, with shading indicating 95% confidence interval produced by 10,000x bootstrap procedure. (E) Trained Behavior: Hazard functions (bottom) computed from the first-lick timing distributions for the 3.3 s- and 5 s tasks (top) reveal peaks at the target times. Right: average first-lick timing distribution and hazard functions for all 12 GCaMP6f photometry animals. Source data: Figure 1—source data 1.

Figure 1—source data 1. Self-timed movement task behavioral data.

Figure 1.

Figure 1—figure supplement 1. Self-timed movement task learning and variations.

Figure 1—figure supplement 1.

(A) Task learning. Histogram of first-lick times from single sessions at different stages of training (red: reaction, gray: early, blue: operant-rewarded, yellow: Pavlovian-rewarded). Bars >50 first-licks truncated for clarity. (B) Mice adjust behavior to the timing-contingencies of the task. First-lick time distributions from tasks with different target timing intervals. Red: 3.3 s reward-boundary. Blue: 5 s reward-boundary (all sessions, all mice). (C) Mice time their first-licks relative to the start cue, not the houselamp. First-lick time distributions during behavior with (red) and without (black) houselamp events (4 mice, 4–5 sessions/mouse on each version of the task). Source data: Figure 1—source data 1.

Figure 1—figure supplement 2. Fiber optic placement and histology.

Figure 1—figure supplement 2.

(A) Approximate fiber positions for all mice. (B) Brightfield microscopy with polarized filter on a freshly cut brain slice showing bilateral fiber placement at SNc (from stGtACR2 experiment). (C) Example of co-expression of green (DA2m,) and red (tdTomato) fluorophores relative to fiber optic tip.

Our main objective was to exploit the inherent variability in self-timed behavior to examine how differences in neural activity might relate to variability in movement timing. Nonetheless, the trained animals well-understood the timing contingencies of the task. In self-timed movement tasks in which a single movement is used to assess timing, the distributions of movement times (in both rodents and monkeys) tend to anticipate the target interval, even at the expense of reward on many trials (Eckard and Kyonka, 2018; Kirshenbaum et al., 2008; Lee and Assad, 2003). In these paradigms, however, once a movement occurs, it removes future opportunities to move, which creates premature ‘bias’ in the raw timing distributions (Anger, 1956). To correct this bias, movement times must be normalized by the (ever-diminishing) number of opportunities to move at each timepoint (Jaldow et al., 1990). This yields the hazard function (the conditional probability of movement given that movement has not already occurred, as a function of time), which is equivalent to the instantaneous probability of movement. For example, on the first day of training, our animals displayed fairly flat hazard functions, indicating a uniform instantaneous probability of movement over time—that is, the animals did not yet understand the timing contingency (Figure 1C–D). However, after training, the hazard function for our animals peaked near the target time (either 3.3 or 5 s), suggesting an accurate latent timing process reflected in the instantaneous movement probability (Figure 1E). Mice trained on a variant of the self-timed movement task without lamp-off/on events showed no systematic differences in their timing distributions (Figure 1—figure supplement 1C), suggesting that the mice referenced their timing to the start-timing cue rather than the lamp-off event.

When mice were fully trained, we employed fiber photometry to record the activity of genetically-defined DANs expressing the calcium-sensitive fluorophore GCaMP6f (12 mice, substantia nigra pars compacta [SNc]; Figure 1—figure supplement 2). We controlled for mechanical/optical artifacts by simultaneously recording fluorescence modulation of a co-expressed, calcium-insensitive fluorophore, tdTomato. We also recorded bodily movements with neck-muscle EMG, high-speed video, and a back-mounted accelerometer.

DAN signals ramp up slowly between the start-timing cue and self-timed movement

DAN GCaMP6f fluorescence typically exhibited brief transients following cue onset and immediately before first-lick onset (Figure 2A), as observed in previous studies (Coddington and Dudman, 2018; da Silva et al., 2018; Dodson et al., 2016; Howe and Dombeck, 2016; Schultz et al., 1997). However, during the timed interval, we observed slow ‘ramping up’ of fluorescence over seconds, with a minimum after the cue-aligned transient and maximum just before the lick-related transient. The relatively fast intrinsic decay kinetics of GCaMP6f (t1/2 <100 ms at 37°; Helassa et al., 2016) should not produce appreciable signal integration over the seconds-long timescales of the ramps we observed.

Figure 2. SNc DAN signals preceding self-timed movement.

(A) Left: surgical strategy for GCaMP6f/tdTomato fiber photometry. Right: average SNc DAN GCaMP6f response for first-licks between 3 and 3.25 s (12 mice). Data aligned separately to both cue-onset (left) and first-lick (right), with the break in the time axis indicating the change in plot alignment. (B) Average SNc DAN GCaMP6f responses for different first-lick times (indicated by dashed vertical lines). (C) Comparison of average DAN GCaMP6f and tdTomato responses on expanded vertical scale. Traces plotted up to 150 ms before first-lick. See also Figure 2—figure supplements 13. Figure 2—source data 1.

Figure 2—source data 1. SNc DAN signals during self-timing.
Figure 2—source data 2. Baseline SNc DAN signals.
Figure 2—source data 3. df/F methods.
Figure 2—source data 4. DAN signals recorded at SNc, DLS and VTA.

Figure 2.

Figure 2—figure supplement 1. Baseline correlation of dopaminergic signal with first-lick time is not dependent on the duration of the lamp-off interval.

Figure 2—figure supplement 1.

(A) SNc GCaMP6f dopaminergic signals aligned to the lamp-off event (n = 12 mice, all 98 sessions). ‘Baseline’: 2 s interval before lamp-off event. (B) SNc GCaMP6f dopaminergic signals aligned to the cue, all sessions. ‘LOI’: Lamp-Off-Interval between lamp-off and cue. (C) 14/98 sessions showed a small relationship between LOI duration and first-lick time (R2<0.04 for 13/14 sessions, sign of correlation inconsistent among sessions). Omitting these 14 sessions did not eliminate the Baseline or Lamp-Off Interval correlation between dopaminergic signal amplitude and first-lick timing. Figure 2—source data 2.
Figure 2—figure supplement 2. dF/F method validation.

Figure 2—figure supplement 2.

(A) Left: slow, raw fluorescence bleaching across one session. Left inset: Minimal bleaching occurs across the first three trials (~1 min). Right: dF/F removes slow bleaching dynamics. Right inset: The same 3-trial window shown for dF/F signal. (B) Average raw fluorescence on paired, consecutive trials from one session aligned to cue on the nth trial. Left: n-1th trial was early, nth trial was rewarded (’ER‘ condition). Right: ‘RE’ condition (see Materials and methods: ‘dF/F method characterization and validation’). (C) Comparison of baseline GCaMP6f signals on paired, consecutive trials aligned to cue. Columns: three different versions of the signal (Raw fluorescence, Normalized baseline dF/F method, Moving average dF/F method). Top row: ER condition; middle row: RE condition; bottom row: distortion index. Red distortion index plot shows only Normalized baseline method. Green distortion index plot shows overlay of Moving Average, Low-Pass Filter, and Multiple Baseline dF/F Methods because the difference in signal distortion between these methods was indistinguishable (see Materials and methods: ‘dF/F method characterization and validation’). Figure 2—source data 3.
Figure 2—figure supplement 3. Average photometry signals, pooled every 250 ms by first-lick time, spanning 0.5 s (purple) to 7 s (red).

Figure 2—figure supplement 3.

Signals in main panels aligned only to cue, not first-lick. (A) Average DAN GCaMP6f signals at SNc cell bodies (12 mice). (B) DAN GCaMP6f signals at axon terminals in DLS (10 mice). (C) Striatal dopamine detection with dLight1.1 at DLS (5 mice). (D) Striatal DA2m signals at DLS (4 mice). (E) DAN GCaMP6f signals at VTA cell bodies (4 mice). (F) tdTomato signals. Insets (left): Cue and lick-aligned average signals for a single time bin before first-lick to show pre-lick ramping present in all dopaminergic signals. Left of axis break: aligned to cue. Right of axis break: aligned to first-lick. Traces plotted up until 150 ms before first-lick. Figure 2—source data 4.

We asked whether this ramping differed between trials in which the animal moved relatively early or late. Strikingly, when we averaged signals pooled by movement time, we observed systematic differences in the steepness of ramping that were highly predictive of movement timing (Figure 2B–C). Trials with early first-licks exhibited steep ramping, whereas trials with later first-licks started from lower fluorescence levels and rose more slowly toward the time of movement. The fluorescence ramps terminated at nearly the same amplitude, regardless of the movement time. Ramping dynamics were not evident in control tdTomato signals (Figure 2C), indicating that the ramping in the GCaMP6f signals was not an optical artifact. The quantitative relationship between GCaMP6f dynamics and movement time will be addressed in a subsequent section of this paper.

Higher pre-cue DAN signals are correlated with earlier self-timed movements

In addition to ramping dynamics, average DAN GCaMP6f signals were correlated with first-lick timing even before cue-onset, with higher baseline fluorescence predicting earlier first-licks (Figure 2B–C). This correlation began before the lamp-off event (the 2 s ‘Baseline’ period before lamp-off; Pearson’s r = −0.63 (95% CI=[-0.92,–0.14]), n = 12 mice) and grew stronger during the ‘Lamp-Off Interval’ between lamp-off and the cue (Pearson’s r = −0.89 (95% CI=[-0.98,–0.68]), n = 12 mice; Figure 2—figure supplement 1A-B). This correlation was independent of the duration of the lamp-off interval (Figure 2—figure supplement 1C). Because dF/F correction methods can potentially distort baseline measurements, we rigorously tested and validated three different dF/F methods, and we also repeated analyses with raw fluorescence values compared between pairs of sequential trials with different movement times (Figure 2—figure supplement 2; see Materials and methods). All reported results, including the systematic baseline differences, were robust to dF/F correction.

In principle, the amplitude of the baseline signal on a given trial n could be related to the animal’s behavior during the baseline interval or the outcome of the previous trial. To test this, we performed four-way ANOVA to compare the main effects of the following factors on the pre-cue signal (averaged for each trial between lamp-off and the start-timing cue, the ‘lamp-off interval’ (LOI), n = 12 mice): (1) presence or absence of spontaneous licking during the LOI; (2) outcome of the previous trial (rewarded or unrewarded); (3) upcoming movement time on trial n (categorized as <3.3 s or >3.3 s to provide a simple binary proxy for movement time); and (4) session number (to account for signal variability across animals and daily sessions). Although the effects of LOI-licking and previous trial outcome were statistically significant (F(1,18282) = 10.7, p = 0.008, ηp2=5.9·10–4 and F(1,18282) = 281.2, p = 7.5·10–47, ηp2=0.015, respectively), the upcoming movement time had an independent, statistically significant effect (F(1,18282) = 63.4, p = 5.9·10–6, ηp2=0.0035). This raises the possibility of an additional source of variance in baseline dopaminergic activity that is independent from previous trial events, but potentially influences the upcoming movement time on that trial.

Ramping dynamics in other dopaminergic areas and striatal dopamine release

We found similar ramping dynamics in SNc DAN axon terminals in the dorsolateral striatum (DLS; Figure 2—figure supplement 3A-B) at a location involved in goal-directed licking behavior (Sippy et al., 2015). Ramping was also present in GCaMP6f-expressing DAN cell bodies in the ventral tegmental area (VTA, Figure 2—figure supplement 3C), reminiscent of mesolimbic ramping signals described in goal-oriented navigation tasks (Howe et al., 2013; Kim et al., 2019).

To determine if these movement timing-related signals are available to downstream targets that may be involved in movement initiation, we monitored dopamine release in the DLS with two complementary florescent dopamine sensors (dLight1.1 and DA2m) expressed broadly in striatal cells (Figure 3 and Figure 2—figure supplement 3D-E). The decay kinetics of the two extracellular dopamine sensors differ somewhat (Patriarchi et al., 2018; Sun et al., 2020), which we confirmed (dLight1.1 t1/2~75 ms, DA2m t1/2~125 ms; Figure 3—figure supplement 1), yet both revealed similar timing-related ramping dynamics on average (Figure 3 inset). These combined data argue that the seconds-long dopaminergic ramping signals were not artifacts of sluggish temporal responses of the various fluorescent sensors and were ultimately expressed as ramp-like increases in dopamine release in the striatum.

Figure 3. Striatal dopamine release during the self-timed movement task.

Photometry signals averaged together from DA2m signals (n = 4 mice) and dLight1.1 signals (n = 5 mice) recorded in DLS. Axis break and plot alignment as in Figure 2. Dashed lines: first-lick times. Inset, left: surgical strategy. Inset, right: Comparison of dLight1.1 and DA2m dynamics. Expanded vertical scale to show ramping in the average signals for DA2m (solid trace) and dLight1.1 (dashed trace) up until the time of the first-lick (first-lick occurred between 2 and 3 s after the cue for this subset of the data). See also: Figure 3—figure supplement 1. Figure 3—source data 1.

Figure 3—source data 1. Striatal dopamine indicator signals.

Figure 3.

Figure 3—figure supplement 1. Comparison of dLight1.1 (dashed) and DA2m (solid) kinetics surrounding peak of unrewarded transient (first-lick time: 0.5–3.3 s).

Figure 3—figure supplement 1.

Red line: ½ baseline-to-peak amplitude for measuring decay t1/2 (see Materials and methods). Figure 3—source data 1.

First-lick timing-predictive DAN signals are not explained by ongoing body movements

The systematic ramping dynamics and baseline differences were not observed in the tdTomato optical control channel nor in any of the other movement-control channels, at least on average (Figure 4), making it unlikely that ramping dynamics resulted from optical artifacts. Nevertheless, because DANs show transient responses to salient cues and movements (Coddington and Dudman, 2018; da Silva et al., 2018; Dodson et al., 2016; Howe and Dombeck, 2016; Schultz et al., 1997), it is possible that fluorescence signals could reflect the superposition of dopaminergic responses to multiple task events, including the cue, lick, ongoing spurious body movements, and hidden cognitive processes like timing. For example, accelerating spurious movements could, in principle, produce motor-related neural activity that ramps up during the timed interval, perhaps even at different rates on different trials.

Figure 4. Movement controls reliably detected movements, but there were no systematic differences in movement during the timing interval.

(A) Schematic of movement-control measurements. (B) First-lick-aligned average movement signals on rewarded (red) and unrewarded (blue) trials. Pre-lick traces begin at the nearest cue-time (dashed red, dashed blue). Left: one session; Right: all sessions. Dashed grey line: time of earliest-detected movement on most sessions (150ms before first-lick). Average first-lick-aligned tdTomato optical artifacts showed inconsistent excursion directions (up/down), even within the same session; signals for each artifact direction shown in Figure 4—figure supplement 1. Source data: Figure 4—source data 1.

Figure 4—source data 1. Movement control signals.

Figure 4.

Figure 4—figure supplement 1. Average tdTomato optical artifacts (aligned to first-lick time) showed inconsistent excursion directions even within the same session.

Figure 4—figure supplement 1.

Averages for all three types of artifact (consistently up, ‘Up’; consistently down, ‘Down’; and not consistent ‘NC’) shown for all sessions. Pie plots: Breakdown of average tdt artifact direction by session at each recording site. Source data: Figure 4—source data 1.

We thus derived a nested generalized linear encoding model of single-trial GCaMP6f signals (Engelhard et al., 2019; Park et al., 2014; Runyan et al., 2017), a data-driven, statistical approach designed to isolate and quantify the contributions of task events (timing-independent predictors) from processes predictive of movement timing (timing-dependent predictors; Figure 5A–B and Figure 5—figure supplement 1A-D). The model robustly detected task-event GCaMP6f kernels locked to cue, lick and EMG/accelerometer events, but these timing-independent predictors alone were insufficient to capture the rich variability of GCaMP6f signals for trials with different first-lick times, especially the timing-dependent ramp-slope and baseline offset (n = 12 mice, Figure 5C and Figure 5—figure supplement 1E-G). In contrast, two timing-dependent predictors robustly improved the model: (1) a baseline offset with amplitude linearly proportional to first-lick time; and (2) a ‘stretch’ feature representing percentages of the timed interval (Figure 5B–C and Figure 5—figure supplement 1E). The baseline offset term fit a baseline level inversely proportional to movement time, and the temporal stretch feature predicted a ramping dynamic from the time of the cue up to the first-lick, whose slope was inversely proportional to first-lick time. Similar results were obtained for SNc DAN axon terminals in the DLS, VTA DAN cell bodies, and extracellular striatal dopamine release (Figure 5—figure supplement 1H).

Figure 5. Contribution of optical artifacts, task variables and nuisance bodily movements to SNc GCaMP6f signals.

(A) Nested encoding model comparing the contribution of timing-independent predictors (TI) to the contribution of timing-dependent predictors (TD). (B) Predicted dF/F signal for one session plotted up to time of first-lick. Model error simulated 300x (shading). (C) Nested encoding model for one session showing the actual recorded signal (1st panel), the timing-independent model (2nd panel), and the full, timing-dependent model with all predictors (3rd panel). Top: GCaMP6f; Bottom: tdTomato (tdt). Right: relative loss improvement by timing-dependent predictors (grey dots: single sessions, line: median, box: lower/upper quartiles, whiskers: 1.5x IQR). See also Figure 5—figure supplement 1. Source data: Figure 5—source data 1.

Figure 5—source data 1. DAN signal encoding model.

Figure 5.

Figure 5—figure supplement 1. DAN signal encoding model parameterization and model selection.

Figure 5—figure supplement 1.

(A) Schematic of photometry timeseries fit by encoding model. The lamp-off to first-lick interval was excised from each trial in a session (top) and concatenated to produce the timeseries fit by the model (bottom). (B) EMG spikes derivation: thresholding rectified EMG at three standard deviations (example trial). (C) Optimized basis kernels to produce timing-independent features. (D) Schematic of Design Matrix for timing-dependent features. (E) GCaMP6f model fits by nest iteration for example session. Shading: model error simulated 300x. (F) Model loss by nest iteration. Green: mean loss for SNc GCaMP6f; red: mean loss for tdTomato (tdt); grey lines: individual sessions; grey shading: timing-dependent nests. Left: full-scale view of all datasets. Right: mean GCaMP6f and tdt loss compared on same scale. (G) Summary of feature weights across SNc GCaMP6f (left) and tdt (right) models. Coefficient weights were rectified, summed, and divided by the number of predictors per feature. 2x standard error bars (too small to see). All features were significant in both GCaMP6f and tdt models. (H) Top: examples of the full timing-dependent model (nest 5) from additional mice for all recorded dopaminergic signals. Bottom: tdt control channel fit. Model errors simulated 300x. Some mice showed downward-going movement-related spikes at SNc cell bodies (second panel). All mice showed downward-going movement-related spikes from SNc terminals in DLS (middle panel). Source data: Figure 5—source data 1.
Figure 5—figure supplement 2. Principal component analysis (PCA) of the ramping interval (0.7 s up to first-lick; relative to cue).

Figure 5—figure supplement 2.

(A) Left: Variance explained by first 10 principal components (PC). Right: first three principal components. Green line: mean PC, GCaMP6f recorded at SNc; Red line: mean PC, tdTomato (tdt) recorded at SNc and VTA; Gray lines: single-session data. X-axis shown for longest-possible interpolated trial duration; trials of shorter duration were interpolated to have the same number of samples for PCA. (B) Example session data simulated with first three PCs. Noisy traces: actual averaged GCaMP6f signals truncated at first-lick onset; Smooth traces: PC fits of the same trials. Source data: Figure 5—source data 1.

We note that the stretch feature of this GLM makes no assumptions about the underlying shape of the dopaminergic signal; it only encodes percentages of timing intervals to allow for temporal ‘expansion’ or ‘contraction’ to fit whatever shape(s) were present in the data. In particular, the stretch feature cannot produce ramping unless ramping is present in the signal and temporally scales with the length of the interval. Because this feature empirically found a ramp (although not constrained to do so), the stretch aspect indicated that the underlying ramping process took place at different rates for trials with different movement times, at least on average.

In contrast to the GCaMP6f model, when the same GLM was applied to the tdTomato control signal, the timing-independent predictors (which could potentially cause optical/mechanical artifacts—the cue onset, first-lick, and EMG/accelerometer signal) improved the model, but timing-dependent predictors did not (Figure 5C and Figure 5—figure supplement 1F-H). In addition, separate principal component (PC) analysis revealed ramp-like and baseline-offset-like components that explained as much as 93% of the variance in DAN signals during the timing interval (mean: 66%, range: 16–93%), but similar PCs were not present when tdTomato control signals were analyzed with PCA (mean variance explained: 4%, range: 1.6–15%, Figure 5—figure supplement 2).

Single-trial DAN ramping and baseline signals predict movement timing

Given that ramping and baseline-offset signals were not explained by nuisance movements or optical artifacts, we asked whether DAN GCaMP6f fluorescence could predict first-lick timing on single trials. Using a simple threshold-crossing decoding model (Maimon and Assad, 2006), we found that single-trial GCaMP6f signals were predictive of first-lick time even for low thresholds intersecting the ‘base’ of the ramp, with the predictive value of the model progressively improving for higher thresholds (n = 12 mice: mean R2 low = 0.54, mid = 0.71, high = 0.82 (95% CI: low=[0.44,0.64], mid=[0.68,0.75], high=[0.76,0.87]); analysis for one mouse shown in Figure 6A). We will return to this observation in more detail in the upcoming section on single-trial dynamics.

Figure 6. Single-trial DAN signals predict first-lick timing.

(A) Schematic of nested decoding model. Categories for n-1th trial predictors: (2) reaction, (3) early, (4) reward, (5) ITI first-lick (see Materials and methods). Bottom: single-trial cue-aligned SNc DAN GCaMP6f signals from one session (six trials shown for clarity). Traces plotted up to first-lick. Right: threshold-crossing model. Low/Mid/High label indicates threshold amplitude. Dots: single trials. (B) Model weights. Error bars: 95% CI, *: p<0.05, two-sided t-test. Numbers indicate nesting-order. (C) Variance explained by each model nest. Gray lines: single sessions; thick black line: average. For model selection, see Figure 6—figure supplement 1. (D) Predicted vs. actual first-lick time, same session as 6A. See also Figure 6—figure supplements 14. Source data: Figure 6—source data 1.

Figure 6—source data 1. Movement time decoding model.

Figure 6.

Figure 6—figure supplement 1. Variations of the first-lick time decoding model.

Figure 6—figure supplement 1.

*: p<0.05, error bars: 95% confidence intervals. GCaMP6f threshold crossing time dominated every version of the model; n-1th trial first-lick time was consistently the second-best predictor. Source data: Figure 6—source data 1.
Figure 6—figure supplement 2. Analysis of single-trial dynamics: Hierarchical Bayesian Ramp vs Step Modeling.

Figure 6—figure supplement 2.

(A) Schematic (see Materials and methods: ‘Hierarchical Bayesian Modeling of Single-trial Dynamics’). (B) Example fits from hierarchical model on two example single trials from the same epoch in a single session. Green: SNc GCaMP6f single-trial signal, light gray shading: noise band, dark gray lines: model fits. Note that the top trial is more frequently classified as a ramp, and the lower trial is more frequently classified as a step. However, both the ramp and step models return intuitive and reasonable fits to both single-trial signals. (C). Probability of model class across all trials. X axis: 0 indicates that all probabilistic fits for a given trial returned step-class models; 1 indicates that all best-fits were ramp-class models. Single sessions across mice showed considerable uncertainty in model classification. Source data: Figure 6—source data 1.
Figure 6—figure supplement 3. Geometric analysis of single-trial dynamics with Multiple Threshold Modeling.

Figure 6—figure supplement 3.

(A) Left: linear ramp model, Right: discrete step model. Step positions drawn from uniform distribution over the cue-to-first-lick interval. Low-, Mid-, and High-level thresholds shown. (B) Threshold-crossing time vs. first-lick time (‘X-ing time vs. first-lick time’) for (from top to bottom) High-, Mid-, and Low-level thresholds. Left: simulation predictions for ramp and step models. Right: X-ing time vs. first-lick time regression fit on single trials from one session (data from Figure 6A). The step model predicts that the X-ing time vs. first-lick time does not change across threshold levels, whereas the ramp model predicts that the slope of this relationship increases as threshold is raised. Single-trial GCaMP6f data exhibits increasing X-ing time vs. first-lick time slope with increasing threshold level, consistent with the ramp model but inconsistent with the step model. (C). X-ing time vs. first-lick time across all mice. Left column: frequency of slope relationship across sessions, right column: variance explained. Source data: Figure 6—source data 1.
Figure 6—figure supplement 4. Assessing single-trial dynamics.

Figure 6—figure supplement 4.

(A) Single-trial signals aligned to discrete step position (as found by Bayesian step model) do not exhibit discrete step dynamics. To best estimate step times, the two animals with the highest GCaMP6f S:N were examined (Mouse B5 and B6). Left: 1 session, Right: average of signals from both mice. (B) Variance of GCaMP6f signals across trials. Step times were computed by Bayesian step model. An ideal step model predicts maximal variance at the 50th percentile step, but variance declined monotonically on average. Gray lines: single sessions; black line: average. For detailed explanation, see Materials and methods: ‘Single-trial variance analysis for discrete step dynamics.’ Source data: Figure 6—source data 1.

To more thoroughly determine the independent, additional predictive power of DAN baseline and ramping signals over other task variables (e.g., previous trial first-lick time and reward outcome, etc.), we derived a nested decoding model for first-lick time (Figure 6A). In this model, the pre-cue ‘baseline’ was divided into two components: the pre-lamp-off intertrial interval signal (‘ITI’) and the lamp-off to cue interval signal (‘LOI’). All predictors contributed to the predictive power of the model. However, even when we accounted for the contributions of prior trial history, tdTomato artifacts and baseline GCaMP6f signals, GCaMP6f threshold-crossing time robustly dominated the model and absorbed much of the variance explained by baseline dopaminergic signals, alone explaining 10% of the variance in first-lick time on average (range: 1–27%, Figure 6B–D). Alternate formulations of the decoding model produced similar results (Figure 6—figure supplement 1).

Characterizing single-trial dopaminergic dynamics

Although the threshold-crossing analysis made no assumptions about the underlying dynamics of the GCaMP6f signals on single-trials, in principle, ramping dynamics in averaged neural signals could be produced from individual trials with a single, discrete ‘step’ occurring at different times on different trials. Ramping has long been observed in averaged neural signals recorded during perceptual decision tasks in monkeys, and there has been considerable debate over whether single-trial responses in these experiments are better classified as ‘ramps’ or a single ‘step’ (Latimer et al., 2015; Latimer et al., 2016; Shadlen et al., 2016; Zoltowski et al., 2019; Zylberberg and Shadlen, 2016). It has even been suggested that different sampling distributions can produce opposite model classifications in ground-truth synthetic datasets (Chandrasekaran et al., 2018).

We attempted to classify single-trial dynamics as a discrete stepping or ramping process with hierarchical Bayesian models implemented in probabilistic programs (Figure 6—figure supplement 2A-B). However, like the perceptual decision-making studies, we also found ambiguous results, with about half of single trials best classified by a linear ramp and half best classified by a discrete step dynamic (Figure 6—figure supplement 2C). Nonetheless, three separate lines of evidence suggest that single trials are better characterized by slowly evolving ramps:

First, the relationship of threshold-crossing time to first-lick time is different for the step vs. ramp models when different threshold levels are sampled (Maimon and Assad, 2006), as schematized in Figure 6—figure supplement 3A: Increasing slope of this relationship is consistent with ramps on single trials, but not with a discrete step, which would be expected to have the same threshold-crossing time regardless of threshold level (Figure 6—figure supplement 3B). We found that the slope of this relationship increased markedly as the threshold level was increased, consistent with the ramp model (n = 12 mice: mean slope low = 0.46, mid = 0.7, high = 0.82 (95% CI: low=[0.37,0.54], mid=[0.66,0.73], high=[0.74,0.88]), Figure 6—figure supplement 3C).

Second, if single trials involve a step change occurring at different times from trial-to-trial then aligning trials on that step should produce a clear step on average, rather than a ramp (Latimer et al., 2015). We thus aligned single-trial GCaMP6f signals according to that optimal step position determined from a Bayesian step model fit for each trial and then averaged the step-aligned signals across trials. The averaged signals did not resemble a step function, but rather yielded a sharp transient superimposed on a ‘background’ ramping signal (Figure 6—figure supplement 4A). Step-aligned tdTomato and EMG averages showed a small inflection at the time of the step, but neither signal showed background ramping. This suggests that the detected ‘steps’ in the GCaMP6f signals were likely transient movement artifacts superimposed on the slower ramping dynamic rather than bona fide steps.

Third, the ideal step model holds that the step occurs at different times from trial-to-trial, producing a ramping signal when trials are averaged together. In this view, the trial-by-trial variance of the signal should be maximal at the time at which 50% of the steps have occurred among all trials, and the variance should be minimal at the beginning and end of the interval (when no steps or all steps have occurred, respectively). We thus derived the optimal step time for each trial using the Bayesian step model, and we then calculated variance as a function of time within pools of trials with similar movement times. The signal variance showed a monotonic downward trend during the timed interval, with a minimum variance at the time of movement rather than at the point at which 50% of steps had occurred among trials, inconsistent with the discrete step model (Figure 6—figure supplement 4B).

Taken together, we did not find evidence for a discrete step dynamic on single trials; on the contrary, our observations concord with slow ramping dynamics on single trials. Regardless, our GLM movement-time decoding approaches in Figure 6 did not make any assumptions about underlying single-trial dynamics.

Moment-to-moment DAN activity causally controls movement timing on single trials

Because dopaminergic ramping signals robustly predicted first-lick timing and were apparently transmitted via dopamine release to downstream striatal neurons, ramping DAN activity may causally determine movement timing. However, because the animals could expect reward within a few hundred milliseconds of the first-lick, it is also possible that the dopaminergic ramps could instead serve as a ‘passive’ monitor of reward expectation without influencing movement initiation. To distinguish these possibilities, we optogenetically activated or inhibited DANs (in separate experiments) on 30% of randomly interleaved trials (Figure 7A and Figure 7—figure supplement 1). For activation experiments, we chose light levels that elevated DAN activity within the physiological range observed in our self-timed movement task, as assayed by simultaneous photometry in the DLS with a fluorescent sensor of released dopamine (dLight1.1, Figure 7—figure supplement 2). DAN activation significantly early-shifted the distribution of self-timed movements on stimulated trials compared to unstimulated trials (12 mice; 2-sample Kolmogorov-Smirnov (KS) Test, D = 0.078 (95% CI: [0.067,0.093]), p = 2.8·10–26), whereas inhibition produced significant late-shifting compared to unstimulated trials (4 mice; two-sample KS Test, D = 0.051 (95% CI: [0.034,0.077]), p = 3.1·10–4; Figure 7B and Figure 7—figure supplement 3A). Stimulation of mice expressing no opsin produced no consistent effect on timing (5 mice; two-sample KS Test, D = 0.017 (95% CI: [0.015,0.040]), p = 0.62). The direction of these effects was consistent across all animals tested in each category (Figure 7C). Complementary analysis methods revealed consistent effects (bootstrapped difference in median first-lick times between categories: Δ(activation - no-opsin) = –0.22 s (95% CI=[–0.32 s,–0.12 s]), Δ(inhibition – no-opsin) = +0.19 s (95% CI=[+0.09 s,+0.30 s]), Figure 7C–D; bootstrapped comparison of difference in area under the cdf curves: Δ(activation – no-opsin) = –0.31 dAUC (95% CI=[–0.47 dAUC,–0.15 dAUC]), Δ(inhibition – no-opsin) = +0.23 dAUC (95% CI=[+0.08 dAUC,+0.37 dAUC]), Figure 7—figure supplement 3B; bootstrapped difference in mean first-lick times between categories: Δ(activation – no-opsin) = –0.34 s (95% CI=[–0.49 s,–0.19 s]), Δ(inhibition – no-opsin) = +0.24 s (95% CI=[+0.09 s,+0.39 s]), Figure 7—figure supplement 3C). Similar effects were obtained with activation of SNc DAN axon terminals in the DLS (2 mice, Figure 7—figure supplement 3A-B). Because these exogenous manipulations of DAN activity modulated movement timing on the same trial as the stimulation/inhibition, this suggests that the endogenous dopaminergic ramping we observed during the self-timed movement task likewise affected movement initiation in real time, rather than serving solely as a passive monitor of reward expectation.

Figure 7. Optogenetic DAN manipulation systematically and bidirectionally shifts the timing of self-timed movements.

(A) Strategy for optogenetic DAN activation or inhibition. Mice were stimulated from cue-onset until first-lick or 7 s. (B) Empirical continuous probability distribution functions (cdf) of first-lick times for stimulated (blue line) versus unstimulated (grey line) trials. Arrow and shading show direction of effect. p-Values calculated by Kolmogorov-Smirnov test (for other metrics, see Figure 7—figure supplements 1 and 3). (C) Median 1,000,000x bootstrapped difference in first-lick time, stimulated-minus-unstimulated trials. Box: upper/lower quartile; line: median; whiskers: 1.5x IQR; dots: single mouse. (D) Comparison of median first-lick time difference across all sessions. Error bars: 95% confidence interval (*: p<0.05, 1,000,000x bootstrapped median difference in first-lick time between sessions of different stimulation categories). See also Figure 7—figure supplements 14. Source data: Figure 7—source data 1.

Figure 7—source data 1. Optogenetic manipulation of SNc DANs.

Figure 7.

Figure 7—figure supplement 1. Variations on measurements of optogenetic effects.

Figure 7—figure supplement 1.

(A) Strategy for optogenetic targeting of DANs. (B) Comparison of four complementary metrics for addressing optogenetic effects. Top: unsigned Kolmogorov-Smirnov Distance (KS-D) analysis of differences in first-lick time distribution. Middle: signed, bootstrapped comparison of the difference in area under the cdf curves (dAUC). Bottom: mean and median bootstrapped difference in first-lick time. Source data: Figure 7—source data 1.
Figure 7—figure supplement 2. Light-power calibration for optogenetic activation of DANs.

Figure 7—figure supplement 2.

In preliminary experiments, DLS dopamine levels were monitored during the self-timed movement task, in which SNc DANs were activated randomly on 30% of interleaved trials. Dashed vertical lines: first-lick time. Left: interleaved, unstimulated trials (2 mice, 8 sessions). Middle: stimulated trials at the range of light levels used in the activation experiments show slightly elevated DLS dopamine signals compared to interleaved, unstimulated trials. First-lick timing was generally early-shifted in these sessions. Right: in a subset of preliminary calibration sessions, stimulation light levels were increased to the point where rapid, nonpurposive limb/trunk movements were observed throughout stimulation (1 mouse, 3 sessions). DLS dopamine signals show much higher, sustained increases throughout stimulation. Ongoing body movements disrupted task participation. Source data: Figure 7—source data 1.
Figure 7—figure supplement 3. Quantification of optogenetic effects with additional metrics.

Figure 7—figure supplement 3.

(A) KS-D analysis: all sessions. ’A‘: activation sessions; ‘NO‘: no opsin sessions; ’I‘: inhibition sessions. Filled circles indicate significant difference between stimulated/unstimulated trials on single session (p<0.025, two-sided, two-sample KS test). Standard box plot, line: median, box: upper/lower quartiles; whiskers: 1.5x IQR. (B) Left: bootstrapped dAUC Assay: all sessions, standard box plot as in A. Filled circles: significant difference on single session (p<0.025, two-sided bootstrapped dAUC test, see Materials and methods). Right: comparison of dAUC in first-lick distributions across all sessions between groups. Error bars denote bootstrapped 95% confidence interval (*: p<0.05). (C) Mean bootstrapped difference in first-lick time, stimulated-minus-unstimulated trials, standard box plot as in A. Left: single mice; Middle: single sessions. Right: Comparison of mean difference in first-lick time across all sessions. Error bars denote bootstrapped 95% confidence interval (*: p<0.05). Source data: Figure 7—source data 1.
Figure 7—figure supplement 4. Optogenetic DAN stimulation does not cause or prevent licking.

Figure 7—figure supplement 4.

(A,B) Stimulation-aligned lick-rate during control sessions. Animals were tested in 1–3 control sessions both before exposure to the self-timed movement task (red) and in 1–2 control sessions after the end of behavioral training (navy). Blue bar indicates stimulation period (3 s). Left: one session, Right: all sessions. (A) Activation control sessions (no cues or rewards). Animals were head-fixed on the behavioral platform and stimulated randomly at the same pace as the standard 3.3 s self-timed movement task. Activation did not elicit immediate licking in any session. (B) Inhibition control sessions (no cues, + random rewards). Animals were head-fixed on the behavioral platform while receiving juice rewards at random times. Inhibition did not prevent licking in any session. Source data: Figure 7—source data 1.

Recent studies have shown that physiological ranges of optogenetic DAN activation (as assayed by simultaneous recordings from DANs) fail to elicit overt movements (Coddington and Dudman, 2018). We likewise found that optogenetic DAN activation did not elicit immediate licking outside the context of the task (Figure 7—figure supplement 4A). Additionally, optogenetic DAN inhibition did not reduce the rate of spontaneous licking outside the context of the task (Figure 7—figure supplement 4B). In both cases, we used the same light levels that had elicited the robust shifts in timing behavior during the self-timed movement task. In other control experiments, we purposefully drove neurons into non-physiological activity regimes during the task by applying higher activation light levels. Over-stimulation caused large, immediate, sustained increases in DLS dopamine (Figure 7—figure supplement 2), comparable in amplitude to the typical reward-related dopamine transients on interleaved, unstimulated trials. These non-physiological manipulations resulted in rapid, nonpurposive body movements and disrupted performance of the task. Together, these results suggest that the optogenetic effects on timing in Figure 7 did not result from direct, immediate triggering or suppression of movement, nor from non-physiological dopamine release due to over-stimulation.

Linking endogenous DAN signals to the moment-to-moment probability of movement initiation

Optogenetic manipulations of DAN activity in the physiological range appeared to modulate the probability of initiating the pre-potent, self-timed movement. Given that endogenous DAN signals increased during the timing interval of the self-timed movement task, we reasoned that the probability of movement should likewise increase over the course of the timed interval. We thus derived a nested probabilistic movement-state decoding model to explore the link between DAN signals and movement propensity (Figure 8A). We applied a GLM based on logistic regression, in which we classified each moment of time as either a non-movement (0) or movement (1) state (Figure 8A–B), and we examined how well various parameters could predict the probability of transitioning from the non-movement state to the movement state. Unlike the decoding model in Figure 6, which considers a single threshold-crossing time, the probabilistic approach takes into account continuous DAN signals. Initial model selection included previous trial history (movement time and reward outcome history) in addition to the DAN GCaMP6f signal, but Bayesian Information Criterion (BIC) analysis indicated that the instantaneous GCaMP6f signal alone was a robustly significant predictor of movement state, whereas previous trial outcomes were insignificant contributors and did not further improve the model (Figure 8—figure supplement 1). We thus only considered the DAN GCaMP6f signal as a predictor in subsequent analyses.

Figure 8. Single-trial dynamic dopaminergic signals predict the moment-to-moment probability of movement initiation.

(A) Probabilistic movement-state model schematic. (B) Single-trial DAN GCaMP6f signals at SNc from one session. First-lick time truncated 150 ms before movement detection to exclude peri-movement signals. Bottom: Movement states for the trials shown as a function of time. Diagram on the right schematizes the model predictors relative to an example time = t on a single trial. (C) Nested model fitted coefficients. (D) Decoded hazard functions from full model (with all 10 predictors). Thick line: mean. n = 12 mice. (E) Hazard function fitting with shuffled datasets abolished the predictive power of the model (same 12 mice). See also Figure 8—figure supplements 12. Figure 8—source data 1.

Figure 8—source data 1. Movement state decoding model.

Figure 8.

Figure 8—figure supplement 1. Probabilistic movement time decoding model: model selection.

Figure 8—figure supplement 1.

(A) Model schematic. To assess previous trial history on the same footing as dopaminergic signals, time t during model selection was limited to a 500 ms ‘time-slice,’ with each time-slice fit separately by the model. Dopaminergic signals were averaged within each time-slice, such that each trial provided one and only one dopaminergic measurement, one set of trial history terms, and one movement state per time-slice (see Materials and methods: ‘Single-trial probabilistic movement state decoding model, model selection’). (B) Model fit weights. Model ID: corresponds to the predictors included from the schematic. X-axis labels: the predictor ID from the schematic. Predictor weights were averaged across time-slices. (C) Model selection criteria. The model omitting the previous trial history predictors (predictors #1–4) was consistently the best model as selected by BIC, AIC, and AICc (results similar across metrics, BIC shown alone for clarity). Source data: Figure 8—source data 1.
Figure 8—figure supplement 2. Average Intertrial Interval (ITI) GCaMP6f signals aligned to most recent previous lick-time.

Figure 8—figure supplement 2.

Signals plotted up to onset of next spontaneous, self-initiated lick during the ITI (1 mouse, 5 sessions, truncated 150 ms before lick). Source data: Figure 8—source data 1.

The continuous DAN GCaMP6f signal was indeed predictive of current movement state at any time t, and it served as a significant predictor of movement state up to at least 2 s in the past (Figure 8C). However, the signals became progressively more predictive of the current movement state as time approached t. That is, the dopaminergic signal level closer to time t tended to absorb the behavioral variance explained by more distant, previous signal levels (Figure 8C), reminiscent of how threshold crossing time absorbed the variance explained by the baseline dopaminergic signal in the movement-timing decoding model (Figure 6B–C). This observation is consistent with a diffusion-like ramping process on single trials, in which the most recent measurement gives the best estimate of whether there will be a transition to the movement state (but is difficult to reconcile with a discrete step process on single trials, consistent with the results in Figure 6—figure supplements 34).

We applied the fitted instantaneous probabilities of transitioning to the movement state to derive a fitted hazard function for each behavioral session (Figure 8D). The DAN GCaMP6f signals were remarkably predictive of the hazard function, both for individual sessions and on average, explaining 65% of the variance on average (n = 12 mice). Conversely, when the model was fit on the same data in which the timepoint identifiers were shuffled, this predictive power was essentially abolished, explaining only 5% of the variance on average (Figure 8E).

Together, these results demonstrate that slowly evolving dopaminergic signals are predictive of the moment-to-moment probability of movement initiation. When combined with the optogenetics results, they argue that dopaminergic signals causally modulate the moment-to-moment probability of the pre-potent movement. In this view, trial-by-trial variability in the DAN signal gives rise to trial-by-trial differences in movement timing in the self-timed movement task.

Discussion

We made two main findings. First, both baseline and slowly ramping DAN signals were predictive of the timing of the first-lick. Second, optogenetic modulation of DANs affected the timing of movements on the concurrent trial, suggesting that DANs can play a ‘real time’ role in behavior. These observations raise two (presumably separable) questions of interpretation: (1) what is the mechanistic origin of ramping DAN signals in the self-timed movement task, and (2) how do DAN signals affect self-timed movements in real time?

The origin of ramping DAN signals

A number of studies have reported short-latency (<500 ms) modulations in DAN activity following reward-predicting sensory cues and immediately preceding movements (Coddington and Dudman, 2018; da Silva et al., 2018; Dodson et al., 2016; Howe and Dombeck, 2016; Schultz et al., 1997), similar to the sensory- and motor-related transients we observed within ~500 ms of the cue and first-lick. However, the ramping DAN signals we observed during self-timing were markedly slower, unfolding over seconds and preceding the first-lick by as long as 10 s. Previous studies have reported similarly slow ramping dopaminergic signals in other behavioral contexts, including goal-directed navigation toward rewarded targets (Howe et al., 2013), multi-step tasks leading to reward (Hamid et al., 2016; Howard et al., 2017; Mohebi et al., 2019), and passive observation of dynamic visual cues indicating proximity to reward (Kim et al., 2019). A common feature in these experiments and our self-timed movement task is that trials culminated in the animal’s receiving reward. Thus, parsimony suggests that dopaminergic ramping could reflect reward expectation. However, dopaminergic ramping is generally absent in Pavlovian paradigms, in which animals learn to expect passive reward delivery at a fixed time following a conditioned stimulus (Menegas et al., 2015; Tian et al., 2016; Schultz et al., 1997; Starkweather et al., 2017). One exception is a report of ramping activity in monkey DANs during a Pavlovian paradigm with reward uncertainty (Fiorillo et al., 2003); however, ramping was not subsequently reproduced under similar conditions, either in monkeys (Fiorillo, 2011; Matsumoto and Hikosaka, 2009; Tobler et al., 2005) or rodents (Hart et al., 2015; Tian and Uchida, 2015). Thus, while dopaminergic ramping is likely related to reward expectation, the preponderance of evidence suggests that reward expectation alone is insufficient to cause DAN ramping.

To reconcile these disparate findings, Gershman and colleagues proposed a formal model in which dopaminergic ramping encodes reward expectation in the form of an ‘ongoing’ reward-prediction error (RPE) that arises from resolving uncertainty of one’s position in the value landscape (i.e., one’s spatial-temporal distance to reward delivery/omission). For example, uncertainty is resolved if animals are provided visuospatial cues indicating proximity to reward (Howe et al., 2013; Kim et al., 2019). In contrast, because animals can only imprecisely estimate the passage of time, the animal is uncertain of when reward will be delivered/omitted in Pavlovian tasks. The RPE model holds that this temporal uncertainty flattens the Pavlovian value landscape, thereby flattening dopaminergic ramping to the degree that it is obscured (Gershman, 2014; Kim et al., 2019; Mikhael and Gershman, 2019; Mikhael et al., 2019). Although both our task and Pavlovian tasks involve timing, the key difference may be that the animal actively determines when reward will be delivered/omitted in the self-timed movement task—just after it moves. Certainty in the timing of reward relative to its own movement would resolve the animal’s uncertainty of its position in the value landscape, and may thus explain why dopaminergic ramping occurs prominently in the self-timed movement task, but not in Pavlovian tasks (Hamilos and Assad, 2020). Although the RPE model provides a plausible explanation for our findings, dopaminergic ramping signals are also consistent with broader views of ‘reward expectation’, such as value tracking as animals approach reward (Hamid et al., 2016; Mohebi et al., 2019). In a companion theoretical paper (Hamilos and Assad, 2020), we explore the reward expectation-based computational framework in more detail, including a reconciliation of apparently contradictory DAN signals reported in the context of a perceptual timing task (Soares et al., 2016).

How do DAN signals affect movement in real time?

We found that trial-by-trial variability in ramping dynamics explained the precise timing of self-timed licks. However, because the animals could expect reward shortly after the first-lick, the ramping dopaminergic signal might serve as a passive monitor of reward expectation rather than causally influencing the timing of movement initiation. To distinguish these possibilities, we optogenetically manipulated SNc DAN activity. We found that exciting or inhibiting DANs altered the timing of the first-lick on the concurrent trial, in a manner suggesting an increase/decrease in the probability of movement, respectively. This suggests that endogenous DAN signaling could play a causal role in the initiation of reward-related movements in real time—but by what mechanism?

One possibility is that endogenous or exogenous DAN signals could increase the animal’s motivation or heighten its expectation of reward, which then secondarily influences reward-related movement. There is some evidence that might support this view. Phillips et al. found that electrical stimulation of the VTA in rats elicited approach behavior for self-delivery of intravenous cocaine; however, the electrical stimulation could have activated non-DAN fibers/pathways via the VTA (Phillips et al., 2003). Hamid et al. found that selective optogenetic stimulation of DANs could shorten the latency for rats to engage in a port-choice task—but only if the rat was disengaged from the task; if the rat was already engaged in task performance, the latency became slightly longer (Hamid et al., 2016).

In contrast to these equivocal findings, a large body of evidence suggests that selective optogenetic stimulation or inhibition of DANs generally does not affect reward-related movements on the same trial. First, we ourselves could not evoke licking (nor inhibit spontaneous licking) outside the context of our self-timed movement task (Figure 7—figure supplement 4). Our mice were thirsty and perched near their usual juice tube, but offline DAN stimulation/inhibition did not alter licking behavior, even though we applied the same optical power that altered movement probability during the self-timed movement task. Numerous studies have also examined the effects of optogenetic modulation of DANs in Pavlovian conditioning paradigms, with the general finding that DAN modulation affects conditioned movements on subsequent trials or sessions—a learning effect—but not on the same trial (Coddington and Dudman, 2018; Coddington and Dudman, 2021; Lee et al., 2020; Maes et al., 2020; Morrens et al., 2020; Pan et al., 2021; Saunders et al., 2018). For example, Lee et al. found that optogenetic inhibition of mouse DANs at the same time as an olfactory conditioned stimulus had no effect on anticipatory licking on the concurrent trial, even though inhibition at the time of reward delivery reduced the probability and rate of anticipatory licking on subsequent trials (Lee et al., 2020). Thus, the preponderance of evidence argues against a simple scheme whereby modulating DAN activity leads to a change in motivation that automatically evokes or suppresses reward-related movements in real time. The fact that we observed robust, concurrent optogenetic modulation of movement timing in our experiment suggests that additional factors were at play for self-timed movements.

One possibility is that during self-timing, exogenous (optogenetic) stimulation of DANs summed with the endogenous ramping DAN signal, leading to supra-heightened motivation to obtain reward. However, when we deliberately over-stimulated DANs—eliciting even higher dopamine signals in the DLS (Figure 7—figure supplement 2)—we observed ‘dyskinetic’ body movements rather than purposive licking. An alternative possibility is that the explicit timing requirement of the self-timed movement task made it particularly responsive to dopaminergic modulation. A long history of pharmacological and lesion experiments suggests that the dopaminergic system modulates timing behavior (Meck, 2006; Merchant et al., 2013). Broadly speaking, conditions that increase/decrease dopamine availability or efficacy speed/slow the ‘internal clock’, respectively (Dews and Morse, 1958; Mikhael and Gershman, 2019; Schuster and Zimmerman, 1961; Malapani et al., 1998; Meck, 1986; Meck, 2006; Merchant et al., 2013). The dopaminergic ramping signals we observed also bear resemblance to Pacemaker-Accumulator models of neural timing, in which a hypothetical accumulator signals that an interval has elapsed when it reaches a threshold level (Gallistel and Gibbon, 2000; Lustig and Meck, 2005; Meck, 2006). To ‘self-time’ a movement also implies that the movement is prepared and pre-potent during the timing period, potentially making the relevant neural motor circuits more sensitive to dopaminergic modulation.

Regardless of the detailed mechanism, our results provide a link between dopaminergic signaling and the initiation of self-timed movements. Although endogenous dopaminergic ramping likely reflects reward expectation, we propose that these reward-related ramping signals can influence the timing of movement initiation, at least in certain behavioral contexts. This framework also provides a link between two seemingly disparate roles that have been proposed for the dopaminergic system—reward/reinforcement-learning on one hand, and movement modulation on the other.

Importantly, we are not suggesting that DANs directly drive movement (like corticospinal or corticobulbar neurons). To the contrary, outside of the context of the self-timed movement task, we could not evoke reward-related movements by activating DANs. Even during the self-timed movement task, DAN stimulation did not elicit immediate movements: first-lick times still spanned a broad distribution from trial-to-trial. Moreover, dopaminergic ramping does not invariably lead to movement. For example, Kim et al. found dopaminergic ramping in the presence of visual cues that signaled proximity to reward, independent of reward-related movements (Kim et al., 2019). Consequently, we propose that when a movement is pre-potent (as in our self-timed movement task), dopaminergic signaling can modulate the probability of initiating that movement. Consistent with this view, we found that the endogenous ramping dynamics were highly predictive of the moment-by-moment probability of movement (as captured by the hazard function), with DAN signals becoming progressively better predictors as the time of movement onset approached.

This view of dopaminergic modulation of movement probability could be related to classic findings from extrapyramidal movement disorders, in which dysfunction of the nigrostriatal pathway produces aberrations in movement initiation rather than paralysis or paresis (Bloxham et al., 1984; Fahn, 2011; Hallett and Khoshbin, 1980). That is, movements do occur in extrapyramidal disorders, but at inappropriate times, either too little/late (e.g., Parkinson’s), or too often (e.g., dyskinesias). Based on the deficits observed in Parkinsonian states (e.g., perseveration), this role may extend to behavioral transitions more generally, for example, starting new movements or stopping ongoing movements (Guru et al., 2020).

Is DAN ramping also present before ‘spontaneous’ movements?

We have suggested that the ramping DAN signals in the self-timed movement task could be related to reward expectation coupled with the explicit timing requirement of the task. However, when we averaged DAN signals aligned to ‘spontaneous’ licks during the ITI, we also observed noisy, slow ramping signals building over seconds up to the time of the next lick, with a time course related to the duration of the inter-lick interval (Figure 8—figure supplement 2). This observation raises the possibility that slowly evolving DAN signals may be related to the generation of self-initiated movements more generally—although our highly trained animals may have also been ‘rehearsing’ timed movements between trials and/or expecting reward even for spontaneous licks.

Relationship to setpoint and stretching dynamics in other neural circuits

We found that DAN signals predict movement timing via two low-dimensional signals: a baseline offset and a ramping dynamic that ‘stretches’ depending on trial-by-trial movement timing. Intriguingly, similar stretching of neural responses has been observed before self-timed movement in other brain areas in rats and primates, including the dorsal striatum (Emmons et al., 2017; Mello et al., 2015; Wang et al., 2018), lateral interparietal cortex (Maimon and Assad, 2006), presupplementary and supplementary motor areas (Mita et al., 2009), and dorsomedial frontal cortex (DMFC; Remington et al., 2018; Sohn et al., 2019; Wang et al., 2018; Xu et al., 2014). In the case of DMFC, applying dimensionality reduction to the population responses revealed two lower-dimensional characteristics that resembled our findings in DANs: (1) the speed at which the population dynamics unfolded was scaled (‘stretched’) to the length of the produced timing interval (Wang et al., 2018), and (2) the population state at the beginning of the self-timed movement interval (‘setpoint’) was correlated with the timed interval (Remington et al., 2018; Sohn et al., 2019). Recurrent neural network models suggested variation in stretching and setpoint states could be controlled by (unknown) tonic or monotonically-ramping inputs to the cortico-striatal system (Remington et al., 2018; Sohn et al., 2019; Wang et al., 2018). We found that DANs exhibit both baseline (e.g., ‘setpoint’) signals related to timing, as well as monotonically ramping input during the timing interval. Thus, through their role as diffusely-projecting modulators, DANs could potentially orchestrate variations in cortico-striatal dynamics observed during timing behavior. Ramping DAN signals could also be related to the slow ramping signals that have been observed in the human motor system in anticipation of self-initiated movements, for example, readiness potentials in EEG recordings (Deecke, 1996; Libet et al., 1983).

Possible relationship to motivational/movement vigor

In operant tasks in which difficulty is systematically varied over blocks of trials, increased intertrial dopamine in the nucleus accumbens has been associated with higher average reward rate and decreased latency to engage in a new trial, suggesting a link between dopamine and ‘motivational vigor’, the propensity to invest effort in work (Hamid et al., 2016; Mohebi et al., 2019). Intriguingly, we observed the opposite relationship in the self-timed movement task: periods with higher average reward rates had lower average baseline dopaminergic signals and later first-lick times. Moreover, for a given first-lick time (e.g., 3.5–3.75 s), we did not detect differences in baseline (or ramping) signals during periods with different average reward rates, such as near the beginning or end of a session. This difference between the two tasks may be due to their opposing strategic constraints: in the aforementioned experiments, faster trial initiation increased the number of opportunities to obtain reward, whereas earlier first-licks tended to decrease reward acquisition in our self-timed movement task.

The basal ganglia have also been implicated in controlling ‘movement vigor,’ generally referring to the speed, force or frequency of movements (Bartholomew et al., 2016; Dudman and Krakauer, 2016; Panigrahi et al., 2015; Turner and Desmurget, 2010; Yttri and Dudman, 2016). The activity of nigrostriatal DANs has been shown to correlate with these parameters during movement bouts and could promote more vigorous movement via push-pull interactions with the direct and indirect pathways (Barter et al., 2015; da Silva et al., 2018; Mazzoni et al., 2007; Panigrahi et al., 2015). Movement vigor might also entail earlier self-timed movements, mediated by moment-to-moment increases in dopaminergic activity.

If moving earlier is a signature of greater movement vigor, then earlier self-timed movements might also be executed with greater force/speed. We looked for movement-related vigor signals, examining both the amplitude of lick-related EMG signals and the latency between lick initiation and lick-tube contact. We detected no consistent differences in these force- or speed-related parameters as a function of movement time; on the contrary, the EMG signals were highly stereotyped irrespective of the first-lick time (data not shown). It is possible that vigor might affect movement timing without affecting movement kinematics/dynamics—but, if so, the distinction between ‘timing’ and ‘vigor’ would seem largely semantical.

Overall view

We have posited that dopaminergic ramping reflects reward expectation, a common element of behavioral paradigms that reveal slow dopaminergic ramping. Furthermore, our optogenetic manipulations indicate that dopaminergic signals do not directly trigger movements, but rather act as if modulating the probability of the pre-potent self-timed movement. Taken together, these observations suggest that as DAN activity ramps up, the probability of movement likewise increases. In this view, different rates of increase in DAN activity lead to shorter or longer elapsed intervals before movement, on average. This framework leaves open the question of what makes movement timing ‘probabilistic.’ One possibility is that recurrent cortical-basal ganglia–thalamic circuits could act to generate movements ‘on their own,’ without direct external triggers (e.g., a ‘go!’ cue). By providing crucial modulation of these circuits, DANs could tune the propensity to make self-timed movements—and pathological loss of DANs could reduce the production of such movements. Future experiments should address how dynamic dopaminergic input influences downstream motor circuits involved in self-timed movements.

Materials and methods

Key resources table.

Reagent type (species) or resource Designation Source or reference Identifiers Additional information
Strain, strain background (M. musculus) DAT-Cre The Jackson Laboratory, Bar Harbor, ME B6.SJL-Slc6a3tm1.1(cre)Bkmm/JRRID:IMSR_JAX:020080 Cre expression in dopaminergic neurons
Strain, strain background (M. musculus) Wild-type The Jackson Laboratory, Bar Harbor, ME C57BL/6RRID:IMSR_JAX:000664
Other tdTomato (“tdt”) UNC Vector Core, Chapel Hill, NC AAV1-CAG-FLEX-tdT Virus, for control photometry expression
Other gCaMP6f Penn Vector Core, Philadelphia, PA AAV1.Syn.Flex.GCaMP6f.WPRE.SV40 Virus, for photometry expression
Other DA2m Vigene, Rockville, MD AAV9-hSyn-DA4.4(DA2m) Virus, for photometry expression
Other dLight1.1 Lin Tian Lab; Children’s Hospital Boston Viral Core, Boston, MA AAV9.hSyn.dLight1.1.wPRE Virus, for photometry expression
Other turboRFP Penn Vector Core AAV1.CB7.CI.TurboRFP.WPRE.rBG Virus, for control photometry expression
Other ChR2 UNC Vector Core, Chapel Hill, NC AAV5-EF1a-DIO-hChR2(H134R)-EYFP-WPRE-pA Virus, for opsin expression
Other ChrimsonR UNC Vector Core, Chapel Hill, NC AAV1-hSyn-FLEX-ChrimsonR-tdT Virus, for opsin expression
Other stGtACR2 Addgene/Janelia Viral Core, Ashburn, VA AAV2/8-hSyn1-SIO-stGtACR2-FusionRed Virus, for opsin expression
Software, algorithm Matlab Mathworks Matlab2018B For most analyses
Software, algorithm Julia Programming Language The Julia Project Julia 1.5.3 For probabilistic models
Software, algorithm Gen.jl The Gen Team Gen.jl For probabilistic models

Animals

Adult male and female hemizygous DAT-cre mice (Bäckman et al., 2006; B6.SJL-Slc6a3tm1.1(cre)Bkmm/J, RRID:IMSR_JAX:020080; The Jackson Laboratory, Bar Harbor, ME) or wild-type C57BL/6 mice were used in all experiments (>2 months old at the time of surgery; median body weight 23.8 g, range 17.3–31.9 g). Mice were housed in standard cages in a temperature and humidity-controlled colony facility on a reversed night/day cycle (12 hr dark/12 hr light), and behavioral sessions occurred during the dark cycle. Animals were housed with enrichment objects provided by the Harvard Center for Comparative Medicine (IACUC-approved plastic toys/shelters, e.g., Bio-Huts, Mouse Tunnels, Nest Sheets, etc.) and were housed socially whenever possible (1–5 mice per cage). All experiments and protocols were approved by the Harvard Institutional Animal Care and Use Committee (IACUC protocol #05098, Animal Welfare Assurance Number #A3431-01) and were conducted in accordance with the National Institutes of Health Guide for the Care and Use of Laboratory Animals.

Surgery

Surgeries were conducted under aseptic conditions and every effort was taken to minimize suffering. Mice were anesthetized with isoflurane (0.5–2% at 0.8 L/min). Analgesia was provided by s.c. 5 mg/kg ketoprofen injection during surgery and once daily for 3 d postoperatively (Ketofen, Parsippany, NJ). Virus was injected (50 nL/min), and the pipet remained in place for 10 min before removal. 200 µm, 0.53 NA blunt fiber optic cannulae (Doric Lenses, Quebec, Canada) or tapered fiber optic cannulae (200 µm, 0.60 NA, 2 mm tapered shank, OptogeniX, Lecce, Italy) were positioned at SNc, VTA, or DLS and secured to the skull with dental cement (C&B Metabond, Parkell, Edgewood, NY). Neck EMG electrodes were constructed from two Teflon-insulated 32 G stainless steel pacemaker wires attached to a custom socket mounted in the dental cement. Sub-occipital neck muscles were exposed by blunt dissection and electrode tips embedded bilaterally.

Stereotaxic coordinates (from bregma and brain surface)

Viral Injection:

  • SNc: 3.16 mm posterior, ±1.4 mm lateral, 4.2 mm ventral

  • VTA: 3.1 mm posterior, ±0.6 mm lateral, 4.2 mm ventral

  • DLS: 0 mm anterior, ±2.6 mm lateral, 2.5 mm ventral.

Fiber Optic Tips:

  • SNc/VTA: 4.0 mm ventral (photometry) or 3.9 mm ventral (optogenetics).

  • DLS: 2.311 mm ventral (blunt fiber) or 4.0 mm ventral (tapered fiber)

Virus

Photometry:

  • tdTomato (“tdt”): AAV1-CAG-FLEX-tdT (UNC Vector Core, Chapel Hill, NC), 100 nL used alone or in mixture with other fluorophores (below), working concentration 5.3 · 1012 gc/mL

  • gCaMP6f (at SNc or VTA): 100 nL AAV1.Syn.Flex.GCaMP6f.WPRE.SV40 (2.5 · 1013 gc/mL, Penn Vector Core, Philadelphia, PA). Virus was mixed in a 1:3 ratio with tdt (200 nL total)

  • DA2m (at DLS): 200–300 nL AAV9-hSyn-DA4.4(DA2m) (working concentration: ca. 3 · 1012 gc/mL, Vigene, Rockville, MD) + 100 nL tdt

  • dLight1.1 (at DLS): 300 nL AAV9.hSyn.dLight1.1.wPRE bilaterally at DLS (ca. 9.6 · 1012 gc/mL, Children’s Hospital Boston Viral Core, Boston, MA) + 100 nL AAV1.CB7.CI.TurboRFP.WPRE.rBG (ca. 1.01 · 1012 gc/mL, Penn Vector Core)

Optogenetic stimulation/inhibition (all bilateral at SNc):

  • ChR2: 1,000 nL AAV5-EF1a-DIO-hChR2(H134R)-EYFP-WPRE-pA (3.2 · 1013 gc/mL, UNC Vector Core, Chapel Hill, NC)

  • ChrimsonR±dLight1.1: 700 nL AAV1-hSyn-FLEX-ChrimsonR-tdT (4.1 · 1012 gc/mL, UNC Vector Core, Chapel Hill, NC)±400–550 nL AAV9-hSyn-dLight1.1 bilaterally at DLS (ca. 1013 gc/mL, Lin Tian Lab, Los Angeles, CA)

  • stGtACR2: 300 nL 1:10 AAV2/8-hSyn1-SIO-stGtACR2-FusionRed (working concentration 4.7 · 1011 gc/mL, Addgene/Janelia Viral Core, Ashburn, VA)

Water-deprivation and acclimation

Animals recovered for 1 week postoperatively before water deprivation. Mice received daily water supplementation to maintain ≥80% initial body weight and fed ad libitum. Mice were habituated to the experimenter and their health was monitored carefully following guidelines reported previously (Guo et al., 2014). Training commenced when mice reached the target weight (~8–9 d post-surgery).

Histology

Mice were anesthetized with >400 mg/kg pentobarbital (Somnasol, Henry Schein Inc, Melville, NY) and perfused with 10 mL 0.9% sodium chloride followed by 50 mL ice-cold 4% paraformaldehyde in 0.1 M phosphate buffer. Brains were fixed in 4% paraformaldehyde at 4 °C for >24 hr before being transferred to 30% sucrose in 0.1 M phosphate buffer for >48 hr. Brains were sliced in 50 µm coronal sections by freezing microtome, and fluorophore expression was assessed by light microscopy. The sites of viral injections and fiber optic placement were mapped with an Allen Mouse Brain Atlas.

Behavioral rig, data acquisition, and analysis

A custom rig provided sensory cues, recorded events and delivered juice rewards under the control of a Teensy 3.2 microprocessor running a custom Arduino state-system behavioral program with MATLAB serial interface. Digital and analog signals were acquired with a CED Power 1400 data acquisition system/Spike2 software (Cambridge Electronic Design Ltd, Cambridge, England). Photometry and behavioral events were acquired at 1000 Hz; movement channels were acquired at 2000 Hz. Video was acquired with FlyCap2 or Spinnaker at 30 fps (FLIR Systems, Wilsonville, OR). Data were analyzed with custom MATLAB statistics packages.

Self-timed movement task

Mice were head-fixed with a juice tube positioned in front of the tongue. The spout was placed as far away from the mouth as possible so that the tongue could still reach it to discourage compulsive licking (Guo et al., 2014), ~1.5 mm ventral and ~1.5 mm anterior to the mouth. During periods when rewards were not available, a houselamp was illuminated. At trial start, the houselamp turned off, and a random delay ensued (0.4–1.5 s) before a cue (simultaneous LED flash and 3300 Hz tone, 100 ms) indicated start of the timing interval. The timing interval was divided into two windows, early (0–3.33 s in most experiments; 0–4.95 s in others) and reward (3.33–7 s; 4.95–10 s), followed by the intertrial interval (ITI, 7–17 s; 10–20 s). The window in which the mouse first licked determined the trial outcome (early, reward, or no-lick). An early first-lick caused an error tone (440 Hz, 200 ms) and houselamp illumination, and the mouse had to wait until the full timing interval had elapsed before beginning the ITI. Thus there was no advantage to the mouse of licking early. A first-lick during the reward window caused a reward tone (5050 Hz, 200 ms) and juice delivery, and the houselamp remained off until the end of the trial interval. If the timing interval elapsed with no lick, a time-out error tone played (131 Hz, 2 s), the houselamp turned on, and ITI commenced. During the ITI and pre-cue delay (‘lamp-off interval’), there was no penalty for licking.

Mice learned the task in three stages (Figure 1—figure supplement 1A). On the first 1–4 days of training, mice learned a beginner-level task, which was modified in two ways: (1) to encourage participation, if mice did not lick before 5 s post-cue, they received a juice reward at 5 s; and (2) mice were not penalized for licking in reaction to the cue (within 500 ms). When the mouse began self-triggering ≥50% of rewards (days 2–6 of training), the mouse advanced to the intermediate-level task, in which the training reward at 5 s was omitted, and the mouse had to self-trigger all rewards. After completing >250 trials/day on the intermediate task (usually days 4–7 of training), mice advanced to the mature task, with no reaction licks permitted. All animals learned the mature task and worked for ~400–1,500 trials/session.

Hazard function correction of survival bias in the timing distribution

The raw frequency of a particular response time in the self-timed movement task is ‘distorted’ by how often the animal has the chance to respond at that time (Anger, 1956). This bias was corrected by calculating the hazard function, which takes into account the number of response opportunities the animal had at each timepoint. The hazard function is defined as the conditional probability of moving at a time, t, given that the movement has not yet occurred (referred to as ‘IRT/Op’ analysis in the old Differential Reinforcement of Low Rates (DRL) literature). The hazard function was computed by dividing the number of first-movements in each 250 ms bin of the first-lick timing histogram by the total number of first-movements occurring at that bin-time or later—the total remaining ‘opportunities’.

Online movement monitoring

Movements were recorded simultaneously during behavior with four movement-control measurements: neck EMG (band-pass filtered 50–2000 Hz, 60 Hz notch, amplified 100–1000x), back-mounted accelerometer (SparkFun Electronics, Boulder, CO), high-speed camera (30 Hz, FLIR Systems, Wilsonville, OR), and tdTomato photometry. All control signals contained similar information, and thus only a subset of controls was used in some sessions.

Photometry

Fiber optics were illuminated with 475 nm blue LED light (Plexon, Dallas, TX) (SNc/VTA: 50 μW, DLS: 35 μW) measured at patch cable tip with a light-power meter (Thorlabs, Newton, NJ). Green fluorescence was collected via a custom dichroic mirror (Doric Lenses, Quebec, Canada) and detected with a Newport 1401 Photodiode (Newport Corporation, Irvine, CA). Fluorescence was allowed to recover ≥1 d between recording sessions. To avoid crosstalk in animals with red control fluorophore expression, the red channel was recorded at one of the three sites (SNc, VTA, or DLS, 550 nm lime LED, Plexon, Dallas, TX) while GCaMP6f, dLight1.1 or DA2m was recorded simultaneously only at the other implanted sites.

dF/F

Raw fluorescence for each session was pre-processed by removing rare singularities (single points > 15 STD from the mean) by interpolation to obtain F(t). To correct photometry signals for bleaching, dF/F was calculated as:

dFF(t)=F(t)F0(t)F0(t)

where F0(t) is the 200 s moving average of F(t) (Figure 2—figure supplement 2A). We tested several other complementary methods for calculating dF/F and all reported results were robust to dF/F method (see Materials and methods: dF/F method characterization and validation). To ensure dF/F signal processing did not introduce artifactual scaling or baseline shifts, we also tested several complementary techniques to isolate undistorted F(t) signals where possible and quantified the amount of signal distortion when perfect isolation was not possible (see Materials and methods: ‘dF/F method characterization and validation’, below, and Figure 2—figure supplement 2C).

dF/F method characterization and validation

dF/F calculations are intended to reduce the contribution of slow fluorescence bleaching to fiber photometry signals, and many such methods have been described (Kim et al., 2019; Mohebi et al., 2019; Soares et al., 2016). However, dF/F methods have the potential to introduce artifactual distortion when the wrong method is applied in the wrong setting. Thus, to derive an appropriate dF/F method for use in the context of the self-timed movement task, we characterized and quantified artifacts produced by four candidate dF/F techniques.

Detailed description of complementary dF/F methods

  1. Normalized baseline: a commonly used dF/F technique in which each trial’s fluorescence is normalized to the mean fluorescence during the 5 s preceding the trial.

  2. Low-pass digital filter: F0 is the low-pass, digital infinite impulse response (IIR)-filtered raw fluorescence for the whole session (implemented in MATLAB with the built-in function lowpass with fc = 5· 10–5 Hz, steepness = 0.95).

  3. Multiple baseline: a variation of Method 1, in which each trial’s fluorescence is normalized by the mean fluorescence during the 5 s preceding the current trial, as well as five trials before the current trial and five trials after the current trial.

  4. Moving average: F0 is the 200 s moving average of the raw fluorescence at each point (100 s on either side of the measured timepoint).

Although normalized baseline (Method 1) is commonly used to correct raw fluorescence signals (F) for bleaching, this technique assumes that baseline activity has no bearing on the trial outcome; however, because the mouse decides when to move in the self-timed movement task, it is possible that baseline activity may differ systematically with the mouse’s choice on a given trial. Thus, normalizing F to the baseline period would obscure potentially physiologically relevant signals. More insidiously, if baseline activity does vary systematically with the mouse’s timing, normalization can also introduce substantial amplitude scaling and y-axis shifting artifacts when correcting F with this method (Figure 2—figure supplement 2C, middle panels). Thus, Methods 2–4 were designed and optimized to isolate photometry signals minimally distorted by bleaching signals and systematic baseline differences during the self-timed movement task. Methods 2–4 produced the same results in all statistical analyses, and the moving average method is shown in all figures.

Isolating minimally-distorted photometry signals with paired trial analyses of raw fluorescence

Although slow bleaching prevents comparison of raw photometry signals (F) at one time in a behavioral session with those at another time, the time course of appreciable bleaching was slow enough in the reported behavioral sessions that minimal bleaching occurred over the course of three trials (~1 min, Figure 2—figure supplement 2A). Thus, to observe the least distorted photometry signals possible, we compared F between pairs of consecutive trials (Figure 2—figure supplement 2B-C). We compared F baseline signals between all paired trials in which an early trial (unrewarded first-lick between 0.7 and 2.9 s; abbreviated as ‘E’) was followed by a rewarded trial (first-lick between 3.4 and 7 s; abbreviated as ‘R’); this two-trial sequence is thus referred to as an ‘ER’ comparison. To ensure systematic differences did not result from subtle bleaching in the paired-trial interval, we reversed the ordering contingency and also compared all Rewarded trials preceding Early trials (‘RE’ comparison). The same systematic relationship between baseline signals and first-lick time was found for paired trials analyzed by raw F (Figure 2—figure supplement 2C, left panels).

Quantification of artifactual amplitude scaling/baseline shifts introduced by dF/F processing

Each Candidate dF/F Method was applied to the same Paired Trial datasets described above. The resulting paired-fluorescence datasets were normalized after processing (minimum dF/F = 0, maximum = 1). The amount of distortion introduced by dF/F was quantified with a Distortion Index (DI), which was calculated as:

DistortionIndex,DI(t)=|F(t)dF/F(t)|

where F(t) and dF/F(t) are the normalized, paired-trial raw fluorescence signal or dF/F signal at time t, respectively. t spanned from the beginning of the n-1th trial (–20 s) to the end of the nth trial (20 s), aligned to the cue of the nth trial (Figure 2—figure supplement 2C, bottom panels). The DI shown in plots has been smoothed with a 200 ms moving average kernel for clarity.

As expected, normalizing fluorescence to the baseline period (normalized baseline) erased the correlation of baseline dF/F signals with first-lick time (Figure 2—figure supplement 2C, middle panels). More insidiously, this also resulted in distortion of GCaMP6f dynamics during the timing interval, evident in the diminished difference between E-signals compared to R-signals relative to the shapes observed in the raw fluorescence paired-trial comparison (Figure 2—figure supplement 2C, middle-bottom panel). However, dF/F Methods 2–4 visually and quantitatively recapitulated the dynamics observed in the raw fluorescence comparison (Figure 2—figure supplement 2C, right panels).

These results were corroborated by time-in-session permutation tests in which datasets for single sessions were divided into thirds (beginning of session, middle of session, and end of session). The differences between baseline and ramping dynamics observed in whole-session averages were present even within these shorter blocks of time within the session (i.e., faster ramping and elevated baseline signals on trials with earlier self-timed licks). Furthermore, permutation tests in which the block identity (beginning, middle, end) was shuffled showed that this pattern held when trials with earlier first-licks from the end of the session were compared with trials with later first-licks from the beginning of the session (and vice versa).

Normalized dF/F for comparing dopamine sensor signals

DA2m was about twice as bright as dLight1.1, and thus generally yielded larger and less noisy dF/F signals. To compare the two extracellular dopamine sensors in the same plot, dF/F was normalized for each signal by the amplitude of its lick-related transient. dF/F was calculated as usual, and then the mean baseline-to-transient peak amplitude was measured for trials with first-licks occurring between 2 and 3 s. Percentage NdF/F is reported as the percentage of this amplitude.

Dopamine sensor kinetics

dLight1.1 is an extracellular dopamine sensor derived from the dopamine-1-receptor, and has fast reported kinetics: rise t1/2 = 9.5 ± 1.1 ms, decay t1/2 = 90 ± 11 ms (Patriarchi et al., 2018). DA2m is a new extracellular dopamine indicator derived from the dopamine-2-receptor, which provides brighter signals. DA2m signals have been reported to decay slowly in slice preparations but are much faster in vivo, presumably because endogenous dopamine-clearance mechanisms are preserved: reported rise t1/2 ~50 ms, decay t1/2 ~360 ms in freely behaving mice; decay t1/2 ~190 ms in head-fixed Drosophila (Sun et al., 2020). To estimate the dopamine-sensor kinetics in our head-fixed mice, we examined the phasic fluorescence transient occurring on unrewarded first-licks (0.5–3.3 s), which showed a stereotyped fast rise and decay with both sensors (Figure 2—figure supplement 3D-E). While the transient was somewhat complex, reminiscent of phasic burst-pause responses sometimes observed for movement-related DAN activity (Coddington and Dudman, 2018; Coddington and Dudman, 2019), we measured the time for average fluorescence to decay from the peak of the transient to half the baseline-to-peak amplitude. We found decay t1/2~75 ms for dLight1.1 and t1/2~125 ms for DA2m (Figure 3—figure supplement 1). Given that the dopaminergic ramping signals in our study evolved over several seconds, the kinetics of both dopamine sensors are thus fast enough that they should not have caused appreciable distortion of the slow ramping dynamics.

Pearson’s correlation of baseline/lamp-off-to-cue interval signals to first-lick time

The mean SNc GCaMP6f signal during the ‘baseline’ (2 s interval before the lamp-off event) or minimum lamp-off interval (‘LOI’; –0.4 s to 0 s, the cue-time) was compared to the first-lick time for pooled trials in Figure 2C by calculating the Pearson correlation coefficient. There were at least 700 trials in each pooled set of trials (0.75–4 s included).

DAN signal encoding model

To test the independent contribution of each task-related input to the photometry signal and to select the best model, we employed a nested fitting approach, in which each dataset was fit multiple times (in ‘nests’), with models becoming progressively more complex in subsequent nests. The nests fit to the GCaMP6f photometry data employed the inputs X(j) at each jth nest:

  • Null Model: X(0) = x0

  • Nest 1: X(1) = X(0)+ tdTomato (tdt)

  • Nest 2: X(2) = X(1)+ cue + first-lick

  • Nest 3: X(3) = X(2)+ EMG/accelerometer

  • Nest 4: X(4) = X(3)+ time-dependent baseline offset

  • Nest 5: X(5) = X(4)+ stretch representing percentages of interval

Overfitting was penalized by ridge regression, and the optimal regularization parameter for each nest was obtained by five-fold cross-validation to derive the final model fit for each session. Model improvement by each input was assessed by the percentage loss improvement at the nest where the input first appeared compared to the prior nest. The loss improvement of Nest 1 was compared to the Null Model (the average of the photometry timeseries). The nested model of tdt control photometry signals was the same, except Nest 1 was omitted.

The GLM for each nest takes the form:

Y=ΘX(j)

where Y is the 1xn vector of the photometry signal across an entire behavioral session (n is the total number of sampled timepoints); X(j) is the dxn design matrix for nest j, where the rows correspond to the dj predictors for nest j and the columns correspond to each of the n sampled timepoints of Y; and ϴ is the dx1 vector of fit weights.

Y is the concatenated photometry timeseries taken from trial start (lamp-off) to the time of first-lick. Because of day-to-day/mouse-to-mouse variation (ascribable to many possible sources, for example, different neural subpopulations, expression levels, behavioral states, etc.), each session was fit separately.

The dj design matrix predictors were each scaled (maximum amplitude 1) and grouped by input to the model. The timing-independent inputs were: 1. Null offset (x0, 1 predictor), 2. tdt (1 predictor), 3. cue (24 predictors), 4. first-lick (28 predictors), and 5. EMG/accelerometer (44 predictors). The timing-dependent inputs were: 6. timing-dependent baseline offset (1 predictor), 7. stretch (500 predictors).

To reduce the number of predictors, the cue, first-lick and EMG/accelerometer predictors (Figure 5—figure supplement 1C) were composed from sets of basis kernels as described previously (Park et al., 2014; Runyan et al., 2017). The cue basis kernels were spaced 0 to 500 ms post-cue, and first-lick basis kernels were spaced –500 to 0 ms relative to first-lick, the typically-observed windows of stereotypical sensory and motor-related neural responses. For nuisance movements (EMG/accelerometer), events were first discretized by thresholding (Figure 5—figure supplement 1B) and then convolved with basis kernels spanning –500 to 500 ms around the event. This window was consistent with the mean movement-aligned optical artifact observed in the tdt channel. The timing-dependent baseline offset was encoded as a constant offset spanning from lamp-off until first-lick, with amplitude taken as linearly proportional to the timed interval on the current trial. The timing-dependent stretch input was composed of 500 predictors, with each predictor containing 1’s tiling 0.05% of the cue-to-lick interval, and 0’s otherwise (Figure 5—figure supplement 1D). Importantly, the stretch was not constrained in any way to form ramps.

Basis sets were optimized to minimize Training Loss, as calculated by mean squared error of the unregularized model:

argminX(j)[Training Loss(θ)=1n(YθX(j))2]

Superfluous basis set elements that did not improve Training Loss compared to the Null Model were not included in the final model. Goodness of the training fit was assessed by Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), R2, and Training Loss. The optimal, regularized model for each nest/session was selected by five-fold cross-validation in which the regularization parameter, λj, was optimized for minimal average Test Loss:

argminλj[TestLoss(θ,λj)=1n(YθX(j))2+λj|θ|2]

Test Loss for each optimal model was compared across nests to select the best model for each session. Models were refit with the optimal λj to obtain the final fit.

Model error was simulated 1,000x by redrawing ϴ coefficients consistent with the data following the method described by Gelman and Hill, 2006, and standard errors were propagated across sessions. The absolute value of each predictor was summed and divided by the total number of predictors for that input to show the contribution of the input to the model (Figure 5—figure supplement 1G). To simulate the modeled session’s photometry signal for each nest j, Yfit was calculated as ϴX(j) and binned by the time of first-lick relative to the cue. The error in the simulation was shown by calculating Yfitsim = ϴsimX(j) for 300 simulated sets of ϴsim.

Principal component analysis (PCA)

Unsmoothed ramping intervals for photometry timeseries were subjected to PCA and reconstructed with the first three principal components (PCs). To derive a PCA fit matrix with ramping intervals of the same number of samples, the length of each trial was scaled up by interpolation to the maximum ramping interval duration (5,700 samples):

7s(trialduration)0.7s(cuebuffer)0.6s(first lickbuffer)=5.7s(maximumrampinginterval)

Following PC-fitting, datasets were down-sampled to produce a fit of the correct time duration. Trials where the ramping interval was <0.1 s were excluded to exclude noise from down-sampling.

First-lick time decoding model

A nested, generalized linear model was derived to predict the first-lick time on each trial in a session and to quantify the contribution of previous reward history and photometry signals to the prediction. The model was of the form:

log(y)=bx

where y is the first-lick time, b is a vector of fit coefficients and x is a vector of predictors. The nested model was constructed such that predictors occurring further back in time (such as reward history) and confounding variables (such as tdt photometry signals) were added first to determine the additional variance explained by predictors occurring closer to the time of first-lick, which might otherwise obscure the impact of these other variables. The predictors, in order of nesting, were:

  • Nest 0: b0 (Null model, average log-first-lick time)

  • Nest 1: b1 = b0 + first lick time on previous trial (trial ‘n-1’)

  • Nest 2–5: b2 = b1 + previous trial outcome (1,0)*

  • Nest 6: b3 = b2 + median photometry signal in 10 s window before lamp-off (‘ITI’)

  • Nest 7: b4 = b3 + median photometry signal from lamp-off to cue (‘lamp-off interval’)

  • Nest 8: b5 = b4 + tdt threshold crossing time**

  • Nest 9: b6 = b5 + GCaMP6f threshold crossing time**

where all predictors were normalized to be in the interval (0,1).

* Outcomes included (in order of nest): Reaction (first-lick before 0.5 s), Early (0.5–3.333 s), Reward (3.333–7 s), ITI (7–17 s). No-lick was implied when all four outcomes were encoded as zeros.

** Details on threshold-crossing time and alternative models included in Materials and methods: ‘Derivation of threshold and alternative decoding models’.

To exclude the sensory- and motor-related transients locked to the cue and the first-lick events in the threshold-crossing nests, the ramping interval was conservatively defined as 0.7 s post-cue up until 0.6 s before first-lick, and the minimum ramping interval for fitting was 0.1 s. Thus, for a trial to be included in the model, the first lick occurred between 1.4 s to 17 s (end of trial).

Initial model goodness of fit was assessed by R2, mean-squared loss and BIC. Models were five-fold cross-validated with ridge regression at each nest to derive the final models, as described above. 95% confidence intervals on model coefficients were calculated by two-sided t-test with standard errors propagated across sessions.

Derivation of threshold and alternative decoding models

Single-threshold models

As a metric of the predictive power of ramping DAN signals on first-lick time, we derived a threshold-crossing model. A threshold-crossing event was defined as the first time after the cue when the photometry signal exceeded and remained above a threshold level up until the time of first-lick on each trial. Importantly, while the analysis approach is reminiscent of pacemaker-accumulator models for timing, we make no claims that the analysis is evidence for pacemaker-accumulator models. Rather threshold-crossing times provided a convenient metric to compare the rate of increase in signals between trials.

Photometry timeseries for GCaMP6f and tdt were de-noised by smoothing with a 100 ms Gaussian kernel (kernel was optimized by grid screen of kernels ranging between 0 and 200 ms to minimize noise without signal distortion). To completely exclude the sensory- and motor-related transients locked to the cue and the first-lick events, the ramping interval was conservatively defined as 0.7 s post-cue up until 0.6 s before the first-lick. To eliminate chance crossings due to noise, we imposed a stiff, debounced threshold condition: to be considered a threshold crossing event, the photometry signal had to cross the threshold from low-to-high and remain above this level until the end of the ramping interval.

To derive an unbiased threshold for each session, we tested 100 evenly-spaced candidate threshold levels spanning the minimum-to-maximum photometry signal during the ramping interval for each session. Depending on threshold level, some trials never crossed, that is, signal always remained below threshold or started and ended above threshold. Thus, the lowest candidate threshold for which there was a maximum number of trials crossing during the timing interval was selected as the ‘mid-level’ threshold-crossing point. This threshold was specific to each photometry signal tested on each session. Threshold-crossing time was included in the decoding model as the normalized time on the ramping interval (0,1). If a trial never crossed threshold, it was encoded as a zero. If no trials ever crossed threshold, the threshold predictor was encoded as a vector of ones, thus penalizing the model for an additional predictor but providing no new information.

Multi-threshold model

An alternative model employed three unbiased thresholds: (1) the lowest threshold with ≥50 trials crossing (‘min’); (2) the lowest threshold with the most crossings (‘mid,’ described above); and (3) the highest threshold with ≥50 trials crossing (‘max’). For tdt datasets, trials rarely met the monotonic threshold constraint (usually the signals oscillated above and below the threshold throughout the ramping interval, failing to meet the debouncing constraint). Thus, to include tdt signals as conservatively as possible, we relaxed the 50-trial minimum constraint, taking the threshold with the most trials crossing, which was usually around 10 or fewer. The addition of more thresholds did not substantially improve the cross-validated model compared to the single-threshold model (Figure 6—figure supplement 1).

Principal component analysis (PCA) threshold-crossing models

In another version of the decoding model, the threshold-crossing procedures were applied to ramping intervals fit with the first three PCs (as described in Materials and methods: ‘Principal Component Analysis (PCA)’) to derive a PCA version of the single-threshold and multi-threshold models. PCA analysis on tdt datasets showed no consistent PCs, and thus these PCs were not included in the decoding model. Instead, the actual tdt data was employed in the threshold model as in the other models described.

Hierarchical Bayesian modeling of single-trial dynamics

The probability of each single-trial SNc GCaMP6f signal belonging to a ramp vs. step model class was determined via Hierarchical Bayesian Model fitting with probabilistic programs written in the novel probabilistic programming language, Gen.jl, which is embedded in the Julia Programming Language (Cusumano-Towner et al., 2019). The top of the model hierarchy was the model class (linear ramp vs. step function) and the lower level was the respective parameterization of the two model classes (described below).

The probability of the step vs. ramp model class was inferred with data-driven inference. The best fit (step or ramp and parameterization) for each trial was calculated across 20 iterations (Gen Traces) of hierarchical modeling with 50 rounds of probabilistic refinement (computation via Gen Importance Resampling) per iteration (in model testing, models typically converged to their steady-state probability of model class within only 30 rounds of refinement, but 50 rounds were used conservatively to reduce the likelihood of suboptimal classifications).

Data-driven inference procedure

Each iteration of model fitting began at the top level of the hierarchy with a coin toss: with 50% probability, the probabilistic program would initialize with a model of either the Ramp or Step class. For data-driven inference, a Gen Proposal for the parameterization for this model class was then probabilistically generated. Data-driven proposals were designed to improve fitting efficiency and reduce computation time, allowing for faster convergence and better model fits as determined by the fit log-likelihood. The proposal heuristics were as follows:

Ramp model

A data-driven proposal was generated by dynamic noise random sample consensus (RANSAC; Cusumano-Towner and Mansinghka, 2018) with additional data-driven constraints (see function ransac_assist_model_selection_proposal; in the Julia Language Github files):

Constraints:

1. SLOPE, a. The maximum data-supported slope was used to set the variance of slope sampling:

aGaussian(RANSACsampledslope,maxslope2)

where maxslope was defined as the difference of the maximum and minimum signal within the trial dataset divided by the total duration of the trial (by definition, the largest slope supported by the data).

2. INTERCEPT, b. The initial search for the intercept (“bmax”) was calculated as the intercept for the calculated maxslope parameter, and this was used to set the noise level on sampling of the intercept parameter:

bGaussian(RANSACsampledintercept,bmax2)

3. NOISE, σ. Parametrized noise level was sampled as:

σBeta(a,β)

where ɑ,β are the parameters of the beta distribution with mode = std(signal).

Step model

The data-driven proposal included two constraints/heuristics:

  1. STEPTIME. Derivative constraint: To avoid sampling all unlikely step-times, steptimes were sampled uniformly from the timepoints where the derivative of the signal was in the highest 5% of the signal’s derivative across the trial dataset:steptimeuniform (indicesof95thpercentileofderivativeofthesignal)

  2. LEFT and RIGHT SEGMENTS. Once a steptime was sampled, likely left and right segment amplitudes were sampled near the mean of the signal on either side of the step:leftGaussian(mean(signalleftofsteptime),std(signalleft ofsteptime))rightGaussian(mean(signalrightofsteptime),std(signalright ofsteptime))

  3. NOISE, σ. The noise level was sampled as in the ramp model, σ ~ Beta(ɑ,β), except ɑ,β were the parameterization of a Beta distribution with mode equal to the standard deviation of the signal left of steptime.

After model initialization for each Trace, 50 rounds of Importance Resampling of the hierarchical model were then conducted, each time randomly generating ramp or step hypotheses from the proposal heuristics. On each round, the best fitting hypothesis was retained, such that each of the 20 Trace iterations of model classification returned one optimized model from the 50 rounds of Importance Resampling.

The probability of the model class for each single-trial was then defined as the proportion of the 20 Trace iterations that found the optimal model to be derived from that model class (e.g., if the model returned 15 step-fits and five ramp-fits, the p(ramp) was 0.25). Examples of the 20 Trace iterations for two sample trials are shown in Figure 6—figure supplement 2B.

To determine whether the step model detected step-functions in the GCaMP6f dataset, the step model was inferred alone to find step-fits for every trial, and single-trial signals were realigned to the optimal steptime (GCaMP6f, tdTomato, EMG, Figure 6—figure supplement 4A-B).

Single-trial dynamics analysis with geometric modeling (‘Multiple threshold modeling’)

The multi-threshold procedure described above was also employed to determine whether single-trial ramping dynamics were more consistent with a continuous ramp vs. discrete step dynamic on single-trials. The threshold-crossing time for each trial was regressed against its first-lick time, and the slope of this relationship was reported, as well as the variance explained.

Single-trial variance analysis for discrete step dynamics

For discrete step single-trial dynamics to produce ramping on average, the time of the step across trials must be distributed throughout the trial interval (importantly, a peri-motor step occurring consistently just before first-lick cannot give rise to continuous ramping dynamics on average). As such, the variance in the GCaMP6f signals across trials for similar first-lick times should be minimal near the time of the cue (when few trials have stepped) and near the time of the first-lick (when all of the trials have stepped). This predicts an inverted-U shaped relationship of signal variance across trials vs. position in the timing interval.

To compare variance across trials equitably, trials were first aligned to the cue and pooled by first-lick time in pools of 1 s each (1–2 s, 2–3 s, etc.), truncated at the earliest first-lick time within the pool. The variance in GCaMP6f signals across trials within a pool was quantified in 10% percent increments of time from the cue up to the earliest first-lick time in the pool (i.e., 1–2 s pool truncated at 1 s, divided into 100 ms increments). Measuring variance by percent of elapsed time within pool allowed pooling of trials across the entire session. The shape of the variance vs. percent of timed interval elapsed was compared to the inverted-U shape prediction to assess for discrete step dynamics.

Optogenetics—determining the physiological range for activation experiments

To test whether optogenetic manipulations during the self-timing task were in the physiological range, we assessed the magnitude of the effect of activation on dopamine release in the DLS by simultaneous photometry recordings with optical activation (Figure 7—figure supplement 2). In two DAT-cre mice, we expressed ChrimsonR bilaterally in SNc DANs and the fluorescent dopamine indicator dLight1.1 bilaterally in DLS neurons. SNc cell bodies were illuminated bilaterally (ChrimsonR 550 nm lime or 660 nm crimson, 0.5–5 mW) on 30% of trials (10 Hz, 10 or 20 ms up-time starting at cue onset and terminating at first-lick). dLight1.1 was recorded with 35 µW 475 nm blue LED light at DLS. To avoid crosstalk between the stimulation LED and the photometry recording site, the brief stimulation up-times were omitted from the photometry signal and the missing points filled by interpolation between the adjacent timepoints.

In a few preliminary sessions, we also explored whether we could evoke short-latency licking (i.e., within a few hundred milliseconds of the stimulation) if light levels were increased above the physiological range for DAN signals. Rather than eliciting immediate licking, higher light levels produced bouts of rapid, nonpurposive limb and trunk movements throughout stimulation, and task execution was disrupted. The animals appeared to have difficulty coordinating the extension of the tongue to touch the lick spout. Simultaneous DLS dopamine detection showed large, sustained surges in dopamine release throughout the period of stimulation, with an average amplitude comparable to that of the reward transient (Figure 7—figure supplement 2, right). This extent of dopamine release was never observed during unstimulated trials. Consequently, to avoid overstimulation in activation experiments, we kept light levels well below those that generated limb and trunk movements.

Optogenetics—naive/expert control sessions

To determine whether optogenetic stimulation directly elicited or prevented licking, licking behavior was first tested outside the context of the self-timed movement task on separate sessions in the same head-fixed arena but with no cues or behavioral task. Opsin-expressing mice were tested before any exposure to the self-timed movement task (‘Naive’) as well as after the last day of behavioral recording (‘Expert’). In ChR2 control sessions, stimulation (5 mW 425 nm light, 3 s duration, 10 Hz, 20% duty cycle) was applied randomly at the same pace as in the self-timed movement task. stGtACR2 control sessions were conducted similarly (12 mW 425 mW light, 3 s duration, constant illumination); but to examine if inhibition could block ongoing licking, we increased the baseline lick-rate by delivering juice rewards randomly (5% probability checked once every 5 s).

Optogenetics—self-timed movement task

SNc DANs were optogenetically manipulated in the context of the 3.3 s self-timed movement task. To avoid overstimulation, light levels were adjusted to be subthreshold for eliciting overt movements as described above, and mice were not stimulated on consecutive days.

Activation

SNc cell bodies were illuminated bilaterally (ChR2: 0.5–5 mW 425 nm blue LED light; ChrimsonR 550 nm lime or 660 nm crimson) on 30% of trials (10 Hz, 10 or 20% duty cycle, starting at cue onset and terminating at first-lick). DAN terminals in DLS were stimulated bilaterally via tapered fiber optics on separate sessions.

Inactivation

SNc cell bodies were illuminated bilaterally (stGtACR2: 12 mW 425 nm blue light) on 30% of trials (constant illumination starting at cue onset and terminating at first lick).

Quantification of optogenetic effects

The difference in the distribution of trial outcomes between stimulated and unstimulated trials on each session was quantified in four ways.

  1. 2-Sample Unsigned Kolmogorov-Smirnov Test.

  2. Difference in empirical continuous probability distribution function (cdf). The difference in the integral of the stimulated and unstimulated cdf (dAUC) was calculated for each session from 0.7 to 7 s. Effect size was quantified by permutation test, wherein the identity of each trial (stimulated or unstimulated) was shuffled, and the distribution of dAUCs for the permuted cdfs was calculated 10,000x. Results were reported for all sessions.

  3. Difference in mean movement time. Movement times on stimulated and unstimulated trials were pooled and the distribution of movement time differences was determined by non-parametric bootstrap, in which a random stimulated and unstimulated trial were drawn from their respective pools 1,000,000x, and the difference taken. The mean of each session’s bootstrapped distribution was compared across sessions by the 1,000,000x bootstrapped difference of the mean between sessions of different categories.

  4. Difference in median movement time. Same as above but with median.

Single-trial probabilistic movement-state decoding model

The probability of transitioning to a movement state, st = 1, at time = t was decoded with a logistic generalized linear model of the form:

p(st=1)=logit(bXt)

where Xt is a vector of predictors for the timepoint, t, and b is the vector of fit coefficients. The vector of predictors was comprised of the GCaMP6f signal at every timepoint (the current time, t) as well as the signal history, represented as 200 ms-wide signal averages moving back in time from t. Previous trial history (n-1th and n-2th first-lick times and reward/no-reward outcomes) did not contribute significantly to the model during model selection and were thus omitted (see Model Selection, below).

Movement state, st, was defined as a binary variable, where st=0 represented all timepoints between the cue up until 160 ms before the first-lick detection (to exclude any potential peri-movement responses), and st=1 represented the timepoint 150 ms before the first-lick. Because there were many more st=0 than st=1 samples in a session, st=0 points were randomly down-sampled such that states were represented equally in the fit. To avoid randomly sampling a particular model fit by chance, each dataset was fit on 100 randomly down-sampled (bootstrapped) sets, and the average fit across these 100 sets was taken as the model fit for the session.

GCaMP6f signals were smoothed with a 100 ms gaussian kernel and down-sampled to 100 Hz. The GCaMP6f predictors were then nested into the model starting with those furthest in time from the current timepoint, t:

  • Nest 0: b0 (Null model)

  • Nest 1: b1 = b0 + mean GCaMP6f 1.8:2.0 s before current time = t

  • Nest 2: b2 = b1 + mean GCaMP6f 1.6:1.79 s before current time = t

  • Nest 3: b3 = b2 + mean GCaMP6f 1.4:1.59 s before current time = t

  • Nest 4: b4 = b3 + mean GCaMP6f 1.2:1.39 s before current time = t

  • Nest 5: b5 = b4 + mean GCaMP6f 1.0:1.19 s before current time = t

  • Nest 6: b6 = b5 + mean GCaMP6f 0.8:0.99 s before current time = t

  • Nest 7: b7 = b6 + mean GCaMP6f 0.6:0.79 s before current time = t

  • Nest 8: b8 = b7 + mean GCaMP6f 0.4:0.59 s before current time = t

  • Nest 9: b9 = b8 + mean GCaMP6f 0.2:0.39 s before current time = t

  • Nest 10: b10 = b9 + GCaMP6 f signal at current time = t

Nesting the predictors from most distant in time to most recent permitted observation of the ability of more proximal signal levels to absorb the variance contributed by more distant signal history.

The fitted hazard function was then found as the average probability of being in the movement state across all trials in the session as calculated from the average model fit. Because st = 0 states were significantly downsampled during fitting, this rescaled the fit hazard. Thus, to return the fit hazard to the scale of the hazard function calculated from the behavioral distribution, both the fit hazard and true hazard function were normalized on the interval (0,1), and the goodness of fit was assessed by R2 comparison of the fit and true hazard functions. This metric was similar between individual session fits as well as the grand-average fit across all animals and sessions.

To guard against overfitting, this procedure was repeated on the same datasets, except the datasets were shuffled before fitting to erase any non-chance correlations between the predictors and the predicted probability of being in the movement state.

Model selection

To evaluate the contribution of task performance history to the probability of being in the movement state at time = t, we could not observe every timepoint in the GCaMP6f trial period timeseries as we did in the final model, because the trial history for a given timepoint was the same for all other points in the trial; hence this created bias, because the movement state st = 1 was represented for all trials, but the likelihood of the a trial’s 0 state being represented after down-sampling was dependent on the duration of the trial (i.e., first-lick time). Consequently, model selection was executed on a modified version of the model that ensured that each trial would only be represented one time at most in the fit. Because this greatly reduced the power of the model, model selection was conducted on sessions from the two animals with the highest S:N ratio and most trials to ensure the best chance of detecting effects of each predictor (Figure 8—figure supplement 1).

The set of permutations of GCaMP6f signal and task history were fit separately, and the best model selected by BIC (though notably AIC and AICc were in agreement with the BIC selection). Each model was fit in ‘time-slices’—windows of 500 ms from the time of the cue up until the first-lick. Only one point for each trial was fit within this window to ensure the movement state within the window was uniquely represented. For each time-slice model, the GCaMP6f signal for each trial was thus averaged within the time-slice window, and the movement state was taken as 1 only if the movement state occurred sometime within the window. The model fit for a session was taken as the average model fit across each of the time-slices. Notably, a time-slice required a sufficient number of trials to be present (either in the st=0 or terminating in the movement state st=1) for the fit to converge; once the first-lick occurred for a trial, it did not contribute data to later time-slices. The source data files for Figure 8—figure supplement 1 contain plots of all time-slice coefficient fits, including for models with insufficient numbers of trials to converge.

Code availability

All custom behavioral software is available at https://github.com/harvardschoolofmouse/HSOMbehaviorSuite (Hamilos, 2021a, copy archived at swh:1:rev:5a9b981afb658cfc05277b1a257e1733f274c9a2). All custom analysis tools are available with sample datasets at https://github.com/harvardschoolofmouse/eLife2021 (Hamilos, 2021b, copy archived at swh:1:rev:fa4b2cdfd6d6a55b82124f86d2599faebccd4eee).

Acknowledgements

We thank D Chicharro, JG Mikhael, SJ Gershman, J Drugowitsch, K Reinhold, S Panzeri, R Bliss and EN Brown for discussions on analytical methods; J Tenenbaum, C Wong, and A Lew for their instruction and advice pertaining to probabilistic programming in Gen; V Berezovskii, J LeBlanc, T LaFratta, O Mazor, P Gorelik, J Markowitz, A Lutas, KW Huang, L Hou, SJ Lee and NE Ochandarena for technical assistance; and B Sabatini, C Harvey, SR Datta, M Andermann, L Tian and W Regehr for reagents. The work was supported by NIH grants UF-NS108177 and U19-NS113201, and NIH core grant EY-12196. AEH was supported by a Harvard Lefler Predoctoral Fellowship and a Stuart HQ & Victoria Quan Predoctoral Fellowship at Harvard Medical School. The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

Allison E Hamilos, Email: allison_hamilos@hms.harvard.edu.

John A Assad, Email: jassad@hms.harvard.edu.

Jesse H Goldberg, Cornell University, United States.

Kate M Wassum, University of California, Los Angeles, United States.

Funding Information

This paper was supported by the following grants:

  • National Institutes of Health UF-NS108177 to John Assad.

  • National Institutes of Health U19 NS113201 to John Assad.

  • National Institutes of Health EY-12196 to John Assad.

  • Lefler Predoctoral Fellowship to Allison E Hamilos.

  • Stuart H.Q. and Victoria Quan Predoctoral Fellowship to Allison E Hamilos.

Additional information

Competing interests

No competing interests declared.

No competing interests declared.

co-founder of OptogeniX, which produces the tapered optical fibers used in some experiments.

Author contributions

Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing, performed all experiments, wrote the original software, trained, mentored and supervised G.S. and Y.H.

Investigation, assisted with experiments using tapered fiber optics.

Investigation, assisted with optogenetic no-opsin control experiments.

Resources, developed the dopamine sensor, DA2m, developed the dopamine sensor, DA2m.

Resources, developed the dopamine sensor, DA2m, developed the dopamine sensor, DA2m.

Conceptualization, Funding acquisition, Methodology, Resources, Supervision, Writing – original draft, Writing – review and editing.

Ethics

All experiments and protocols were approved by the Harvard Institutional Animal Care and Use Committee (IACUC protocol #05098, Animal Welfare Assurance Number #A3431-01) and were conducted in accordance with the National Institutes of Health Guide for the Care and Use of Laboratory Animals. Surgeries were conducted under aseptic conditions with isoflurane anesthesia, and every effort was taken to minimize suffering.

Additional files

Transparent reporting form

Data availability

All datasets supporting the findings of this study are publicly available (DOI: 10.5281/zenodo.4062749). Source data files have been provided for all figures.

The following dataset was generated:

Hamilos AE, Spedicato G, Hong Y, Assad JA. 2020. Original single session datasets from "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements.". Zenodo.

References

  1. Albin RL, Young AB, Penney JB. The functional anatomy of basal ganglia disorders. Trends in Neurosciences. 1989;12:366–375. doi: 10.1016/0166-2236(89)90074-x. [DOI] [PubMed] [Google Scholar]
  2. Anger D. The dependence of interresponse times upon the relative reinforcement of different interresponse times. Journal of Experimental Psychology. 1956;52:145–161. doi: 10.1037/h0041255. [DOI] [PubMed] [Google Scholar]
  3. Bäckman CM, Malik N, Zhang Y, Shan L, Grinberg A, Hoffer BJ, Westphal H, Tomac AC. Characterization of a mouse strain expressing Cre recombinase from the 3’ untranslated region of the dopamine transporter locus. Genesis. 2006;44:383–390. doi: 10.1002/dvg.20228. [DOI] [PubMed] [Google Scholar]
  4. Barter JW, Li S, Lu D, Bartholomew RA, Rossi MA, Shoemaker CT, Salas-Meza D, Gaidis E, Yin HH. Beyond reward prediction errors: the role of dopamine in movement kinematics. Frontiers in Integrative Neuroscience. 2015;9:39. doi: 10.3389/fnint.2015.00039. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Barthel C, Nonnekes J, van Helvert M, Haan R, Janssen A, Delval A, Weerdesteyn V, Debû B, van Wezel R, Bloem BR, Ferraye MU. The laser shoes: A new ambulatory device to alleviate freezing of gait in Parkinson disease. Neurology. 2018;90:e164–e171. doi: 10.1212/WNL.0000000000004795. [DOI] [PubMed] [Google Scholar]
  6. Bartholomew RA, Li H, Gaidis EJ, Stackmann M, Shoemaker CT, Rossi MA, Yin HH. Striatonigral control of movement velocity in mice. The European Journal of Neuroscience. 2016;43:1097–1110. doi: 10.1111/ejn.13187. [DOI] [PubMed] [Google Scholar]
  7. Bloxham CA, Mindel TA, Frith CD. Initiation and execution of predictable and unpredictable movements in Parkinson’s disease. Brain. 1984;107 (Pt 2):371–384. doi: 10.1093/brain/107.2.371. [DOI] [PubMed] [Google Scholar]
  8. Chandrasekaran C, Soldado-Magraner J, Peixoto D, Newsome WT, Shenoy KV, Sahani M. Brittleness in Model Selection Analysis of Single Neuron Firing Rates. bioRxiv. 2018 doi: 10.1101/430710. [DOI]
  9. Coddington LT, Dudman JT. The timing of action determines reward prediction signals in identified midbrain dopamine neurons. Nature Neuroscience. 2018;21:1563–1573. doi: 10.1038/s41593-018-0245-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Coddington LT, Dudman JT. Learning from Action: Reconsidering Movement Signaling in Midbrain Dopamine Neuron Activity. Neuron. 2019;104:63–77. doi: 10.1016/j.neuron.2019.08.036. [DOI] [PubMed] [Google Scholar]
  11. Coddington LT, Dudman JT. In Vivo Optogenetics with Stimulus Calibration. Methods in Molecular Biology. 2021;2188:273–283. doi: 10.1007/978-1-0716-0818-0_14. [DOI] [PubMed] [Google Scholar]
  12. Cusumano-Towner MF, Mansinghka VK. Using Probabilistic Programs as Proposals. arXiv. 2018 https://arxiv.org/abs/1801.03612
  13. Cusumano-Towner MF, Saad FA, Lew AK, Mansinghka VK. PLDI ’19. Gen: a general-purpose probabilistic programming system with programmable inference; 2019. pp. 221–236. [DOI] [Google Scholar]
  14. da Silva JA, Tecuapetla F, Paixão V, Costa RM. Dopamine neuron activity before action initiation gates and invigorates future movements. Nature. 2018;554:244–248. doi: 10.1038/nature25457. [DOI] [PubMed] [Google Scholar]
  15. Deecke L. Planning, preparation, execution, and imagery of volitional action. Brain Research. Cognitive Brain Research. 1996;3:59–64. doi: 10.1016/0926-6410(95)00046-1. [DOI] [PubMed] [Google Scholar]
  16. DeLong MR. Primate models of movement disorders of basal ganglia origin. Trends in Neurosciences. 1990;13:281–285. doi: 10.1016/0166-2236(90)90110-v. [DOI] [PubMed] [Google Scholar]
  17. Dews PB, Morse WH. Some observations on an operant in human subjects and its modification by dextro amphetamine. Journal of the Experimental Analysis of Behavior. 1958;1:359–364. doi: 10.1901/jeab.1958.1-359. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Dodson PD, Dreyer JK, Jennings KA, Syed ECJ, Wade-Martins R, Cragg SJ, Bolam JP, Magill PJ. Representation of spontaneous movement by dopaminergic neurons is cell-type selective and disrupted in parkinsonism. PNAS. 2016;113:E2180–E2188. doi: 10.1073/pnas.1515941113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Dudman JT, Krakauer JW. The basal ganglia: from motor commands to the control of vigor. Current Opinion in Neurobiology. 2016;37:158–166. doi: 10.1016/j.conb.2016.02.005. [DOI] [PubMed] [Google Scholar]
  20. Eckard ML, Kyonka EGE. Differential reinforcement of low rates differentially decreased timing precision. Behavioural Processes. 2018;151:111–118. doi: 10.1016/j.beproc.2018.02.022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Emmons EB, De Corte BJ, Kim Y, Parker KL, Matell MS, Narayanan NS. Rodent Medial Frontal Control of Temporal Processing in the Dorsomedial Striatum. The Journal of Neuroscience. 2017;37:8718–8733. doi: 10.1523/JNEUROSCI.1376-17.2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Engelhard B, Finkelstein J, Cox J, Fleming W, Jang HJ, Ornelas S, Koay SA, Thiberge SY, Daw ND, Tank DW, Witten IB. Specialized coding of sensory, motor and cognitive variables in VTA dopamine neurons. Nature. 2019;570:509–513. doi: 10.1038/s41586-019-1261-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Fahn S. Classification of movement disorders. Movement Disorders. 2011;26:947–957. doi: 10.1002/mds.23759. [DOI] [PubMed] [Google Scholar]
  24. Fiorillo CD, Tobler PN, Schultz W. Discrete coding of reward probability and uncertainty by dopamine neurons. Science. 2003;299:1898–1902. doi: 10.1126/science.1077349. [DOI] [PubMed] [Google Scholar]
  25. Fiorillo CD. Transient activation of midbrain dopamine neurons by reward risk. Neuroscience. 2011;197:162–171. doi: 10.1016/j.neuroscience.2011.09.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Freeze BS, Kravitz AV, Hammack N, Berke JD, Kreitzer AC. Control of basal ganglia output by direct and indirect pathway projection neurons. The Journal of Neuroscience. 2013;33:18531–18539. doi: 10.1523/JNEUROSCI.1278-13.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Gallistel CR, Gibbon J. Time, rate, and conditioning. Psychological Review. 2000;107:289–344. doi: 10.1037/0033-295x.107.2.289. [DOI] [PubMed] [Google Scholar]
  28. Gelman A, Hill J. Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge: Cambridge University Press; 2006. [DOI] [Google Scholar]
  29. Gershman SJ. Dopamine ramps are a consequence of reward prediction errors. Neural Computation. 2014;26:467–471. doi: 10.1162/NECO_a_00559. [DOI] [PubMed] [Google Scholar]
  30. Grillner S, Robertson B. The Basal Ganglia Over 500 Million Years. Current Biology. 2016;26:R1088–R1100. doi: 10.1016/j.cub.2016.06.041. [DOI] [PubMed] [Google Scholar]
  31. Guo ZV, Hires SA, Li N, O’Connor DH, Komiyama T, Ophir E, Huber D, Bonardi C, Morandell K, Gutnisky D, Peron S, Xu N, Cox J, Svoboda K. Procedures for behavioral experiments in head-fixed mice. PLOS ONE. 2014;9:e88678. doi: 10.1371/journal.pone.0088678. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Guru A, Seo C, Post RJ, Kullakanda DS, Schaffer JA, Warden MR. Ramping Activity in Midbrain Dopamine Neurons Signifies the Use of a Cognitive Map. bioRxiv. 2020 doi: 10.1101/2020.05.21.108886. [DOI]
  33. Hallett M, Khoshbin S. A physiological mechanism of bradykinesia. Brain. 1980;103:301–314. doi: 10.1093/brain/103.2.301. [DOI] [PubMed] [Google Scholar]
  34. Hallett M. Volitional control of movement: the physiology of free will. Clinical Neurophysiology. 2007;118:1179–1192. doi: 10.1016/j.clinph.2007.03.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Hamid AA, Pettibone JR, Mabrouk OS, Hetrick VL, Schmidt R, Vander Weele CM, Kennedy RT, Aragona BJ, Berke JD. Mesolimbic dopamine signals the value of work. Nature Neuroscience. 2016;19:117–126. doi: 10.1038/nn.4173. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Hamilos AE, Assad JA. Application of a Unifying Reward-Prediction Error (RPE)-Based Framework to Explain Underlying Dynamic Dopaminergic Activity in Timing Tasks. bioRxiv. 2020 doi: 10.1101/2020.06.03.128272. [DOI]
  37. Hamilos A. HSOMbehaviorSuite. swh:1:rev:5a9b981afb658cfc05277b1a257e1733f274c9a2Software Heritage. 2021a https://archive.softwareheritage.org/swh:1:dir:2b3cca66cc4f73112fde4698830d5fdca38153f3;origin=https://github.com/harvardschoolofmouse/HSOMbehaviorSuite;visit=swh:1:snp:34d3ff9b18356f7b17c5aa94afccd1c17b392aff;anchor=swh:1:rev:5a9b981afb658cfc05277b1a257e1733f274c9a2
  38. Hamilos A. eLife2021. swh:1:rev:fa4b2cdfd6d6a55b82124f86d2599faebccd4eeeSoftware Heritage. 2021b https://archive.softwareheritage.org/swh:1:dir:1f3719f177d20c0d0436486a5a138636021f9f0a;origin=https://github.com/harvardschoolofmouse/eLife2021;visit=swh:1:snp:2721d9ef12140d62346e2f4eaa84de9787dd2c2f;anchor=swh:1:rev:fa4b2cdfd6d6a55b82124f86d2599faebccd4eee
  39. Hart AS, Clark JJ, Phillips PEM. Dynamic shaping of dopamine signals during probabilistic Pavlovian conditioning. Neurobiology of Learning and Memory. 2015;117:84–92. doi: 10.1016/j.nlm.2014.07.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Helassa N, Podor B, Fine A, Török K. Design and mechanistic insight into ultrafast calcium indicators for monitoring intracellular calcium dynamics. Scientific Reports. 2016;6:38276. doi: 10.1038/srep38276. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Howard CD, Li H, Geddes CE, Jin X. Dynamic Nigrostriatal Dopamine Biases Action Selection. Neuron. 2017;93:1436–1450. doi: 10.1016/j.neuron.2017.02.029. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Howe MW, Tierney PL, Sandberg SG, Phillips PEM, Graybiel AM. Prolonged dopamine signalling in striatum signals proximity and value of distant rewards. Nature. 2013;500:575–579. doi: 10.1038/nature12475. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Howe MW, Dombeck DA. Rapid signalling in distinct dopaminergic axons during locomotion and reward. Nature. 2016;535:505–510. doi: 10.1038/nature18942. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Hughes LE, Altena E, Barker RA, Rowe JB. Perseveration and choice in Parkinson’s disease: the impact of progressive frontostriatal dysfunction on action decisions. Cerebral Cortex. 2013;23:1572–1581. doi: 10.1093/cercor/bhs144. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Jaldow EJ, Oakley DA, Davey GC. Performance on two fixed-interval schedules in the absence of neocortex in rats. Behavioral Neuroscience. 1990;104:763–777. doi: 10.1037//0735-7044.104.5.763. [DOI] [PubMed] [Google Scholar]
  46. Kim HR, Malik AN, Mikhael JG, Bech P, Tsutsui-Kimura I, Sun F, Zhang Y, Li Y, Watabe-Uchida M, Gershman SJ. A Unified Framework for Dopamine Signals across Timescales. bioRxiv. 2019 doi: 10.1101/803437. [DOI] [PMC free article] [PubMed]
  47. Kirshenbaum AP, Brown SJ, Hughes DM, Doughty AH. Differential-reinforcement-of-low-rate-schedule performance and nicotine administration: a systematic investigation of dose, dose-regimen, and schedule requirement. Behavioural Pharmacology. 2008;19:683–697. doi: 10.1097/FBP.0b013e328315ecbb. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Latimer KW, Yates JL, Meister MLR, Huk AC, Pillow JW. Neuronal Modeling Single-trial spike trains in parietal cortex reveal discrete steps during decision-making. Science. 2015;349:184–187. doi: 10.1126/science.aaa4056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Latimer KW, Yates JL, Meister MLR, Huk AC, Pillow JW. Response to Comment on “Single-trial spike trains in parietal cortex reveal discrete steps during decision-making.”. Science. 2016;351:1406. doi: 10.1126/science.aad3596. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Lee IH, Assad JA. Putaminal activity for simple reactions or self-timed movements. Journal of Neurophysiology. 2003;89:2528–2537. doi: 10.1152/jn.01055.2002. [DOI] [PubMed] [Google Scholar]
  51. Lee K, Claar LD, Hachisuka A, Bakhurin KI, Nguyen J, Trott JM, Gill JL, Masmanidis SC. Temporally restricted dopaminergic control of reward-conditioned movements. Nature Neuroscience. 2020;23:209–216. doi: 10.1038/s41593-019-0567-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Libet B, Gleason CA, Wright EW, Pearl DK. Time of conscious intention to act in relation to onset of cerebral activity (readiness-potential). The unconscious initiation of a freely voluntary act. Brain. 1983;106 (Pt 3):623–642. doi: 10.1093/brain/106.3.623. [DOI] [PubMed] [Google Scholar]
  53. Lustig C, Meck WH. Chronic treatment with haloperidol induces deficits in working memory and feedback effects of interval timing. Brain and Cognition. 2005;58:9–16. doi: 10.1016/j.bandc.2004.09.005. [DOI] [PubMed] [Google Scholar]
  54. Maes EJP, Sharpe MJ, Usypchuk AA, Lozzi M, Chang CY, Gardner MPH, Schoenbaum G, Iordanova MD. Causal evidence supporting the proposal that dopamine transients function as temporal difference prediction errors. Nature Neuroscience. 2020;23:176–178. doi: 10.1038/s41593-019-0574-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Maimon G, Assad JA. A cognitive signal for the proactive timing of action in macaque LIP. Nature Neuroscience. 2006;9:948–955. doi: 10.1038/nn1716. [DOI] [PubMed] [Google Scholar]
  56. Malapani C, Rakitin B, Levy R, Meck WH, Deweer B, Dubois B, Gibbon J. Coupled temporal memories in Parkinson’s disease: a dopamine-related dysfunction. Journal of Cognitive Neuroscience. 1998;10:316–331. doi: 10.1162/089892998562762. [DOI] [PubMed] [Google Scholar]
  57. Matsumoto M, Hikosaka O. Two types of dopamine neuron distinctly convey positive and negative motivational signals. Nature. 2009;459:837–841. doi: 10.1038/nature08028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Mazzoni P, Hristova A, Krakauer JW. Why don’t we move faster? Parkinson’s disease, movement vigor, and implicit motivation. The Journal of Neuroscience. 2007;27:7105–7116. doi: 10.1523/JNEUROSCI.0264-07.2007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Meck WH. Affinity for the dopamine D2 receptor predicts neuroleptic potency in decreasing the speed of an internal clock. Pharmacology, Biochemistry, and Behavior. 1986;25:1185–1189. doi: 10.1016/0091-3057(86)90109-7. [DOI] [PubMed] [Google Scholar]
  60. Meck WH. Neuroanatomical localization of an internal clock: a functional link between mesolimbic, nigrostriatal, and mesocortical dopaminergic systems. Brain Research. 2006;1109:93–107. doi: 10.1016/j.brainres.2006.06.031. [DOI] [PubMed] [Google Scholar]
  61. Mello GBM, Soares S, Paton JJ. A scalable population code for time in the striatum. Current Biology. 2015;25:1113–1122. doi: 10.1016/j.cub.2015.02.036. [DOI] [PubMed] [Google Scholar]
  62. Menegas W, Bergan JF, Ogawa SK, Isogai Y, Umadevi Venkataraju K, Osten P, Uchida N, Watabe-Uchida M. Dopamine neurons projecting to the posterior striatum form an anatomically distinct subclass. eLife. 2015;4:e10032. doi: 10.7554/eLife.10032. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Merchant H, Harrington DL, Meck WH. Neural basis of the perception and estimation of time. Annual Review of Neuroscience. 2013;36:313–336. doi: 10.1146/annurev-neuro-062012-170349. [DOI] [PubMed] [Google Scholar]
  64. Mikhael JG, Gershman SJ. Adapting the flow of time with dopamine. Journal of Neurophysiology. 2019;121:1748–1760. doi: 10.1152/jn.00817.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Mikhael JG, Kim HR, Uchida N, Gershman SJ. Ramping and State Uncertainty in the Dopamine Signal. bioRxiv. 2019 doi: 10.1101/805366v1. [DOI]
  66. Mita A, Mushiake H, Shima K, Matsuzaka Y, Tanji J. Interval time coding by neurons in the presupplementary and supplementary motor areas. Nature Neuroscience. 2009;12:502–507. doi: 10.1038/nn.2272. [DOI] [PubMed] [Google Scholar]
  67. Mohebi A, Pettibone JR, Hamid AA, Wong J-MT, Vinson LT, Patriarchi T, Tian L, Kennedy RT, Berke JD. Dissociable dopamine dynamics for learning and motivation. Nature. 2019;570:65–70. doi: 10.1038/s41586-019-1235-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Morrens J, Aydin Ç, Janse van Rensburg A, Esquivelzeta Rabell J, Haesler S. Cue-Evoked Dopamine Promotes Conditioned Responding during Learning. Neuron. 2020;106:142–153. doi: 10.1016/j.neuron.2020.01.012. [DOI] [PubMed] [Google Scholar]
  69. Pan WX, Coddington LT, Dudman JT. Dissociable contributions of phasic dopamine activity to reward and prediction. Cell Reports. 2021;36:109684. doi: 10.1016/j.celrep.2021.109684. [DOI] [PubMed] [Google Scholar]
  70. Panigrahi B, Martin KA, Li Y, Graves AR, Vollmer A, Olson L, Mensh BD, Karpova AY, Dudman JT. Dopamine Is Required for the Neural Representation and Control of Movement Vigor. Cell. 2015;162:1418–1430. doi: 10.1016/j.cell.2015.08.014. [DOI] [PubMed] [Google Scholar]
  71. Park IM, Meister MLR, Huk AC, Pillow JW. Encoding and decoding in parietal cortex during sensorimotor decision-making. Nature Neuroscience. 2014;17:1395–1403. doi: 10.1038/nn.3800. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Parker NF, Cameron CM, Taliaferro JP, Lee J, Choi JY, Davidson TJ, Daw ND, Witten IB. Reward and choice encoding in terminals of midbrain dopamine neurons depends on striatal target. Nature Neuroscience. 2016;19:845–854. doi: 10.1038/nn.4287. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Patriarchi T, Cho JR, Merten K, Howe MW, Marley A, Xiong W-H, Folk RW, Broussard GJ, Liang R, Jang MJ, Zhong H, Dombeck D, von Zastrow M, Nimmerjahn A, Gradinaru V, Williams JT, Tian L. Ultrafast neuronal imaging of dopamine dynamics with designed genetically encoded sensors. Science. 2018;360:eaat4422. doi: 10.1126/science.aat4422. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Phillips PEM, Stuber GD, Heien MLAV, Wightman RM, Carelli RM. Subsecond dopamine release promotes cocaine seeking. Nature. 2003;422:614–618. doi: 10.1038/nature01476. [DOI] [PubMed] [Google Scholar]
  75. Rakitin BC, Gibbon J, Penney TB, Malapani C, Hinton SC, Meck WH. Scalar expectancy theory and peak-interval timing in humans. Journal of Experimental Psychology. Animal Behavior Processes. 1998;24:15–33. doi: 10.1037//0097-7403.24.1.15. [DOI] [PubMed] [Google Scholar]
  76. Remington ED, Narain D, Hosseini EA, Jazayeri M. Flexible Sensorimotor Computations through Rapid Reconfiguration of Cortical Dynamics. Neuron. 2018;98:1005–1019. doi: 10.1016/j.neuron.2018.05.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  77. Romo R, Scarnati E, Schultz W. Role of primate basal ganglia and frontal cortex in the internal generation of movements. II. Movement-related activity in the anterior striatum. Experimental Brain Research. 1992;91:385–395. doi: 10.1007/BF00227835. [DOI] [PubMed] [Google Scholar]
  78. Runyan CA, Piasini E, Panzeri S, Harvey CD. Distinct timescales of population coding across cortex. Nature. 2017;548:92–96. doi: 10.1038/nature23020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Saunders BT, Richard JM, Margolis EB, Janak PH. Dopamine neurons create Pavlovian conditioned stimuli with circuit-defined motivational properties. Nature Neuroscience. 2018;21:1072–1083. doi: 10.1038/s41593-018-0191-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  80. Schultz W, Dayan P, Montague PR. A Neural Substrate of Prediction and Reward. Science. 1997;275:1593–1599. doi: 10.1126/science.275.5306.1593. [DOI] [PubMed] [Google Scholar]
  81. Schuster CR, Zimmerman J. Timing behavior during prolonged treatment with dl-amphetamine. Journal of the Experimental Analysis of Behavior. 1961;4:327–330. doi: 10.1901/jeab.1961.4-327. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Shadlen MN, Kiani R, Newsome WT, Gold JI, Wolpert DM, Zylberberg A, Ditterich J, de Lafuente V, Yang T, Roitman J. Comment on “Single-trial spike trains in parietal cortex reveal discrete steps during decision-making.”. Science. 2016;351:1406. doi: 10.1126/science.aad3242. [DOI] [PMC free article] [PubMed] [Google Scholar]
  83. Shenoy KV, Sahani M, Churchland MM. Cortical control of arm movements: a dynamical systems perspective. Annual Review of Neuroscience. 2013;36:337–359. doi: 10.1146/annurev-neuro-062111-150509. [DOI] [PubMed] [Google Scholar]
  84. Sippy T, Lapray D, Crochet S, Petersen CCH. Cell-Type-Specific Sensorimotor Processing in Striatal Projection Neurons during Goal-Directed Behavior. Neuron. 2015;88:298–305. doi: 10.1016/j.neuron.2015.08.039. [DOI] [PMC free article] [PubMed] [Google Scholar]
  85. Soares S, Atallah BV, Paton JJ. Midbrain dopamine neurons control judgment of time. Science. 2016;354:1273–1277. doi: 10.1126/science.aah5234. [DOI] [PubMed] [Google Scholar]
  86. Sohn H, Narain D, Meirhaeghe N, Jazayeri M. Bayesian Computation through Cortical Latent Dynamics. Neuron. 2019;103:934–947. doi: 10.1016/j.neuron.2019.06.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  87. Starkweather CK, Babayan BM, Uchida N, Gershman SJ. Dopamine reward prediction errors reflect hidden-state inference across time. Nature Neuroscience. 2017;20:581–589. doi: 10.1038/nn.4520. [DOI] [PMC free article] [PubMed] [Google Scholar]
  88. Sun F, Zhou J, Dai B, Qian T, Zeng J, Li X, Zhuo Y, Zhang Y, Tan K, Feng J. New and Improved GRAB Fluorescent Sensors for Monitoring Dopaminergic Activity in Vivo. bioRxiv. 2020 doi: 10.1101/2020.03.28.013722. [DOI] [PMC free article] [PubMed]
  89. Tian J, Uchida N. Habenula Lesions Reveal that Multiple Mechanisms Underlie Dopamine Prediction Errors. Neuron. 2015;87:1304–1316. doi: 10.1016/j.neuron.2015.08.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  90. Tian J, Huang R, Cohen JY, Osakada F, Kobak D, Machens CK, Callaway EM, Uchida N, Watabe-Uchida M. Distributed and Mixed Information in Monosynaptic Inputs to Dopamine Neurons. Neuron. 2016;91:1374–1389. doi: 10.1016/j.neuron.2016.08.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  91. Tobler PN, Fiorillo CD, Schultz W. Adaptive coding of reward value by dopamine neurons. Science. 2005;307:1642–1645. doi: 10.1126/science.1105370. [DOI] [PubMed] [Google Scholar]
  92. Turner RS, Desmurget M. Basal ganglia contributions to motor control: a vigorous tutor. Current Opinion in Neurobiology. 2010;20:704–716. doi: 10.1016/j.conb.2010.08.022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  93. Wang DV, Tsien JZ. Conjunctive processing of locomotor signals by the ventral tegmental area neuronal population. PLOS ONE. 2011;6:e16528. doi: 10.1371/journal.pone.0016528. [DOI] [PMC free article] [PubMed] [Google Scholar]
  94. Wang J, Narain D, Hosseini EA, Jazayeri M. Flexible timing by temporal scaling of cortical responses. Nature Neuroscience. 2018;21:102–110. doi: 10.1038/s41593-017-0028-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  95. Xu M, Zhang S, Dan Y, Poo M. Representation of interval timing by temporally scalable firing patterns in rat prefrontal cortex. PNAS. 2014;111:480–485. doi: 10.1073/pnas.1321314111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  96. Yttri EA, Dudman JT. Opponent and bidirectional control of movement velocity in the basal ganglia. Nature. 2016;533:402–406. doi: 10.1038/nature17639. [DOI] [PMC free article] [PubMed] [Google Scholar]
  97. Zoltowski DM, Latimer KW, Yates JL, Huk AC, Pillow JW. Discrete Stepping and Nonlinear Ramping Dynamics Underlie Spiking Responses of LIP Neurons during Decision-Making. Neuron. 2019;102:1249–1258. doi: 10.1016/j.neuron.2019.04.031. [DOI] [PubMed] [Google Scholar]
  98. Zylberberg A, Shadlen MN. Cause for Pause before Leaping to Conclusions about Stepping. bioRxiv. 2016 doi: 10.1101/085886. [DOI]

Editor's evaluation

Jesse H Goldberg 1

Dopamine loss in Parkinson's disease results in impaired movement initiation and execution, but the precise relationship between dopamine activity and the decision to move is poorly understood. Here, the authors imaged mesostriatal dopamine signals as head-fixed mice decided when, after a cue, to retrieve water from a spout. Surprisingly, ramps in dopamine activity predicted, even on single trials, the timing of licks. Fast ramps preceded early retrievals; slow ones preceded late ones. Optogenetic activation or suppression of dopamine activity accelerated or delayed lick initiation, respectively. Together, these findings reveal strong links between ramps in dopamine activity and the timing of self-initiated movement.

Decision letter

Editor: Jesse H Goldberg1
Reviewed by: Jesse H Goldberg2

In the interests of transparency, eLife publishes the most substantive revision requests and the accompanying author responses.

Decision letter after peer review:

[Editors’ note: the authors submitted for reconsideration following the decision after peer review. What follows is the decision letter after the first round of review.]

Thank you for submitting your work entitled "Slowly evolving dopaminergic activity controls the moment-to-moment decision of when to move" for consideration by eLife. Your article has been reviewed by 3 peer reviewers, including Jesse H Goldberg as the Reviewing Editor and Reviewer #1, and the evaluation has been overseen by a Senior Editor.

Our decision has been reached after consultation between the reviewers. Based on these discussions and the individual reviews below, we regret to inform you that your work will not be considered further for publication in eLife.

All three reviewers appreciated the potential novelty that even baseline dopamine levels could be predictive under the task conditions of when the animal will move. However, as detailed in the reviews below, there were critical concerns regarding the animal's performance in the task, the novelty of pre-movement dopamine ramps relative to prior work, and the single-trial analyses which were not sufficient to convincingly demonstrate that ramps did not result from artifact of averaging across trials with different event timing. Ultimately, it was determined that even if the authors addressed the relationship between ramps and movement on single trials, issues with the behavioral performance and task design make it difficult to infer how signals correspond to internal processes such as reward anticipation, RPE, behavioral inhibition, or – as the manuscript suggests – timing.

Reviewer #1:

Hamilos et al. image DA axonal and neuronal CA signals in mice engaged in a self-timed lick task. They observed a ramping signal prior to lick onset that could predict, on average when a mouse would lick. While ramps in DA Ca signals have been observed as animals locomote towards known rewards (e.g. Howe et al., Hamid et al., Mohebi et al., all cited) and while DA activity is known to exhibit correlations with movement onsets – what's new and potentially important in this paper is how well the DA ramps could predict movement onset time – even on single trials. Complementing this finding were causal experiments where photoactivation or inhibition on single trials could promote or delay movement initiation. Given the amount of effort invested into the relationship between DA activity and upcoming movements – it is surprising that the strong correlation between the DA ramp and movement initiation (or decision, see discussion of Guru et al., paper below) hasn't been so clearly observed before (to my knowledge). This paper links DA activity to the timing of a reward-related decision extremely well.

Figure 3 of Guru et al. (unpublished biorxiv paper from Warden lab, not cited) shows a similar result as this paper except the internally timed action is not to produce movement but rather to terminate movement (stop running on a wheel). The fact that the same ramp is observed in both of these conditions undermines the connection that the authors make about ramping DA and decision to move. Taken together, it seems the DA ramps are more about the timing of a self-paced decision (whether it be to start or to stop doing something) than about movement initiation. The authors may want to re-tweak the interpretations of this paper to allow for this more general perspective.

Reviewer #2:

In this study Hamilos and colleagues measured dopamine signals in mice performing a self-timing task. They took advantage of the variability in the first lick time to study how dopamine signaling preceding the first lick varied with the timing of the first lick. While a number of studies have reported short-latency (<500 ms) increases in dopamine activity immediately preceding movements, the authors make a number of novel findings. First, dopamine photometry signals ramped up over several seconds preceding the first lick. Second, the steepness of this ramping, even the amount of baseline signal predicted the first lick time. Third, optogenetic activation and inhibition reduced or increased the first lick time. The authors are commended for performing several different types of photometry experiments. The authors conclude that dopaminergic signals unfolding over seconds control the timing of movements, but not as much the ability to move itself. While the work is novel and adds an interesting perspective on the function of dopaminergic neurons, there were concerns about some of the evidence for the first two claims, as well as insufficient detail in some of the statistical analysis that make it difficult to fully judge the paper's merits. The main concerns are detailed below.

1. Lines 151-153: "we observed systematic differences in the steepness of ramping that were highly predictive of movement timing (Figure 1D-E)." The reviewer agrees this is quite evident from the ramping curves, but still the authors should formally show the fact that the steepness (i.e., slope) of ramping is predictive of timing. The decoding model in Figure 6 goes some way toward this goal, but it seems Figure 6 uses time to threshold rather than the slope. It would be worthwhile to check in Figure 1 or Figure 2 whether the time to first lick is negatively correlated with slope of ramping.

2. Figure 4: similar to the previous comment. The reviewer found it difficult to interpret Figure 4 and suggests including a more traditional analysis, such as a Pearson correlation between the time to first lick and the level of pre-cue baseline dopamine.

3. Figure 6: the reviewer was confused about the contribution of the pre-cue baseline signal (predictor # 7) to the nested model. From the results in Figure 6B and 6C it appears that the pre-cue signal has almost zero contribution to the model (it was the only predictor with a non-significant weight in 6B). But this seems to contradict the authors' claim that "higher pre-cue, baseline DAN signals are correlated with earlier self-timed movements." If baseline signals do indeed correlate with timing of movements, shouldn't the weight of predictor # 7 be higher? This reviewer may have misunderstood some important detail, so some clarification of this issue in the text would be helpful. The reviewer also requests clarification of the difference between the "offset" (Predictor # 0) and "pre-cue" (Predictor # 7) as they both seem to be referring to some sort of baseline signal.

4. In several figure panels (including 6B, 7C, 7D) stats are either missing or details are too sparse to fully evaluate the significance of the results. The authors are requested to include information about sample size, type of test used, and if possible the exact p value.

Reviewer #3:

Assad and colleagues examined nigrostriatal dopamine signals in head-fixed mice performing a licking task. Reward was available if mice first withheld licking for several seconds after a cue. They observed a ramping increase in dopamine before the time of first lick, that stretched in proportion with this hold interval. Optogenetic increases/decreases of dopamine caused licking to be earlier/later. They conclude that dopamine ramps are involved in controlling the timing of movements.

There are several interesting aspects of this work, including the comparison between different DA signals (Figure 2) and the ramps themselves. Based on prior work in the field I have no problem believing most of the title "…dopaminergic activity controls the moment-to-moment decision of when to move". The problem is that the aspects of this work that are novel are either not well supported by data, or rely on questionable analyses and interpretations. There are also serious problems with the behavioral task and the quality of some recordings.

Main points:

1) The mice are notably bad at the behavioral task. Based on Figure 1B it is rare for them to wait long enough to get the reward. They do wait longer in the 5s condition compared to 3.3s, just not long enough. This general inability to perform the task casts further doubt on what internal representations might be driving dopamine signals and behavior. I'm not sure it's reasonable to describe the behavior as "timing", if the timing is usually wrong. And given that they see the same ramps before spontaneous licks outside the task, the task seems largely irrelevant.

2) Optogenetic manipulation of dopamine made movements more or less likely, as expected from prior studies. But the authors claim more than this – that the optogenetic 'effects were expressed through a "higher-level" process related to the self-timing of movement'. I did not find this claim convincing, even beyond the issue that the mice are very poor at timing. If an action is prepotent in a given behavioral context as the result of training, then increasing dopamine may increase the likelihood of that action being emitted. Giving even more dopamine (higher laser power) may lower the threshold for *any* action being emitted. But this doesn't demonstrate anything much about timing per se.

3) A key claim is that the dopamine signals are "slowly-evolving". This makes it essential to define "slow". In the dopamine field "slow" or "tonic" has often been used to referred to microdialysis signals presumed to change over tens of minutes. Here the authors describe ramping processes that may complete over several seconds, or be done in less than a second. So the kinetics of the signal seem more linked to the (varying) speed of behavioral transitions than to any inherently "slow" process.

4) Furthermore, in the Discussion the authors describe the instantaneous state of the dopamine signal at trial onset as "tonic", which seems like a mistake: they demonstrate that this signal has been immediately "reset" and cares more about the upcoming behavior than the immediately preceding trial just a few seconds earlier. This is not how "tonic" is used in the dopamine literature (e.g. Niv/Daw/Dayan describing tonic dopamine as integrating reward rate over prior recent trials).

5) The ramp-like pattern is interesting and may indeed be comparable to dopamine ramps previously reported in other tasks. But ramps can arise as an artifact of averaging across trials in which events have different timing. To avoid this problem the authors examined single-trials (Figure 6). But the analysis employed does not actually measure ramping on single trials. Instead, they examine the timing of crossing an artificial threshold, and they see that this threshold crossing time predicts lick time well when the threshold is high. This seems equivalent to noting that dopamine increases shortly before licking, which we already knew from movement-aligned averages; it doesn't seem to demonstrate the point the authors wish to make.

6) The authors note correctly that the signals they observe "could reflect the superposition of dopaminergic responses to multiple task events, including the cue, lick, ongoing spurious body movements, and hidden cognitive processes like timing." But I wasn't convinced that the regression models provided much insight into those hidden processes. Adding a "stretch" parameter felt merely like a descriptive fit to the observed data than a process-based model.

7) It is not uncommon to see neural activity evolving between cues and movements in a manner that scales with the interval between these events (e.g. Renoult et al. 2006, Time is a rubberband: neuronal activity in monkey motor cortex in relation to time estimation). It is interesting that dopamine can do something similar, but that doesn't seem to support a special role for dopamine.

8) The figures are not well organized at all. Figs1 and 2 seem partly redundant, and are often referred to together. Figure 3 is mentioned only in passing to say that an accelerometer was present, without describing the Figure 3 results or why they are important (perhaps should be a supplemental figure after clarification).

9) line234: "(highest S:N sessions plotted for clarity, 4 mice, 4-5 sessions/mouse, 17 total)". This seems weird and concerning. If signals were good enough to use for other analyses, why not this one?

10) Fig6, what does it mean that the tdt (control) signal is also a significant predictor of first-lick time? This seems like a serious problem for a control signal.

[Editors’ note: further revisions were suggested prior to acceptance, as described below.]

Thank you for choosing to send your work entitled "Slowly evolving dopaminergic activity controls the moment-to-moment decision of when to move" for consideration at eLife. Your letter of appeal has been considered by a Senior Editor and a Reviewing editor, and we are prepared to consider a revised submission with no guarantees of acceptance.

This resubmission may go back to all of the same and/or new reviewers. To ensure your revision has the best chance possible, we encourage you to well address each of the prior concerns in both the manuscript and in the response to review. Below are a few key concerns that we think are especially important for you to address.

1. It will be key to nail down the legitimacy of the claim that dopamine ramps and amplitudes at movement onsets on single trials. The main concerns (points 1-4) of R2 and point 5 of R3 well-articulate this concern.

2. Well justify and better explain the task (as was partly done in the appeal). The idea of the dopamine signal as playing any role in 'timing' was problematic because there was not a stringent control that timing was necessary in the task.

We encourage you to clarify that the task was not designed to specifically rule in or out the many models of what dopamine encodes and rather clarify that the goal of the study is to identify dopamine relationship to upcoming movements or behavioral transitions. Fully addressing R3 comment 1 is necessary.

We also encourage you to address the statement that ramps existed before licks outside the task, which shows the irrelevance of the task for the finding. Showing examples of this phenomenon might help. And we encourage you to consider how this finding relates to the central claim of 'timing.'

Please be aware that the revision requirements outlined above, along with your response to these comments, will be published should your article be accepted for publication, subject to author approval. In this event you acknowledge and agree that the these will be published under the terms of the Creative Commons Attribution license.

[Editors’ note: further revisions were suggested prior to acceptance, as described below.]

Thank you for resubmitting your article "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of movement initiation." for consideration by eLife. Your revised article has been reviewed by 3 peer reviewers, including Jesse H Goldberg as the Reviewing Editor and Reviewer #1, and the evaluation has been overseen by Kate Wassum as the Senior Editor.

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

Essential revisions:

1) Please address this concern regarding 'baseline" predictors: The authors have made significant improvements in describing the task, but there remained a lack of information about behavior in the lamp-off period before the cue was turned on (the baseline). The main concern is that this delay period is technically not a baseline because the lamp-off serves as an additional predictive cue. The authors tried to prevent this by randomizing the delay time (0.4-1.5 s), but this range looks comparable or even smaller than the variability in first-lick time shown in Figure 2B. They also did a control experiment without a lamp and showed qualitatively similar performance, but I didn't find the data very convincing (for some reason the data shown in figure supplement 1C does not have clear peaks at 3.3 s). Knowing whether this is a real baseline is important because the authors set cue-on as t=0, and do not consider behavior prior to that. This would not be a big concern if the authors can show that there is no statistically significant relationship between the lamp-off to cue-on delay and the lick onset on that trial. Otherwise, the concern is that their finding that higher baseline fluorescence predicts earlier licks may have a trivial explanation.

2) Address comments re: Figure 7, where there is still some confusion about the description of the sample size. For example, line 339 lists 12 mice but I think the correct variable is number of trials. The text should thus include the size of the actual variable used in the plots (listing the number of mice as well is ok, but this is not sufficient on its own). Furthermore, the results would more convincing if this figure included single-animal comparisons rather than just pooled data or across-session comparisons. Basically, could the authors please include a panel similar in style to Figure 7C but where individual points represent single animals, not sessions? This would be more consistent with other optogenetic-behavioral studies in rodents.

3) Please better address an issue with interpretation of results, specifically regarding movement timing versus reward expectation: The authors claim that their results mean a causal role for the level of dopamine ramps in modulating the probability of action initiation, but that interpretation seems strange given that these ramps are often observed when animals are already moving (Howe et al., 2013; Hamid et al., 2016; Engelhard et al., 2019; Kim et al., 2020; Guru et al., 2020). In common with all these papers, dopamine ramps seem to be related to the temporal prediction of when reward will be available. This was shown nicely by Kim et al., 2020, where they showed that regardless of the movements performed by the mice, ramps are elicited in relation to when the animal expects the rewards to arrive (see especially their moving bar experiments). In the present work, this interpretation is also consistent with the results (and more consistent with previous works): when animals decide to move early, the DA system receives this information and that results in a more steeply rising ramp, while when animals decide to move late, the same thing occurs, and the ramp rises more slowly. The issue at hand is that the initiation of movement (licking) is strongly correlated with reward delivery (or with the time of expected reward delivery in case of failed trials) and thus it is not possible to distinguish between these interpretations. So, in summary, the authors should address the concern that the interpretation of dopamine ramps modulating the moment-to-moment probability of action initiation is unwarranted. Results should be reframed to make it clear that this claim cannot be supported given the possible alternative explanations (such as the one suggesting that DA ramps reflect a prediction of the time of upcoming reward delivery, which is more consistent with the previous literature).

Alternatively, if the authors can find an experimental way to dissociate the expected time for reward delivery from the moment of action initiation, then that would be one way to make a decisive conclusion. For example, the water dispensation could occur at a fixed time relative to the cue – even as the mouse can initiate licking whenever it wants. If DA dynamics still predict initiation time, then the authors' perspective is supported. Yet if the DA dynamics no longer predict initiation time, and instead simply ramp to the reward time, then reviewer 4's perspective is supported. Either result would be interesting. Performing these experiments would be ideal, but not necessary for publication. If the authors do not wish to conduct new experiments along these lines, they should – throughout the manuscript – modify their text to include this alternative interpretation (reward expectation) – or offer in rebuttal a convincing argument as to why the logic of reviewer 4's (and the BRE's) thinking is not sound.

[Editors’ note: further revisions were suggested prior to acceptance, as described below.]

Thank you for submitting your article "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of movement initiation." for consideration by eLife. Your article has been reviewed by 3 peer reviewers, including Jesse H Goldberg as the Reviewing Editor and Reviewer #1, and the evaluation has been overseen by Kate Wassum as the Senior Editor.

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

Essential revisions:

1) 2/3 reviewers were not persuaded by the author's rebuttal arguments that DA ramps reflect movement initiation and not reward expectation, resulting in an enduring concern that the main message of the paper, evident even in the title, is not watertight. All reviewers still think the paper's findings are timely and important – so a tempering / adjustment of the claims is a reasonable path forward to publication. The change in 'pitch' of this paper would need to include changes to title, abstract, and discussion. While some specific recommendations are included in the full reviews pasted below, the authors are in the best position to truly internalize reviewer's four's sound arguments to transform the message of the paper into one that allows for reward expectation to be the variable that DA ramps reflect, that optogenetic experiments manipulate, and that ultimately affects movement timing.

If you have not already done so, please ensure that your manuscript complies with eLife's policies for statistical reporting: https://reviewer.elifesciences.org/author-guide/full "Report exact p-values wherever possible alongside the summary statistics and 95% confidence intervals. These should be reported for all key questions and not only when the p-value is less than 0.05."

Reviewer #1:

I am satisfied with the responses to points 1 and 2.

I am not completely persuaded by the author's arguments in revision point 3. First, their argument starts with the statement that "dopamine ramps have not, in fact, been observed in relation to passive temporal expectation of reward – except when some kind of external sensory indicator of proximity to reward was provided." They further argue that DA ramps have not been observed in Pavlovian conditioning – citing many classic Schults papers and more recent rodent work. But Figure 3b of Fiorillo, Tobler, Schultz, Science 2003 clearly shows ramps when rewards are uncertain even in a Pavlovian task. The first section of their argument was based on the absence of ramps in Pavlovian tasks, so this falls apart on scrutiny. There is more going on here than the authors are noting. Also, it's strange that in discussion the authors invoke an 'operant' nature of their task – based on the idea that the animal must move to earn reward. With this definition one wonders what constitutes a non-operant task – even the classic Schultz papers on DA signals during Pavlovial conditioning require tongue extension to retrieve water.

In revision, I recommend the following:

1) In abstract, the word 'controls' (line 20) seems potentially overstated. Please change to 'predicts' or 'is associated with'

2) In Discussion, line 456, I think the authors should include an expanded (~2-3 sentence) consideration that their signals that predict movement are expected value signals – essentially including Rev 4's interpretation as a plausible one.

Overall, this is an important paper suitable for eLife.

Reviewer #2:

The authors have addressed all my comments and I have no further concerns.

Reviewer #4:

I don't find the authors response to my comment satisfactory. Given that the paper title is "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of movement initiation" and that if published as is, this would constitute peer-reviewed evidence that dopamine ramps modulate movement timing, the relationship between the ramps and movement initiation should be ironclad. Yet from the presented data as well as the authors comments, it still seems to me more likely that these ramps represent an internal measure of reward expectation/ expected time of reward delivery. Specifically, the authors state (in bold font) that "dopaminergic ramps have not, in fact, been observed in relation to passive temporal expectation of reward-except when some kind of external sensory indicator of proximity to reward was provided". However, that is not the case, see for example the science paper by Fiorillo, Tobler and Schultz, 2003, as well as their follow-up paper in 2005. Thus, we have evidence that these ramps occur A- when animals are moving (see all the references in my previous comment). B- when animals are not moving and don't intend to, where the time to reward is signaled to them externally (kim et al.). C- When animals are not moving and don't intend to, where the time to reward is not signaled to them externally (Fiorillo et al). D- when animals are not moving but do intend to (present manuscript). Given all these conditions where we see ramping, ascribing them to movement initiation does not seem warranted, especially when we have a parsimonious alternative explanation (Reward expectation).

It may seem at first glance that the optogenetic experiments performed by the authors would counter my point, because they had an effect in modulating the timing of movement initiation. However, these manipulations could just be changing the motivation or reward expectation of the animals, which would make them move earlier or later. The authors agree with this, and then gave the following strange (to me) response: "…reward expectation may be the very force that propels movement in our task. In this view, reward expectation is intrinsically intertwined with movement initiation. Our point is that whatever the dopaminergic signal is tracking, it can be harnessed to influence the probability of movement onset."

This point seems very strange to me because under this view, any type of brain signal related to any external variable that ends up modulating an animal's movement would be ascribed as a movement signal. For example, sensory signals in visual cortex in a perceptual task would be classified as movement initiation signals, because they end up making the animal move (e.g. if we inhibit visual cortex the animals can't perceive the stimulus and won't move correctly). The whole point of claiming that a particular neural signal is related to movement initiation is that it is NOT related to other signals: sensory, reward or others, even as those other variables typically have an end effect of modulating an animal's movement. To take this point further, behavior itself is ultimately about generating movements, and so any behaviorally relevant signal will ultimately affect movements. The authors' claim here is much more specific, and in my view not supported.

To conclude, I'm uncomfortable with the paper keeping its current title and conclusions. It seems to me much more correct to conclude that dopamine ramps reflect reward expectation, and that (of course!) reward expectation can end up influencing movements. This is much more in line with all the previous literature of dopamine and I don't think the authors made a compelling case of abandoning this view. To reiterate what I previously wrote, I do think this is a good paper that should be published, but not under the current framing. I would suggest the following title: "Slowly evolving dopaminergic activity reflects reward expectation and can modulate the moment-to-moment probability of movement initiation". I know it is not as catchy, but I think it's much more correct given what we know, and I don't want to give my stamp of approval to a conclusion which I think is unwarranted.

[Editors’ note: further revisions were suggested prior to acceptance, as described below.]

Thank you for resubmitting your work entitled "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements" for further consideration by eLife. Your revised article has been evaluated by Kate Wassum (Senior Editor) and a Reviewing Editor.

The manuscript has been improved but there are some remaining issues that need to be addressed, as outlined below:

Your revised manuscript does not fully comply with eLife's requirements for statistical reporting. Please ensure all statistics are included in full in the main manuscript. "Report exact p-values wherever possible alongside the summary statistics and 95% confidence intervals. These should be reported for all key questions and not only when the p-value is less than 0.05." more details can be found here:

https://reviewer.elifesciences.org/author-guide/full

eLife. 2021 Dec 23;10:e62583. doi: 10.7554/eLife.62583.sa2

Author response


[Editors’ note: The authors appealed the original decision. What follows is the authors’ response to the first round of review.]

We will look forward to receiving a revised article and a file describing the changes made in response to the decision and review comments for further consideration.

This resubmission may go back to all of the same and/or new reviewers. To ensure your revision has the best chance possible, we encourage you to well address each of the prior concerns in both the manuscript and in the response to review. Below are a few key concerns that we think are especially important for you to address.

Editor point 1. Well justify and better explain the task (as was partly done in the appeal). The idea of the dopamine signal as playing any role in 'timing' was problematic because there was not a stringent control that timing was necessary in the task.

We addressed this point in our initial appeal, which we reproduce here in case the reviewers didn’t see the appeal. We have added a paragraph to the Results sections of the revised manuscript summarizing these arguments, as well as a new main-text figure (New Manuscript Figure 1) summarizing these results.

Reviewer 3 was critical of the animals’ performance on the self-timed movement task. On reading the reviewer’s comments, we immediately realized that we should have included more discussion of the rich empirical history of timing tasks to contextualize and justify the behavior that we observed in our self-timed movement task. We did not think we had room for this discussion in the manuscript, but this was clearly a mistake! In fact, the behavior of the animals in our specific task was much “better” than the reviewer realized, and our observations were absolutely in line with previous findings in timing tasks. Below, we offer what we believe is overwhelming evidence on this point.

However, before we outline this evidence, we stress that we did not intend to study precise timing behavior. Rather, we set out to determine whether dopaminergic activity could explain when a movement would occur. We focused on self-timed movements, i.e., movements that are not abrupt, temporally-stereotyped reactions to external cues (in contrast to standard stimulus-response paradigms used in the vast majority of studies of the motor system; see Lee and Assad (2003) for discussion of this key distinction). We used self-timed movements as a strategy to induce animals to produce movements with seconds of variability (relative to a reference cue) from trial-to-trial – but we were not overly concerned whether the animal timed “accurately.” In fact, the high degree of variability in movement time from trial-to-trial (from ~1 s to >6 s post-cue) was precisely the handle we needed to address our question: what happens differently in the dopaminergic system when animals move early versus late relative to an initial “reset” cue? If we had omitted the initial cue and allowed the animals to self-initiate movements whenever they pleased, we would not have had a reference to align neural signals, and thus could not have categorized movements as “early” or “late”. Our ability to categorize the movement time relative to the cue allowed us to discover that dopaminergic signals were highly predictive of the movement time. (That is, movement time implies time relative to something.) In this light, early (unrewarded) trials were just as informative as late (rewarded) trials. Thus, the percentage of rewarded trials was not at stake in this manuscript – although we clearly need to explain this logic better.

Nevertheless, there is strong evidence that our animals did, in fact, time well, and their behavior was consistent with the well-established body of findings on timing in animals and humans. We didn’t present this evidence in the original manuscript because we thought it was tangential to our main points and would require too much space. However, we clearly confused the reviewers, so we have addressed these issues in detail in the revised manuscript.

We presume that Reviewer 3 was critical of the task performance because (1) the animals’ movement times were highly variable, and/or (2) the peak of the movement-time distributions preceded the criterion time. We’ll address both issues in turn.

1) Variability in movement time. An observation across timing tasks and species is that the distribution of estimated time intervals has substantial variability. Moreover, that variability (measured by standard deviation) scales proportionally to the length of the timed interval, such that rescaling one interval by the peak time of another will result in overlapping distributions (Author response image 1; human self-timing data). This property is formalized by Weber’s Law (σ = k*T), where the standard deviation of the distribution for a given subject is a product of the subject’s Weber fraction (k, an empirically measured quantity) and the criterion time, T (Gallistel and Gibbon, 2000). The 3.3 s and 5 s task distributions in our task exhibit this scalar property of timing, following Weber’s Law (New Manuscript Figure 1B). This observation alone provides evidence that the animals were timing.

Author response image 1. Performance in timing tasks follows the scalar property.

Author response image 1.

(A) Human response-time distributions for three different criterion times, 8, 12 and 21 s (Figure adapted from Allman et al., 2014 (Figures 2 and 3).; data from (Rakitin et al., 1998)). (B) When the distributions in A are scaled by the time of the peaks, they closely overlap, demonstrating the scalar property canonical to timing tasks across species.

2) Animals’ and humans’ distributions of timed intervals invariably tend to anticipate the criterion interval, even at the expense of reward. The degree to which the distributions anticipate the criterion interval depends on the specific timing task. Most common, time-interval reproduction tasks in animals can be divided into two categories: “peak-procedure” or “differential reinforcement of low response rates” (DRL). Some years ago, our lab introduced a third category into animal studies, “self-timed movement tasks,” which have key features in common with DRL tasks. We will examine these in turn:

Peak procedure (Author response image 2A): In peak-procedure timing tasks, subjects are allowed to respond as often as they want, but are only rewarded for the first movement after the criterion time has elapsed (relative to a start-timing cue). Like an impatient passenger pressing a door-close button in the elevator, subjects in these tasks begin responding substantially earlier than the criterion time, and their response frequency increases monotonically as the target time approaches. To define the timing performance of the subject, occasional probe trials are included in which reward is not given at the criterion time. On probe trials, subjects continue to respond beyond the criterion time, but their rate of responding gradually wanes. It is well-known that the peak response-frequency typically occurs at or near the criterion time in these tasks (see Author response image 2A for an example from mice and Author response image 1A for an example from humans). Importantly, given the broad timing distributions, there are still many premature responses in peak procedures, observed in all species, from rodents to birds to primates (Gallistel and Gibbon, 2000).

Author response image 2. Animals across species frequently move before the criterion time during timing tasks, even at the expense of reward.

Author response image 2.

Although peak procedures generally reveal timing peaks at or near the criterion time, we chose not to use a peak procedure in our study for a crucial reason: timing in peak procedures is explicitly manifested as an accelerating sequence of motor responses; thus, the responses themselves could drive motor-related neuronal activity that could mimic or obscure a neural timing signal, such as a ramping timing signal.

Differential Reinforcement of Low Response Rates (DRL): Historically, the most common alternative to peak procedures for studying operant timing in rodents has been DRL tasks. In typical DRL tasks, rats or mice are rewarded if they wait to respond for at least a criterion time after their last response. If the animal responds prematurely, it is not rewarded, and the response/reward-clock resets (unlike peak procedures).

Self-timed movement tasks: We used a self-timed movement task in our study. Like DRL tasks, reward was given only if the first movement occurred after a criterion time. Unlike DRL tasks however, our selftimed movement was referenced to a start-timing cue rather than the animal’s last response, and thus incorporated an explicit inter-trial period. To keep the animal performing briskly, we also enforced a maximal response window (7 s following the cue) to receive reward. Our lab pioneered self-timed movement tasks in monkeys (Lee and Assad, 2003; Lee et al., 2006), and we believe our mouse study is the first use of a self-timed movement task in rodents.

As in the peak procedure, subjects executing DRL or self-timed movement tasks tend to anticipate the criterion time, even though they receive less overall reward. For example, in Lee and Assad (2003), monkeys executing the self-timed movement task had first-movement-time distributions that peaked near the criterion time (2 s), but ~1/3 of trials were premature, and thus unrewarded (Author response image 2B). Rats show a similar anticipatory pattern on DRL tasks (Author response image 2C), although rats tend to move even earlier than monkeys, and on some trials, they are also unable to withhold short-latency reactions to the initial start-timing cue, producing an initial “spike” in the movement-time distributions (Kirshenbaum et al., 2008; Schuster and Zimmerman, 1961).

Mice executing DRL tasks behave very similarly to mice performing our self-timed movement task (Author response image 2D, (Eckard and Kyonka, 2018)). Like rats, mice sometimes react quickly to the cue. They are also “less patient” than the rats: the peak of their timing distribution tends to anticipate the criterion time even more. Our mice showed similar behavior in our self-timed movement task (Author response image 2E). Importantly, in the Eckard and Kyonka study, the same mice were also trained on a peak procedure task with the same criterion interval (18 s), in which the peak frequency of probe-trial responses occurred close to the criterion time (Author response image 2A). This demonstrated that these same mice were capable of accurately estimating the criterion interval and suggested that the difference in peak position between the timing tasks was not the result of poor timing behavior. Rather, it has been emphasized since the 1950s that the “premature” response-peaks found in the DRL tasks belie a more accurate latent timing process, as follows:

Anger (1956) pointed out that if the animal responds early on a trial, it obviously eliminates the opportunity to respond later on that trial (Anger, 1956). The raw frequency of a particular response time is thus “distorted” by how often the animal has the chance to respond at that time. In other words, timing distributions from DRL or self-timed movement tasks – in which only one movement is allowed per trial – should take into account the number of response opportunities the animal had at each timepoint. This is accomplished by computing the hazard function, which is defined as the conditional probability of moving at a time, T, given that the movement has not yet occurred. (The hazard function was referred to as “IRT/Op” analysis in the old DRL literature.) In practice, the hazard function (HF) is computed by dividing the number of first-movements in each bin of the histogram by the total number of first-movements occurring at that bin-time or later the total “opportunities.” The HF effectively captures the instantaneous probability of moving at a given time. In the peak procedure, that instantaneous probability can be read out directly from the rate of response itself, but in DRL/selftimed movement tasks, the instantaneous probability is a latent variable that must be derived by computing the HF.

To ground discussion of the HF, first consider a “null hypothesis” case: that the animal does not time its response, but rather has a uniform instantaneous probability (over time) of moving after the cue. This equates to a flat hazard function and manifests as an exponential movement-time distribution (modeled in New Manuscript Figure 1C). Indeed, for first training sessions, when the animals were not yet aware of the timing contingency of the task, we found a flat HF on average (following the typical “spike” of short-latency reactions to the cue, New Manuscript Figure 1D).

Next, we computed the hazard functions from our data after the animals had been trained for at least a week in the self-timed movement task. As Reviewer 3 pointed out, the raw first-movement-time distributions in our manuscript showed anticipatory peaks for both the 3.3 s and 5 s criterion times (New Manuscript Figure 1E top). However, HFs computed from those distributions reveal peaks close to the criterion times (New Manuscript Figure 1E bottom). This indicates that the instantaneous probability of moving in our task was maximal near the criterion time, demonstrating that the animals’ behavior was accurately tuned to the target-timing interval. We stress that this HF property is implicit in the shape of the first-movement-time histogram, but is not obvious if one considers that histogram’s peak alone. New Manuscript Figure 1E bottom-right shows average HFs for all 12 GCaMP6f photometry animals, revealing that the peak instantaneous probability of movement was close to the 3.3 s criterion.

In summary, these combined data indicate that after training, the animals “understood” the timing contingencies of the task, in that their instantaneous probability of moving peaked close to the criterion time. In the revised Results section, we have summarized these arguments and also present the hazard functions as evidence that the animals indeed were able to well-estimate the timing contingencies (New Manuscript Figure 1E bottom-right).

Notwithstanding the hazard-function analysis, it might seem surprising that our animals did not adopt a more patient strategy in an effort to receive more rewards. One possibility is that the animals were under-trained. This is unlikely, however, because the animals’ movement-time distributions evolved over the first 4-7 days of training but then were stable over months. Moreover, the animals were indeed capable of being more patient: the mice tested with the 5 s criterion time were first trained for weeks with the 3.3 s criterion, but within only one session of switching to the 5 s task, the mode of the movement-times distribution shifted later. If the mice had adopted that later mode for the 3.3 s task, they would have received rewards at a much higher rate (e.g., New Manuscript Figure 1E top). Clearly, during training, the animals “sought” to maximize the instantaneous movement probability near the criterion time (as revealed by the hazard function), rather than to optimize average reward rate. We can only speculate as to the cognitive pressures driving this strategy, but this behavioral pattern may reflect particularly strong temporal discounting of reward value, driving the animals to acquire rewards as quickly as possible when they become available.

Although previous rodent DRL studies invariably found frequent movements before the criterion time, there are two additional reasons why our mice might have been even “jumpier”:

First, we imposed a maximum movement-time window (unlike DRL studies), which may have added additional temporal urgency that drove earlier responses. We have anecdotal evidence from early training without the maximum movement-time window that is consistent with that possibility.

Second, our animals were water deprived, and their thirst-urgency may have driven them to move at earlier times, even at the expense of fewer rewards. Our mice presumably sated over the course of a session; for example, as sessions progressed, animals also licked less frequently during the inter-trial interval and made shorter lick bouts in response to reward. We also noticed that (unsurprisingly) animals tended to move progressively later over the course of a daily session, presumably as their thirst-urgency eased with accumulated rewards (Author response image 3A-B). We were initially concerned that this non-stationarity could artifactually produce differences in dopaminergic signals on early- vs. late movement trials, based on the different proportion of trial outcomes over the course of a session. In our original manuscript, we addressed this concern by dividing sessions into quartiles and comparing the dopaminergic signals (as a function of first-movement-time) within and across each quartile. (We discussed this analysis in our “dF/F Validation Methods” section of the original and revised manuscripts.) We detected no differences in the relative pattern of ramping or baseline offset over the course of sessions (Author response image 3C). For example, the relative difference in average ramping slope for trials with a first-lick-time at 2 s vs. 4 s was similar regardless of whether those trials occurred at the beginning or end of the session.

Author response image 3. The peak of the timing distribution becomes later over the course of a behavioral session, but the pattern of dopaminergic responses as a function of movement time does not change.

Author response image 3.

(A) Median first-lick time divided into quartiles across sessions (only first-licks between 0.7-7 s considered to exclude rapid reactions and licks occurring after end-of-trial). Boxplot shown for individual photometry sessions with at least 100 first-licks (102 sessions total, red line: median, box: 25-75th percentiles, whiskers: 1.5 IQR). Blue lines: individual animal averages across sessions; n=12 mice. (B) Histograms of median first-lick time for each of the 102 sessions shown in A. (C) Corresponding SNc GCaMP6f signals from DAN cell bodies averaged separately for each quartile, aligned both on cue onset (left) and first-lick-time (right). Traces plotted to 150 ms before first-lick to exclude movement-related response. Trials pooled into bins of 1 s each, e.g., blue: 1-2 s, green: 2-3 s… etc.

This inter-quartile comparison also helps to address Reviewer 3’s concerns about interpretability. First, the basic pattern of dopaminergic signals was similar whether the animals had fewer “correct” trials (beginning of the session) or more correct trials (toward the end of the session). Second, because many variables are presumably changing over the course of a session (e.g., thirst, motivation, vigor/fatigue, etc.), the consistency in the dopaminergic signal across the session suggests these signals are related instead to what is the same across the session – that the animal has to time its movement relative to the cue on a given trial.

In their summary, the editors stated, “Issues with the behavioral performance and task design make it difficult to infer how signals correspond to internal processes such as reward anticipation, RPE, behavioral inhibition, or—as the manuscript suggests—timing.” As we have shown here, the behavior we observed is consistent and interpretable in the context of behavioral timing. However, we reiterate this really wasn’t the point we were trying to make! Given the vigorous debate in the literature about “what dopamine signals represent,” it is likely that many different motivating factors (anticipation, RPE, value, etc.) are multiplexed into creating the dopaminergic signals that we observed during selftimed movements. (We have posted a BiorXiv manuscript showing how RPE signals could explain premovement ramping in our task, based on a theory developed by our colleague Sam Gershman; see (Hamilos and Assad, 2020).) But we are not asking about the (undoubtedly complex) origin of the dopaminergic signals, but rather how dopaminergic signals influence behavior in real-time.

Specifically, we desired to relate trial-by-trial differences in dopaminergic signaling to the timing of the animal’s movement, and to relate causal manipulations of dopaminergic activity to movement timing. As Reviewer 1 noted, we have “link[ed] DA activity to the timing of a reward-related decision extremely well.” That was exactly our goal.

Editor point 2. It will be key to nail down the legitimacy of the claim that dopamine ramps and amplitudes at movement onsets on single trials. The main concerns (points 1-4) of R2 and point 5 of R3 well-articulate this concern.

This point was extremely useful, because it led us to consider in much greater depth questions of (i) single-trial dopaminergic dynamics, and (ii) how this signal may be influencing movement timing. We have added several major new analyses to the revised manuscript to address these points, culminating in a critical new analysis that revealed a more nuanced, probabilistic interpretation of the role of dopaminergic signals in movement timing.

(i) Are single-trial dopaminergic dynamics slow ramps, or are they better explained by discrete steps? In the original manuscript, our single-trial analyses consisted of a movement-time decoding model that incorporated GCaMP6f-signal threshold-crossing time as a predictor. This model was based on well-established diffusion-to-threshold models that have been extensively used by Shadlen and colleagues (and many others) to characterize ramping neural signals in the context of perceptual decision-making tasks (e.g., (Roitman and Shadlen, 2002)). Nevertheless, Reviewer 3 (R3) correctly pointed out that slow ramping signals on average could be due to slow ramping on single trials, or could be due to discrete steps on single trials that are distributed throughout the timed interval from trial-to-trial. Either underlying single-trial dynamic could result in slow ramping when averaged across trials.

R3 is probably aware that this question of “ramping vs. stepping” has been vigorously debated in the perceptual decision-making field. Alex Huk and Jonathan Pillow first suggested that average ramping dynamics (in single-unit recordings from monkey parietal cortex) could instead be explained by discrete step-functions occurring at different times from trial-to-trial (Latimer et al., 2015). Shadlen et al. (2016) immediately challenged this interpretation on analytical grounds – and the debate has continued to simmer (Latimer et al., 2016; Shadlen et al., 2016; Zoltowski et al., 2019; Zylberberg and Shadlen, 2016). However, Sahani and colleagues have argued that the step vs. ramp question may be fundamentally non-resolvable (Chandrasekaran et al., 2018). They showed that classification models are extremely sensitive to model parameterization, to the extent that different data-supported model parameterizations can produce opposite classification results when applied to the same simulated, ground-truth datasets. This confusion may be due to contamination of signals by ongoing neural activity unrelated to the decision process, as well as detection noise (Chandrasekaran et al., 2018).

Nonetheless, prompted by R3, we decided to take a stab at the “step vs. ramp” question in our data set. At the outset, we note that for single-trial steps to produce average ramping dynamics, the steptimes must be randomly distributed across the timed interval from trial-to-trial. A consistent, perimovement step (as R3 seemed to suggest) would not produce slow ramping on average, but rather a sharp jump at the time of movement – and that was not what we observed. However, we agree that a simple threshold-crossing analysis might not be able to distinguish a single-trial ramp vs. step process, because relatively late threshold-crossing times are only possible on trials with relatively late movements (e.g., a 3 s step-time cannot occur on a 2 s trial, by definition). To wit, our original singletrial threshold-crossing analysis made no assumptions about the underlying trial dynamics (step vs. ramp). However, we see R3’s point that the title “slowly-evolving dopaminergic activity determines the timing of self-timed movement” would not necessarily be uniquely supported by a simple thresholdcrossing analysis.

Caveats aside, with advice from Josh Tenenbaum at MIT, we implemented a single-trial hierarchical Bayesian model to analyze our single-trial GCaMP6f signals, using probabilistic programs in the novel probabilistic programming language, Gen.jl (Cusumano-Towner et al., 2019). These analyses are summarized in New Manuscript Figure 6—figure supplement 2. These programs infer underlying signal dynamics and return a probabilistic classification of single trials as either linear ramps or discrete steps. Both the step and ramp models were individually optimized to fit single-trial data, and both models were capable of capturing intuitive step and ramp fits for ambiguous signals that, by eye, could have “gone either way.” However, like previous efforts, our model returned inconclusive results, with about half of trials being better classified by a ramp and half by a step function. Given the findings of Chandrasekaran et al. (2018), this ambiguity was perhaps not surprising.

We thus took a step back and examined three additional, complementary approaches to tease the two models apart:

Multiple threshold levels. Although a simple threshold-crossing analysis does not definitively distinguish between underlying step vs. ramp dynamics, the two types of dynamics will have a distinct relationship with respect to different threshold levels, as our lab previously showed (Maimon and Assad, 2006). Consider the idealized simple ramp and step dynamics shown in New Manuscript Figure 6—figure supplement 3A. If we draw three arbitrary thresholds across each dataset, the thresholdcrossing time will always be the same for the discrete step model, regardless of threshold level (New Manuscript Figure 6—figure supplement 3B, blue lines). But the ramp model will have a thresholdcrossing time progressively closer to the first-lick time as the threshold is increased (New Manuscript Figure 6—figure supplement 3B, red lines). That is, for single-trial ramping, the slope of the thresholdcrossing vs. movement time relationship will increase as the threshold is increased (New Manuscript Figure 6—figure supplement 3B). In the original manuscript, we showed that the slope of the relationship between threshold-crossing time and first-lick time increased with increasing threshold level for a single behavioral session, consistent with the ramp model, but inconsistent with the step model. In the revised manuscript, we performed the same multiple-threshold analysis for all SNc GCaMP6f sessions in our 12 mice. Across animals and sessions, we found the slope of the relationship increased markedly from low to high as threshold level is increased, supporting the slow-ramp model on single trials (New Manuscript Figure 6—figure supplement 3C).

Aligning trials on step. If single trials involve a step change occurring at different times from trial-totrial, then aligning trials on that step should produce a clear step on average, rather than a ramp (Latimer et al., 2015). We thus used the Bayesian step model to find the optimal step position for each trial, and then aligned single-trial signals to that optimal step position. However, GCaMP6f signals aligned to the fitted step position and averaged did not yield a step function, but rather detected an apparent transient superimposed on a “background” ramping signal (New Manuscript Figure 6—figure supplement 4A). Step-aligned tdTomato and EMG averages showed a small inflection starting at the time of the step, but neither signal showed a background of ramping, unlike the GCaMP6f signal. This suggests that the detected “steps” were likely transient movement artifacts superimposed on the slower ramping dynamic, rather than bona fide steps.

Variance analysis. The ideal step model holds that steps occur at different times from trial-to-trial, producing a ramping signal when averaged together. In this view, the trial-by-trial variance of the signal across trials should be maximal at the time at which 50% of the steps have occurred among all trials, and minimal at the beginning and end of the interval (when no steps and all steps have occurred, respectively). To examine this, we derived the optimal step time for each trial using the Bayesian step model, and then calculated variance as a function of time within pools of trials with similar movement times (pooled at 1 s intervals). Rather than exhibiting an inverted “U” shape with respect to cumulative probability of when the steps occurred, the signal variance showed a monotonic downward trend during the timed interval, with minimal variance at the time of the movement, rather than at the point at which 50% of steps had occurred among trials (New Manuscript Figure 6—figure supplement 4B). This is inconsistent with a step model but consistent with a ramp-to-bound model, in which signals trend toward a similar level just before movement onset (Roitman and Shadlen, 2002).

Overall, we did not find evidence for a step dynamic on single trials; on the contrary, our combined observations concord with slow ramping dynamics on single trials. This indeed suggests that “slow dopaminergic dynamics” are informative of movement time. However, we again stress that our decoding models (New Manuscript Figure 6 and New Manuscript Figure 8) make no assumptions about the underlying single-trial dynamics.

(ii) Do dopaminergic signals encode the moment-to-moment probability of movement initiation? Reviewer 2 (R2) was concerned that our original movement time decoding model used only one point in the signal – a threshold crossing. We chose the threshold-crossing model based on common drift-diffusion-to-threshold models used to effectively describe the timing of perceptual decisions (see section (i) above).

However, R2’s comment really got us thinking. As described above, our evidence suggests that a slowly-changing dynamic characterizes single-trial dopaminergic signals—but what is the actual link to movement initiation? Our optogenetic stimulation and inhibition results suggested that dopaminergic signaling influences the moment-to-moment probability of movement onset: stimulation/inhibition shifted the probability distributions of movement times to earlier/later times, rather than immediately triggering or inhibiting movement (New Manuscript Figure 7B). Thus, in addition to trying to predict the exact movement time from single trial dynamics (which we already knew we could do to some extent from the threshold-crossing GLM), we asked whether we could predict the moment-to-moment probability of movement from the dopaminergic signals. In this view, we would take into account the full time-course of the dopaminergic signals, not just the single threshold crossing, which also addresses R2’s original suggestion.

As described in our response to Editor point #1, we showed that the hazard function – the probability of movement initiation given that movement has not yet occurred -- reveals the animals’ (accurate) latent timing process. The hazard function, by definition, defines the instantaneous probability of movement initiation; thus, if dopaminergic signals are predictive of the moment-to-moment probability of movement initiation, we should be able to reproduce the behavioral hazard function from the dopaminergic signals.

To test this hypothesis, we derived a nested probabilistic movement-state decoding model (New Manuscript Figure 8A). We applied a GLM based on logistic regression, in which each moment of time is classified as either a non-movement (0) or movement (1) state (New Manuscript Figure 8A-B). The model allows us to examine whether various measured parameters are good predictors for the probability of transitioning from the non-movement state to the movement state. In our initial model selection, we found that the instantaneous dopaminergic signal itself was a robustly significant predictor of movement state, whereas previous trial outcomes were insignificant contributors to the model (New Manuscript Figure 8—figure supplement 1).

The continuous dopaminergic signal was indeed predictive of current movement state at any time t – and up to 2 seconds in the past (New Manuscript Figure 8C). However, remarkably, the signals became progressively more predictive of the current movement state at t as time approached t. That is, the dopaminergic signal levels closer to time t tended to absorb the behavioral variance explained by more distant, previous signal levels (New Manuscript Figure 8C). (Note also that this observation is consistent with a diffusion-like ramping process on single trials – in which the most recent measurement gives the best estimate of whether there will be a transition to the movement state – but this finding is difficult to relate to a step process on single trials.)

We applied the fitted probabilities of being in the movement state to derive the fitted hazard function for each behavioral session. The dopaminergic signals were remarkably predictive of the hazard function, both for individual sessions and on average, explaining 65% of the variance on average (New Manuscript Figure 8D). Conversely, when the model was fit on the same data in which the timepoint identifiers were shuffled, this predictive power was essentially abolished, with only 5% variance explained on average (New Manuscript Figure 8E). These results of these analyses are included in (entirely new) New Manuscript Figure 8 in the revised manuscript.

Together, these results demonstrate that slowly-evolving dopaminergic signals are predictive of the moment-to-moment probability of movement initiation. When combined with the optogenetics results, they demonstrate that dopaminergic signals causally set this moment-to-moment probability of movement. To our knowledge, this is a completely novel view of how dopaminergic signals can influence movement initiation. Moreover, because this analysis takes into account the entire timecourse of dopaminergic signals, the probabilistic decoding model also addresses R2’s suggestion. (Thanks R2 – that was an incredibly useful suggestion!)

Editor point 3. We also encourage you to address the statement that ramps existed before licks outside the task, which shows the irrelevance of the task for the finding. Showing examples of this phenomenon might help. And we encourage you to consider how this finding relates to the central claim of 'timing.'

We set out to determine how dopaminergic signaling influences the timing of “self-initiated” movements, movements that, by definition, depend on some internal cognitive process to determine when they are initiated (rather than occurring in response to abrupt external sensory input; (Lee and Assad, 2003; Lee et al., 2006)). However, to detect whether that internal process unfolds relatively quickly or slowly, we required some reference event to align both behavior and neural signals. Our self-timed movement task does exactly that: it provides a visual/auditory cue-event that presumably “starts the clock”. Having an unambiguous time-reference point was the key element that allowed us to relate variations in dopaminergic signaling to variations in the timing of movement initiation.

Indeed, we found striking evidence that dopaminergic signals were informative of the timing process, both on average and from trial-to-trial (New Manuscript Figures 1,6, and 8). However, it is not clear that the specific processes we observed in the context of the self-timed movement task can be generalized to all “self-initiated” movements. Animals obviously also make “spontaneous” movements outside the context of contrived behavioral tasks in a lab. For example, our animals made exploratory licks between trials, when there was no explicit timing requirement governing these movements. We asked whether similar ramping might be present before these spontaneous licks precisely because we were curious whether the slow dopaminergic dynamics may be generalizable to all spontaneous movements –or rather are specific to our behavioral task, with its explicit timing requirement.

For the spontaneous licks, one approach could have been to just globally average the dopaminergic activity preceding every spontaneous lick during the inter-trial period, as done in previous studies that allowed animals to initiate movements ad libitum (da Silva et al., 2018; Howe and Dombeck, 2016). But at best, this global averaging could only provide evidence that activity ramps up before spontaneous licks. Obviously, global averaging throws away potential variation in dopaminergic dynamics that might be related to variation in movement time (and remember, such variation was the crux of our self-timed movement task!). So instead of globally averaging signals before spontaneous licks, we decided to pool spontaneous lick events with respect to the only possible reference we had – the time elapsed since the previous spontaneous lick (example shown in New Manuscript Figure 8—figure supplement 2). We didn’t expect this to be a great reference point, but it was the only reference available. Although the patterns were noisy and quite variable between animals, we did find variation in ramping in some animals that was indeed related to the elapsed time since the previous lick. To be clear, it is not surprising that these patterns were less stereotyped and well-formed—there is no strong reason a priori to believe that the previous lick would serve as a “good” reference event for the next spontaneous lick. What was surprising was that we found any differences in the ramping slope at all. Previous studies have reported short-latency increases in dopaminergic signaling within 500 ms of spontaneous movement initiation (Coddington and Dudman, 2018; da Silva et al., 2018; Dodson et al., 2016; Howe and Dombeck, 2016; Wang and Tsien, 2011), but never tried to relate that activity to the elapsed time since the last spontaneous movement.

Our findings for spontaneous licks suggest that slow dopaminergic dynamics may occur before any self-initiated movement, whether or not there is an explicit timing requirement. (An important caveat is that it is possible that our highly trained animals may have been “practicing” their timed movements between trials.) Thus, we are not concluding that the signals we observed are specific to explicit timing tasks – but nor was that the goal of our paper! But it is critical to emphasize that our findings for the spontaneous licks are far less conclusive than for our self-timed movement task. The presence of an unambiguous timing reference in the self-timed movement task (the visual/auditory start-timing cue) was the critical design feature that allowed us to detect the fine-grained relationship between the dynamics of dopaminergic signal and the dynamics of movement. We have made this point more clearly in the revised manuscript.

Editor point 4. We encourage you to clarify that the task was not designed to specifically rule in or out the many models of what dopamine encodes and rather clarify that the goal of the study is to identify dopamine relationship to upcoming movements or behavioral transitions. Fully addressing R3 comment 1 is necessary.

We believe we have fully addressed R3 Comment 1 in Editor points #1 and #3. We will simply add here that the key finding of our study is that dopaminergic signals predict movement timing remarkably well and are also causal to behavioral output—both of which are novel findings. Put differently, our study is concerned with the downstream (behavioral) impact of dopaminergic signals, and we remain agnostic to the origin(s) of the dopaminergic signal itself. Whether dopaminergic signals encode value, ongoing RPE, vigor or otherwise, our results demonstrate that these signals can causally influence behavior, potentially by modulating the instantaneous probability of initiating a movement. Moreover, the specific temporal variation of the dopaminergic signals was the key observation: regardless of their origin, the signals were excellent predictors of the (highly variable) timing of movement. To our knowledge, this is an entirely novel view, although it accords with the longstanding view (mainly from the clinical perspective – Parkinson’s disease, etc.) that dopamine somehow influences movement initiation.

[Editors’ note: what follows is the authors’ response to the second round of review.]

Reviewer #1:

Hamilos et al. image DA axonal and neuronal CA signals in mice engaged in a self-timed lick task. They observed a ramping signal prior to lick onset that could predict, on average when a mouse would lick. While ramps in DA Ca signals have been observed as animals locomote towards known rewards (e.g. Howe et al., Hamid et al., Mohebi et al., all cited) and while DA activity is known to exhibit correlations with movement onsets – what's new and potentially important in this paper is how well the DA ramps could predict movement onset time – even on single trials. Complementing this finding were causal experiments where photoactivation or inhibition on single trials could promote or delay movement initiation. Given the amount of effort invested into the relationship between DA activity and upcoming movements – it is surprising that the strong correlation between the DA ramp and movement initiation (or decision, see discussion of Guru et al., paper below) hasn't been so clearly observed before (to my knowledge). This paper links DA activity to the timing of a reward-related decision extremely well.

Figure 3 of Guru et al. (unpublished biorxiv paper from Warden lab, not cited) shows a similar result as this paper except the internally timed action is not to produce movement but rather to terminate movement (stop running on a wheel). The fact that the same ramp is observed in both of these conditions undermines the connection that the authors make about ramping DA and decision to move. Taken together, it seems the DA ramps are more about the timing of a self-paced decision (whether it be to start or to stop doing something) than about movement initiation. The authors may want to re-tweak the interpretations of this paper to allow for this more general perspective.

This is a great catch! Guru et al.’s work was pre-printed about a week after our own, and we took the opportunity to read it carefully. We were very comfortable re-tweaking our interpretation to allow for this more general perspective. We note an exciting connection to our initial motivation by movement disorders like Parkinson’s—patients not only have difficulty initiating movement, but also with changing movement (e.g., perseveration), implying a more general need for dopamine to flexibly transition between behavioral and possibly cognitive states. We’ve always liked this idea, but with our movement task alone, we were not in a position to make that argument. In the revised Discussion, we now suggest that our results may apply more generally to behavioral transitions, which would encompass both movement initiation and changing to a different movement, like stopping. We note that we are not entirely convinced that stopping isn’t in of itself a kind of movement initiation— counterbalancing musculature must be invoked to stop the momentum of the body and the running wheel that is different from the ongoing movement of running. But “behavioral transition” seems a good way to describe both the self-initiated lick and the stopping behavior.

Reviewer #2:

In this study Hamilos and colleagues measured dopamine signals in mice performing a self-timing task. They took advantage of the variability in the first lick time to study how dopamine signaling preceding the first lick varied with the timing of the first lick. While a number of studies have reported short-latency (<500 ms) increases in dopamine activity immediately preceding movements, the authors make a number of novel findings. First, dopamine photometry signals ramped up over several seconds preceding the first lick. Second, the steepness of this ramping, even the amount of baseline signal predicted the first lick time. Third, optogenetic activation and inhibition reduced or increased the first lick time. The authors are commended for performing several different types of photometry experiments. The authors conclude that dopaminergic signals unfolding over seconds control the timing of movements, but not as much the ability to move itself. While the work is novel and adds an interesting perspective on the function of dopaminergic neurons, there were concerns about some of the evidence for the first two claims, as well as insufficient detail in some of the statistical analysis that make it difficult to fully judge the paper's merits. The main concerns are detailed below.

1. Lines 151-153: "we observed systematic differences in the steepness of ramping that were highly predictive of movement timing (Figure 1D-E)." The reviewer agrees this is quite evident from the ramping curves, but still the authors should formally show the fact that the steepness (i.e., slope) of ramping is predictive of timing. The decoding model in Figure 6 goes some way toward this goal, but it seems Figure 6 uses time to threshold rather than the slope. It would be worthwhile to check in Figure 1 or Figure 2 whether the time to first lick is negatively correlated with slope of ramping.

We did not quantify the average slopes in New Manuscript Figure 2 for two reasons: First, Stimulated by R2’s feedback, we derived a new logistic regression analysis to characterize single-trial dynamics that takes into account the entire time-course of dopaminergic signaling on single trials (See Editor point #2), not just a single threshold crossing (New Manuscript Figure 8). This model suggests a more nuanced view of dopaminergic dynamics in which dopaminergic signaling sets a moment-to-moment probability of unleashing a prepotent movement. We also quantitatively analyzed the dynamics on single trials, but we could not definitively characterize those dynamics as linear ramps vs. discrete steps, as others have found (see Editor point #2). Because we did not find definitive evidence for sloping on single trials, we focused on movement-time decoding models that make no assumptions about the specific shape of single-trial dynamics (New Manuscript Figures 6 and 8). In this light, we felt that quantifying the slope of the average ramping responses would distract from the larger point.

We think these new analyses and interpretations will satisfy R2. However, if R2 feels strongly that we should quantify the average slopes in New Manuscript Figure 2, we can do so; it’s easy enough! But we would have to immediately add a caveat about the complexity of the underlying single-trial dynamics. In the revised manuscript, we have added a line at the end of the section describing the qualitative shapes of the average signals to let readers know we will be quantitatively addressing single-trial dynamics in a subsequent section of the paper.

2. Figure 4: similar to the previous comment. The reviewer found it difficult to interpret Figure 4 and suggests including a more traditional analysis, such as a Pearson correlation between the time to first lick and the level of pre-cue baseline dopamine.

We have eliminated this figure and focused on simpler analyses in the text, as per your suggestions. We also added the Pearson correlation coefficient for the relationship between baseline-signal amplitude and movement times in the Results text when referencing New Manuscript Figure 2 (r = -0.89).

3. Figure 6: the reviewer was confused about the contribution of the pre-cue baseline signal (predictor # 7) to the nested model. From the results in Figure 6B and 6C it appears that the pre-cue signal has almost zero contribution to the model (it was the only predictor with a non-significant weight in 6B). But this seems to contradict the authors' claim that "higher pre-cue, baseline DAN signals are correlated with earlier self-timed movements." If baseline signals do indeed correlate with timing of movements, shouldn't the weight of predictor # 7 be higher? This reviewer may have misunderstood some important detail, so some clarification of this issue in the text would be helpful. The reviewer also requests clarification of the difference between the "offset" (Predictor # 0) and "pre-cue" (Predictor # 7) as they both seem to be referring to some sort of baseline signal.

We see how that might be confusing—but there is indeed a simple explanation. First, this is a nested and cross-validated model, and we are only showing the final model with all predictors. We nested in the predictors one at a time during initial fitting, starting with those furthest from the lick. If you nest in the baseline predictors without the subsequent predictors (threshold crossing time), both baseline predictors are indeed significant. However, the GCaMP6f threshold crossing time was such a strong predictor that it absorbed much of the variance contributed by the baseline predictors; thus, after cross-validation, the threshold-crossing time survived as a significant predictor, but the lamp-off-to-cue (pre-cue) interval did not.

Second, there are actually two baseline predictors in the decoding model – the inter-trial interval signal (ITI; predictor #6), and the pre-cue signal (predictor #7) – and the way we named the second one caused the confusion. To clarify, we have renamed this as “lamp-off interval” in the revision. Predictor #6 spans the beginning of the ITI to the Lamp-Off event (10 s) and Predictor #7 spans the lamp-off to cue-on interval (drawn randomly from 400-1500ms). When we say “baseline signals” we are referring to both the ITI and pre-cue predictors in this model. We split up the baseline into two regions because of preliminary analyses suggesting that the baseline activity abruptly becomes better explained by the upcoming trial outcome after the lamp-off event. This suggested our best baseline prediction should be found during the lamp-off interval (which is indeed the case in the averages). However, this analysis is done on noisy single trials; because the ITI predictor (#6) covers 10 s vs. only 400-1500 ms for the lamp-off-to-cue interval (#7), the estimate of the median amplitude on single trials is much “cleaner” for the ITI. The end result is that, because the ITI predictor (#6) is nested first, it tends to absorbs almost all the contribution of the baseline in the decoding model, and is consequently a statistically significant predictor (in the expected effect direction – inversely proportional to the lick time). To clarify this point, we renamed predictors #6 and #7 to be more consistent with the text interpretation, as follows: 6=baseline:ITI, 7=baseline:lamp-off interval.

The reviewer also requests clarification of the difference between the "offset" (Predictor # 0) and "pre-cue" (Predictor # 7) as they both seem to be referring to some sort of baseline signal.

Predictor #0 (offset) actually has nothing to do with baseline. Here, “offset” is simply the boring constant term that is included in any linear regression (e.g, the “b” term in y = ax +b). We caused the confusion by using the term “offset” as a predictor of the modeled dopaminergic signal. To clarify, we renamed this constant term “b0”, the typical label for the constant term in multiple linear regression.

4. In several figure panels (including 6B, 7C, 7D) stats are either missing or details are too sparse to fully evaluate the significance of the results. The authors are requested to include information about sample size, type of test used, and if possible the exact p value.

We provided the sample size and test type in figure legends, but we have also added these details inline to the main text in the revision. We also added the sample size to the figure-panel image itself wherever possible to make this information easier to extract. We note that we have provided exact p-values and confidence interval bounds in the embedded source data that we provided for each figure.

For the specific panels mentioned:

New Manuscript Figure 6B shows regression coefficients, the 95% confidence intervals of which are determined by 2-sided t-test by the MATLAB glmfit package, and whose error is propagated across datasets. The figure legend indicates that the error bars indicate the 95% confidence intervals of the coefficients, which provides both the significance information of the p-value as well as the effect size. We added “2-sided t-test” to the figure legend for this panel.

New Manuscript Figure 7C shows the 1,000,000x bootstrapped mean difference in first-lick time between the stimulated and unstimulated conditions. The procedure used to calculate these values is detailed in the Methods section under Quantification of Optogenetic Effects. The statistical comparison of the data in this panel is explicitly shown as the plotted data of New Manuscript Figure 7D, in which we compare the category distributions. We added additional descriptors to this figure legend for these 2 panels.

Reviewer #3:

Assad and colleagues examined nigrostriatal dopamine signals in head-fixed mice performing a licking task. Reward was available if mice first withheld licking for several seconds after a cue. They observed a ramping increase in dopamine before the time of first lick, that stretched in proportion with this hold interval. Optogenetic increases/decreases of dopamine caused licking to be earlier/later. They conclude that dopamine ramps are involved in controlling the timing of movements.

There are several interesting aspects of this work, including the comparison between different DA signals (Figure 2) and the ramps themselves. Based on prior work in the field I have no problem believing most of the title "…dopaminergic activity controls the moment-to-moment decision of when to move". The problem is that the aspects of this work that are novel are either not well supported by data, or rely on questionable analyses and interpretations. There are also serious problems with the behavioral task and the quality of some recordings.

Main points:

1) The mice are notably bad at the behavioral task. Based on Figure 1B it is rare for them to wait long enough to get the reward. They do wait longer in the 5s condition compared to 3.3s, just not long enough. This general inability to perform the task casts further doubt on what internal representations might be driving dopamine signals and behavior.

We addressed this in detail in Editor point #1

I'm not sure it's reasonable to describe the behavior as "timing", if the timing is usually wrong. And given that they see the same ramps before spontaneous licks outside the task, the task seems largely irrelevant.

We addressed this in detail in Editor point #3

2) Optogenetic manipulation of dopamine made movements more or less likely, as expected from prior studies.

If we understand correctly, R3 is suggesting that optogenetic manipulation made movements more or less likely to occur at all on a trial. This is not what we found. Rather, we found that optogenetic manipulation changed the timing of movement on single trials. Specifically, optogenetic stimulation shifted the distribution of movement times to earlier times, while inhibition shifted the distribution to later times. However, a movement still occurred on every trial. Others have shown that nonphysiological stimulation can evoke nonspecific movements with short latency (e.g., activation can cause running bouts and inhibition can cause freezing; (Coddington and Dudman, 2018)), but modulation of a planned movement’s timing is more subtle – and is completely novel (to our knowledge).

But the authors claim more than this – that the optogenetic 'effects were expressed through a "higher-level" process related to the self-timing of movement'. I did not find this claim convincing, even beyond the issue that the mice are very poor at timing. If an action is prepotent in a given behavioral context as the result of training, then increasing dopamine may increase the likelihood of that action being emitted. Giving even more dopamine (higher laser power) may lower the threshold for *any* action being emitted. But this doesn't demonstrate anything much about timing per se.

Actually, we could not have said this better ourselves! The idea that “increasing dopamine may increase the likelihood of [a prepotent] movement” is exactly our current view. But this is nonetheless a completely novel view of the role of dopamine in movement initiation. Moreover, R3’s comment (and also a different comment from R2) spurred us to think more deeply about what the optogenetic manipulations were telling us mechanistically about the role of endogenous dopaminergic signaling in movement timing. In fact, we realized that the “probabilistic” view provides a beautiful mechanistic framework for how dopamine could affect timing (thanks R3!) Let us explain:

As described in our response to the editors (Editor point #2), opto-manipulations appeared to modulate the probability of a movement being emitted, such that the distribution of movement times was shifted earlier (opto-stimulation) or later (opto-inhibition). Moreover, as R3 notes, low-level (physiological) opto-stimulation only increases the probability of the “prepotent” movement – the desired lick. But this was for artificial stimulation of dopamine neurons; what does this mean with respect to the endogenous dopamine signals we had recorded during the self-timed movement task? Recall that we had found monotonically increasing dopaminergic signals during the timed interval (whether by stepping or ramping is immaterial for this point). If elevating dopamine increases the probability of movement, then this endogenous elevation in dopaminergic signaling should likewise lead to an increased probability of moving over time. It thus follows that the specific dynamics of the increasing dopamine signal should lead to a specific time-course of increasing probability of movement. A “specific time-course of increasing probability of movement” is exactly what we mean by “timing” – and now emerges a mechanistic hypothesis for how dopamine plays a role in that timing.

To test this hypothesis, we developed a new logistic regression framework to try to predict the instantaneous probability of movement (the hazard function) for individual behavioral sessions from the dopaminergic signals recorded during those sessions. In fact, the dopaminergic signals were remarkably accurate predictors of instantaneous movement probability (see New Manuscript Figure 8 and detailed response under Editor point #2). These results argue that the specific dynamics of dopaminergic signals regulate the timing of movement precisely by modulating the probability of movement initiation in a time-dependent fashion. That’s a fancy way of saying that dopamine plays a role in timing!

Honestly, we probably never would have taken the time to think this through in such detail if not for R3 and R2’s feedback—thank you! This really improved the science, not only the manuscript.

3) A key claim is that the dopamine signals are "slowly-evolving". This makes it essential to define "slow". In the dopamine field "slow" or "tonic" has often been used to referred to microdialysis signals presumed to change over tens of minutes. Here the authors describe ramping processes that may complete over several seconds, or be done in less than a second. So the kinetics of the signal seem more linked to the (varying) speed of behavioral transitions than to any inherently "slow" process.

That’s a good point. We were referring to signals that evolve over timescales of seconds, but for dopamine, the term “slow” might imply a minutes-long timescale. We modified the title for clarity.

4) Furthermore, in the Discussion the authors describe the instantaneous state of the dopamine signal at trial onset as "tonic", which seems like a mistake: they demonstrate that this signal has been immediately "reset" and cares more about the upcoming behavior than the immediately preceding trial just a few seconds earlier. This is not how "tonic" is used in the dopamine literature (e.g. Niv/Daw/Dayan describing tonic dopamine as integrating reward rate over prior recent trials).

Another good point. We changed this to reflect the timescale of seconds.

5) The ramp-like pattern is interesting and may indeed be comparable to dopamine ramps previously reported in other tasks. But ramps can arise as an artifact of averaging across trials in which events have different timing.

We addressed this in detail in Editor point #2.

To avoid this problem the authors examined single-trials (Figure 6). But the analysis employed does not actually measure ramping on single trials. Instead, they examine the timing of crossing an artificial threshold, and they see that this threshold crossing time predicts lick time well when the threshold is high. This seems equivalent to noting that dopamine increases shortly before licking, which we already knew from movement-aligned averages; it doesn't seem to demonstrate the point the authors wish to make.

We addressed this in detail in Editor point #2. Here we just add that in all our quantitative analyses, we truncated the dopaminergic signals at least 150 ms before movement onset to exactly avoid the problem that “dopamine increases shortly before licking”. We also reiterate that the threshold analysis was informative for any threshold level, not only a high level, as expected for a ramping model but inconsistent with a discrete step model (New Manuscript Figure 6—figure supplement 3, also see Maimon and Assad, 2006).

6) The authors note correctly that the signals they observe "could reflect the superposition of dopaminergic responses to multiple task events, including the cue, lick, ongoing spurious body movements, and hidden cognitive processes like timing." But I wasn't convinced that the regression models provided much insight into those hidden processes. Adding a "stretch" parameter felt merely like a descriptive fit to the observed data than a process-based model.

The point of the model was to test whether ongoing “nuisance” movements or optical artifacts could give rise to the ramping signals we observed. They could not, which indicated that the residual ramping and baseline offset signals were more likely related to hidden cognitive processes related to movement timing in the task. The stretch feature provides the insight that these hidden processes are unfolding at different rates on trials with different lick times. We go on to explore this idea in our process-based decoding models, particularly the new model that uses the dopaminergic signal to decode the instantaneous probability of movement initiation (see Editor point #2).

We note that the stretch feature is model-free. It makes no assumptions about the underlying “shape” of the dopaminergic signal; it just allows for temporal “expansion” or “contraction” to agnostically fit whatever shapes were present in the data. This quantitative, model-free description of the dynamics was necessary before developing and testing more constrained, process-based models. In particular, the stretch feature only encodes percentages of timing intervals and thus cannot produce ramping – or any other shape for that matter – unless that shape is present in the signal and stretches/contracts with the length of the interval. The approach is similar to encoding each timepoint in the dataset, a technique often used in model-free signal fitting with encoding GLMs (Park et al., 2014; Runyan et al., 2017). In such timepoint models, each timepoint relative to an event is represented with a feature (basis sets are sometimes used to reduce the number of parameters without changing the underlying structure of these models). This allows whatever shape is present in the data to be extracted without any model assumptions other than that timepoints relative to the alignment are similar across trials.

The only difference between our stretch feature and explicit time-encoding is that the stretch feature allows trials of different lengths to be fit with the same parameterization, and thus assumes only that percentages of an elapsed interval have similar dynamics across trials. If we hadn’t done this and instead explicitly encoded time (which we did try during model selection), some trials would not have been fittable by a subset of the predictors (e.g., a 6.5 s timepoint predictor is not encodable in a trial shorter than 6.5 s, by definition), which makes the model overly susceptible to fitting noise present on long trials. Employing the stretch feature allowed our model-free parameterization to properly fit all of the data present in our datasets with every predictor. The implicit stretching of this feature resulted in scaling of whatever shape the feature found to the length of the trial-interval. On the other hand, the stretch feature cannot fit if the underlying dynamics (shape) on long vs. short trials are not stretched versions of one another. Thus, the stretch parameter is extremely useful in assessing whether the dopaminergic dynamics evolve at different rates on trials with different movement times. Because the GLM empirically found a ramp (though was not constrained to do so), the stretch aspect of this feature translated to changing the steepness of this ramp, quantitatively revealing that an underlying ramping process is taking place at different rates (at least on average) during self-timed movement. We then explore this idea with process-based, single-trial decoding models. We have explained this rationale more clearly in the revised Results section.

7) It is not uncommon to see neural activity evolving between cues and movements in a manner that scales with the interval between these events (e.g. Renoult et al. 2006, Time is a rubberband: neuronal activity in monkey motor cortex in relation to time estimation). It is interesting that dopamine can do something similar, but that doesn't seem to support a special role for dopamine.

Indeed – in fact, our lab was among the first to show compelling examples of “stretching” in timing tasks in monkeys (Lee and Assad, 2003; Maimon and Assad, 2006). But this is precisely why we’ve been obsessed for years with examining these signals in dopamine neurons! As laid out in the Introduction of our manuscript, decades of pharmacological and lesions studies pointed to a central role for dopamine in self-timed movements. Our experiments not only show that the dynamics of dopamine signals are predictive of movement initiation, they also indicate a causal role. The ability to record and manipulate genetically-defined populations of dopamine neurons is a prime reason that our lab switched from using monkeys to using mice.

8) The figures are not well organized at all. Figs1 and 2 seem partly redundant, and are often referred to together. Figure 3 is mentioned only in passing to say that an accelerometer was present, without describing the Figure 3 results or why they are important (perhaps should be a supplemental figure after clarification).

Thank you for pointing this out, we totally agreed after thinking on this. We re-organized figures substantially to make the progression through the body of the text linear. We no longer jump around! You will find we moved Original Manuscript Figure 2 to the supplement, and we also no longer refer to any figures in passing.

9) Line234: "(highest S:N sessions plotted for clarity, 4 mice, 4-5 sessions/mouse, 17 total)". This seems weird and concerning. If signals were good enough to use for other analyses, why not this one?

We only intended to illustrate the effect with the sessions with highest S:N (because we had injected 2x virus in those animals). But we confused everyone with that figure, so we dropped it. We only report the results of the ANOVA now, which included all sessions from all animals.

10) Fig6, what does it mean that the tdt (control) signal is also a significant predictor of first-lick time? This seems like a serious problem for a control signal.

We can see why this might have been confusing—but tdt is working exactly as intended:

We know a priori there are movement artifacts expressed in both red and green channels: this is why we use tdt in the first place -- to “correct” for optical artifacts in the GcaMP6f signal. As we see in New Manuscript Figure 4B, we can detect optical artifact with tdt within ~150 ms before lick-detection, presumably when the mouse begins the action of extending the tongue, which requires some advance postural adjustments, jaw opening, etc. It’s not at all surprising to see these artifacts in tdt—in fact, it’s reassuring, because it tells us our movement control channel is detecting these artifacts.

That said, if the threshold-crossing model were trivially detecting upswings in GcaMP6f related to these optical artifacts, that would indeed be very concerning. To guard against optical artifacts causing trivial threshold-crossings, we first aggressively truncated GcaMP6f signals well before the first-lick (0.6 s), which, on average, appears to abolish the pre-movement tdt upswing. However, on a small subset of trials, the preparatory movements might start a little earlier than on average, and we were concerned that this could artifactually give rise to GcaMP6f threshold-crossing predictions of first-lick time. Thus, we regressed away optical artifacts by fitting the decoding model as a nested model. By adding predictors one at a time to these models, we regress out variance explained by the control signals in predicting the first-lick time. Specifically, we added the tdt predictor to the nested regression model before adding GcaMP6f to the model, such that any threshold crossing artifacts present in both green and red signals will have already been accounted for by the model iteration that included tdt but not GcaMP6f. Even so, the GcaMP6f threshold-crossing time was the most dominant predictor to the model and independently explained more variance in the first-lick time than any other predictor despite having regressed away optical artifacts detected in the tdt channel. We are thus assured that the predictive power of the GcaMP6f threshold crossing time was not the result of optical artifacts present in tdt. To summarize, it is not particularly surprising that tdt is a significant predictor to the model, given that on some trials the animals may have begun preparatory movements earlier than usual. The point is that we have not incorrectly ascribed such artifacts to genuine neural signal.

As a final note, the way we have treated tdt in the model is analogous to regressing away the tdt signal from the GcaMP6f signal, as has been the trend in the field, where papers often describe regressing out some “inert” red-flourophore signal (tdt, mCherry, etc.) from the GcaMP6f signal before showing any data. We have found this approach unsatisfying because the reader (a) does not know how much artifact/predictive power was present in tdt; and (b) must trust the authors that they have done the regressing away properly. By including tdt as a predictor to our decoding model, we are regressing away the optical artifact, but in a more specific way that takes into account how that artifact is expected to create confounds in this particular model (here, how the pre-movement preparatory motions of the animals presumably give rise to trivial threshold crossings). Furthermore, we report the tdt signal throughout the paper (including in this model), thereby allowing readers to draw their own conclusions about the reliability of the GcaMP6f signal.

[Editors’ note: what follows is the authors’ response to the third round of review.]

Essential revisions:

1) Please address this concern regarding 'baseline" predictors: The authors have made significant improvements in describing the task, but there remained a lack of information about behavior in the lamp-off period before the cue was turned on (the baseline). The main concern is that this delay period is technically not a baseline because the lamp-off serves as an additional predictive cue. The authors tried to prevent this by randomizing the delay time (0.4-1.5 s), but this range looks comparable or even smaller than the variability in first-lick time shown in Figure 2B. They also did a control experiment without a lamp and showed qualitatively similar performance, but I didn't find the data very convincing (for some reason the data shown in figure supplement 1C does not have clear peaks at 3.3 s). Knowing whether this is a real baseline is important because the authors set cue-on as t=0, and do not consider behavior prior to that. This would not be a big concern if the authors can show that there is no statistically significant relationship between the lamp-off to cue-on delay and the lick onset on that trial. Otherwise, the concern is that their finding that higher baseline fluorescence predicts earlier licks may have a trivial explanation.

This is a good point. We have addressed this issue in four ways:

i) Provide a clear distinction between “baseline” and “lamp-off” intervals. Because the lamp-off could act as a partial predictive cue, we agree that for us to call something a “baseline effect”, it must be present before the lamp-off cue. Thus, to avoid confusion, we’ve clearly defined the pre-cue intervals in the revised manuscript as follows:

“Baseline”: now only refers to timepoints before the lamp-off cue.

“Lamp-off Interval (LOI)”: now refers to the interval between the lamp-off and cue onset

ii) Relationship between the lamp-off interval (LOI) and first-lick time. Per your suggestion, we implemented a regression model to characterize the relationship between LOI duration and lick-time:

First-lick(s) = b*lamp-off(s) + b0

Only 14/98 sessions recorded at SNc showed any significant relationship between LOI duration and first-lick time, and the relationship was very weak (R2 < 0.04 for 13/14 significant sessions). Moreover, the majority of those 14 sessions were performed by 2 animals (out of 12), and for one of those two animals, the direction of the relationship between LOI duration and first-lick time was not even consistent.

To make the same point more intuitively, we have additionally added new Figure 2—figure supplement 1 showing averaged GcaMP6f responses aligned to the Lamp-Off Event rather than the cue onset (as in Figure 2C). When average responses were aligned to the Lamp-off, we found lower-amplitude transients more spread out in time, compared to aligning responses to the cue onset. This also argues that the cue onset was the more reliable “start timing” cue.

iii) Examination of the pre-Lamp-Off Baseline interval. Notwithstanding point #2, if the weak correlation between LOI duration and first-lick time explained the baseline effect we observed, then the correlation of dopaminergic signals with first-lick time should only be present after the lamp-off event. That is, if we restrict the analysis to the preceding (aka pre-Lamp-Off) Baseline period (in any and all sessions), we should no longer see the relationship.

In the revised manuscript, we now examine the Pearson Correlation between the Baseline (pre-Lamp-Off) dopaminergic signal and the first-lick time. We averaged the dopaminergic signals from 2 s before the Lamp-off Event until the Lamp-Off Event. The “true” Baseline dopaminergic signal remained inversely correlated with the first-lick time (r = -0.63). This is also clearly evident by eye in the Lamp-Off aligned average responses in new Figure 2— figure supplement 1A. The correlation was weaker than observed after the Lamp-Off Event (r = -0.89)—but this is not unexpected: the lamp-off event comes later than the Baseline period, and in our movement timing/probability decoding models, we found that dopaminergic signals become progressively more informative of the first-lick time as the movement approaches. We are thus quantitatively assured that baseline correlations are not trivially explained by dopaminergic responses to the Lamp-Off Event.

iv) Omitting sessions with significant LOI/first-lick time relationship. We also repeated the analysis in Point (iii) while omitting the 14/98 sessions for which we found a significant (albeit weak) relationship between the duration of the LOI and the first-lick time (Point #2). Omitting those sessions did not eliminate the inverse correlation between the average dopaminergic signals and the first-lick time (r = -0.83) despite being nosier from reduced averaging, and the averaged responses were qualitatively unchanged compared to the averages with all 98 sessions included (Figure 2—figure supplement 1).

In summary, the baseline dopaminergic signal was correlated with the first-lick time even before the Lamp-Off Event, independent of whether the animal’s timing was influenced by the duration of the lamp-off interval.

2) Address comments re: Figure 7, where there is still some confusion about the description of the sample size. For example, line 339 lists 12 mice but I think the correct variable is number of trials. The text should thus include the size of the actual variable used in the plots (listing the number of mice as well is ok, but this is not sufficient on its own). Furthermore, the results would more convincing if this figure included single-animal comparisons rather than just pooled data or across-session comparisons. Basically, could the authors please include a panel similar in style to Figure 7C but where individual points represent single animals, not sessions? This would be more consistent with other optogenetic-behavioral studies in rodents.

Sure, thanks for pointing that out. We have updated the main figure panel with this animal-by-animal analysis and moved the by-session plot to the supplement.

Author response image 4. Original by-session figure compared to by-animal figure (figure 7—figure supplement 3C).

Author response image 4.

3) Please better address an issue with interpretation of results, specifically regarding movement timing versus reward expectation: The authors claim that their results mean a causal role for the level of dopamine ramps in modulating the probability of action initiation, but that interpretation seems strange given that these ramps are often observed when animals are already moving (Howe et al., 2013; Hamid et al., 2016; Engelhard et al., 2019; Kim et al., 2020; Guru et al., 2020). In common with all these papers, dopamine ramps seem to be related to the temporal prediction of when reward will be available. This was shown nicely by Kim et al., 2020, where they showed that regardless of the movements performed by the mice, ramps are elicited in relation to when the animal expects the rewards to arrive (see especially their moving bar experiments). In the present work, this interpretation is also consistent with the results (and more consistent with previous works): when animals decide to move early, the DA system receives this information and that results in a more steeply rising ramp, while when animals decide to move late, the same thing occurs, and the ramp rises more slowly. The issue at hand is that the initiation of movement (licking) is strongly correlated with reward delivery (or with the time of expected reward delivery in case of failed trials) and thus it is not possible to distinguish between these interpretations. So, in summary, the authors should address the concern that the interpretation of dopamine ramps modulating the moment-to-moment probability of action initiation is unwarranted. Results should be reframed to make it clear that this claim cannot be supported given the possible alternative explanations (such as the one suggesting that DA ramps reflect a prediction of the time of upcoming reward delivery, which is more consistent with the previous literature).

Alternatively, if the authors can find an experimental way to dissociate the expected time for reward delivery from the moment of action initiation, then that would be one way to make a decisive conclusion. For example, the water dispensation could occur at a fixed time relative to the cue – even as the mouse can initiate licking whenever it wants. If DA dynamics still predict initiation time, then the authors' perspective is supported. Yet if the DA dynamics no longer predict initiation time, and instead simply ramp to the reward time, then reviewer 4's perspective is supported. Either result would be interesting. Performing these experiments would be ideal, but not necessary for publication. If the authors do not wish to conduct new experiments along these lines, they should – throughout the manuscript – modify their text to include this alternative interpretation (reward expectation) – or offer in rebuttal a convincing argument as to why the logic of reviewer 4's (and the BRE's) thinking is not sound.

We’ve thought a lot about this issue since early in the project and discussed it extensively with colleagues. In a nutshell, we fundamentally agree with the editor/reviewer’s point: because movement occurs just before reward, we cannot strictly rule out that the dopaminergic ramping in the self-timed movement task represents reward anticipation. We tried to make this clear in the previous iterations when discussing the origin of the ramping signal (as opposed to the behavioral readout of the ramping signal, which is the focus of this manuscript), but we have now modified the manuscript to more explicitly reflect this alternative interpretation. Nonetheless, logic still points toward a relationship between the ramping signals and movement initiation in our task. There is a lot to unpack in this regard, and we appreciate the opportunity to share our thoughts here, as follows:

First, it is important to note that dopaminergic ramps have not, in fact, been observed in relation to passive temporal expectation of rewardexcept when some kind of external sensory indicator of proximity to reward was provided. For example, in Kim et al.’s moving bar task, the mouse was provided a visual update of the timing of reward delivery, and dopaminergic ramping was observed. Likewise, in Howe et al.’s navigation tasks (and Kim et al.’s VR navigation task), animals encountered spatial cues indicating the proximity to reward. In contrast, in Pavlovian conditioning, where animals are not provided external cues as to the (fixed) timing of a reward following a sensory cue, dopaminergic ramps are not observed—for example in the classic work of Wolfram Schultz (Schultz et al., 1997) and in numerous Pavlovian studies in rodents (e.g., Menegas et al., 2015; Schultz et al., 1997; Starkweather et al., 2017; Tian et al., 2016, etc.). Because Pavlovian conditioning does not require a movement to obtain reward, it is arguably the cleanest means of dissociating timed reward anticipation from movement initiation. The lack of dopaminergic ramping in Pavlovian conditioning thus argues that temporal tracking of proximity to reward alone is insufficient to generate dopaminergic ramps.

Given the observations from Pavlovian conditioning, we were initially surprised that ramping was present in our self-timed movement task, which also lacked explicit cues indicating proximity to reward. That is, if the dopaminergic signaling were solely concerned with temporal proximity to reward rather than movement, we would not expect ramping in either Pavlovian conditioning or our self-timed movement task—yet we did find ramping.

To reconcile the lack of dopaminergic ramping in Pavlovian conditioning with the presence of ramping in other paradigms (e.g., Howe et al., 2013), our colleagues Sam Gershman and Nao Uchida have proposed a model in which ramping arises from “resolving uncertainty” of one’s position in the value landscape, for example, as informed by the presence of external visuospatial cues. (We are not aware of any other unifying model that has addressed why ramping occurs in certain paradigms but not during Pavlovian conditioning.) In the Gershman/Uchida model, temporal uncertainty in Pavlovian tasks leads to a “smearing” among internal timing states, distorting the value function in a way that eliminates ramping under an assumption of an “ongoing” RPE calculation by dopamine neurons (Kim et al., 2019; Mikhael and Gershman, 2019; Mikhael et al., 2019). But how do we explain ramping in our self-timed movement task, where the only indicator of proximity to reward was the animals’ own internal determination of elapsed time?

When we discussed our findings with the Gershman and Uchida groups, we were all inevitably drawn to the idea that there must be something crucial about the operant nature of our task that leads to ramping—that is, the dependence on the animal actively moving to pursue reward. In light of Gershman et al.’s formal model, we infer that the animal must resolve its own uncertainty about its current state in time in order to determine when to move. The animal’s subjective timing may not accurately reflect objective time from trial-to-trial, but its traversal of internal “timing states” still represents a reduction in uncertainty of its current timing state. In this view, the difference between our operant timing task and Pavlovian timing tasks is that the animal itself exactly determines its movement time in the self-timed movement task (i.e., it “knows” its own timeline/state, inaccurate as it may), but the animal does not accurately predict its movement/reward timing in Pavlovian tasks, where reward is delivered passively. We developed this model in detail in a companion theory paper (Hamilos and Assad, 2020), which we wrote mainly because we did not have room in the eLife Discussion section to fully articulate the idea. However, we think this idea is important, and have summarized it in the revised Discussion.

Given the foregoing argument, the most parsimonious explanation for ramping in the self-timed movement task is that ramping depends on the process of movement generation, which is the singular element that is missing from the Pavlovian paradigm. (Note this does not mean that all dopaminergic ramping requires movement—e.g., Kim et al., 2019—but rather that ramping in the absence of external sensory cues can occur if the animal controls when it moves.) However, one could still argue that even if self-timed movements lead to ramping, ramping nonetheless reflects anticipation of reward without itself influencing movement. That is, one might suppose that the dopaminergic signal could be a “passive” monitor of one’s trajectory through the value landscape, as indicated either by the passage of time or by explicit sensory/spatial cues. Testing this idea was our main motivation for doing the optogenetic stimulation/inhibition experiments. Essentially, our question was not whether ramping better predicts reward or movement onset, but rather whether the dopaminergic signal can also be leveraged to causally influence movement initiation. If dopamine were simply a passive observer of reward, we might expect changes in behavior on subsequent trials, but not necessarily on the same trial. Rather, we found that DAN manipulation causally altered movement time on the same trial as the stimulation, arguing strongly that the value-related signals carried by the dopaminergic system could be harnessed moment-by-moment to influence when the movement occurs.

Note our emphasis on “could be” in the previous sentence. We stress that we have no reason or evidence to think that the presence of dopamine ramping always leads to movement. As we pointed out in the first revision of the manuscript (and in our previous reply to Reviewer #3), we expect dopamine-influenced movement under the right circumstances, that is, when a pre-potent movement is “loaded and ready to go”—exactly as in our self-timed movement task.

Importantly, we also note that our arguments here and in the revised manuscript do not depend on the Gershman/Uchida model and are fully compatible with value and other models of the origin of the dopaminergic signal. We simply note Gershman/Uchida’s model because it is the only model we are aware of that has mathematically and experimentally attempted to reconcile the lack of ramping observed in Pavlovian tasks with the ramping observed in these notable “special cases.”

Finally, one might argue that modulation of dopaminergic signaling during the optogenetic manipulations changed the animal’s belief of when reward might occur, thereby leading to the change in the timing of movement initiation. We do not disagree with this interpretation—in fact, we suspect this is precisely what happens, as we lay out in Hamilos and Assad, 2020. That is, reward expectation may be the very force that propels movement in our task. In this view, reward expectation is intrinsically intertwined with movement initiation. Our point is that whatever the dopaminergic signal is tracking, it can be harnessed to influence the probability of movement onset.

We have updated the revised manuscript to better reflect these arguments, both in the logical lead-in to the optogenetics experiment in Results and in the revised Discussion.

A final point: The editors/reviewers suggested that one way to disentangle movement and reward anticipation would be to delay reward. We also considered that idea early on, but abandoned it. The reason is that even if we found dopaminergic ramping up until movement with a delayed reward, that signal could still be reward-related (even if ramping stops right at the movement). In the Gershman/Uchida model, temporal uncertainty would be resolved whether or not the animal is immediately rewarded: the value function still increases as reward is approached (due to reduction in temporal discounting), and the reduction in temporal uncertainty (and thus ramping) is afforded by the operant nature of the task, as described above. Thus, in principle we don’t expect that experiment could rule out a reward-related explanation for ramping.

Just to show we’re not fast-talking here (or too lazy/chicken to do that experiment for real, LOL), we actually have done that temporal dissociation in a different experiment in the lab. We have another movement task in which the mouse makes a self-timed forelimb reach to a touch sensitive bar. We also found (amazing) seconds-scale ramping (either up or down) in spike rates from pallidal projection neurons in the SNR during the timing interval before the limb movement. However, we wanted to disentangle whether those ramping signals were in relation to the forelimb movement or to the licking that followed almost immediately after the reach. For that reason, we used a servo-motor to withdraw the juice tube before each trial, and then on successful trials, we swung the tube back toward the animal’s mouth 833 ms after the lever touch. For most SNR neurons, we found that the ramping still occurred up until the time of the reach (and did not continue during the delay). However, in some of those experiments we also likely encountered dopamine neurons (DANs), either from stray microwires in the SNC or putative DANs known to be sprinkled in the SNR (based on broad spike width and characteristic 2-10 Hz background firing rate). For those putative DANs, we found exactly what you were suggesting: the neurons showed ramping, ramping still peaked at the time of the forelimb movement, and ramping did not continue during the delay between the lever press and the reward delivery (see Author response image 5 for example). It would be tempting to claim that this supports the movement-initiation argument for ramping in (putative) DANs. But as we explained above, this observation cannot in principle rule out a reward-based signal. We maintain that a reward-based signal can still influence movement.

Author response image 5. Ramping of putative DAN spiking rates peaks at the time of self-timed movement initiation, not the time of reward delivery.

Author response image 5.

References

Hamilos, A.E., and Assad, J.A. (2020). Application of a unifying reward-prediction error (RPE)-based framework to explain underlying dynamic dopaminergic activity in timing tasks. bioRxiv, 2020.2006.2003.128272.

Howe, M.W., Tierney, P.L., Sandberg, S.G., Phillips, P.E., and Graybiel, A.M. (2013). Prolonged dopamine signalling in striatum signals proximity and value of distant rewards. Nature 500, 575-579.

Kim, H.R., Malik, A.N., Mikhael, J.G., Bech, P., Tsutsui-Kimura, I., Sun, F., Zhang, Y., Li, Y., Watabe-Uchida, M., Gershman, S.J., et al. (2019). A unified framework for dopamine signals across timescales. bioRxiv, 803437.

Menegas, W., Bergan, J.F., Ogawa, S.K., Isogai, Y., Umadevi Venkataraju, K., Osten, P., Uchida, N., and Watabe-Uchida, M. (2015). Dopamine neurons projecting to the posterior striatum form an anatomically distinct subclass. ELife 4, e10032.

Mikhael, J.G., and Gershman, S.J. (2019). Adapting the flow of time with dopamine. J Neurophysiol 121, 1748-1760.

Mikhael, J.G., Kim, H.R., Uchida, N., and Gershman, S.J. (2019). Ramping and State Uncertainty in the Dopamine Signal. bioRxiv, 805366.

Schultz, W., Dayan, P., and Montague, P.R. (1997). A neural substrate of prediction and reward. Science 275, 1593-1599.

Starkweather, C.K., Babayan, B.M., Uchida, N., and Gershman, S.J. (2017). Dopamine reward prediction errors reflect hidden-state inference across time. Nat Neurosci 20, 581-589.

Tian, J., Huang, R., Cohen, J.Y., Osakada, F., Kobak, D., Machens, C.K., Callaway, E.M., Uchida, N., and Watabe-Uchida, M. (2016). Distributed and Mixed Information in Monosynaptic Inputs to Dopamine Neurons. Neuron 91, 1374-1389.

[Editors’ note: what follows is the authors’ response to the fourth round of review.]

Essential revisions:

1) 2/3 reviewers were not persuaded by the author's rebuttal arguments that DA ramps reflect movement initiation and not reward expectation, resulting in an enduring concern that the main message of the paper, evident even in the title, is not watertight. All reviewers still think the paper's findings are timely and important – so a tempering / adjustment of the claims is a reasonable path forward to publication. The change in 'pitch' of this paper would need to include changes to title, abstract, and discussion. While some specific recommendations are included in the full reviews pasted below, the authors are in the best position to truly internalize reviewer's four's sound arguments to transform the message of the paper into one that allows for reward expectation to be the variable that DA ramps reflect, that optogenetic experiments manipulate, and that ultimately affects movement timing.

If you have not already done so, please ensure that your manuscript complies with eLife's policies for statistical reporting: https://reviewer.elifesciences.org/author-guide/full "Report exact p-values wherever possible alongside the summary statistics and 95% confidence intervals. These should be reported for all key questions and not only when the p-value is less than 0.05."

Thank you again for your continued careful consideration of our manuscript. You guys have certainly inspired us to think more deeply about our findings. We think that the overarching problem has been that we inadvertently blurred the questions of (1) the origin of dopaminergic ramping with (2) the connection of dopaminergic ramping to movement. Your last set of comments really crystallized this issue for us. In the revised manuscript, we’ve separated the questions, and we think the whole thing works better. In this reply, we’ll deal with both of these questions in turn, and then summarize how we have integrated them in our revised manuscript. (Please forgive the rather lengthy reply, but we want to lay out our logic for you as clearly as possible.)

Origin of dopaminergic ramping. We agree fundamentally with your main point, that the ramping dopaminergic signals that we observe before self-timed movements are likely related to “reward expectation.” Because ramping is observed in other non-movement scenarios that also end up with the animal receiving reward, reward expectation has always struck us as the most parsimonious explanation for the origin of dopaminergic ramping. In both our Discussion section and a separate BiorXiv manuscript (Hamilos and Assad, 2020), we presented a model for how reward expectation could lead to ramping in dopaminergic neurons (DANs) during our self-timed movement task. The model was adapted from that of Sam Gershman, who treated DAN ramping as an “ongoing” reward-predictionerror signal (Gershman, 2014), but our results are also compatible with a more expansive view of reward expectation (e.g., increasing value over time, etc.). We also agree that our previous title and abstract did not make the reward connection clear. We’ve revised the title and abstract accordingly (see below).

There are, however, some points to clarify on the subject of “reward expectation,” informed by the extensive literature on the topic. The points may seem niggling, but we believe they impose important constraints on the interpretion of our findings, and we have treated them carefully in the revised Discussion.

In our previous reply, we argued that “passive” reward expectation, defined as automatically receiving a reward a fixed time after a cue (without any external indication of progress to reward, e.g., Kim et al., 2019), was not sufficient on its own to cause ramping activity in DANs. For example, in the classic work of Wolfram Schultz (subsequently reproduced by many others), simple associative learning does not lead to ramping increases in DAN activity. The reviewers pointed out one exception, the paper of Fiorillo et al. (2003), in which apparent ramping was observed in monkey DANs following conditioned stimuli that indicated reward probability was <1 (Figure 3B of that paper). We know that paper very well (our lab worked with monkeys for >20 years before switching to mice), but we skirted it for a reason: the “gradual increase” in DAN activity reported by Fiorillo et al. was not reproduced in subsequent papers, either from the authors’ own lab(s) or from other labs. In particular, Tobler, Fiorillo and Schultz (2005) reprised the Pavlovian associative learning paradigm, but did not observe ramping in any condition for which reward probability was 0.5 (see authors’ Figures 1B and 4B). Chris Fiorillo also did a variant of the same experiment when he was a postdoc in Bill Newsome’s lab (Fiorillo, 2011). Though Fiorillo focused on the DAN response to the cue, there was no hint of ramping-up in the p=0.5 data from either of the two animals in the study; rather, the DAN activity appeared to decrease monotonically to a low plateau following cue presentation (see red p=0.5 traces in Figures 5A and 7 of that paper).

We are aware of three additional studies that used Pavlovian paradigms with reward uncertainty. Matsumoto and Hikosaka (2009) recorded from DANs in monkeys using a Pavlovian task, and they found no ramping following visual conditioned stimuli predicting reward with p=0.5 (authors’ Figures 2B and 3B). Tian and Uchida (2015) likewise did not observe ramping in opto-tagged mouse DANs following conditioned odor cues predicting reward with p=0.5 (authors’ Figure 2G). Finally, Hart et al. used fast-scan cyclic voltammetry to record DA release in the nucleus accumbens of rats undergoing Pavlovian conditioning with variable reward probability. With training across multiple sessions, a sustained DA signal exceeding the baseline level emerged for the p=0.5 cohort of animals—but that DA signal still appeared to decrease monotonically following the conditioned stimulus (authors’ Figure 3E).

It’s not clear why Fiorillo et al.’s 2003 findings bucked the “no ramping” trend, but one possibility is that Fiorillo et al. did not require the monkeys to fixate, which may have allowed the animals to make an accelerating pattern of saccades during the delay in the p=0.5 case, potentially driving increasing DAN activity. Regardless, the preponderance of evidence suggests that reward expectation alone is insufficient to cause ramping activity in DANs. We have stated that explicitly in our revised Discussion. Our intention is not to throw shade on Fiorillo et al., but rather to better interpret our own findings.

In our revised Discussion, we have made clear the reward-expectation interpretation for the origin of dopaminergic ramping, but the available evidence nonetheless suggests that “pure” reward expectation is insufficient to drive ramping activity in DANs. We also added a paragraph about the Gershman model, to explain how our findings could fit into the broader “reward-expectation” context. To our knowledge, the Gershman “ongoing RPE” model is unique in addressing the discrepancy in ramping between operant and Pavlovian tasks, but we also emphasize in the Discussion that our results are compatible with broader views of reward expectation (increasing value over time, etc.).

In addition, we have changed the title and abstract of the paper to better reflect the reward-related component of our experiment. However, we are hesitant to state “slowly evolving dopaminergic activity reflects reward expectation” in the title, because we did not test that directly in our experiment, nor do we have direct evidence for that view; rather, “reward expectation” provides a parsimonious explanation for our findings given the parallel experimental and computational literature on dopaminergic signaling. Our new title is “Slowly evolving dopaminergic activity modulates the momentto-moment probability of reward-related self-timed movements.” However, we could also go with a more “neutral” (although less informative) title: “The relationship between slowly evolving dopaminergic activity and reward-related self-timed movements.” The final line of our updated abstract also makes clear the reward-expectation connection: “We propose that ramping dopaminergic signals, likely encoding dynamic reward expectation, can modulate the decision of when to move.”

Connection of dopaminergic ramping to movement. In our previous manuscript, we pointed out that dopaminergic ramping might serve as a “passive” monitor of reward expectation, or ramping might have real-time effects on behavior, such as influencing reward-related movements. To examine this question, we optogenetically activated or inhibited DANs from the time of the start-timing cue until the initiation of the self-timed movement. We found that manipulating DAN activity indeed affected movement time on the same trial, as if increasing/decreasing the probability of movement. However, Reviewer #4 pointed out that DAN activation/inhibition could have a secondary effect on movement, by modulating motivation or by heightening/dampening reward expectation. R4’s interpretation implies that the evoked movements would be reward-related, such as licking or reward approach. This is a reasonable proposal, and we consider it explicitly in our revised Discussion. However, the literature again suggests a more nuanced view, as follows:

Optogenetic stimulation (or inhibition) of DANs has been shown to modulate movements in unconstrained mice (Barter et al., 2015; Howe and Dombeck, 2016; da Silva et al., 2018); however, those studies did not have rewards available during the stimulated trials, and thus could not address the question of whether increased motivation leads immediately to reward-related movement. More relevant are studies that manipulated DANs in the context of a reward-related behavior. There are numerous studies that have reported increased reward-related movements following DAN activation (or other manipulations that raised DA levels)—but not on the same trial, unlike what we found. Rather, most of these studies reported reward-related movements that emerged in subsequent trials or sessions, interpreted as a learning effect over time/training (e.g., Steinberg, et al., 2014; Ilango et al., 2014). We thus restrict the following discussion to studies that examined whether modulating DAN activity could affect reward-related movements in “real time”—on the same trial.

We are aware of two studies in which activating DANs may have caused reward-related movements on the same trial. First, Phillips et al. (2003) studied reward-related approach behavior in rats trained to press a lever to obtain intravenous cocaine. Electrical stimulation of the VTA caused increased leverapproach behavior in the period 5-15 s after stimulation. However, electrical stimulation could have excited afferent fibers in the VTA (anti- or ortho-dromically), potentially engaging non-DAN-dependent pathways. Second, Hamid et al. (2016) observed that optogenetic stimulation of DANs could shorten the latency to engage in a port-choice task in freely behaving rats—but only for trials in which the rat was not already engaged in the task. If the rat was “already engaged in task performance,” the latencies actually became slightly longer.

In contrast to these two equivocal findings, numerous reports suggest that optogenetic manipulation of DANs does not modulate reward-related movements on the same trial. First, we ourselves could not evoke licking (nor inhibit spontaneous licking) outside the context of our self-timed movement task (Figure 7—figure supplement 4). Our mice were thirsty and perched near their usual juice tube, but “offline” DAN stimulation/inhibition did not alter licking behavior, even though we applied the same optical power that robustly altered movement probability during the self-timed movement task. Coddington and Dudman (2018) used a Pavlovian task in which they detected reward-anticipatory body movements of mice perched in a harness. Optogenetic stimulation of DANs did not affect anticipatory movements on the concurrent trial (except with stimulation well above the calibrated physiological range), and never evoked anticipatory licking at any strength. Pan et al. (2021) examined freely behaving mice executing conditioned approach behavior toward a reward port in response to an auditory cue. Optogenetic stimulation of DANs did not substitute for the conditioned stimulus in evoking approach. In a follow-up study, Coddington et al. (2021) paired DAN stimulation with an auditory cue in mice, but the stimulation had no effect on anticipatory movements or licking on the concurrent trial. Lee et al. (2020) found that optogenetic inhibition of mouse DANs at the same time as an olfactory conditioned stimulus had no effect on anticipatory licking on the same trial, even though inhibition at the time of the reward delivery was potent in reducing the probability and rate of anticipatory licking on subsequent trials. Saunders et al. (2018) examined conditioned approach behavior in TH-cre transgenic rats, and found that optogenetic DAN stimulation delivered at the same time as cue presentation enhanced cueapproach behavior in subsequent trials and sessions, but did not induce approach behavior on its own, in the absence of the cue. Morrens et al. (2020) used an olfactory conditioning task in mice and stimulated DANs simultaneously with presentation of a familiar, non-rewarded stimulus. Anticipatory licking was unaffected, indicating that DAN stimulation was insufficient to induce licking. Finally, Maes et al. (2020) examined aspects of classical conditioning in rats while optogenetically inhibiting DANs. DAN inhibition in isolation did not block conditioned food-approach behavior in several control experiments; it only affected behavior on subsequent trials.

In the aforementioned studies, the rodents were thirsty or hungry and regularly made conditioned movements in anticipation of rewards, yet the vast majority of the studies found that optogenetic manipulation of DANs had no effect on conditioned movements on the same trial. However, in most of those studies, optogenetic modulation affected conditioned movements on subsequent trials (a learning effect rather than a real-time, same-trial effect), providing a positive control for the effectiveness of DAN stimulation. Thus the preponderance of evidence argues against a simple scheme whereby (1) modulating DAN activity leads to a change in motivation/reward-expectation that (2) automatically evokes or suppresses reward-related movements on the same trial. The fact that we were able to affect the timing of reward-related movements in our experiment thus suggests there are other factors at play for self-timed movements.

How we have addressed these issues in the revised Discussion.

– We open the revised Discussion with the question of why ramping is seen in some contexts (locomoting toward a reward goal; being propelled through a VR-environment toward reward; self-timing movement) and not others (classical conditioning). In this light, we make the following arguments:

– We point out that reward expectation is presumably a common factor in these ramp-producing tasks, and thus provides a parsimonious explanation for all DAN ramping—but we also contend that reward expectation alone is insufficient to produce ramping, as we argued above.

– We then refer to the Gershman model that posits that reducing uncertainty about the value trajectory— which can happen exogenously (e.g., VR-environment) or endogenously (e.g., movement through environment toward reward, self-timed movement, etc.)—can lead to ramping, as opposed to tasks with temporal uncertainty (e.g., simple classical conditioning—Fiorillo et al. notwithstanding).

– We then address our optogenetic stimulation/inhibition results, pointing out that the modulation of movement timing that we observed suggests that the DAN signals are not “passive” monitors of reward expectation, but can influence behavior. The question then is how does optogenetic modulation of DANs influence behavior.

– We first consider the exact hypothesis offered by Reviewer #4—that modulating DANs could affect motivation/reward-expectation, leading to real-time changes in reward-obtaining movements—but we also point out the preponderance of evidence that suggests DAN activation alone is typically insufficient to produce reward-related movements, even in motivated (thirsty/hungry) animals.

– We then discuss hypothetical possibilities as to why optogenetic modulation of DANs was able to affect the timing of self-timed movements, including (1) that endogenous ramping signals might sum with exogenous (optogenetic) activation of DANs to produce supra-heightened motivation, leading to reward-obtaining movement; (2) that the explicit timing requirement in our task may somehow allow exogenous modulation of DANs to affect movement timing; and (3) that the pre-potency or preparation for movement during the delay before self-timed movements might allow DAN modulation to affect movement timing.

Overall, we conclude that ramping DAN signals likely represent aspects of reward expectation, and that, at least during self-timed movements, these ramping signals could causally influence the probability (and thus the timing) of movement. We believe our logic addresses the reviewers’ lingering concerns about the interpretation of our findings, while also acknowledging the constraints posed in the literature concerning (1) reward expectation and DAN ramping; and (2) real-time behavioral effects of DAN optogenetic manipulation during reward-related behavior.

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Citations

    1. Hamilos AE, Spedicato G, Hong Y, Assad JA. 2020. Original single session datasets from "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements.". Zenodo. [DOI] [PMC free article] [PubMed]

    Supplementary Materials

    Figure 1—source data 1. Self-timed movement task behavioral data.
    Figure 2—source data 1. SNc DAN signals during self-timing.
    Figure 2—source data 2. Baseline SNc DAN signals.
    Figure 2—source data 3. df/F methods.
    Figure 2—source data 4. DAN signals recorded at SNc, DLS and VTA.
    Figure 3—source data 1. Striatal dopamine indicator signals.
    Figure 4—source data 1. Movement control signals.
    Figure 5—source data 1. DAN signal encoding model.
    Figure 6—source data 1. Movement time decoding model.
    Figure 7—source data 1. Optogenetic manipulation of SNc DANs.
    Figure 8—source data 1. Movement state decoding model.
    Transparent reporting form

    Data Availability Statement

    All datasets supporting the findings of this study are publicly available (DOI: 10.5281/zenodo.4062749). Source data files have been provided for all figures.

    The following dataset was generated:

    Hamilos AE, Spedicato G, Hong Y, Assad JA. 2020. Original single session datasets from "Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements.". Zenodo.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES