Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2013;9(2):e1002891.
doi: 10.1371/journal.pcbi.1002891. Epub 2013 Feb 28.

Discriminating external and internal causes for heading changes in freely flying Drosophila

Affiliations

Discriminating external and internal causes for heading changes in freely flying Drosophila

Andrea Censi et al. PLoS Comput Biol. 2013.

Abstract

As animals move through the world in search of resources, they change course in reaction to both external sensory cues and internally-generated programs. Elucidating the functional logic of complex search algorithms is challenging because the observable actions of the animal cannot be unambiguously assigned to externally- or internally-triggered events. We present a technique that addresses this challenge by assessing quantitatively the contribution of external stimuli and internal processes. We apply this technique to the analysis of rapid turns ("saccades") of freely flying Drosophila melanogaster. We show that a single scalar feature computed from the visual stimulus experienced by the animal is sufficient to explain a majority (93%) of the turning decisions. We automatically estimate this scalar value from the observable trajectory, without any assumption regarding the sensory processing. A posteriori, we show that the estimated feature field is consistent with previous results measured in other experimental conditions. The remaining turning decisions, not explained by this feature of the visual input, may be attributed to a combination of deterministic processes based on unobservable internal states and purely stochastic behavior. We cannot distinguish these contributions using external observations alone, but we are able to provide a quantitative bound of their relative importance with respect to stimulus-triggered decisions. Our results suggest that comparatively few saccades in free-flying conditions are a result of an intrinsic spontaneous process, contrary to previous suggestions. We discuss how this technique could be generalized for use in other systems and employed as a tool for classifying effects into sensory, decision, and motor categories when used to analyze data from genetic behavioral screens.

PubMed Disclaimer

Conflict of interest statement

The authors declare that no competing interests exist.

Figures

Figure 1
Figure 1. Data collection, saccade detection, reduced coordinate space, time histogram, number of saccades histogram.
Panel A shows the experimental setup: the fly is tracked in a circular arena of 1 m radius. The retro-illuminated checkerboard pattern gives a uniform stimulus to the fly. Panel B-i shows some of the trajectories recorded in the arena. The trajectory can be interpreted as a mix of smooth turns and rapid turns, called “saccades”, which are responsible for most of the total angular displacement of the animal. We wrote software to detect these saccades events, based on two different algorithms, documented in the Supplemental Materials. In this paper, we only consider these discrete saccade events (Panel B-ii). Panel C shows the two coordinate systems we use in this paper. We take advantage of the circular symmetry of the environment, along with a hypothesis of planarity, to reduce the degrees of freedom to 2. Panel C-i shows the choice of the axis-angle/distance from the wall coordinates. Panel C-ii shows the “fly-centric view”. The fly configuration is reduced to 2 spatial coordinates by rotating the configuration so that the animal points “up” with respect to the diagram. We remark that all the results in this paper do not depend on the choice of coordinates. Panel D shows a density plot of formula image, which is the time spent at each configuration formula image. Panel E shows the number of saccades (both left and right) detected at each configuration.
Figure 2
Figure 2. General reference models for the animal behavior and decision making.
Panel A illustrates the nomenclature that we use in this paper: formula image is the animal configuration (position/velocity), which ultimately depends on the past history of the animal decisions, the body dynamics, and environmental effects, here abstractly represented by the variable formula image. The stimulus formula image perceived by the animal is a function of the animal configuration formula image and the geometry/textures of the environment. In the most general terms, the actions of the animals, formula image, are generated on the basis of the instantaneous stimulus formula image as well as the internal state formula image, which includes, for our purposes, everything which is not observable, including metabolic and neural states. Panel B illustrates the specialization of the model that we postulate. The decisions of the animals are represented by series of observable events belonging to a fixed set of classes; in our case these are left and right body saccades. The events are assumed to be generated by a set of interacting rate-variant Poisson processes. The instantaneous rates formula image depend on several factors, including the unobservable states, and the external stimulus. The main hypothesis of this paper is that the contribution of the stimulus on the rate can be written as a function of a low-dimensional feature formula image computed from the stimulus. The inference problem in this paper consists in identifying the functions formula image that best explain the rates as a function of the stimulus (formula image). The diagram also shows the impact of other unmodeled neural processing based on internal states, acting as a disturbance in the model. We do not infer a functional description of this modeling, but we are able to bound its contribution and show that it is small with respect to the stimulus-induced contribution. The diagram also shows the reduced configuration formula image, the subset of formula image on which the stimulus actually depends. The reduced configuration depends on the particular experimental settings; in our case, we postulate that in a circular arena the stimulus is dependent on only two degrees of freedom. This is a hypothesis that can be verified a posteriori.
Figure 3
Figure 3. Simple models of decision making processes and relative experimental predictions.
This figure shows, on the left, several simplified saccade generation schemes, and their prediction in terms of the observed statistics. All models assume that the visual stimulus formula image is processed as to extract a one-dimensional feature formula image on which the animal decisions are based. The models presented are meant to represent a sample of qualitatively different functional models of behavior generations, and not necessarily biologically plausible models of neural computation. Panel A-i shows a “hard threshold” model: if the feature formula image is below a threshold, no event is generated, otherwise, the event is generated stochastically with a certain rate. Panel A-ii shows what would be the prediction of the model if we were to plot the saccade generation rate (an observable quantity) as a function of the feature formula image, assuming we knew how to compute formula image. Panel B shows the same model, but with noise affecting the computation of the feature. The effect on the observed rate would be to transform the hard threshold in a soft threshold. Panel C shows a model in which there is a parallel saccade generation mechanism, which generates saccades randomly independently of the stimulus. The effect of this on the measured rate is to raise uniformly the curves. Also the contribution of some internal processing based on internal neural states which were not a function of the instantantaneous stimulus would have the same effect on the rate statistics. Panel D shows the case where the behavior depends also on some other feature of the stimulus formula image in addition to formula image. In this case, if we plotted the rates as a function of formula image, ignoring the dependency on formula image, we would see that it is not possible for formula image to explain the rates by itself. Therefore, once we have identified the curves formula image, formula image, and the feature formula image, we are able to identify the contribution of a random generation process (or based on an internal state) as a uniform baseline saccade rate; and we can infer whether another feature is necessary to explain the behavior by the vertical spread of the rates.
Figure 4
Figure 4. Estimated saccade generation rates.
This picture shows basic statistics of the processed data. Panel A shows the estimated saccade rate in polar coordinates (i) and fly-centered spatial coordinates (ii), indicated in the text as formula image. This density is obtained by taking the raw number of saccades in each cell formula image(Figure 1, Panel E), normalizing by the time spent in each cell formula image (Figure 1, Panel D), and then compensating for the interacting nature of the Poisson processes. Panels B–C show the rates for left and right saccades (formula image and formula image, respectively), which we plot in red in Panel B (left saccades) and in blue in panel C (right saccades). Note that the left and right saccade ratios appear roughly symmetric.
Figure 5
Figure 5. The estimated decision feature
formula image . Panel A shows the estimated one dimensional feature formula image. This is the best one dimensional spatial feature that explains the left and right saccade rates. It is a dimensionless quantity, which we normalize in the interval formula image. Panel B-i shows, for each cell formula image, the rates formula image as a function of the estimated feature formula image; Panel B-ii shows the same data, but with error bars corresponding to 95% confidence intervals (the bars are not symmetric because the posterior distribution of the estimated rates is not Gaussian; see Supplemental Materials for details). The single feature formula image is sufficient to predict the rate in formula image of the environment, in the sense that formula image93% of the rates can be considered (with the error bars) as lying on the same curve; these curves are the functions formula image and formula image discussed previously that allow predicting the rates from the feature. The remaining formula image of data that this model cannot fit correspond to configurations with the fly pointing directly against the wall at a small distance (<0.3 m).
Figure 6
Figure 6. Receptive fields of wide-field motion detection consistent with the feature
formula image . These pictures show several receptive fields of wide field motion sensitive cells, the spatial feature that they compute, as well as a comparison with the feature formula image identified from the data. The pictures in first column show the kernel formula image; the pictures in the second column show the corresponding feature field. The panels A through D show the kernels obtained as solutions of an optimization problem, respectively by solving a linear least-squares problem (panel A), and three different regularization problems: by penalizing the norm of the solution (panel B), by penalizing the norm of the spatial derivative (panel C), and by penalizing the curvature of the solution (panel D). Note all solutions are asymmetric due to the noise in the data. Panel E shows the kernel formula image, which is the closest harmonic function to the regularized solution in panel D. Panel F shows the result obtained by setting to zero this kernel in the back of the field of view. This shows that the contribution of the back of the field of view is necessary to recreate the small sidelobes of the estimated feature field.

References

    1. Berg HC, Brown DA (1972) Chemotaxis in Escherichia coli analysed by Three-dimensional Tracking. Nature 239: 500–504. - PubMed
    1. Tynan CT (1998) Ecological importance of the Southern Boundary of the Antarctic Circumpolar Current. Nature 392: 708–710 doi:10.1038/33675.. - DOI
    1. Fuortes MG, Yeandle S (1964) Probability of occurrence of discrete potential waves in the eye of Limulus. The Journal of general physiology 47: 443–63. - PMC - PubMed
    1. Baylor DA, Lamb TD, Yau KW (1979) Responses of retinal rods to single photons. The Journal of physiology 288: 613–34. - PMC - PubMed
    1. Menini A, Picco C, Firestein S (1995) Quantal-like current fluctuations induced by odorants in olfactory receptor cells. Nature 373: 435–7 doi:10.1038/373435a0.. - DOI - PubMed

Publication types