Decoding locomotion from population neural activity in moving C. elegans

  1. Kelsey M Hallinen
  2. Ross Dempsey
  3. Monika Scholz
  4. Xinwei Yu
  5. Ashley Linder
  6. Francesco Randi
  7. Anuj K Sharma
  8. Joshua W Shaevitz
  9. Andrew M Leifer  Is a corresponding author
  1. Department of Physics, Princeton University, United States
  2. Princeton Neuroscience Institute, Princeton University, United States
  3. Lewis-Sigler Institute of Integrative Genomics, Princeton University, United States
8 figures, 6 tables and 1 additional file

Figures

Figure 1 with 3 supplements
Population calcium activity and tuning of select neurons during spontaneous animal movement.

Recording AML310_A. (a) Calcium activity of 134 neurons is simultaneously recorded during locomotion. Activity is displayed as motion-corrected fluorescent intensity Fmc. Neurons are numbered …

Figure 1—figure supplement 1
Additional details and examples of velocity tuning.

Additional examples of velocity tuning curves for Fmc (top) and dFmc/dt (bottom) from recording AML310_A are shown. The correlation coefficient ρ captures the relation between each neuron’s activity and …

Figure 1—figure supplement 2
Additional details and examples of curvature tuning.

Additional examples of curvature tuning for Fmc (top) and dFmc/dt (bottom) from recording AML310_A are shown. The correlation coefficient ρ captures the relation between each neuron’s activity and …

Figure 1—figure supplement 3
Number of significantly tuned neurons across recordings.

Pearson’s correlation coefficient ρ was calculated for each neuron in 11 GCaMP recordings and 11 GFP control recordings that lacked a calcium indicator. Neurons were counted as significantly tuned …

Figure 2 with 1 supplement
Neuron pair AVA is active during backward locomotion and exhibits expected tuning during moving population recordings.

(a) AVAR and AVAL are labeled by BFP under a rig-3 promoter in strain AML310. Two optical planes are shown from a single volume recorded during movement. Planes are near the top and bottom of the …

Figure 2—figure supplement 1
Sum of AVAL and AVAR activity.

Activity of AVAL and AVAR from AML310_A in Figure 2b are shown summed together. This permits comparison to recordings that do not resolve the two neurons separately.

Figure 3 with 5 supplements
Population neural activity decodes locomotion.

(a–d) Performance of the best single neuron (BSN) is compared to a linear population model in decoding velocity and body curvature for the exemplar recording AML310_A shown in Figure 1. (a) …

Figure 3—figure supplement 1
Performance correlates with maximal GCaMP Fano Factor, a metric of signal.

Decoding performance is plotted against maximal GCaMP Fano Factor for each recording for velocity and curvature. Maximal GCaMP Fano Factor is the Fano Factor of the raw GCaMP activity for the neuron …

Figure 3—figure supplement 2
Neural activity and behavior for all moving calcium imaging recordings (AML310 and AML32).
Figure 3—figure supplement 3
Neural activity and behavior for all moving GFP control recordings (AML18).

Neural activity and behavior for all moving GFP control recordings (AML18).

Figure 3—figure supplement 4
Alternative population models.

Performance of alternative population models for decoding velocity. Traces are shown for exemplar recording AML310_A. Mean across all moving GCaMP recordings is also listed. Gray shading shows …

Figure 3—figure supplement 5
Nonlinear fits using best single neuron.

Performance of polynomial regression models for decoding velocity on 11 GCaMP recordings using the best single neuron. The best single neuron is defined as the one with the best decoding performance …

Example where population decoded a fuller range of animal behavior.

(a) The decoding from the best single neuron and the population model are compared to the measured velocity for example recording AML32_A. (b) Predictions from the best single neuron saturate at a …

Figure 5 with 3 supplements
Weights assigned to neurons by the population model in the exemplar recording, and their respective tuning.

(a) The weight W assigned to each neuron’s activity (Fmc) or its temporal derivative (dFmc/dt) by the velocity population decoder is plotted against its Pearson’s Correlation coefficient ρ which …

Figure 5—figure supplement 1
Comparison of weights assigned to a neuron’s activity versus its temporal derivative.

Comparison of weights assigned to a neuron’s activity versus its temporal derivative for velocity (left) or curvature (right) decoders. Comparison of weights assigned to a neuron’s activity |WF| by …

Figure 5—figure supplement 2
Comparison of weights assigned for decoding velocity vs decoding curvature.

Comparison of weights assigned for decoding velocity vs decoding curvature. (a) The magnitude of the weight assigned to each neuron in recording AML310_A for velocity |Wvel| is compared to the magnitude …

Figure 5—figure supplement 3
Example traces of highly weighted neurons used to decode curvature in AML32_A.

Traces of top five highest weighted neurons used to decode curvature in AML32_A. Same recording as in Figure 4. Arrows indicate activity peaks corresponding to ventral (blue shades, top) or dorsal …

Figure 6 with 1 supplement
Number of neurons needed by the model to decode velocity and curvature.

(a) The minimum number of neurons needed for a restricted model to first achieve a given performance is plotted from recording AML310_A in Figure 1. Performance, RMS,all2 is reported separately for …

Figure 6—video 1
Animation showing partial model performance as neurons are added, corresponding to Figure 6a.

Top panel shows performance RMS,all2 evaluated on both test and training set. Bottom left shows measured velocity (black) and decoded velocity (blue). Gray shading indicates test set. Bottom right shows …

Figure 7 with 2 supplements
Immobilization alters the correlation structure of neural activity.

(a) Calcium activity is recorded from an animal as it moves and then is immobilized with a paralytic drug, recording AML310_E. (b) Activity of AVAL and AVAR from (a). (c) Population activity (or its …

Figure 7—figure supplement 1
Example from additional moving-to-immobile recording.

Calcium activity is recorded from an animal as it moves and then is immobilized with a paralytic drug, recording AML32_H. Activity and behavior. (b) Population activity (or its derivative) from (a) …

Figure 7—figure supplement 2
Immobile-only recording.

Calcium activity is recorded from an animal immobilized with nano-beads, recording AML310_G. (a) Calcium activity. (b) Activity of neurons AVAL and AVAR. (c) Population activity (or its temporal …

Correlations with respect to AVAL and AVAR during movement and immobilization.

(a) The Pearson’s correlation of each neuron’s activity to AVAR and AVAL is shown during movement and immobilization. Selected neurons are numbered as in Figure 7 (same recording, AML310_E). Neurons …

Tables

Table 1
Number of neurons needed to achieve 90% of full model performance, N90, reported as (median ± standard deviation), across all 11 recordings.
Velocity N90Curvature N90Intersection N90Total recorded
27 ± 1631 ± 187 ± 5121 ± 12
Key resources table
Reagent type (species) or resourceDesignationSource or referenceIdentifiersAdditional information
Strain, strain background (C. elegans)AML310this workDetails in Table 2
Strain, strain background (C. elegans)AML32Nguyen et al., 2017RRID:WBI-STRAIN:WBStrain00000192
Strain, strain background (C. elegans)AML18Nguyen et al., 2016RRID:WBI-STRAIN:WBStrain00000191
Table 2
Strains used.

Associated Research Resource Identifiers are listed in Key Resources.

StrainGenotypeExpressionRoleReference
AML310wtfIs5[Prab-3::NLS::GCaMP6s; Prab-3::NLS::tagRFP]; wtfEx258 [Prig-3::tagBFP::unc-54]tag-RFP and GCaMP6s in neuronal nuclei; BFP in cytoplasm of AVA and some pharyngeal neurons (likely I1, I4, M4 and NSM)Calcium imaging with AVA labelThis Study
AML32wtfIs5[Prab-3::NLS::GCaMP6s; Prab-3::NLS::tagRFP]tag-RFP and GCaMP6s in neuronal nucleiCalcium imagingNguyen et al., 2017
AML18wtfIs3[Prab-3::NLS::GFP, Prab-3::NLS::tagRFP]tag-RFP and GFP in neuronal nucleiControlNguyen et al., 2016
Table 3
Recordings used in this study.
Unique IDStrainDuration (mins)Notes
AML310_AAML3104Ca2+ imaging w/ AVA label, moving
AML310_B4
AML310_C4
AML310_D4
AML310_EAML3108Ca2+ imaging w/ AVA label, moving-to-immobile
AML310_F8
AML310_GAML31015Ca2+ imaging w/ AVA label, immobile
AML32_AAML3211Ca2+ imaging, moving
AML32_B11
AML32_C10
AML32_D11
AML32_E4
AML32_F5
AML32_G4
AML32_HAML3213Ca2+ imaging, moving-to-immobile
AML18_AAML1810GFP control, moving
AML18_B10
AML18_C7
AML18_D5
AML18_E5
AML18_F6
AML18_G9
AML18_H6
AML18_I7
AML18_J6
AML18_K6
Table 5
Alternative models explored.

Most are linear models, using either the Ridge or ElasticNet regularization. In some cases, we add an additional term to the cost function which penalizes errors in the temporal derivative of model …

ModelPenaltyFeaturesNumber of parameters
LinearRidgeF and dF/dt2Nn+1
LinearRidgeFNn+1
LinearRidge + Acceleration PenaltyF and dF/dt2Nn+1
LinearRidge + Acceleration PenaltyFNn+1
LinearElasticNetF and dF/dt2Nn+1
LinearElasticNetFNn+1
MARS (nonlinear)MARSF and dF/dtvariable
Linear with Decision Tree (nonlinear)RidgeF and dF/dt4Nn+9

Additional files

Download links