Abstract
The ability to respond to chemical stimuli is fundamental to the survival of motile organisms, but the strategies underlying odour tracking remain poorly understood. Here we show that chemotaxis in Drosophila melanogaster larvae is an active sampling process analogous to sniffing in vertebrates. Combining computer-vision algorithms with reconstructed olfactory environments, we establish that larvae orient in odour gradients through a sequential organization of stereotypical behaviours, including runs, stops, lateral head casts and directed turns. Negative gradients, integrated during runs, control the timing of turns. Positive gradients detected through high-amplitude head casts determine the direction of individual turns. By genetically manipulating the peripheral olfactory circuit, we examine how orientation adapts to losses and gains of function in olfactory input. Our findings suggest that larval chemotaxis represents an intermediate navigation strategy between the biased random walks of Escherichia Coli and the stereo-olfaction observed in rats and humans.
Drosophila melanogaster larvae demonstrate chemotaxis towards odours but their navigation mechanism is poorly understood. Using computer-vision tracking, Gomez-Marin et al. show that larvae ascend odour gradients using an active sampling strategy that is analogous to sniffing in vertebrates.
Animals respond to environmental cues by organizing sequences of movement in space and time. In this process, acquiring sensory information and executing motor responses are intertwined in a continuous feedback loop. Thus, the movement of an animal influences its own sensory experience, inducing motor output, which in turn generates new sensory input. To exploit such feedbacks between sensation and orientation, organisms have evolved sophisticated strategies including chemotaxis, a prominent example of goal-directed behaviour. Bacteria, such as Escherichia Coli, and the nematode, Caenorhabditis elegans, chemotax according to a random walk biased by sensory experience1,2. Animals with more complex nervous systems show refined scent-tracking strategies. Dogs hunt their prey by moving their nose back and forth across an odour trail3 and rats use stereo snapshots of the environment through sniffs4. In species as different as moths, crustaceans and humans, trail tracking leads to zigzagging trajectories5,6.
Here we study chemotaxis in the fruit fly Drosophila melanogaster. When introduced into an attractive odour gradient, Drosophila larvae migrate towards the direction of higher concentrations. The high precision with which larvae orient up the gradient excludes the involvement of an indirect orientation mechanism such as a biased random walk7,8. To extract directional information from the environment, larvae may use two strategies: stereo-olfaction and/or spatio-temporal sampling. Earlier, it has been shown that larvae with olfactory function restricted to one side of the head are able to chemotax8. In addition, the typical concentration differences measured between the left and right olfactory organs are subject to low copy number fluctuations that places bilateral comparisons close to their physical limits7. Accordingly, we hypothesize that larval chemotaxis relies primarily on an active sampling process. During chemotaxis, larvae crawl forward and bend their head sideways. Because the olfactory organs are located at the anterior end of the body, lateral head sweeps (head casts) could lead to the temporal detection of concentration differences between different points in space. To investigate this idea, we developed a new methodology to analyse the time courses of olfactory input that precede the initiation of specific motor outputs. We dissected the sensory-motor algorithm controlling chemotaxis and examined the importance of head casting and stereo-olfaction. Our results indicate that larvae use an active sampling process to detect odour gradients.
Results
Reconstructing sensory input from behavioural output
Larval chemotaxis was studied in stable odorant environments. As detailed elsewhere9, we devised odour gradients with controllable properties in small arenas. We then reconstructed the geometry of these gradients by using a fast-Fourier infrared spectroscopy technique8. In our assays, larvae were not tethered nor exposed to discrete odour puffs or turbulent plumes, but instead they freely explored static gradients (Fig. 1a). Combined with a quantitative knowledge of the stimulus conditions, we tracked behaviour at a resolution beyond the commonly used centroid (geometric centre) description. We developed a computer-vision tracking system, which captures the posture of freely moving larvae in real time and at a high-spatial resolution (Supplementary Movie 1). Following ref. 10, we devised an algorithm for the automated extraction of the larva's centreline and the identification of four loci of interest: the larva's head, tail, midpoint and centroid (Fig. 1b). In this process, we converted larval images into a set of kinematic variables that capture relevant body postural dynamics.
We studied the ability of freely moving Drosophila larvae to locate and to remain in the vicinity of an attractive odour source. A single source of ethyl butyrate—a fruity ester abundant in citrus and pineapple—was suspended from the top of the arena at a position out of the larva's reach. Individual larvae placed at the opposite end of the plate successfully ascended the gradient (Supplementary Movie 2). The representative trajectory shown in Figure 1c illustrates that this behaviour consists of two steps: an approach phase and a near-source phase. The near-source behaviour involves frequent turns as larvae reach, overshoot and return to the odour source. Animal starting under the source created 'ball-of-wool-like' trajectories (Fig. 1d). We reconstructed the time course of the concentration experienced by the animal's head (magenta) and centroid (black) along their trajectories (Fig. 1e,f). Fluctuations in concentration are typically larger at the head than at the centroid.
Following the hypothesis that orientation is guided by spatio-temporal sampling, we expected behavioural responses to be controlled by temporal changes in the perceived stimulus intensity at the tip of the head. As with other sensory modalities, we assumed that changes in perception (Δψ) are related to changes in physical stimulus (ΔC) by the Weber–Fechner law11. Accordingly, perceived changes in odour concentration are assumed to be proportional to the logarithm of stimulus increases, Δψ~ln(ΔC). Therefore, our proxy for the signal that a larva extracts from the environment is 1/C·dC/dt. This quantity represents an amplitude-normalized measure of the temporal changes in concentration. To correlate changes in sensory input with behavioural states, we defined a set of relevant kinematic variables describing the movement, posture and orientation of a larva in the odour gradient: the locomotion speed vcentroid, the head speed vhead, the direction of locomotion or body angle α, the instantaneous reorienation speed dα/dt, the head angle θ between the body and neck axis, and the alignment of the animal with the local odour gradient quantified by the bearing angle β (Fig. 2 and Methods). As illustrated in Figure 2a, trajectories are approximately piecewise and can be parsed into segments of straight locomotion (runs) interspersed with abrupt orientation changes (turns). Fast reorientation events are defined as turns (Fig. 2b). Likewise, large bends in the animal's posture are defined as head casts (Fig. 2c). The set of continuous variables and discrete states shown in Figure 2a–c allows us to comprehensively quantify stimulus input and behavioural output. Figure 2d illustrates the relationship between sensory experience, head motion and orientation behaviour during navigation near the odour source.
Larvae are able to orient in the direction of the gradient
Localizing and staying near the odour source implies a controlled alternation between runs and turns. But, when is a run terminated and how is the direction of the following turn determined? To address these two questions, we analysed the bearing angle distribution of wild-type larvae before each turn initiation (Fig. 3a). We found that 81.6% (±1.1% s.e.m.) of turns were triggered at down-gradient orientations (|β|>90 degrees, Fig. 3b). This demonstrates that larvae are capable of detecting decreases in concentration during forward locomotion. By comparing the change in bearing before and after each turn, we found that 73.9% (±1.3% s.e.m.) of turns reorient the larva towards higher odour concentrations. Furthermore, grouping bearing angles before a turn according to the direction of reorientation (Fig. 3c) revealed that larvae can resolve whether the gradient is pointing to their left or to their right side. Therefore, larvae control both the timing and direction of their turns. Whereas individual turns tend to undershoot the direction of the gradient (Fig. 3d), consecutive turns permit larvae to reach the odour source and to stay in its vicinity. Asymmetries in the local odour distribution are largest for bearing angles close to 90° and smallest at 180° where lateral head casts lead to poorly contrasted concentration differences. We found that turns towards the direction of lower concentrations correspond to initial orientations where the larva stood with the source in their back (Fig. 3e). Reorientation performances are optimal when larvae are aligned perpendicularly to the gradient (Fig. 3f).
Turns are triggered after stereotypical olfactory signals
To establish the orientation mechanisms maintaining a larva aligned with the odour gradient, we analysed the average sensory-motor history preceding a turn. The turn-triggered average of the animal's speed (Fig. 4a) shows that turning is preceded by a transient reduction of forward locomotion, which lasts 1–3 s. During that episode, a large increase in the head speed is observed. As locomotion is interrupted before turning, peaks in head speed are not part of a wave of peristaltic contraction: they correspond to head casts that generate contrasted changes in relative odour concentration. As shown in Figure 4b, the turn-triggered average of the perceived change in odour concentration steadily declines from positive values (concentration increasing) to negative values (concentration decreasing), crossing zero about 8 s before the turn starts. This stereotypical decrease in concentration appears to be the signal that terminates a run, triggers head casting and initiates a turn.
While vigorously sweeping their head on one side, larvae experience typical increases in concentration of 100 nM (Supplementary Fig. S1). This process permits larvae to extract directional information from their surroundings to direct a turn. The peak in sensory experience, also observed in the turn-triggered average of the non-normalized time derivative of the concentration dC/dt (Supplementary Fig. S2), is not a simple consequence of the turning maneuver. Grouping cases where turns orient the larva towards higher concentrations (up-gradient) or lower concentrations (down-gradient) reveals that a large peak in sensory experience is predictive of reorientations towards higher concentrations (Fig. 4c). Turns towards low tend to follow head casts leading to non-significant concentration increases before turn initiation. Furthermore, in conditions of poorly contrasted olfactory experience, the number of head casts increases before the initiation of a turn (Fig. 4d). Whenever the last head cast is associated with a concentration increase larger than 50 nM, the likelihood of turning to high exceeds 80% (Fig. 4e).
Turns are directed by active sampling relying on head casts
The distribution of the natural number of head casts preceding a turn (NS) follows a negative exponential function (Fig. 4f). Turning events associated with more than three head casts are rare. Adopting a binary description, we classified head casts into two categories: sweeps towards higher (H) or lower (L) concentrations (Fig. 4g). Because the body follows the head during forward peristalsis, the last head cast determines the direction of the turn. We found that larvae are capable of identifying the direction of increasing concentrations in more than 70% of cases within the first two head casts (Fig. 4h). A first head cast towards low is likely to be followed by a second head cast towards high (pattern 'LH'). Conversely, a head–cast-to-high rarely triggers a second head cast towards the opposite direction.
We built a first-order Markov model to investigate the relevance of high-order memory effects in the transition dynamics between consecutive head casts and turns. Considering four action–perception states (head cast to low (SLOW) and to high (SHIGH), turn to low (TLOW) and to high (THIGH)), the matrix of transition probabilities between states was obtained by training the model with the experimental transition sequences of wild-type larvae. The connected graph in Figure 4i is a probabilistic representation of the dynamics inherent to the sampling and turning processes controlling chemotaxis. The thickness of each edge is proportional to the probability of that transition. Next, we simulated sequences of state transition with a Monte Carlo algorithm based on the experimental probability transition matrix. The fitness of the model was assessed by comparing the experimental and simulated frequency distributions of the number of head cast preceding a turn (Fig. 4f) together with the frequency of individual head cast patterns (Supplementary Fig. S3). The excellent agreement between the model and the experimental data suggests that the decision-making process does not necessarily involve high-order memory effects. Only the sensory-motor experience associated with the most recent turn appears to influence the next head-casting episode. On average, nearly 70% of turns are preceded by a first head cast towards high. Together, our findings indicate that the direction of the first head cast is not selected at random. Larvae have a mechanism to bias their sampling towards the direction of the gradient.
Manipulation of olfactory input
To elucidate the neural computation controlling chemotaxis, we genetically modified the peripheral olfactory circuit to produce losses and gains of olfactory input (Fig. 5a). The larval olfactory system is composed of two bilaterally symmetrical organs called dorsal organs. Each organ hosts 21 olfactory receptor neurons (ORNs)12. Every ORN expresses a single type of 'private' olfactory receptor together with the 'public' co-receptor Orco (previously named Or83b)13,14,15. Olfactory function is abolished in mutants lacking Orco expression16. Individual ORNs are tuned to different classes of odours and different concentration ranges. Among all olfactory receptors expressed at the larval stage, the three receptors with the highest affinity to ethyl butyrate are Or35a, Or42a and Or42b (ref. 13). We examined how manipulating the input provided by the Or42a receptor impacts on olfactory navigation, active sampling and reorientation performances.
First, we ectopically expressed the Or42a odorant receptor in all ORNs. We found that Or42a-ectopic larvae disperse under the source more broadly than wild type. Although they do not accumulate at a fixed distance from the source (Fig. 5b), their average bearing before turning is more narrowly distributed around 90° than in wild type (Fig. 5c). On average, turns reorient larvae towards the gradient. The distribution of turning frequency shows that turns are triggered for a broader range of concentration in Or42a-ectopic larvae (Fig. 5d). When compared with wild type, Or42a-ectopic larvae experience a negative stimulus for a longer period of time before a turn is triggered (Fig. 5e,f). The delay in turn triggering suggests that ectopic expression of Or42a in all ORNs modifies the sensory control of transitions from run to turn.
Second, we analysed the orientation behaviour of larvae with olfactory input restricted only to the Or42a-expressing ORN8. In contrast with wild type, Or42a-functional larvae followed a concentration path distant from the source (Fig. 5b; Supplementary Movie 3). Here we demonstrate that, to orbit around the source, Or42a-functional larvae implement small-amplitude turns, which maintain their bearing close to 90° (Fig. 5c). This result indicates that Or42a-functional larvae are capable of modulating the amplitude of their turns. Turns are triggered at concentrations three times lower than wild type (Fig. 5d). However, the targeted concentration does not coincide with the region where the amplitude of the gradient is maximal: the mean gradient slope experienced by the Or42a-functional trajectories is 0.043 μM mm−1 (±0.021 s.e.m.), whereas the maximum value of the gradient in the arena is 0.13 μM mm−1. When analysing the turn-triggered average histories of bearing, we found that, in contrast to wild type, turns are preceded by episodes where the bearing remains constant (Fig. 5e). As shown in Figure 5f, Or42a-functional larvae undergo a constant change in perceived stimulus whereas wild type larvae experience a monotonic decrease.
To test whether Or42a-functional actively avoid areas of high odour concentrations, we studied the orientation behaviour of Or42a-functional approaching a source of ethyl butyrate at low (7.8 mM) and high (125 mM) concentrations. For the low-concentration source (Fig. 6a), Or42a-functional larvae show attraction throughout the gradient's range, and accumulate near the source. At high concentrations (Fig. 6b), Or42a-functional navigate up-gradient, before they bifurcate to avoid regions of high-odour intensities. In contrast, wild-type larvae display invariant attraction to low and high concentrations. To establish the existence of a switch between attractive and repulsive responses in Or42a-functional, we quantified the probability of turning towards the gradient for different concentration ranges. We found that wild type turn towards the direction of higher concentrations everywhere, except at positions where the absolute concentration was very low (Fig. 6c). On the other hand, Or42a-functional larvae turn towards the gradient for concentrations lower than 0.5 μM, but away from the gradient for higher concentrations (Fig. 6c). This observation supports a model where the activity conveyed by the Or42a-expressing ORN saturates at high odour concentration17. At concentrations within the dynamic range of the Or42a ORN, the stimulus elicits an attractive response. At high concentrations exceeding the dynamic range of the Or42a ORN, the stimulus elicits active avoidance.
Finally, we genetically manipulated the signal-to-noise ratio in the detection of small concentration changes by engineering larvae with olfactory function restricted to a single unilateral Or42a-expressing ORN. As shown earlier, unilateral function does not produce a significant decrease in sensory threshold to ethyl butyrate8. Both larvae with bilateral and unilateral function in the Or42a ORN tend to orbit around the source. Here we observe that larvae with unilateral function navigate more poorly and display tortuous paths (Fig. 7a). When compared with bilateral, unilateral function leads to subtle differences in the turn-triggered average time courses of the bearing and the perceived stimulus change. The mean bearing angle before turning is higher for unilateral than bilateral larvae, suggesting a reduction in the ability of unilateral to maintain a fixed orbit (Fig. 7b). Likewise, the perceived stimulus change switches earlier from a constant negative value to positive values, indicating higher sampling activity in unilateral larvae before turning (Fig. 7b). We observed no side bias in head casting direction between unilateral left and right larvae (Fig. 7c). Finally, we quantified the ability of unilateral and bilateral larvae to reorient towards the gradient for concentrations sufficiently low to elicit pure attraction (C<500 nM, Fig. 6c). We found no difference between the probabilities of turning high in unilateral left and right larvae (one-tailed two-sample t-test, P=0.49, number of turns N=70 and N=95 for unilateral left and right, respectively). Whereas larvae with unilateral function fail to robustly orient towards the gradient, bilateral olfactory function permits them to direct their turns towards higher concentrations (Fig. 7d). We hypothesize that unilateral function is likely to be associated with larger perceptual uncertainties owing to noisier assessments of concentration differences during head casting. On the whole, unilateral function in Or42a ORN does not abolish, but reduces the active sampling accuracy. Bilateral function provides an advantage in the integration of concentration differences during runs and head casts.
Discussion
Over the past century, many studies have documented a variety of phenomenological rules directing behaviour in response to light, sounds and chemicals18. Goal-oriented behaviours have been the subject of increasing attention in Drosophila. Recent technological advances have permitted fly neurobiologists to investigate how visual cues are integrated with mechano-sensory feedbacks in tethered and freely flying flies19,20. Orientation in response to such inputs has also been examined in walking flies driven by a stripe or engaged in gap crossing21,22. Due to difficulties inherent in the measurement of odour diffusion in gaseous phase, the analysis of odour-tracking behaviours has lagged behind the functional characterization of olfactory systems23. Our work bridges this long-standing gap between the functional characterization of the fly olfactory system and naturalistic orientation behaviour.
We have developed a computer-vision algorithm to monitor the behaviour of freely moving larvae. By correlating sensory input and behavioural output at a high spatio-temporal resolution, we uncovered the chief mechanisms enabling Drosophila larvae to navigate in odour gradients. As described in Figure 8, larval chemotaxis entails two main types of decision: controlling the timing of turning event (when to turn), and directing individual turns with respect to the local odour gradient (where to turn). We found that both types of decisions involve active sampling where information about the olfactory environment is collected during stereotypical patterns of behaviour. Like C. elegans, Drosophila larvae appear to low-pass filter, differentiate, integrate and compare olfactory inputs2. During runs, the integration of monotonic decreases in concentration triggers a turn (long timescale, greater than 5 s). Before turning, rapid head casts resolve spatial asymmetries in the surrounding odour gradients (short timescale, smaller than 1 s), which permit larvae to direct their turns towards the direction of higher concentrations.
Many arthropods exploit the detection of small concentration differences between bilateral olfactory sensors (stereo-olfaction) to locate the source of an attractive smell24,25,26,27. Walking adult flies turn in response to concentration differences measured across their antennae28. In the absence of inter-antennal gradient, the orientation strategy of honeybees switches from instantaneous comparisons of bilateral olfactory inputs to temporal sampling mediated by zigzagging runs29. In line with previous work8, we found that stereo-olfaction is not required for larvae to control the onset of turning, but that bilateral olfactory input enhances turning performances (Fig. 7d). This result corroborates the idea that detecting minute concentration changes during head casting is facilitated by the use of two independent sensors7. We also discovered that the frequency of head casting increases when an individual fails to gather reliable evidence about the direction of the gradient (Fig. 4d). Finally, comparing the reorientation strategies of wild type and Or42a-functional larvae led us to conclude that larvae modulate the amplitude of their turns in a task-dependent manner. In the extreme case where the stimulus intensity exceeds the coding capacity of the peripheral olfactory system, innate attraction to the odour is converted into active avoidance (Fig. 6 and ref. 17).
Our work illustrates how a complex behaviour emerges from a series of elementary actions: runs, stops, head casts and turns. Several lines of evidence suggest that a similar behavioural hierarchy contributes to the orientation responses elicited by other sensory modalities30,31,32. We showed that the strategy used by Drosophila larvae is not reducible to the improved biased random walk of E. coli and the error-compensation strategy of C. elegans2,7. Instead, head casting in larvae constitutes an active sampling mechanism analogous to 'sniffing' in higher-order animals33. A 'sniff' can be defined as a brief increase in air or water flow across the olfactory organ. Whereas vertebrates draw repetitive air samples through their nasal cavities34,35, insects and crustaceans flick their antennae36,37,38. During a sniff—whether it corresponds to inhalation or antennal flick—the volume of fluid surrounding the olfactory organ is replaced, which provides the animal with a new sample of its olfactory environment. Sniffing also increases the interception rate of odorants molecules by the olfactory neurons—a phenomenon achieved by wing flapping in moths and adult flies36,39,40.
Our results indicate that larvae use head casting to punctuate the processing of their olfactory environment. During a head cast, larvae detect variations in odour concentration with a contrast enhanced by the rapid translation of the sensors located at the tip of the head. Even though the potential involvement of peripheral adaption will need to be clarified further, we speculate that head casting relies on short-term memorization that enables a central comparison of stimulus changes measured during successive head casts. A similar mechanism is thought to underlie goal-directed behaviour in adult flies21. In analogy to rats and humans, which associate exploratory head movements with stereo snapshots of the environment4,5,34, the head casting of Drosophila larva might represent an intermediate odour-tracking strategy purely based on spatio-temporal sampling. As we progressively delineate the logic of how sensory signals are encoded in the nervous system, we become in position to address the molecular, cellular and computational bases of active sampling and decision-making in goal-oriented behaviours. The recent advent of new technologies to conduct optogenetics in freely moving nematodes41 should help us decipher how odour perception, motor behaviour and active sampling are intertwined in a feedback process.
Methods
Fly stocks and transgenic strains
Fly stocks were maintained on conventional cornmeal-agar molasses medium at 22 °C and kept in a 12 h dark–light cycle unless indicated otherwise. w1118 was used as a 'wild-type' control. We genetically engineered larvae with one class of functional ORNs—one ORN on each side of the head—by restoring the expression of Orco (previously termed Or83b) in the Or42a-expressing ORNs13. Ectopic expression of Or42a was induced in all larval ORNs by driving the expression of UAS-Or42a with the Orco-Gal4 driver. The UAS-Or42a transgene was donated by Yelena Fishilevich and Leslie B. Vosshall. It was created by cloning full-length Or42a complementary DNA into a pUAST vector42 and by generating transformants according to standard methods16. Unilateral Or42a-functional larvae were obtained by using an Orco UAS-flipout construct to stochastically restore the expression of Orco in the Or42a-expressing ORN8. These larvae where raised at 28.5 °C. Forty-eight hours after egg laying, larvae were subjected to a 15-min heat shock at 36 °C. Individuals were not pre-sorted by phenotypes before the behavioural experiments. After each behavioural experiment, the anterior tip of the larva was isolated, fixed in 4% formaldehyde solution and rinsed abundantly with PBS. The phenotype of each larva was then assessed by confocal microscopy based on the detection of GFP expression.
Spectroscopy-based odour gradient reconstruction
Odour-based experiments were conducted with ethyl butyrate (Sigma-Aldrich) at the highest level of purity. The odour was diluted in paraffin oil. Odour gradients were created in mini arenas composed of a stack of three 96-well plate lids. The odour source consisted in 10 μl odour loaded in one of the wells of the top lid. Odorant concentrations were measured in gas phase based on the fast-Fourier infrared spectroscopy method described in ref. 8. Absorption of infrared light was quantified with a Tensor 27 (Bruker Optics) along the length and the width of the plate at a wave number of 1,758 cm−1 every 12 s (averages over 44 scans). The reconstructed gradient was computed from absorbance measurements averaged between one and five minutes on introduction of the odour in the plate. The topography of the two-dimensional gradient was inverted by a simple topographical method8. A shape-preserving piecewise cubic interpolation was applied to map the reconstructed odorant landscape on a two-dimensional 0.1 mm square-lattice mesh.
Behavioural arena and animal preparation
All behavioural experiments involved third instar foraging larvae tested during the day. Room temperature was kept between 22 and 24 °C and relative humidity fluctuated between 50 and 60%. A light pad (Slimlite Lightbox, Kaiser) illuminated the arena from above creating uniform daylight conditions. Larvae were washed by pouring a solution of 15% sucrose into each food vial. Individuals floating at the surface of the solution were transferred to the arena for behavioural tracking between 25 and 120 min after introduction of sucrose. Single animals were monitored for their chemoatic behaviour in a controlled odour gradient. Our chemotaxis assay consisted of a 3% agarose slab coating the top surface of a rectangular plate lid (Falcon, 353958). The bottom plate was covered by a conventional 96-well plate lid (Falcon, 353071) where an odour droplet was loaded in a single well. Immediately after the introduction of a larva in the arena, the top lid was inverted onto the agarose layer. Accordingly, larvae were exposed to an odour gradient in gas phase released from the odour source. The starting position of the animal and the location of the odour droplet coincided with the centre of arena in the near-source paradigm. The animal's initial orientation was random. In the approach experiment, the odour droplet was centred at the extremity of the plate. The larva started from the opposite side, facing the source. To prevent contamination, lids and agarose layers were not reused across experiments. Larvae were naïve and not reused across trials. Behavioural tracking lasted a maximum of five minutes and was interrupted as soon as the larva touched the plate walls.
Tracking and image processing
We developed custom-made tracking software written in Matlab (Mathworks). Recording of the larval body postures was carried from under the assay plates using a video camera (Stingray Camera, Allied Vision; Computer lens, 12–36 mm, 1:2:8, 2/3″ C) at a spatial resolution of 90 μm per pixel. Frames were acquired at 7 Hz and preprocessed online. Body shape images were cropped into a small bounding box enclosing the larva and, together with their absolute position in the arena system of reference, were saved for offline analysis. Following ref. 10, the skeleton of the animal was extracted from the perimeter shape and its endpoints automatically classified as head or tail based on a proximity rule. The processing resulted in the conversion of raw images of the animal in the arena streamed directly from the camera into a temporal sequence of skeleton absolute positions, ordered from head to tail.
Sensory-motor quantification
Larval behaviour was monitored by projecting body postures on the plane of locomotion. From the temporal sequence of posture skeletons, we extracted the location of the animal's head, tail, midpoint and centroid. Raw trajectories were smoothed by a third-order polynomial fit using a 2-second time window. The animal's orientation and the direction of body motion were represented via the body angle, α, defined as the angle between body axis and the long axis of the plate. Such measure does not rely on an interpolation of the centroid trajectory and remains well defined even in the absence of spatial translation of the body. From the crossover observed in ensemble distribution of instantaneous reorientation rates (Fig. 2b), turning events we defined and trajectories automatically parsed into runs and turns. To avoid false positives, we considered turns whose duration was at least 1 s. The animal's lateral head bends were monitored via the head angle, θ, defined as the angle between the head and the body axes. This variable captures changes in posture, regardless of the body displacement. We used the turn-conditional distribution of the head angles to define head casts as lateral head movements of wide amplitude (Fig. 2c). Head casts are classified as belonging to a particular turn when they occur between 5 s before and 0.5 s after the turn initiation. Head casts and turns are treated as two distinct behaviours. Although the body necessarily follows the head during reorientation, a head cast does not imply the implementation of a turn. To measure the alignment of the body axis with the local odour gradient, we defined the bearing angle, β, as the relative angle orientation to the local direction of maximum concentration increase. We used the reconstructed odour gradient to map the position of the animal's head and centroid with the corresponding concentration in the arena.
Markov model for action-perception state transitions
A discrete-time first-order Markov model was developed based on four states: head cast towards low (SLOW), head cast towards high (SHIGH), turn towards low (TLOW) and turn towards high (THIGH). Accordingly, the probability dynamics that the larva is found at time t in one particular state obeys a master equation. The corresponding probability transition matrix, M, was computed from the experimental sequence of state transitions. Individual matrix elements, mij, were calculated by counting the total number of transitions observed from state j to state i. The transition probability matrix for wild-type larvae monitored in the near source paradigm was obtained by training the model. Based on a Monte Carlo algorithm, we used the transition probabilities of M to numerically simulate state transitions. For each state i, the interval [0,1] was partitioned into 4 segments and each segment was associated with one state: SLOW↔[0, m1i], SHIGH↔[m1i, m2i], TLOW↔[m2i, m3i], THIGH↔[m3i, m4i]. Each transition was assigned a random number picked between 0 and 1. The next state of the system was then defined by the interval to which the random number belonged. The number of simulated turns (1,243 events) was chosen equal to that of the experimental sequence of WT larvae.
Author contributions
A.G.-M. and M.L. designed the research. A.G.-M. performed the behavioural experiments. A.G.-M. developed the tracking software and processed the data. A.G.-M. and M.L. performed the IR odour gradient reconstruction experiments. A.G.-M. performed the phenotypic assessment for Figure 7 by confocal microscopy. A.G.-M., G.J.S. and M.L. analysed the data. A.G.-M. and M.L. wrote the paper.
Additional information
How to cite this article: Gomez-Marin, A. et al. Active sampling and decision making in Drosophila chemotaxis. Nat. Commun. 2:441 doi: 10.1038/ncomms1455 (2011).
Supplementary Material
Acknowledgments
We are grateful to M. Lopez-Matas, M. Phillips and N. Partoune for technical assistance. We thank L. Vosshall and E. Fishilevich for their generous gift of the UAS-Or42a transgenic line. M.L. is thankful to Elena Rivas for discussion about Markov models. Our manuscript benefited from useful comments from members of the Louis lab, U. Bhalla, A. Ghani Khan, B. Lehner, J. Sharpe and T. Shirangi. A.G.-M. is supported by the Juan de la Cierva program from the Spanish Ministry of Science and Innovation. G.J.S. was supported in part by grants PHY-0650617 and IIS-0613435 from the National Science Foundation, by grant P50 GM071508 from the National Institutes of Health, and by the Swartz Foundation. M.L. acknowledges funding from the Spanish Ministry of Science and Innovation (MICINN, BFU2008-00362 and BFU2009-07757-E/BMC), the EMBL/CRG Systems Biology Program and a Marie Curie Reintegration Grant (PIRG02-GA-2007-224791).
References
- Berg H. C. Motile behavior of bacteria. Phys. Today 53, 24–29 (2000). [Google Scholar]
- Pierce-Shimomura J. T., Morse T. M. & Lockery S. R. The fundamental role of pirouettes in Caenorhabditis elegans chemotaxis. J. Neurosci. 19, 9557–9569 (1999). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Thesen A., Steen J. B. & Doving K. B. Behaviour of dogs during olfactory tracking. J. Exp. Biol. 180, 247–251 (1993). [DOI] [PubMed] [Google Scholar]
- Rajan R., Clement J. P. & Bhalla U. S. Rats smell in stereo. Science 311, 666–670 (2006). [DOI] [PubMed] [Google Scholar]
- Porter J. et al. Mechanisms of scent-tracking in humans. Nat. Neurosci. 10, 27–29 (2007). [DOI] [PubMed] [Google Scholar]
- Willis M. A. Chemical plume tracking behavior in animals and mobile robots. J. Inst. Navigation 55, 127–135 (2008). [Google Scholar]
- Gomez-Marin A., Duistermars B. J., Frye M. A. & Louis M. Mechanisms of odor-tracking: multiple sensors for enhanced perception and behavior. Front Cell Neurosci. 4, 6 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Louis M., Huber T., Benton R., Sakmar T. P. & Vosshall L. B. Bilateral olfactory sensory input enhances chemotaxis behavior. Nat. Neurosci. 11, 187–199 (2008). [DOI] [PubMed] [Google Scholar]
- Louis M., Piccinotti S. & Vosshall L. B. High-resolution measurement of odor-driven behavior in Drosophila larvae. J. Vis. Exp. 11, http://www.jove.com/details.php?id=638; doi: 10.3791/638 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Stephens G. J., Johnson-Kerner B., Bialek W. & Ryu W. S. Dimensionality and dynamics in the behavior of C. elegans. PLoS Comput. Biol. 4, e1000028 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kandel E. R., Schwartz J. H. & Jessell T. M. Principles of Neural Science (McGraw-Hill, Health Professions Division, 2000). [Google Scholar]
- Gerber B. & Stocker R. F. The Drosophila larva as a model for studying chemosensation and chemosensory learning: a review. Chem. Senses 32, 65–89 (2007). [DOI] [PubMed] [Google Scholar]
- Fishilevich E. et al. Chemotaxis behavior mediated by single larval olfactory neurons in Drosophila. Curr. Biol. 15, 2086–2096 (2005). [DOI] [PubMed] [Google Scholar]
- Vosshall L. B. & Hansson B. S. A unified nomenclature system for the insect olfactory coreceptor. Chem. Senses 36, 497–498 (2011). [DOI] [PubMed] [Google Scholar]
- Kreher S. A., Kwon J. Y. & Carlson J. R. The molecular basis of odor coding in the Drosophila larva. Neuron 46, 445–456 (2005). [DOI] [PubMed] [Google Scholar]
- Larsson M. C. et al. Or83b encodes a broadly expressed odorant receptor essential for Drosophila olfaction. Neuron 43, 703–714 (2004). [DOI] [PubMed] [Google Scholar]
- Asahina K., Louis M., Piccinotti S. & Vosshall L. B. A circuit supporting concentration-invariant odor perception in Drosophila. J. Biol. 8, 9 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Fraenkel G. S. & Gunn D. L. The Orientation of Animals, Kineses, Taxes and Compass Reactions (Dover, 1961). [Google Scholar]
- Frye M. A. & Dickinson M. H. Closing the loop between neurobiology and flight behavior in Drosophila. Curr. Opin. Neurobiol. 14, 729–736 (2004). [DOI] [PubMed] [Google Scholar]
- Maimon G., Straw A. D. & Dickinson M. H. A simple vision-based algorithm for decision making in flying Drosophila. Curr. Biol. 18, 464–470 (2008). [DOI] [PubMed] [Google Scholar]
- Neuser K., Triphan T., Mronz M., Poeck B. & Strauss R. Analysis of a spatial orientation memory in Drosophila. Nature 453, 1244–1247 (2008). [DOI] [PubMed] [Google Scholar]
- Pick S. & Strauss R. Goal-driven behavioral adaptations in gap-climbing Drosophila. Curr. Biol. 15, 1473–1478 (2005). [DOI] [PubMed] [Google Scholar]
- Wilson R. I. & Mainen Z. F. Early events in olfactory processing. Annu. Rev. Neurosci. 29, 163–201 (2006). [DOI] [PubMed] [Google Scholar]
- Beglane P. F., Grasso F. W., Basil J. A. & Atema J. Far field chemo-orientation in the American Lobster, Homarus Americanus: effects of unilateral ablation and lesioning of the lateral antennule. Biol. Bull. 193, 214–215 (1997). [DOI] [PubMed] [Google Scholar]
- Derby C. D., Steullet P., Horner A. J. & Cate H. S. The sensory basis of feeding behaviour in the Caribbean spiny lobster, Panulirus argus. Mar. Freshwater Res. 52, 1339–1350 (2001). [Google Scholar]
- Duistermars B. J., Chow D. M. & Frye M. A. Flies require bilateral sensory input to track odor gradients in flight. Curr. Biol. 19, 1301–1307 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Steck K., Knaden M. & Hansson B. S. Do desert ants smell the scenery in stereo? Anim. Behav. 79, 939 (2010). [Google Scholar]
- Borst A & Heisenberg M Osmotropotaxis in Drosophila Melanogaster. J. Comp. Physiol. A 147, 479–484 (1982). [Google Scholar]
- Martin H. Osmotropotaxis in the honey-Bee. Nature 208, 59–63 (1965). [Google Scholar]
- Busto M., Iyengar B. & Campos A. R. Genetic dissection of behavior: modulation of locomotion by light in the Drosophila melanogaster larva requires genetically distinct visual system functions. J. Neurosci. 19, 3337–3344 (1999). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Luo L. et al. Navigational decision making in Drosophila thermotaxis. J. Neurosci. 30, 4261–4272 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sawin-McCormack E. P., Sokolowski M. B. & Campos A. R. Characterization and genetic analysis of Drosophila melanogaster photobehavior during larval development. J. Neurogenet. 10, 119–135 (1995). [DOI] [PubMed] [Google Scholar]
- Koehl M. A. The fluid mechanics of arthropod sniffing in turbulent odor plumes. Chem. Senses 31, 93–105 (2006). [DOI] [PubMed] [Google Scholar]
- Kepecs A., Uchida N. & Mainen Z. F. The sniff as a unit of olfactory processing. Chem. Senses 31, 167–179 (2006). [DOI] [PubMed] [Google Scholar]
- Mainland J. & Sobel N. The sniff is part of the olfactory percept. Chem. Senses 31, 181–196 (2006). [DOI] [PubMed] [Google Scholar]
- Loudon C. & Koehl M. A. Sniffing by a silkworm moth: wing fanning enhances air penetration through and pheromone interception by antennae. J. Exp. Biol. 203, 2977–2990 (2000). [DOI] [PubMed] [Google Scholar]
- Schmitt B. C. & Ache B. W. Olfaction: responses of a decapod crustacean are enhanced by flicking. Science 205, 204–206 (1979). [DOI] [PubMed] [Google Scholar]
- Koehl M. A. et al. Lobster sniffing: antennule design and hydrodynamic filtering of information in an odor plume. Science 294, 1948–1951 (2001). [DOI] [PubMed] [Google Scholar]
- Sane S. P. & Jacobson N. P. Induced airflow in flying insects II. Measurement of induced flow. J. Exp. Biol. 209, 43–56 (2006). [DOI] [PubMed] [Google Scholar]
- Birch J. M. & Dickinson M. H. The influence of wing-wake interactions on the production of aerodynamic forces in flapping flight. J. Exp. Biol. 206, 2257–2272 (2003). [DOI] [PubMed] [Google Scholar]
- Leifer A. M., Fang-Yen C., Gershow M., Alkema M. J. & Samuel A. D. Optogenetic manipulation of neural activity in freely moving Caenorhabditis elegans. Nat. Methods 8, 147–152 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- Brand A. H. & Perrimon N. Targeted gene expression as a means of altering cell fates and generating dominant phenotypes. Development 118, 401–415 (1993). [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.