A spiral attractor network drives rhythmic locomotion
Abstract
The joint activity of neural populations is high dimensional and complex. One strategy for reaching a tractable understanding of circuit function is to seek the simplest dynamical system that can account for the population activity. By imaging Aplysia’s pedal ganglion during fictive locomotion, here we show that its populationwide activity arises from a lowdimensional spiral attractor. Evoking locomotion moved the population into a lowdimensional, periodic, decaying orbit  a spiral  in which it behaved as a true attractor, converging to the same orbit when evoked, and returning to that orbit after transient perturbation. We found the same attractor in every preparation, and could predict motor output directly from its orbit, yet individual neurons’ participation changed across consecutive locomotion bouts. From these results, we propose that only the lowdimensional dynamics for movement control, and not the highdimensional population activity, are consistent within and between nervous systems.
https://doi.org/10.7554/eLife.27342.001eLife digest
In all animals, neurons in the brain work together to generate movement. From a slug’s ability to crawl, to your ability to move your hand, movement is dependent on hundreds or thousands of neurons being active at the same time. Rhythmic movements such as crawling or swimming show this clearly: groups of neurons fire together and remain silent together in a repeating sequence, producing waves of muscle contraction. But do we need to understand the activity of each of the hundreds or thousands of individual neurons to know how they generate these movements?
Bruno et al. argue that we do not, and propose instead that brain circuits that generate movement show a few set patterns of activity. By recording the activity of a population of neurons, we can identify the pattern of activity that generates a particular movement. To illustrate this point, Bruno et al. examined the network of neurons that drives the rhythmic crawling movement of the sea slug Aplysia.
The results show that the network of neurons seems to contain many different patterns of activity during crawling. Yet collectively these different patterns are reflections of a simpler hidden system, a spiral of everdecreasing, oscillating activity. This pattern is referred to as a spiral attractor because whenever the network is activated, the overall pattern of activity is always pulled into this spiral regardless of its starting point. The same applies whenever the network is disturbed. The key thing to note, however, is that individual neurons within the network do not show the same activity each time the network is active. This means that only the spiral attractor itself, and not the contribution of the individual neurons, is constant every time the sea slug crawls.
What do we need to know to understand the brain? The results presented by Bruno et al. suggests that identifying the hidden systems that underlie seemingly complex and varying neural activity is the key to understanding how brains generate movement. This may also be true for how brains form memories, make decisions, and give rise to sight, hearing and touch.
https://doi.org/10.7554/eLife.27342.002Introduction
The increasing availability of large scale recordings of brain networks at single neuron resolution provides an unprecedented opportunity to discover underlying principles of motor control. However, such longsought data sets are revealing a new challenge  the joint activity of large neural populations is both complex and high dimensional (Ahrens et al., 2012; Cunningham and Yu, 2014; Yuste, 2015). Population recordings have as many dimensions as neurons, and each neuron’s activity can have a complex form. What strategies can we use to expose the hopedfor simplifying principles operating beneath the turbulent surface of realworld brain activity? One route is dimension reduction (Briggman et al., 2006; Cunningham and Yu, 2014; Kobak et al., 2016), which focuses on identifying the components of activity that covary across the members of a neural population, shifting the focus from the high dimensional recorded data to a lowdimensional representation of the population.
Such lowdimensional signals within joint population activity have been described in neural circuits for sensory encoding (Mazor and Laurent, 2005; Bartho et al., 2009), decisionmaking (Briggman et al., 2005; Harvey et al., 2012; Mante et al., 2013), navigation (Seelig and Jayaraman, 2015; Peyrache et al., 2015), and movement (Levi et al., 2005; Ahrens et al., 2012; Kato et al., 2015). Implicit in such dimension reduction approaches is the hypothesis that the highdimensional population activity being recorded, while highly heterogenous, is derived from a simpler, consistent lowdimensional system (Brody et al., 2003; Churchland et al., 2010; Kato et al., 2015; Miller, 2016). We sought to directly test this hypothesis by identifying the simplest dynamical system that can account for high dimensional population activity.
A useful model to address these questions is the neural control of movement. Movement arises from the mass action of neuron populations (Georgopoulos et al., 1986; Getting, 1989; Ahrens et al., 2012; Portugues et al., 2014; Yuste, 2015; Petersen and Berg, 2016). While individual neuron activity can correlate with specific aspects of movement (Chestek et al., 2007; Hatsopoulos et al., 2007; Churchland et al., 2010, 2012), the embedded low dimensional signals in population recordings (Briggman et al., 2005; Levi et al., 2005; Kato et al., 2015) and the intermittent participation of individual neurons across repeated movements in both vertebrates (Carmena et al., 2005; Huber et al., 2012) and invertebrates (Hill et al., 2010, 2015) together suggest that only the collective population activity, and not specifics of single neuron firing, are key to movement control. If so, then finding the underlying dynamical system will be necessary for a parsimonious theory of the neural control of movement (Briggman and Kristan, 2008).
In order to identify the simplest dynamical system underlying population activity in movement control, we imaged large populations at singleneuron, singlespike resolution in the pedal ganglion of Aplysia during fictive locomotion (Figure 1A). The pedal ganglion presents an ideal target for testing hypotheses of movement control as it contains the pattern generator (JahanParwar and Fredman, 1979, 1980), motorneurons (Hening et al., 1979; Fredman and JahanParwar, 1980) and modulatory neurons (Hall and Lloyd, 1990; McPherson and Blankenship, 1992) underlying locomotion. Moreover, its fictive locomotion is sustained for minutes, ideal for robustly characterising population dynamics. Using this model system, here we find its lowdimensional, underlying dynamical system, test if the lowdimensional signal encodes movement variables, and determine the contribution of single neurons to the lowdimensional dynamics.
We show that evoking fictive locomotion caused heterogenous population spiking activity, but under which always lay a lowdimensional, slowly decaying periodic orbit. This periodic trajectory met the convergence and perturbation criteria for an attractor. Crucially, we identify the attractor as a stable, decaying spiral in every preparation. We decoded motorneuron activity directly from the lowdimensional orbit, showing that it directly encodes the relevant variables for movement. Yet we found that individual neurons varied their participation in the attractor between bouts of locomotion. Consequently, only the lowdimensional signal and not the highdimensional population activity was consistent within and between nervous systems. These findings strongly constrain the possible implementations of the pattern generator for crawling in Aplysia; and by quantifying the attractor they make possible future testing of how short and longterm learning change properties of that attractor. Collectively, these results provide experimental support for the longstanding idea that neural population activity is a highdimensional emergent property of a simpler, lowdimensional dynamical system.
Results
We sequentially evoked three bouts of fictive locomotion in each of 10 isolated central nervous system preparations (Figure 1B). Each bout of locomotion was evoked by short stimulation of the tail nerve P9, mimicking a sensory stimulus to the tail that elicits the escape locomotion response (Hening et al., 1979); in intact animals, a strong tail stimulus typically elicits a twopart escape behavior consisting of several cycles of a vigorous arching gallop, followed by several minutes of a more sedate rhythmic crawl (JahanParwar and Fredman, 1979; Flinn et al., 2001). We imaged the dorsal pedal ganglion 30 s before through to 90 s after the evoking stimulus, aiming to capture the population dynamics initiating and driving the initial gallop before the transition to the crawl. Recorded populations from the pedal ganglion comprised 120–180 neurons each, representing $\approx $10% of the network in each recording. The population recordings captured rich, varied single neuron dynamics within the ganglion’s network following the stimulus (Figure 1C). A dominant, slow ($\le 0.1$ Hz) oscillation in neural firing (Figure 1D) is consistent with the periodic activity necessary to generate rhythmic locomotion. But the variety of single neuron dynamics (Bruno et al., 2015) (Figure 1C) and the slowly decaying population firing rate (Figure 1F) poststimulus hint at a more complex underlying dynamical system driving locomotion than a simple, consistent oscillator.
Seeking the simplest dynamical system to account for these data, we first show here that the joint activity of the population meets the necessary conditions for a periodic attractor (Figure 1F). We identified these as: (1) applying a driving force causes the system’s activity to fall onto a stable, periodic orbit; (2) repeatedly driving the system causes convergence of its activity to the same orbit; and (3) the system should return to the periodic orbit after the end of transient perturbation. Figure 1—figure supplement 1 demonstrates these conditions in a dynamical model of a neural periodic attractor.
Joint population activity forms a lowdimensional periodic orbit
We first established that under the heterogenous population activity evoked by the tailnerve stimulation there was a low dimensional periodic trajectory, consistent with there being a periodic attractor in the pedal ganglion. Projections of a population’s joint activity into three dimensions typically showed that stimulation caused a strong deviation from the spontaneous state, which then settled into repeated loops (Figure 2A). Capturing a significant proportion (80%) of the population variance generally required 4–8 embedding dimensions (Figure 2B), representing a dimension reduction by more than a factor of 10 compared to the number of neurons. Thus, throughout our analysis, we projected each evoked program into the number of embedding dimensions needed to capture at least 80% of the variance in population activity (4–8 dimensions: inset of Figure 2B). However, we cannot directly visualise this space; therefore we could not tell by visual inspection if the lowdimensional trajectory repeatedly returned to the same position, and so was truly periodic.
To determine whether population activity in higher dimensions reached a stable periodic orbit, we made use of the idea of recurrence (Lathrop and Kostelich, 1989; Marwan et al., 2007). For each timepoint in the lowdimensional trajectory of the population’s activity, we check if the trajectory passes close to the same point in the future (Figure 2C). If so, then the current timepoint recurs, indicating that the joint activity of the population revisits the same state at least once. The time between the current timepoint and when it recurs gives us the period of recurrence. A strongly periodic system would thus be revealed by its population’s trajectory having many recurrent points with similar recurrence periods; random or chaotic dynamics, by contrast, would not show a single clustered recurrence period.
Plotting recurrent timepoints showed that the evoked lowdimensional population activity typically recurred with a regular period (example in Figure 2D). We found strongly periodic recurrence on the scale of 10–15 s in many but not all of the 30 evoked population responses (Figure 2E,F). This reflected the range of stimulation responses from strongly periodic activity across the population to noisy, stuttering, irregular activity (Figure 2—figure supplement 1). Nonetheless, despite this heterogeneity across stimulus responses, the activity of almost all populations was dominated by a single periodic orbit (Figure 2E), robust to the choice of threshold for defining recurrence (Figure 2—figure supplement 2).
Joint population activity meets the conditions for a periodic attractor
The trajectory of a periodic dynamical system remains within a circumscribed region of space – the manifold – that is defined by all the possible states of that system. (We schematically illustrate a manifold by the grey shading in Figure 1F (condition 2), and demonstrate the manifold of our model periodic attractor network in panel C of Figure 1—figure supplement 1). If the population responses of the pedal ganglion are from an underlying periodic attractor, then the population’s joint activity should rapidly reach and stay on its manifold when evoked; reach the same manifold every time it is evoked; and return to the manifold when perturbed (these three conditions are schematically illustrated in Figure 1F; see Figure 1—figure supplement 1 for the corresponding examples from the dynamical model).
We found that almost all evoked population responses quickly reached a state of high recurrence, within one oscillation period (Figure 3A), and were thereafter dominated by recurrence, indicating they quickly reached and stayed on the manifold.
But does each population response from the same preparation reach the same manifold? The key problem in analysing any putative attractor from experimental data is identifying when the experimentallymeasured dynamics are or are not on the attractor’s manifold, whether due to perturbations of the system or noise in the measurements. Moreover, we cannot directly compare timeseries between evoked responses because, as just demonstrated, each response may reach the manifold at different times (see also panel C in Figure 1—figure supplement 1). Thus the set of recurrent timepoints allowed us to identify when the joint population activity was most likely on the attractor’s manifold, and then to make comparisons between population responses.
To determine if sequentiallyevoked responses from the same preparation reached the same manifold, we projected all 3 population responses into the same set of embedding dimensions, using only the recurrent points (Figure 3B; Figure 3—figure supplement 1 shows these results are robust to other projections). Falling on the same manifold would mean that every recurrent point in one population response’s trajectory would also appear in both the others’ trajectories, if noiseless. Consequently, the maximum distance between any randomly chosen recurrent point in population response A and the closest recurrent point in population response B should be small. We defined small here as being shorter than the expected distance between a recurrent point in A and the closest point on a random projection of the activity in the same embedding dimensions. Despite the inherent noise and limited duration of the recordings, this is exactly what we found: pairs of evoked population responses from the same preparation fell close to each other throughout (Figure 3C), well in excess of the expected agreement between random projections of the data onto the same embedding dimensions.
We also checked that this convergence to the same manifold came from different initial conditions. The initiating stimulation is a rough kick to the system – indeed a fictive locomotion bout can be initiated with a variety of stimulation parameters (Bruno et al., 2015) – applied to ongoing spontaneous activity. Together, the stimulation and the state of spontaneous activity when it is applied should give different initial conditions from which the attractor manifold is reached. We found that the stimulation caused population responses within the same preparation to diverge far more than in either the spontaneous activity or after coalescing to the manifold (Figure 3D). Thus, a wide range of initial driven dynamics in the pedal ganglion population converged onto the same manifold.
Previous studies have used the consistency of pairwise correlations between neurons across conditions as indirect evidence for the convergence of population activity to an underlying attractor (Yoon et al., 2013; Peyrache et al., 2015). The intuition here is that neurons whose activity contributes to the same portion of the manifold will have simultaneous spiking, and so their activity will correlate across repeated visits of the population’s activity to the same part of the manifold. To check this, we computed the pairwise similarity between all neurons within an evoked population response (Figure 3E), then correlated these similarity matrices between responses from the same preparation. We found that pairwise similarity is indeed wellpreserved across population responses in the same preparation (Figure 3F). This also shows that the apparent convergence to the same manifold is not an artefact of our choice of lowdimensional projection.
In many population responses, we noticed spontaneous perturbations of the lowdimensional dynamics away from the trajectory (examples in Figure 3—figure supplement 2), indicated by sudden falls in the density of recurrent points (Figure 3G). That is, perturbations could be detected by runs of contiguous points on the population trajectory that were not recurrent. As each spontaneous perturbation was a cessation of recurrence in a trajectory accounting for 80% of the covariation between neurons, each was a populationwide alteration of neuron activity (see example rasters in Figure 3—figure supplement 2). In most cases (90%), the population dynamics returned to a recurrent state after the spontaneous perturbation (Figure 3H; Figure 3—figure supplement 2, panel B), consistent with the pertubation being caused by a transient effect on the population The two perturbations that did not return to a recurrent state were consistent with the end of the evoked fictive locomotion and a return to spontaneous activity (Figure 3—figure supplement 2, panel A). Of those that returned, all but three clearly returned to the same manifold (Figure 3I); for those three, the spontaneous perturbation appeared sufficient to move the population dynamics into a different periodic attractor (Figure 3—figure supplement 2, panel C). Potentially, these are the known transitions from the escape gallop to normal crawling (Flinn et al., 2001). The low dimensional dynamics of the pedal ganglion thus meet the stability, manifold convergence, and perturbation criteria of a periodic attractor network.
Heterogenous population activity arises from a common attractor
While these results show the existence of a periodic orbit on an attractor in the evoked population responses, they cannot address whether these arise from the same putative attractor within and, crucially, between animals. To determine if there is a common underlying attractor despite the heterogeneity in spiking patterns across the population responses (Figure 2—figure supplement 1), we introduced a statistical approach to quantifying the lowdimensional trajectory. We first fitted a linear model of the local dynamics around each time point in the lowdimensional projection (see Materials and methods). For each $N$dimensional point $P(t)$ in this projection, we fitted the $N$dimensional model $\dot{{P}^{*}}=\mathbf{\mathbf{A}}{P}^{*}$ to the trajectory forwards and backwards in time from point $P(t)$. In this model, the change in the trajectory over time $\dot{{P}^{*}}$ in the neighbourhood of point $P(t)$ is determined by the values of the $N\times N$ matrix $\mathbf{\mathbf{A}}$. The maximum eigenvalue of $A$ thus tells us whether the trajectory around point $P(t)$ is predominantly expanding or contracting in the $N$dimensional projection, and whether or not it is rotating (Strogatz, 1994).
By fitting the linear model to each point on the trajectory we obtained timeseries of the maximum eigenvalues, describing the local dynamics at each point along the trajectory. The timeseries of eigenvalues typically showed long periods of similar magnitude eigenvalues, corresponding to the recurrent points (Figure 4A). Consequently, by then averaging over the eigenvalues obtained only for recurrent points, we could potentially capture the dynamics of the underlying attractor. Doing so, we found that the evoked population responses had highly clustered maximum eigenvalues (Figure 4B,C), and thus highly similar underlying dynamics despite the apparent heterogeneity of spiketrain patterns between them. The dominance of negative complex eigenvalues implies the pedal ganglion network implements a contracting periodic orbit  it is a stable spiral attractor (Figure 4D).
In most population responses, the lowdimensional trajectory had negative, complex eigenvalues in all embedding dimensions, meaning that the spiral attractor completely characterised the population dynamics (Figure 4—figure supplement 1). Intriguingly, a few population responses had a positive real eigenvalue in one lowvariance dimension (Figure 4—figure supplement 1), implying a simultaneous minor expansion of the population trajectory. This corresponded to the appearance of a small subset of neurons with increasing firing rates (Figure 4E).
The identification of a stable spiral makes a clear prediction for what should and should not change over time in the dynamics of the population. The negative complex eigenvalues mean that the magnitude of the orbit decays over time, corresponding to the decreasing population spike rate in most evoked responses (Figure 1E). However, a stable spiral indicates only a decrease in magnitude; it does not mean the orbital period is also slowing. Consequently, the presence of a stable spiral attractor predicts that the magnitude and period of the orbit are dissociable properties in the pedal ganglion network.
We checked this prediction using the linear model. The linear model estimated a mean orbital period of around 10 s (Figure 4C), consistent with the directlyderived estimate from the recurrent points (Figure 2F). This indicated the linear model was correctly capturing the local dynamics of each program. But our linear model also gave us a timeseries of estimates of the local orbital period (Figure 5A), which we could use to check whether the orbital period was changing during each evoked response. We found that the population responses included all possible changes in periodic orbit: slowing, speeding up, and not changing (Figure 5B). As predicted there was no relationship between the contraction of the periodic orbit and its change in period (Figure 5C).
The locomotion motor program can be decoded from the lowdimensional orbit
Collectively, these periodic, decaying dynamics are ethologically consistent with locomotion that comprises a repeated sequence of movements that decays in intensity over time (JahanParwar and Fredman, 1979; Flinn et al., 2001; Marinesco et al., 2004). If this putative lowdimensional periodic attractor is the ‘motor program’ for locomotion, then we should be able to decode the locomotion muscle commands from its trajectory. In 3 of the 10 preparations we were able to simultaneously record activity from the P10 nerve that projects to the neck muscles (Xin et al., 1996) for all three evoked population responses. The spiking of axons in this nerve should correspond to the specific neck contraction portion of the cyclical escape locomotion. We thus sought to decode the spiking of P10 directly from the lowdimensional population trajectory (Figure 6A).
We first confirmed that each recorded neural population did not appear to contain any motorneurons with axons in P10, which could make the decoding potentially trivial (Figure 6—figure supplement 1). To then decode P10 activity, we used a statistical model that predicts the firing rate of nerve P10 at each time point, by weighting and summing the recent history (up to 100 ms) of the trajectory in the low dimensional space, and using a nonlinearity to convert this weighted sum into a firing rate. We controlled for overfitting using crossvalidation forecasting: we fit the model to a 40 s window of trajectory data, and predicted the next 10 s of P10 activity (Figure 6B). By sliding the window over the data, we could assess the quality of the forecast over the entire recording (Figure 6C).
The model could accurately fit and forecast P10 activity from the lowdimensional trajectory in all nine population responses (Figure 6D). Emphasising the quality of the model, in Figure 6D we plot example forecasts of the entire P10 recording based on fitting only to the first 40 s window, each example taken from the extremes we obtained for the fitquality metrics. Notably, in one recording the population response shutdown halfway through; yet despite the model being fit only to the 40 s window containing strong oscillations, it correctly forecasts the collapse of P10 activity, and its slight rise in firing rate thereafter. Thus, the low dimensional trajectory of the periodic attractor appears to directly encode muscle commands for movement.
To confirm this, we asked whether the encoding – as represented by the P10 activity – was truly lowdimensional. The successful decoding of future P10 activity was achieved despite needing only 3–5 embedding dimensions to account for 80% variance in the population activity for these nine recordings (Figure 6—figure supplement 2). Increasing the number of embedding dimensions to account for 90% variance, at least doubling the number of embedding dimensions, did not improve the forecasts of P10 activity (Figure 6—figure supplement 2). These results suggest that the low dimensional population trajectory is sufficient to encode the locomotion muscle commands.
Variable neuron participation in stable motor programs
If the lowdimensional trajectory described by the joint activity of the population just is the motor program for locomotion, then how crucial to this program are the firing of individual neurons (Katz et al., 2004; Carmena et al., 2005; Hill et al., 2012; Huber et al., 2012; Carroll and Ramirez, 2013; Hill et al., 2015)? Having quantified the motor program as the lowdimensional activity trajectory, we could uniquely ask how much each neuron participated in each evoked program. We quantified each neuron’s participation as the absolute sum of its weights on the principal axes (eigenvectors): large total weights indicate a dominant contribution to the lowdimensional trajectory, and small weights indicate little contribution. So quantified, participation is a contextual measure, giving the contribution to the population trajectory of both a neuron’s firing rate and its synchrony with other neurons, relative to the rate and synchrony of all other neurons in the population (Figure 7—figure supplement 1).
Every population response had a longtailed distribution of participation (Figure 7A), indicating that a minority of neurons dominated the dynamics of any given response. Nonetheless, these neurons were not fixed: many with high participation in one population response showed low participation in another (Figure 7B,C). To rule out noise effects on the variability of participation (for example, due to the finite duration of recording), we fitted a noise model to the change in participation separately for each preparation (Figure 7D,E). Every preparation’s pedal ganglion contained neurons whose change in participation between responses wellexceeded that predicted by the noise model (Figure 7F). Consequently, the contribution of single neurons was consistently and strongly variable between population responses in the same preparation.
We also tested for the possibility that hidden within the variation between programs is a small core of neurons that are strongly participating, yet invariant across programs. Such a core of phasically active neurons may, for example, form the basis of a classical central pattern generator. However, in our observed portion of the ganglion we found no evidence for a core of strongly participating, invariant, and phasically active neurons across the preparations (Figure 7—figure supplement 2).
These data show that a neuron’s role within the locomotion motor program is not fixed, but leave open the question of whether single neuron variability causes variation in the program itself. In our analysis, variation between sequentiallyevoked population responses is quantified by the distance between their lowdimensional projections (as in Figure 3C). We found that the distance between a pair of population responses did not correlate with either the total change in neuron participation between the two responses (Figure 7G) or the distance between their participation distributions (Figure 7H). The execution of the motor program is thus robust to the participation of individual neurons.
Participation maps identify potential locations of the pattern generator network
To get some insight into the physical substrate of the attractor, we plotted maps of the participation of each neuron in each preparation. We found that neurons with strong participation across the three evoked population responses were robustly located in the caudolateral quadrant of the ganglion (Figure 8A,B). Maps of the right ganglion also indicated strong participation in the rostromedial quadrant; due to the low numbers of maps for each side, it is unclear whether this is a true asymmetry of the ganglia or simply reflects sampling variation. Neurons with highly variable participation between population responses (Figure 8C,D) were similarly found in the caudolateral quadrants of both ganglia. Strongly participating neurons were thus confined to specific regions of the pedal ganglion’s network.
These data are consistent with a networklevel distribution of the attractor, with a particularly strong contribution from the caudolateral quadrant. Encouragingly, from a different dataset we previously described this region as containing neural ensembles that generated a cyclical packet of neural activity, which moved in phase with activity from the neckprojecting P10 nerve (Bruno et al., 2015). Consequently, both those data and our new data support our hypothesis that the pattern generator for locomotion is predominantly located in the caudolateral network.
Discussion
Locomotion networks provide a tractable basis for testing theories of neural dynamics (Lewis and Kristan, 1998; Briggman et al., 2005; Levi et al., 2005; Briggman and Kristan, 2006; Berg et al., 2007; Bruno et al., 2015; Petersen and Berg, 2016), as they couple complex dynamics with clearly defined outputs. We took advantage of this to comprehensively test the idea that highdimensional population activity arises from an underlying lowdimensional dynamical system: to determine what dynamical system accounts for the population activity, whether its lowdimensional signal encodes movement, and how single neuron activity relates to that signal. We showed here that Aplysia’s pedal ganglion contains a spiral attractor, that the lowdimensional signal it generates directly encodes muscle commands, and yet individual neurons vary in their participation in the attractor.
A consistent lowdimensional spiral attractor
Testing the idea that highdimensional population activity contains a lowdimensional signal has only been possible in the last decade or so, due to the necessary combination of largescale multineuron recording and dimension reduction approaches (Brown et al., 2004; Briggman et al., 2006; Cunningham and Yu, 2014; Kobak et al., 2016). Landmark studies have used this combination to project highdimensional population activity into a more tractable lowdimensional space. In this space, studies have shown how activity trajectories are different between swimming and crawling (Briggman et al., 2005); distinguish olfactory (Mazor and Laurent, 2005), auditory (Bartho et al., 2009), and visual (Mante et al., 2013) stimuli; and distinguish upcoming binary choices (Harvey et al., 2012). Here we have gone a step further than previous studies by not only observing such lowdimensional signals, but explicitly testing for the first time the type of dynamical system that gives rise to the lowdimensional trajectories and its consistency between animals.
Across all 30 evoked population responses examined here, there was a remarkable heterogeneity of spiketrain patterns, from visually evident widespread oscillations to noisy, stuttering oscillations in a minority of neurons (Figure 2—figure supplement 1). Yet our analysis shows that underpinning this heterogeneity is the same dynamical system: a lowdimensional, decaying, periodic orbit. We found a remarkably consistent periodicity and rate of orbital decay across evoked responses within a preparation and between preparations. The stability of these dynamics, and the convergence of population activity to the same manifold, are all consistent with the expected behaviour of a true attractor. Our data thus suggest that only the lowdimensional system and not the highdimensional population activity are consistent within and between nervous systems.
We advance the hypothesis that the properties of the spiral attractor fully determine the parameters of the escape gallop: its frequency, physical distance per cycle, and duration. In this hypothesis, the orbital period of the attractor determines the period of the rhythmic gallop – the sequential activity of the neurons in each orbit thus driving the sequential contraction of the muscles driving the escape gallop (Bruno et al., 2015). Further, the amplitude of the orbital period, corresponding to the spike rate of the neural population, could determine the strength of muscle contraction during the escape gallop, allowing control of the physical distance covered by each arching movement. Finally, the contraction rate of the attractor determines the duration of the escape: the faster the contraction rate, the shorter the escape gallop’s duration. The variation of these attractor properties between animals then determines the natural variability in the escape gallop. It follows that changes to parameters of the escape gallop caused by neuromodulation should correlate with changes to the orbital period and/or contraction rate of the attractor. For example, the reported increase in gallop duration by systemic injection of serotonin (Marinesco et al., 2004) should correlate with a decreased contraction rate of the attractor. Future work could test this hypothesis by determining the effects of neuromodulators on the spiral attractor’s properties and correlating those with readouts of the escape gallop.
Treating a neural circuit as a realisation of a dynamical system takes the emphasis away from the details of individual neurons  their neurotransmitters, their ion channel repertoire  and places it instead on their collective action. This allows us to take a Marrian perspective (Marr, 1982), which neatly separates the computational, algorithmic, and implementation levels of movement control. The computational problem here is of how to generate rhythmic locomotion for a finite duration; the algorithmic solution is a decaying periodic attractor  a spiral; and the implementation of that attractor is the particular configuration of neurons in the pedal ganglion  one of many possible implementations (Kleinfeld and Sompolinsky, 1988; Pasemann, 1995; Eliasmith, 2005; Rokni and Sompolinsky, 2012). Indeed, a spiral attractor is potentially a general solution to the problem of how to generate a finite rhythmic behaviour.
Insights and challenges of variable neuron participation
We saw the separation of these levels most clearly in the variable participation of the individual neurons between evoked bouts of fictive locomotion. The projection of the pedal ganglion network’s joint activity into a low dimensional space captured the locomotion motor program independently of any single neuron’s activity. Even the most strongly participating neurons in a given population response could more than halve their participation in other evoked responses. These results suggest that the pedal ganglion’s pattern generator is not driven by neurons that are endogenous oscillators, as they would be expected to participate equally in every response. Rather, this variation supports the hypothesis that the periodic activity is an emergent property of the network.
The adaptive function of having variably participating neurons is unknown. One possibility is that, by not relying on any core set of neurons to generate rhythmic activity, the pedal ganglion’s ability to generate locomotion is robust to the loss of neurons. A related possibility is that there is ‘sloppiness’ (Panas et al., 2015) in the pedal ganglion network, such that there are many possible configurations of neurons and their connections able to realise the spiral attractor that drives locomotion (Marder et al., 2015). Such sloppiness allows for a far more compact specification of the developmental program than needing to genetically specify the type and wiring configuration of each specific neuron.
The wide variation of single neuron participation between evoked bouts of fictive locomotion also raises new challenges for theories of neural network attractors (Marder and Taylor, 2011). While a variety of models present solutions for selfsustaining periodic activity in a network of neurons (Kleinfeld and Sompolinsky, 1988; Eliasmith, 2005; Rokni and Sompolinsky, 2012), it is unclear if they can account for the variable participation of single neurons. A further challenge is that while the variable participation of individual neurons does not affect the underlying program, clearly it takes a collective change in single neuron activity to transition between behaviours  as, for example, in the transition from galloping to crawling in Aplysia. What controls these transitions, and how they are realised by the population dynamics, is yet to be explored either experimentally or theoretically.
Possible implementations of rhythmic locomotion by the pedal ganglion network
Our results nonetheless argue against a number of hypotheses for the implementation of rhythmic locomotion by the pedal ganglion. As noted above, such single neuron variability between sequential locomotion bouts argues against the generation of rhythmic activity by one or more independent neurons that are endogenous oscillators. Our results also argue against the existence of many stable periodic states in this network (Pasemann, 1995). Such metastability would manifest as changes in periodicity following perturbation. Our results show that spontaneous divergences from the attractor overwhelmingly returned to the same attractor.
How then might the pedal ganglion network implement a spiral attractor? Our data were collected from an isolated central nervous system preparation, in which the modulatory influence of neurons outside the pedal ganglion cannot be discounted (Jing et al., 2008). Nonetheless, as the pedal ganglion contains the central pattern generator for locomotion (JahanParwar and Fredman, 1980), we can suggest how that generator is realised. Our results here support the hypothesis that the periodic activity is an emergent property of the ganglion’s network. We know the pedal ganglion contains a mix of interneurons and motorneurons (Fredman and JahanParwar, 1980), and that the motorneurons are not synaptically coupled (Hening et al., 1979), suggesting they readout (and potentially feedback to) the dynamics of an interneuron network. An hypothesis consistent with our results here is that the ganglion contains a recurrent network of excitatory interneurons, centred on the caudolateral quadrant, which feedforward to groups of motorneurons (Bruno et al., 2015). This recurrent network embodies the attractor, in that stimulation of the network causes a selfsustained packet of activity to sweep around it (Bruno et al., 2015). We see this as the periodic trajectory of joint population activity (cf Figure 2A, Figure 3B).
Multiple periodic attractors and multifunctional circuits
Our data further suggest that the pedal ganglion network supports at least two stable states, the spontaneous activity and the stablespiral attractor. Reaching the stablespiral attractor from the spontaneous activity required longduration, highvoltage pedal nerve stimulation (Figure 1; Bruno et al., 2015). In dynamical systems terms, this suggests that the spontaneous state’s basin of attraction is large: most perturbations return to that state, and it takes a large perturbation to move into a different basin of attraction.
Multiple coexisting periodic attractors in a single network is also a challenge for current theories. While point attractor networks, such as Hopfield networks, can have vast number of stable states defined by different arrangements of the equilibrium activity of their neurons (Miller, 2016), a stable periodic attractor network typically has only two stable states: silence and periodic activity. The coexistence of stable spontaneous and periodic states in the same network suggests that something must reconfigure the network to sustain periodic activity (CalinJageman et al., 2007); otherwise, irrespective of the stimulation, the network would always return to the spontaneous state. One possibility in the pedal ganglion is that serotonin alters the effective connections between neurons: escape galloping is both dramatically extended by systemic injection of serotonin alongside tail stimulation (Marinesco et al., 2004), and evoked by stimulating serotonergic command neurons CC9/CC10 in the cerebral ganglion (Jing et al., 2008). Future experimental work should thus test the stability of the spontaneous state, and test how manipulating serotonin affects reaching and sustaining the stablespiral attractor.
There are potentially more stable states within the pedal ganglion’s network. The longlasting crawl that follows the escape gallop is slower and omits the periodic arching of the body (Flinn et al., 2001). We saw three perturbations of the attractor activity that were suggestive of a transition to a different, slower periodic orbit (e.g. panel C in Figure 3—figure supplement 2), consistent with a transition from galloping to crawling. Such crawling is also the animal’s normal mode of exploration (Leonard and Lukowiak, 1986), and so the ‘crawling’ attractor must be reachable from the spontaneous state too. Aplysia’s exploratory headwave, moving its head sidetoside presumably to allow its tentacles and other head sensory organs to sample the environment (Leonard and Lukowiak, 1986), is also controlled by motorneurons in the pedal ganglion (Kuenzi and Carew, 1994). Previous studies of the Aplysia’s abdominal ganglion (Wu et al., 1994), the leech segmental ganglion (Briggman and Kristan, 2006), and the crustacean stomatogastric ganglion (reviewed in Marder and Bucher, 2007) have described multifunctional networks in which the same neurons are active in different motor behaviours. Our work here is consistent with the hypothesis that such multifunction is due to the neurons participating in different attractors realised by same network (Briggman and Kristan, 2008). Further work is needed to map the pedal ganglion network’s dynamics to the full range of Aplysia motor behaviour.
Outlook
Finding and quantifying the attractor required new analytical approaches. We introduce here the idea of using recurrence analysis to solve two problems: how to identify periodic activity in a highdimensional space; and how to identify when the recorded system is and is not on the manifold of the attractor. By extracting the times when the population activity is on the manifold, we could then quantify and characterise the attractor, including identifying transient perturbations, and estimating changes in orbital period. Crucially, these manifoldtimes let us further introduce the idea of using linear models as a statistical estimator, to identify the type of attractor, and compare the detected attractor’s parameters within and between preparations. Our analysis approach thus offers a roadmap for further understanding the dynamics of neural populations.
There is rich potential for understanding spontaneous, evoked or learninginduced changes in the dynamics of populations for movement control. The dynamics of movement control populations transition between states either spontaneously or driven by external input (Briggman et al., 2005; Levi et al., 2005). Our recurrence approach allows both the detection of transitions away from the current state (Figure 3) and the characterisation of the attractor in the new state. For learning, taking an attractorview allows us to distinguish three distinct ways that short (Stopfer and Carew, 1988; Katz et al., 1994; Hill et al., 2015) or longterm (Hawkins et al., 2006) plasticity could change the underlying attractor: by changing the shape of the manifold; by changing the rate of movement of the lowdimensional signal on the manifold; or by changing the readout of the manifold by downstream targets. Such insights may contribute to the grand challenge of systems neuroscience, that of finding simplifying principles for neural systems in the face of overwhelming complexity (Koch, 2012; Yuste, 2015).
Materials and methods
Data and code availability
Request a detailed protocolBandpassed optical data, spikesorted data, and available P10 nerve recordings are hosted on CRCNS.org at: http://dx.doi.org/10.6080/K0SN074B
All research code is available under a MIT License from (Humphries, 2017): https://github.com/mdhumphries/AplysiaAttractorAnalysis. A copy is archived at https://github.com/elifesciencespublications/AplysiaAttractorAnalysis.
Imaging
Request a detailed protocolFull details of the Aplysia californica preparation are given in Bruno et al. (2015). Briefly, the cerebral, pleural and pedal ganglia were dissected out, pinned to the bottom of a chamber, and maintained at $15{17}^{\circ}$C. Imaging of neural activity used the fast voltage sensitive absorbance dye RH155 (Anaspec), and a 464element photodiode array (NeuroPDAIII, RedShirtImaging) sampled at 1600 Hz. Optical data from the 464 elements were bandpass filtered in Neuroplex (5 Hz high pass and 100 Hz low pass Butterworth filters), and then spikesorted with independent component analysis in MATLAB to yield single neuron action potential traces (the independent components), as detailed in (Hill et al., 2010). Rhythmic locomotion motor programs were elicited using 8V 5 ms monophasic pulses delivered at 20 Hz for 2.5 s via suction electrode to pedal nerve 9. A separate suction electrode was attached to pedal nerve 10 to continuously monitor the locomotion rhythm (Xin et al., 1996). Evoked activity could last for many minutes; our system allowed us to capture a maximum of $\approx $125 s, divided between 30 s of spontaneous activity and 95 s of evoked activity. The stimulation protocol (Figure 1B) used short (15 min) and long (60 min) intervals between stimulations, as the original design also sought effects of sensitisation.
Spiketrain analysis
Request a detailed protocolPower spectra were computed using multitaper spectra routines from the Chronux toolbox (Bokil et al., 2010). We computed the power spectrum of each neuron’s spiketrain poststimulation, and plot means over all spectra within a recorded population, and the mean over all mean spectra. We computed the spikedensity function $f(t)$ for each neuron by convolving each spike at time ${t}_{s}$ with a Gaussian $G:f(t)={\sum}_{{t}_{0}<{t}_{s}<{t}_{1}}G({t}_{s})/{\int}_{{t}_{0}}^{{t}_{1}}G({t}^{\ast})d{t}^{\ast}$, evaluated over some finite window between ${t}_{0}$ and ${t}_{1}$(see Szucs, 1998). We set the window to be $\pm 5\sigma $, and evaluated the convolution using a timestep of 10 ms. We defined the standard deviation $\sigma $ of the Gaussian by the median interspike interval of the population: $\sigma =\{\mathrm{m}\mathrm{e}\mathrm{d}\mathrm{i}\mathrm{a}\mathrm{n}\text{}\mathrm{I}\mathrm{S}\mathrm{I}\text{}\mathrm{i}\mathrm{n}\text{}\mathrm{p}\mathrm{o}\mathrm{p}\mathrm{u}\mathrm{l}\mathrm{a}\mathrm{t}\mathrm{i}\mathrm{o}\mathrm{n}\}/\sqrt{12}$ (see Humphries, 2011).
To visualise the entire population’s spiking activity (Figure 1C), we cluster neurons by the similarity of their firing patterns using our modular deconstruction toolbox (Bruno et al., 2015). Different dynamical types of ensembles were identified by the properties of their autocorrelograms: tonic, oscillator, burster, or pauser  see (Bruno et al., 2015) for details. We also assigned each neuron in the ensemble the same dynamical label, which we use in the analysis of Figure 7—figure supplement 2. To demonstrate the firing rate change of each ensemble (Figure 4), we first counted the number of spikes emitted by that ensemble in 20 s windows, advanced in 5 s steps from the onset of stimulation. We then correlated (Pearson’s $R$) the time of each window against its spike count: ensembles were classified as decreasing rate if $R\text{}\text{}0.2$, and increasing if $R\text{}\text{}0.2$.
Model network
Request a detailed protocolWe used a threeneuron network to demonstrate the dynamical properties of a periodic attractor as realised by neurons (Figure 1—figure supplement 1). Each neuron’s membrane dynamics were given by ${\tau}_{a}{\dot{a}}_{i}={a}_{i}(t)+{c}_{i}(t)+{\sum}_{j=1}^{3}{w}_{ji}{r}_{j}(t)\gamma {y}_{i}(t)$, with adaptation dynamics ${\tau}_{y}{\dot{y}}_{i}={y}_{i}(t)+{r}_{i}(t)$, and output firing rate ${r}_{i}(t)=\mathrm{max}\{0,{a}_{i}(t)\}$. Weights ${w}_{ji}\le 0$ give the strength of inhibitory connections between the neurons, each of which receives a driving input ${c}_{i}$. This model, due to Matsuoka (Matsuoka, 1985, 1987), generates selfsustained oscillation of network firing rates given constant scalar inputs ${c}_{i}(t)=c$, despite each neuron not being an endogenous oscillator: consequently the oscillations are an emergent property of the network. The time constants of membrane ${\tau}_{a}$ and adaptation ${\tau}_{y}$ dynamics, together with the strength of adaptation $\gamma $, determine the periodicity of the oscillations (Matsuoka, 1985, 1987). Here we use ${\tau}_{a}=0.025$ s, ${\tau}_{y}=0.2$ s, and $\gamma =2$; input was ${c}_{i}=3$ throughout except where noted.
Recurrence analysis
Request a detailed protocolLow dimensional projections of the joint population activity were obtained for each program using standard principal components analysis, applied to the covariance matrix of the spikedensity functions. The $d$ leading eigenvectors ${W}_{i}$ of the covariance matrix define the $d$ principal dimensions, and the $d$ corresponding eigenvalues are proportional to the variance accounted for by each dimension. The projection (the ‘principal component’) onto each of the chosen dimensions is given by ${p}_{i}(t)={\sum}_{k=1}^{n}{W}_{i}^{k}{f}^{k}(t)$, where the sum is taken over all $n$ neurons in the analyzed population.
We used recurrence analysis (Lathrop and Kostelich, 1989; Marwan et al., 2007) to determine if the lowdimensional projection contained a stable periodic orbit. To do so, we checked if the lowdimensional projection $P(t)=({p}_{1}(t),{p}_{2}(t),\mathrm{\dots},{p}_{d}(t))$ at time $t$ recurred at some time $t+\delta $ in the future. Recurrence was defined as the first point $P(t+\delta )=({p}_{1}(t+\delta ),{p}_{2}(t+\delta ),\mathrm{\dots},{p}_{d}(t+\delta ))$ that was less than some Euclidean distance $\theta $ from $P(t)$. The recurrence time of point $P(t)$ is thus $\delta $s. Contiguous regions of the projection’s trajectory from $P(t)$ that remained within distance $\theta $ were excluded. Threshold $\theta $ was chosen based on the distribution of all distances between timepoints, so that it was scaled to the activity levels in that particular program. Throughout we use the 10% value of that distribution as $\theta $ for robustness to noise; similar periodicity of recurrence was maintained at all tested thresholds from 2% upwards (Figure 2—figure supplement 2).
We checked every timepoint $t$ between 5 s after stimulation until 10 s before the end of the recording (around 7770 points per program), determining whether it was or was not recurrent. We then constructed a histogram of the recurrence times using 1 s bins to detect periodic orbits (Figure 2E): a large peak in the histogram indicates a high frequency of the same delay between recurrent points, and thus a periodic orbit in the system. All delays less than 5 s were excluded to eliminate quasiperiodic activity due to noise in otherwise contiguous trajectories. Peaks were then defined as contiguous parts of the histogram between empty bins, and which contained more than 100 recurrent points. Programs had between one and four such periodic orbits. The peak containing the greatest number of recurrent points was considered the dominant periodic orbit of the program; the majority of programs had more than 50% of their recurrent points in this peak (bluescale vectors in Figure 2E). The mean orbit period of the program was then estimated from the mean value of all recurrence times in that peak.
We measured the attractor’s stability as the percentage of all points that were in periodic orbits. Evolving dynamics of each program were analysed using 5 s sliding windows, advanced in steps of 1 s. We defined the ‘coalescence’ time of the attractor as the midpoint of the first window in which at least 90% of the points on the trajectory were recurrent.
Testing convergence to the same manifold
Request a detailed protocolTo determine if sequentiallyevoked programs had the same manifold, we determined how closely the trajectories of each pair of programs overlapped in the lowdimensional space. We first projected all three programs from one preparation onto the principal axes of the first program, to define a common lowdimensional space. For each pair of programs $(A,B)$ in this projection, we then computed the Haussdorf distance between their two sets of recurrent points, as this metric is suited to handling tests of closeness between irregularly shaped sets of points. Given the Euclidean distances $\{d(A,B)\}$ from all recurrent points in $A$ to those in $B$, and viceversa $\{d(BA)\}$, this is the maximum minimum distance needed to travel from a point in one program to a point in the other (namely $\mathrm{max}\{\mathrm{min}\{d(A,B)\},\mathrm{min}\{d(B,A)\}$). To understand if the resulting distances were close, we shuffled the assignment of timeseries to neurons, then projected onto the same axes giving shuffled programs ${A}^{*}$, ${B}^{*}$. These give the trajectories in the lowdimensional space determined by just the firing patterns of neurons. We then computed the shuffled Haussdorf distance $\mathrm{max}\{\mathrm{min}\{d(A,{B}^{*})\},\mathrm{min}\{d(B,{A}^{*})\}$). The shuffling was repeated 100 times. Mean $\pm $ 2SEM of the shuffled distances are plotted in (Figure 3C); the error bars are too small to see.
To check the robustness of the convergence to the same manifold, we repeated this analysis starting from a common set of principal axes for the three programs, obtained using principal component analysis of their concatenated spikedensity functions. We plot the results of this analysis in panel A of Figure 3—figure supplement 1.
As a further robustness control, we sought evidence of the manifold convergence independent of any lowdimensional projection. We made use of the idea that if neurons are part of sequential programs on a single manifold, then the firing of pairs of neurons should have a similar timedependence between programs (Yoon et al., 2013; Peyrache et al., 2015). For each pair of programs $(A,B)$ from the same preparation, we computed the similarity matrix $S(A)$ between the spikedensity functions of all neuron pairs in $A$, and similarly for $B$, giving $S(B)$. We then computed the correlation coefficient between $S(A)$ and $S(B)$: if $A$ and $B$ are on the same manifold, so their pairwise correlations should themselves be strongly correlated. As a control we computed a null model where each neuron has same total amount of similarity as in the data, but its pairwise similarity with each neuron is randomly distributed (Humphries, 2011). The expected value of pairwise correlation between neurons $i$ and $j$ under this model is then ${E}_{ij}={s}_{i}{s}_{j}/T$, where $({s}_{i},{s}_{j}$) are the total similarities for neurons $i$ and $j$, and $T$ is the total similarity in the data matrix. For comparison, we correlated $S(A)$ with $E$, and plot these as the control correlations in Figure 3E.
Testing return to the same manifold after perturbation
Request a detailed protocolWe detected divergences of the trajectory away from the putative manifold, indicating spontaneous perturbations of population dynamics. We first defined potential perturbations after coalescence as a contiguous set of 5 s windows when the density of recurrent points was below 90% and fell below 50% at least once. The window with the lowest recurrence density in this divergent period was labelled the divergent point. We removed all such divergent periods whose divergent point fell within two oscillation cycles of the end of the recording, to rule out a fall in recurrence due solely to the finite time horizon of the recording. For the remaining 19 divergent periods, we then determined if the population activity returned to a recurrent state after the divergent point; that is, whether the density of recurrence returned above 90% or not. The majority (17/19) did, indicating the perturbation returned to a manifold.
For those 17 that did, we then determined if the recurrent state postdivergence was the same manifold, or a different manifold. For it to be the same manifold after the spontaneous perturbation, then the trajectory before the perturbation should recur after the maximum divergence. To check this, we took the final window before the divergent period, and counted the proportion of its recurrent delays that were beyond the end of the divergent period, so indicating that the dynamics were in the same trajectory before and after the divergence. We plot this in Figure 3H.
Statistical estimation of the attractor’s parameters
Request a detailed protocolWe introduce here a statistical approach to analysing the dynamics of lowdimensional projections of neural activity timeseries obtained from experiments. We first fitted a linear model around each point on the lowdimensional trajectory to capture the local dynamics. For each point $P(t)$, we took the timeseries of points before and after $P(t)$ that were contiguous in time and within $2.5\times \theta $ as its local neighbourhood; if less than 100 points met these criteria $P(t)$ was discarded. We then fitted the dynamical model $\dot{{P}^{*}}=A{P}^{*}$ that described the local evolution of the lowdimensional projection ${P}^{*}$ by using linear regression to find the Jacobian matrix $A$; to do so, we used the selected local neighbourhood timeseries as ${P}^{*}$, and their firstorder difference as $\dot{{P}^{*}}$. The maximum eigenvalue $\lambda =a+ib$ of $A$ indicates the dominant local dynamics (Strogatz, 1994), whether contracting or expanding (sign of the real part $a$ of the eigenvalue), and whether oscillating or not (existence of the complex part of the eigenvalue that is, $b\ne 0$). The other eigenvalues, corresponding to the $d1$ remaining dimensions, indicate other lessdominant dynamics; usually these were consistent across all dimensions (Figure 4—figure supplement 1). We fitted $A$ to every point $P(t)$ after the stimulation offset, typically giving $\approx 5000$ local estimates of dynamics from retained $P(t)$. The dominant dynamics for the whole program were estimated by averaging over the real $a$ and the complex $b$ parts of the maximum eigenvalues of the models fitted to all recurrent points in the dominant periodic orbit. The linear model’s estimate of the orbit rotation period was estimated from the complex part as $\omega =2\pi b\mathrm{\Delta}t$, with the sampling timestep $\mathrm{\Delta}t=0.01$ s here. The linear model’s estimate of the contraction rate is $\mathrm{exp}(a/\mathrm{\Delta}t)$, which we express as a percentage.
Tracking changes in periodicity over a program
Request a detailed protocolWe tracked changes in the oscillation period by first averaging the recurrence time of all recurrent points in a 5 s sliding window. We then correlated the mean time with the timepoint of the window to look for sustained changes in the mean period over time, considering only windows between coalescence and the final window with 90% recurrent points. We used a weighted version of Spearman’s rank to weight the correlation in favour of time windows in which the trajectory was most clearly on the periodic orbit, namely those with a high proportion of recurrent points and low variation in recurrence time. The weighted rank correlation is: given vectors $x$ and $y$ of data rankings, and a vector of weights $w$, compute the weighted mean $m={\sum}_{i}{w}_{i}{x}_{i}/{\sum}_{i}{w}_{i}$ and standard deviation ${\sigma}_{xy}={\sum}_{i}{w}_{i}({x}_{i}{m}_{x})({y}_{i}{m}_{y})/{\sum}_{i}{w}_{i}$, and then the correlation $\rho ={\sigma}_{xy}/\sqrt{{\sigma}_{xx}{\sigma}_{yy}}$. We used the weight vector: ${w}_{i}={s}_{i}^{1}{Q}_{i}$, where ${s}_{i}$ is the standard deviation of recurrence times in window $i$, and ${Q}_{i}$ is the proportion of recurrent points in window $i$. Pvalues were obtained using a permutation test with 10000 permutations.
Decoding motor output
Request a detailed protocolWe decoded P10 activity from the lowdimensional trajectory of population activity using a generalised linear model. We first ruled out that any simultaneously recorded neuron was a motorneuron with an axon in nerve P10, by checking if any neurons had a high ratio of locking between their emitted spikes and spikes occurring at short latency in the P10 recording. Figure 6—figure supplement 1 shows that no neuron had a consistent, high ratio locking of its spikes with the P10 activity.
We convolved the spikes of the P10 recording with a Gaussian of the same width as the spikedensity functions of the simultaneously recorded program, to estimate its continuous firing rate ${f}_{10}$. We fitted the model ${f}_{10}(t)=\mathrm{exp}\left({\beta}_{0}+{\sum}_{i=1}^{d}{\sum}_{h=1}^{m}{\beta}_{i,h}{P}_{i}(th)\right)$ to determine the P10 firing rate as a function of the past history of the population activity trajectory. Using a generalised linear model here allows us to transform the arbitrary coordinates of the $d$dimensional projection $P(t)$ into a strictly positive firing rate. Fitting used glmfit in MATLAB R2014. To crossvalidate the model, we found the coefficients $\beta $ using a 40 s window of data, then forecast the P10 firing rate ${f}_{10}^{*}$ using the next 10 s of population recording data as input to the model. Forecast error was measured as both the median absolute error and the correlation coefficient $R$ between the actual and forecast P10 activity in the 10 s window. The fitting and forecasting were repeated using a 1 s step of the windows, until the final 40 s + 10 s pair of windows available in the recording.
We tested activity histories between 50 and 200 ms duration, with timesteps of 10 ms, so that the largest model for a given program had $d\times 20$ coefficients. These short windows were chosen to rule out the contributions of other potential motorneurons in the population recording that would be phase offset from neck contraction (as 200 ms is 2% of the typical period). All results were robust to the choice of history duration, so we plot results using history durations that had the smallest median absolute error in forecasting for that program.
Single neuron participation
Request a detailed protocolWe quantified each neuron’s participation in the lowdimensional projection as the L1norm: the absolute sum of its weights on the principal axes (eigenvectors) for program $m:{\rho}_{i}^{m}={\sum}_{j=1}^{d}\left{\lambda}_{j}^{m}{W}_{j}^{m}(i)\right$, where the sum is over the $d$ principal axes, ${W}_{j}^{m}(i)$ is the neuron’s weight on the $j$th axis, and ${\lambda}_{j}^{m}$ is the axis’ corresponding eigenvalue. Within a program, participation for each neuron was normalised to the maximum participation in that program. To fit a noise model for the variability in participation between programs, we first computed the change in participation for each neuron between all pairs of programs in the same preparation. We then fit a Gaussian model for the noise, using an iterative maximum likelihood approach to identify the likely outliers; here the outliers are the participation changes that are inconsistent with stochastic noise. In this approach, we compute the mean and variance of the Gaussian from the data, eliminate the datapoint furthest from the estimate of the mean, reestimate the mean and variance, and compute the new log likelihood of the Gaussian model without that datapoint. We iterate elimination, reestimation, and likelihood computation until the likelihood decreases. The final model (mean and variance) found before the decrease is then the bestfit Gaussian model to the bulk of the data. Neurons whose maximum change in participation exceeded a threshold of the mean $\pm 3$SD of that bestfit model were then considered ‘strongly variable’ neurons.
We asked whether the variation in lowdimensional dynamics of sequentiallyevoked programs was a consequence of the degree of variation in single neuron participation. Between a pair of consecutively evoked programs, we quantified the variation in their low dimensional dynamics as the Hausdorff distance between them, normalised by the mean distance between their random projections. This normalisation allowed us to put all programs on a single scale measuring the closeness relative to random projections, such that one indicates equivalence to a random projection, $<1$ indicates closer than random projections, and $>1$ indicates further apart then random projections. For a given pair of programs, we quantified the variability of individual neurons’ participation in two ways: by summing the change in participation of each neuron between the programs; and by computing the Hellinger distance between the two distributions of participation (one distribution per program).
Participation maps
Request a detailed protocolEach neuron’s (x,y) location on the plane of the photodiode array could be estimated from the weight matrix from the independent component analysis of the original 464 photodiode timeseries; see (Bruno et al., 2015) for full details. We were able to reconstruct locations for all neurons in 8 of the 10 recorded preparations; for the other two preparations, partial corruption of the original spikesorting analysis data prevented reconstructions of some neuron locations in one; for the other, we could not determine on what side it was recorded. We merged all left or right ganglion recordings on to a common template of the photodiode array. The marker sizes and colour codes for each neuron were proportional to the normalised maximum participation of that neuron (Figure 8A,C) and to the range of normalised maximum participation across the three programs (Figure 8B,D).
Data availability

apl1: Voltage sensitive dye recording of multiple bouts of escape locomotion in the pedal ganglion of Aplysia californicaPublicly available from Collaborative Research in Computational Neuroscience (accession no. K0SN074B).
References

Population coding of tone stimuli in auditory cortex: dynamic rate vector analysisEuropean Journal of Neuroscience 30:1767–1778.https://doi.org/10.1111/j.14609568.2009.06954.x

Chronux: a platform for analyzing neural signalsJournal of Neuroscience Methods 192:146–151.https://doi.org/10.1016/j.jneumeth.2010.06.020

From crawling to cognition: analyzing the dynamical interactions among populations of neuronsCurrent Opinion in Neurobiology 16:135–144.https://doi.org/10.1016/j.conb.2006.03.014

Imaging dedicated and multifunctional neural circuits generating distinct behaviorsJournal of Neuroscience 26:10925–10933.https://doi.org/10.1523/JNEUROSCI.326506.2006

Multifunctional patterngenerating circuitsAnnual Review of Neuroscience 31:271–294.https://doi.org/10.1146/annurev.neuro.31.060407.125552

Basic mechanisms for graded persistent activity: discrete attractors, continuous attractors, and dynamic representationsCurrent Opinion in Neurobiology 13:204–211.https://doi.org/10.1016/S09594388(03)000503

Multiple neural spike train data analysis: stateoftheart and future challengesNature Neuroscience 7:456–461.https://doi.org/10.1038/nn1228

Parameter space analysis suggests multisite plasticity contributes to motor pattern initiation in TritoniaJournal of Neurophysiology 98:2382–2398.https://doi.org/10.1152/jn.00572.2007

Stable ensemble performance with singleneuron variability during reaching movements in primatesJournal of Neuroscience 25:10712–10716.https://doi.org/10.1523/JNEUROSCI.277205.2005

Cyclebycycle assembly of respiratory network activity is dynamic and stochasticJournal of Neurophysiology 109:296–305.https://doi.org/10.1152/jn.00830.2011

Singleneuron stability during repeated reaching in macaque premotor cortexJournal of Neuroscience 27:10742–10750.https://doi.org/10.1523/JNEUROSCI.095907.2007

Dimensionality reduction for largescale neural recordingsNature Neuroscience 17:1500–1509.https://doi.org/10.1038/nn.3776

A unified approach to building and controlling spiking attractor networksNeural Computation 17:1276–1314.https://doi.org/10.1162/0899766053630332

The effect of dopamine receptor blockade on motor behavior in Aplysia californicaPharmacology Biochemistry and Behavior 69:425–430.https://doi.org/10.1016/S00913057(01)005627

Role of pedal ganglia motor neurons in pedal wave generation in AplysiaBrain Research Bulletin 5:179–193.https://doi.org/10.1016/03619230(80)901914

Emerging principles governing the operation of neural networksAnnual Review of Neuroscience 12:185–204.https://doi.org/10.1146/annurev.ne.12.030189.001153

Involvement of pedal peptide in locomotion in Aplysia: modulation of foot muscle contractionsJournal of Neurobiology 21:858–868.https://doi.org/10.1002/neu.480210604

Encoding of movement fragments in the motor cortexJournal of Neuroscience 27:5105–5114.https://doi.org/10.1523/JNEUROSCI.357006.2007

Operant conditioning of gill withdrawal in AplysiaJournal of Neuroscience 26:2443–2448.https://doi.org/10.1523/JNEUROSCI.329405.2006

Motorneuronal control of locomotion in AplysiaBrain Research 179:231–253.https://doi.org/10.1016/00068993(79)904414

Validation of independent component analysis for rapid spike sorting of optical recording dataJournal of Neurophysiology 104:3721–3731.https://doi.org/10.1152/jn.00691.2010

Spiketrain communities: finding groups of similar spike trainsJournal of Neuroscience 31:2321–2336.https://doi.org/10.1523/JNEUROSCI.285310.2011

Neural control of locomotion in Aplysia: role of the central gangliaBehavioral and Neural Biology 27:39–58.https://doi.org/10.1016/S01631047(79)927444

Head waving in Aplysia californica. III. Interganglionic pathways underlying the coordination and control of searching movementsThe Journal of Experimental Biology 195:75–90.

Characterization of an experimental strange attractor by periodic orbitsPhysical Review A 40:4028–4031.https://doi.org/10.1103/PhysRevA.40.4028

The role of sensory network dynamics in generating a motor programJournal of Neuroscience 25:9807–9815.https://doi.org/10.1523/JNEUROSCI.224905.2005

Understanding circuit dynamics using the stomatogastric nervous system of lobsters and crabsAnnual Review of Physiology 69:291–316.https://doi.org/10.1146/annurev.physiol.69.031905.161516

Multiple models to capture the variability in biological neurons and networksNature Neuroscience 14:133–138.https://doi.org/10.1038/nn.2735

Robust circuit rhythms in small circuits arise from variable circuit components and mechanismsCurrent Opinion in Neurobiology 31:156–163.https://doi.org/10.1016/j.conb.2014.10.012

Serotonergic modulation in Aplysia. II. Cellular and behavioral consequences of increased serotonergic toneJournal of Neurophysiology 92:2487–2496.https://doi.org/10.1152/jn.00210.2004

Recurrence plots for the analysis of complex systemsPhysics Reports 438:237–329.https://doi.org/10.1016/j.physrep.2006.11.001

Sustained oscillations generated by mutually inhibiting neurons with adaptationBiological Cybernetics 52:367–376.https://doi.org/10.1007/BF00449593

Mechanisms of frequency and pattern control in the neural rhythm generatorsBiological Cybernetics 56:345–353.https://doi.org/10.1007/BF00319514

Neuronal modulation of foot and bodywall contractions in Aplysia californicaJournal of Neurophysiology 67:23–28.

Sloppiness in spontaneously active neuronal networksJournal of Neuroscience 35:8480–8492.https://doi.org/10.1523/JNEUROSCI.442114.2015

Internally organized mechanisms of the head direction senseNature Neuroscience 18:569–575.https://doi.org/10.1038/nn.3968

How the brain generates movementNeural Computation 24:289–331.https://doi.org/10.1162/NECO_a_00223

Development of sensitization in the escape locomotion system in AplysiaJournal of Neuroscience 8:223–230.

Applications of the spike density function in analysis of neuronal firing patternsJournal of Neuroscience Methods 81:159–167.https://doi.org/10.1016/S01650270(98)000338

An identified interneuron contributes to aspects of six different behaviors in AplysiaJournal of Neuroscience 16:5266–5279.

Specific evidence of lowdimensional continuous attractor dynamics in grid cellsNature Neuroscience 16:1077–1084.https://doi.org/10.1038/nn.3450

From the neuron doctrine to neural networksNature Reviews Neuroscience 16:487–497.https://doi.org/10.1038/nrn3962
Decision letter

JanMarino RamirezReviewing Editor; Seattle Children's Research Institute and University of Washington, United States
In the interests of transparency, eLife includes the editorial decision letter and accompanying author responses. A lightly edited version of the letter sent to the authors after peer review is shown, indicating the most substantive concerns; minor comments are not usually included.
Thank you for submitting your article "A spiral attractor network drives rhythmic locomotion" for consideration by eLife. Your article has been reviewed by three peer reviewers, one of whom, JanMarino Ramirez (Reviewer #1), is a member of our Board of Reviewing Editors and the evaluation has been overseen by Eve Marder as the Senior Editor. The following individuals involved in review of your submission have agreed to reveal their identity: Rune W Berg (Reviewer #2).
The reviewers have discussed the reviews with one another and the Reviewing Editor has drafted this decision to help you prepare a revised submission.
Summary:
The authors explore the population dynamics that controls fictive locomotion in the pedal ganglion network of Aplysia. The locomotor activity is a relatively simple escape response, which is elicited by a brief electrical stimulation to the tail nerve. The use of fast voltage sensitive dyes and optical imaging allows the authors to gain insights into the activity of individual neurons, while simultaneously recording the activity from 120180 neurons, which represents approximately 10% of the entire ganglion population. This unique preparation is ideal to address fundamental questions in neuronal networks. In particular the question of how populations of neurons control behavior is difficult to address in larger networks, such as those of the mammalian nervous system.
The authors find that the population dynamics can best be described as an attractor dynamics (spiral attractor) with a low dimension, whereas the higher dimensional activity is variable from trial to trial as well as from animal to animal and therefore not attributed the same importance in the generation of the motor pattern. Interestingly, the authors found that the individual participation in the dynamics could change substantially from bout to bout, while the population dynamics was more stable. This is consistent with the property of mammalian networks in which single neurons show also large variability, while the output is rather regular (see e.g. Carroll and Ramirez, 2013).
There are several other important and interesting findings in this study. This small network investigation is simple enough to restrict the unknown variables yet rich enough to address interesting questions of neuronal network behind motor behavior. It is truly a rare and noteworthy study and the authors go through great efforts to analyze and interpret the complexity that even such a simple animal has. The paper is well written, but it would help to try to further simplify the language and better explain the terms used. The study is innovative as the authors provide tools for analysis, in particular the recurrence analysis. Thus, this study will undoubtedly inspire future investigation in attractor dynamics of neuronal networks.
Essential revisions:
1) The study is well written, but it needs to be adjusted to a more general readership. The method is innovative, but it needs to be better explained, in particular for a reader who is not familiar with the terminology used in this study. The authors should provide e.g. a better explanation in the text how eigenvalues for the population recordings were calculated.
2) We would be interested to hear some of your answers to the questions raised below. The authors could consider addressing these questions in the Discussion section, since the general readership might arrive at similar questions. But, we won't insist that the authors include each of the following issues in the text.
2a) Please comment: There seems to be only one attractor in the state space – or two if you count the spontaneous state, which seems rather trivial, as an attractor. Although this arrangement would provide robustness to the system and prevent unintended pathological activities, it seems to be contrary to the general notion of neuronal networks having multiple stable states – e.g. the classical Hopfield memory networks. Further, it was documented in an early report that (even) the neuronal network in the Aplysia abdominal ganglion could participate in at least 3 different behaviors, see
JY Wu, LB Cohen, CX Falk, "Neuronal activity during different behaviors in Aplysia: a distributed organization?" Science 263, 820823, 1994
Is the pedal ganglion network not able to perform more motor behaviors or is it not possible to induce other behaviors experimentally? I know the authors make great effort to map the basin of attraction, but can you comment more on this issue of lack of multistability?
2b) Please comment: What is the role of the rest of the population in bringing back the dynamics to the attractor? I don't fully see to what extent the perturbation affects all the neurons, or only some. Could it be that the response to the perturbation (Figure 1F) and the decay back to the attractor is really the alignment of the recorded/perturbed neurons with the rest of the unperturbed population?
2c) Please comment: Discussion and other places: "Testing the idea that highdimensional population activity contains a lowdimensional signal […]" How would the activity look if it were a high dimensional activity without a low dimensional signal, i.e. the contrary situation? Would it just be random chaotic spiking? Would it even be possible to have a rhythmic low dimensional motor output without having that same lowdimensional component in the neuronal population?
2d) Emergence. The authors discuss in a couple of places the interesting and profound issue:
"These results suggest that the pedal ganglion's pattern generator is not driven by neurons that are endogenous oscillators, as they would be expected to participate equally in every response. Rather, this variation supports the hypothesis that the periodic activity is an emergent property of the network. "
However, in their model the network oscillation frequency is set by the membrane time constant of the single neuron. This seems at odds with the notion that the rhythm is an emergent network phenomenon. Usually "emergence" is a property that cannot be identified on the single cell level. And if so, why is the network oscillation so robust and independent on the participation of individual neuron? Is the network oscillation frequency some sort of weighted average of the time constants of different cells? This is a very important issue and has caused considerable discussion e.g. in the field of mammalian respiration, and thus, it would be great to include your considerations in the discussion. We will further elaborate on your conclusion with regards to the emergent property below.
3) The authors use recurrence analysis, which is adapted from the analysis of dynamical systems, and they provide some evidence that population activity in the pedal ganglion fulfills some criteria of attractor dynamics: A) the cyclical periodic orbit is rapidly reached from a more diverse state during the initial stimulation. B) After spontaneous perturbations, the system recovers rapidly returning to the manifold. Moreover, C) they show that across the entire recorded neuronal population, individual neurons can change in the weight by which they contribute to the low dimensional state. Based on C), they conclude that the low dimensional dynamical system is an emergent property of the neuronal population and more robust / reproducible than the high dimensional neuronal population activity; in conclusion, a stable motor output is produced besides the variability seen in individual neurons.
The use of recurrence analysis for single cell resolution neuronal population data is innovative. While this manuscript will be interesting to a large community of neuroscientists, the manuscript needs some clarifications. Most importantly, C) is a very strong statement that really would change views of how population dynamics in the pedal ganglion work; however, C) is not sufficiently supported by the analysis provided and thus could be misleading. Additional analyses should be done to either revise or solidify this conclusion.
4) Along these lines: there might be an oscillatory subpopulation of neurons, or even smaller CPG unit, that generates in a very robust and reproducible manner a recurrent and periodic pattern; this view is already somewhat supported in Figure 8. In addition, other pedal ganglion neurons contribute to a more complex overall population state by exhibiting more variable activity patterns, that might be transiently recruited to this recurrently active subpopulation. If this is the case, the main statement (C) does not hold and should be revised.
5) If the dataset in Figure 1C is representative, it is obvious that PCA will lead to at least two modes that describe a dominant periodic orbit. The authors should provide more direct quantification of what type of neurons have the most variable contributions and in which way. In their previous work, the authors devised a method to classify neuronal subpopulations as nonoscillators, oscillators, bursters, pausers (Bruno et al., 2015); see also Figure 1C. First, the authors should perform their analyses on these subpopulations separately; one might expect that the oscillatory neurons show much less variable contributions and that the variability comes from the other neuronal classes. Or is there even a very small set of highly nonvariable neurons? In this case, one could argue that recurrence, periodicity and stable motor output generation is not an emergent property of the pedal ganglion but the robust output of a smaller subpopulation / CPG subunit.
6) PCA results, especially in the higher dimensions can be quite variable from dataset to dataset, or even within datasets, when performed on subsections. The authors use the eigenvectors to measure each neuron's contribution to the low dimensional signal. However, as they also state, this variability can come from variable signal amplitudes or variable synchrony. If signal amplitude is the main source of variability, I would argue that the main periodic (or recurrent) feature of these neurons is robust and preserved throughout the 3 programs in each recording; it just appears variable in the eigenvectors. So, the authors should show that the main source of variability is indeed variable synchrony.
7) An essential aspect of recurrence analysis described in Marwan et al., 2007 is the addition of time delay dimension to the data; here recurrent points are similar not only in their instantaneous distances but also in their time history. This step is not mentioned in the manuscript. Please provide an explanation why this was not needed for the analysis of their data.
8) Detailed information is lacking about how many PC dimensions were used in each analysis and dataset. Were always the top 4 dimensions used as described for Figure 2D, or always as many dimensions that explain 80% of variance? Was this the same for all analyses throughout the paper? This choice makes a difference in how to interpret the data. Please provide this detailed information.
9) Please discuss what the function of variability might be. For example, is the size principle described for the Aplyisa motor system, i.e. do variable recruitment patterns are functional for different loads on the motor apparatus? Etc.
https://doi.org/10.7554/eLife.27342.023Author response
Essential revisions:
1) The study is well written, but it needs to be adjusted to a more general readership. The method is innovative, but it needs to be better explained, in particular for a reader who is not familiar with the terminology used in this study. The authors should provide e.g. a better explanation in the text how eigenvalues for the population recordings were calculated.
The accessibility of the reported work was always a concern for us, and prompted here by the referees we have made a number of changes to the text:
I) We revised the opening paragraph of the Introduction to motivate better the approach of looking at a low dimensional system for the general reader..
II) We have extended Figure 1F to include a further schematic and fuller definitions of the terminology used. In particular, we now illustrate and define "trajectory"; and illustrate and define "manifold".
III) We have revised the opening paragraph in subsection “Joint population activity meets the conditions for a periodic attractor”, this now more clearly defines the expectations of a manifold for an attractor, and better motivates the analysis then done.
IV) We have added a paragraph of explanation to subsection “Heterogenous population activity arises from a common attractor” on how the local linear model was fit and how the eigenvalues were derived from it.
V) We have extended the Discussion (see responses below), and divided it into titled subsections, to better orient the reader.
2) We would be interested to hear some of your answers to the questions raised below. The authors could consider addressing these questions in the Discussion section, since the general readership might arrive at similar questions. But, we won't insist that the authors include each of the following issues in the text.
2a) Please comment: There seems to be only one attractor in the state space – or two if you count the spontaneous state, which seems rather trivial, as an attractor. Although this arrangement would provide robustness to the system and prevent unintended pathological activities, it seems to be contrary to the general notion of neuronal networks having multiple stable states – e.g. the classical Hopfield memory networks. Further, it was documented in an early report that (even) the neuronal network in the Aplysia abdominal ganglion could participate in at least 3 different behaviors, see
JY Wu, LB Cohen, CX Falk, "Neuronal activity during different behaviors in Aplysia: a distributed organization?" Science 263, 820823, 1994
Is the pedal ganglion network not able to perform more motor behaviors or is it not possible to induce other behaviors experimentally? I know the authors make great effort to map the basin of attraction, but can you comment more on this issue of lack of multistability?
These are all excellent questions.
A periodic attractor network and a Hopfieldstyle point attractor network are very different beasts. A point attractor network's stable states are defined by the number of configurations of stable, unchanging activity amongst its neurons. In the simple networks of Hopfield, Amit, Grossberg and others, these configurations are exponential in the number of neurons, as different inputs recall a different configuration of neuron activity. By contrast, a periodic attractor network has a stable states defined by repeatedly changing activity amongst its neurons. An enumeration of its stable states is defined by the number of periodic trajectories that can arise given different inputs. This can be as low as 1, with the same periodic trajectory arising for any given input.
Separately, a periodic attractor network can of course support more than one stable periodic trajectory if some element of that network is changed (e.g. the strength of connections between neurons): thus multiple attractors can exist in the same physical network if the properties of that network can be modulated. Just as we suspect happens with serotonin in the pedal ganglion.
The pedal ganglion does indeed support more than one behavior. As we touched on in the manuscript, minimally it supports both the escape gallop and the normal crawl, which have different sequences of muscle contractions. We now mention that it may also drive the headwave of Aplysia.
We have brought all the above points together in a new Discussion section titled "Multiple periodic attractors and multifunctional circuits", including appropriate new references.
2b) Please comment: What is the role of the rest of the population in bringing back the dynamics to the attractor? I don't fully see to what extent the perturbation affects all the neurons, or only some. Could it be that the response to the perturbation (Figure 1F) and the decay back to the attractor is really the alignment of the recorded/perturbed neurons with the rest of the unperturbed population?
The spontaneous perturbations we observed were the almost complete cessation of recurrence in a trajectory that accounted for at least 80% of the covariation of the (observed) population activity. Consequently, the perturbations were populationwide, as illustrated in the three raster plots in Figure 3—figure supplement 2. The return to the attractor is not necessarily caused by any other group of neurons, but is simply the response of the system to the cessation of a transient change to its input (Figure 1—figure supplement 1).
We have now commented on this in subsection “Joint population activity meets the conditions for a periodic attractor”.
2c) Please comment: Discussion and other places: "Testing the idea that highdimensional population activity contains a lowdimensional signal…" How would the activity look if it were a high dimensional activity without a low dimensional signal, i.e. the contrary situation? Would it just be random chaotic spiking? Would it even be possible to have a rhythmic low dimensional motor output without having that same lowdimensional component in the neuronal population?
Highdimensional activity without a corresponding lowdimensional signal can only arise with random, uncorrelated firing of each neuron. By contrast, chaotic spiking is not random: there is covariation between neurons, but without any sustained periodicity (as in our example of putative chaotic spiking in Figure 3—figure supplement 1B). A chaotic system will thus also have a lowdimensional signal (it’s just that the lowdimensional signal has fractional dimensions for a chaotic system).
Any covariation between neurons reduces the dimensionality of the space needed to describe the population. So the key questions are i) how low a number of dimensions is needed, to understand the redundancy in the population activity (here we see a factor of 10 reduction in the number of dimensions) and ii) how low is relevant to the behavior? We provide evidence that the very low number of dimensions is relevant through the use of the GLM decoder to reconstruct P10 activity from the lowdimensional trajectory.
2d) Emergence. The authors discuss in a couple of places the interesting and profound issue:
"These results suggest that the pedal ganglion's pattern generator is not driven by neurons that are endogenous oscillators, as they would be expected to participate equally in every response. Rather, this variation supports the hypothesis that the periodic activity is an emergent property of the network. "
However, in their model the network oscillation frequency is set by the membrane time constant of the single neuron. This seems at odds with the notion that the rhythm is an emergent network phenomenon. Usually "emergence" is a property that cannot be identified on the single cell level. And if so, why is the network oscillation so robust and independent on the participation of individual neuron? Is the network oscillation frequency some sort of weighted average of the time constants of different cells? This is a very important issue and has caused considerable discussion e.g. in the field of mammalian respiration, and thus, it would be great to include your considerations in the discussion. We will further elaborate on your conclusion with regards to the emergent property below.
The fact that the time constants constrain the oscillation is not at odds with an emergent system. An emergent property of a system is one that the collection of units has that the individual units do not. But those properties are of course physically constrained by the physical properties of the units. The canonical example is flocking birds. The flock flies differently to an individual bird, with sudden changes of direction, massing and spreading. But the flock's behavior is constrained by physical properties of the bird species – its airspeed (limiting the flock’s velocity) and its wingspan (limiting its compression).
In our toy model attractor network, the single units are not oscillators. Given constant input, they transiently respond then adapt to a steadystate. The oscillation is a property of the network, not the units. But of course the possible frequencies of oscillation are constrained by time constant of and the delays between the neurons – for example, the longer the transmission delay between the connected neurons, so the lower is the upper limit of possible oscillation frequencies. Exactly what frequency emerges from the network thus depends heavily on the details of the network, with no universal answer. In a toy model like ours with just two homogenous time constant, then the oscillation frequency is determined by them in a straightforward way (largely by the time constant of adaptation). But even as soon as we move to model with heterogenous time constants and delays, the solution to the periodicity of the attractor becomes complex (see e.g. NevadoHolgado, Terry & Bogacz (2011) J Neurosci for solutions to periodic states in the very simple STNGPe feedback loop within the basal ganglia).
Our model is illustrative of the main concepts in a periodic attractor network – as we note in the Discussion, current models cannot account for variation of neurons between executions of the attractor. We thus don’t know why networks are robust to variation.
Figure 1—figure supplement 1A now shows what happens with uncoupled neurons in our toy model. This illustrates emergence: without the network connections, there is no oscillation.
3) The authors use recurrence analysis, which is adapted from the analysis of dynamical systems, and they provide some evidence that population activity in the pedal ganglion fulfills some criteria of attractor dynamics: A) the cyclical periodic orbit is rapidly reached from a more diverse state during the initial stimulation. B) After spontaneous perturbations, the system recovers rapidly returning to the manifold. Moreover, C) they show that across the entire recorded neuronal population, individual neurons can change in the weight by which they contribute to the low dimensional state. Based on C), they conclude that the low dimensional dynamical system is an emergent property of the neuronal population and more robust / reproducible than the high dimensional neuronal population activity; in conclusion, a stable motor output is produced besides the variability seen in individual neurons.
The use of recurrence analysis for single cell resolution neuronal population data is innovative. While this manuscript will be interesting to a large community of neuroscientists, the manuscript needs some clarifications. Most importantly, C) is a very strong statement that really would change views of how population dynamics in the pedal ganglion work; however, C) is not sufficiently supported by the analysis provided and thus could be misleading. Additional analyses should be done to either revise or solidify this conclusion.
4) Along these lines: there might be an oscillatory subpopulation of neurons, or even smaller CPG unit, that generates in a very robust and reproducible manner a recurrent and periodic pattern; this view is already somewhat supported in Figure 8. In addition, other pedal ganglion neurons contribute to a more complex overall population state by exhibiting more variable activity patterns, that might be transiently recruited to this recurrently active subpopulation. If this is the case, the main statement (C) does not hold and should be revised.
5) If the dataset in Figure 1C is representative, it is obvious that PCA will lead to at least two modes that describe a dominant periodic orbit. The authors should provide more direct quantification of what type of neurons have the most variable contributions and in which way. In their previous work, the authors devised a method to classify neuronal subpopulations as nonoscillators, oscillators, bursters, pausers (Bruno et al., 2015); see also Figure 1C. First, the authors should perform their analyses on these subpopulations separately; one might expect that the oscillatory neurons show much less variable contributions and that the variability comes from the other neuronal classes. Or is there even a very small set of highly nonvariable neurons? In this case, one could argue that recurrence, periodicity and stable motor output generation is not an emergent property of the pedal ganglion but the robust output of a smaller subpopulation / CPG subunit.
We have dealt with points 3) to 5) together, as they ultimately are all focused on the core question of evidence for emergence in the population activity. The referees have rightly asked whether there is evidence for a core group of stable, nonvariable neurons in the population.
To an extent, we already had evidence against this idea. Such a core CPG population would be neurons that are phasically active, strongly participating in all population responses, and low in variation between population responses. Figure 7B already showed that there were very few such neurons, which would be expected to fall in the bottom half of the bottom right quadrant of that scatter plot, but where instead there is predominantly whitespace.
To further address this question, we have done the following:
1) We clustered every one of the 30 population responses into their constituent ensembles (as per our modular deconstruction approach in Bruno et al., 2015).
2) Each ensemble was then classified as oscillator, burster, tonic, or pauser according to the same autocorrelation approach as in Bruno et al., 2015.
3) Each neuron was then labelled with the class of its parent ensemble.
4) We determined how many neurons were consistently labelled across all three responses in the same preparation. We found that only a subset of the oscillator class was consistently labelled across all three responses in all ten preparations. This would be consistent with a small core of invariant phasically active neurons.
5) However, this consistent subset of oscillator neurons also showed the same wide variation in participation as the whole population. We could not identify even one neuron in some populations that was strongly participating and yet invariant.
These results are summarised in a new supplemental figure: Figure 7—figure supplement 2.
We added a paragraph to the main text (subsection “Variable neuron participation in stable motor programs”) reporting these results
6) PCA results, especially in the higher dimensions can be quite variable from dataset to dataset, or even within datasets, when performed on subsections. The authors use the eigenvectors to measure each neuron's contribution to the low dimensional signal. However, as they also state, this variability can come from variable signal amplitudes or variable synchrony. If signal amplitude is the main source of variability, I would argue that the main periodic (or recurrent) feature of these neurons is robust and preserved throughout the 3 programs in each recording; it just appears variable in the eigenvectors. So, the authors should show that the main source of variability is indeed variable synchrony.
Figure 7—figure supplement 1 is now a more thorough quantification of participation. It shows that independently measured changes in rate and change in synchrony between responses can correlate with the change in participation, but need not do so. These results emphasise that participation is a contextual thing: the contributions to the eigenvectors of each neuron are relative to all other neurons' contributions. Moreover, participation quantifies change across multiple dimensions of covariation in the population's activity. So correlating it with absolute and independent measures of rate or synchrony changes is only a crude guide to what is measured. Thus we used our participation index as a summary measure of the relative contribution to the population of each neuron.
7) An essential aspect of recurrence analysis described in Marwan et al., 2007 is the addition of time delay dimension to the data; here recurrent points are similar not only in their instantaneous distances but also in their time history. This step is not mentioned in the manuscript. Please provide an explanation why this was not needed for the analysis of their data.
We believe the referees comments here are in reference to Takens’ embedding theorem (Eq 9 in Marwan et al., 2007). This is a remarkable result for onedimensional timeseries (such as the output of a single neuron), which allows us to treat a 1D timeseries as though it were a set of >1 timeseries. Namely, by constructed a highdimensional space by adding as many dimensions as timedelay steps (t,t+1,…,t+tau), and then determining the dynamical system in that timeembedding space. However, here we already have >>1 timeseries, and even after PCA we still have P > 1 dimensions: so we simply check for recurrence in the natural dimensions of the system at hand (Eq 7 in Marwan et al., 2007), rather than constructing a timeembedding set of dimensions.
8) Detailed information is lacking about how many PC dimensions were used in each analysis and dataset. Were always the top 4 dimensions used as described for Figure 2D, or always as many dimensions that explain 80% of variance? Was this the same for all analyses throughout the paper? This choice makes a difference in how to interpret the data. Please provide this detailed information.
The referees are quite right that we omitted a single clear statement from the main text, and only implied that we used the number of dimensions needed to account for 80% variance throughout.
We now explicitly state: "Thus, throughout our analysis, we projected each evoked program into the number of embedding dimensions needed to capture at least 80% of the variance in population activity" (subsection “Joint population activity forms a lowdimensional periodic orbit”).
9) Please discuss what the function of variability might be. For example, is the size principle described for the Aplyisa motor system, i.e. do variable recruitment patterns are functional for different loads on the motor apparatus? Etc.
We have collated our existing points on the role of variability into a Discussion section, subsection "Insights and challenges of variable neuron participation", and extended our discussion of its potential functional roles. In particular, we now speculate that one potential role of variable participation is to build "sloppiness" into the system, such that there are many possible configurations of the network able to generate the spiral attractor.
https://doi.org/10.7554/eLife.27342.024Article and author information
Author details
Funding
Medical Research Council (MR/J008648/1)
 Mark D Humphries
National Institutes of Health (R01NS060921)
 William N Frost
National Science Foundation (1257923)
 William N Frost
National Institutes of Health (F31NS079036)
 Angela M Bruno
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Acknowledgements
We thank R Petersen and B Mensh for comments on drafts, A Singh for suggesting the Hausdorff distance, and J Wang for technical assistance. MDH was supported by a Medical Research Council Senior nonClinical Fellowship. WF was supported by NIH R01NS060921 and NSF 1257923. AB was supported by NIH F31NS079036.
Reviewing Editor
 JanMarino Ramirez, Seattle Children's Research Institute and University of Washington, United States
Version history
 Received: March 30, 2017
 Accepted: July 11, 2017
 Version of Record published: August 7, 2017 (version 1)
Copyright
© 2017, Bruno et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics

 3,451
 Page views

 410
 Downloads

 20
 Citations
Article citation count generated by polling the highest count across the following sources: Crossref, PubMed Central, Scopus.
Download links
Downloads (link to download the article as PDF)
Open citations (links to open the citations from this article in various online reference manager services)
Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)
Further reading

 Neuroscience
Decisions about noisy stimuli are widely understood to be made by accumulating evidence up to a decision bound that can be adjusted according to task demands. However, relatively little is known about how such mechanisms operate in continuous monitoring contexts requiring intermittent target detection. Here, we examined neural decision processes underlying detection of 1 s coherence targets within continuous random dot motion, and how they are adjusted across contexts with weak, strong, or randomly mixed weak/strong targets. Our prediction was that decision bounds would be set lower when weak targets are more prevalent. Behavioural hit and false alarm rate patterns were consistent with this, and were well captured by a boundadjustable leaky accumulator model. However, betaband EEG signatures of motor preparation contradicted this, instead indicating lower bounds in the strongtarget context. We thus tested two alternative models in which decisionbound dynamics were constrained directly by beta measurements, respectively, featuring leaky accumulation with adjustable leak, and nonleaky accumulation of evidence referenced to an adjustable sensorylevel criterion. We found that the latter model best explained both behaviour and neural dynamics, highlighting novel means of decision policy regulation and the value of neurally informed modelling.

 Genetics and Genomics
 Neuroscience
A hexanucleotide repeat expansion in C9ORF72 is the most common genetic cause of amyotrophic lateral sclerosis (ALS) and frontotemporal dementia (FTD). A hallmark of ALS/FTD pathology is the presence of dipeptide repeat (DPR) proteins, produced from both sense GGGGCC (polyGA, polyGP, polyGR) and antisense CCCCGG (polyPR, polyPG, polyPA) transcripts. Translation of sense DPRs, such as polyGA and polyGR, depends on noncanonical (nonAUG) initiation codons. Here, we provide evidence for canonical AUGdependent translation of two antisense DPRs, polyPR and polyPG. A single AUG is required for synthesis of polyPR, one of the most toxic DPRs. Unexpectedly, we found redundancy between three AUG codons necessary for polyPG translation. Further, the eukaryotic translation initiation factor 2D (EIF2D), which was previously implicated in sense DPR synthesis, is not required for AUGdependent polyPR or polyPG translation, suggesting that distinct translation initiation factors control DPR synthesis from sense and antisense transcripts. Our findings on DPR synthesis from the C9ORF72 locus may be broadly applicable to many other nucleotide repeat expansion disorders.