Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2020 Mar 30;16(3):e1007718. doi: 10.1371/journal.pcbi.1007718

Mechanisms underlying attraction to odors in walking Drosophila

Liangyu Tao 1, Siddhi Ozarkar 2, Vikas Bhandawat 1,2,*
Editor: Bard Ermentrout3
PMCID: PMC7105121  PMID: 32226007

Abstract

Mechanisms that control movements range from navigational mechanisms, in which the animal employs directional cues to reach a specific destination, to search movements during which there are little or no environmental cues. Even though most real-world movements result from an interplay between these mechanisms, an experimental system and theoretical framework for the study of interplay of these mechanisms is not available. Here, we rectify this deficit. We create a new method to stimulate the olfactory system in Drosophila or fruit flies. As flies explore a circular arena, their olfactory receptor neuron (ORNs) are optogenetically activated within a central region making this region attractive to the flies without emitting any clear directional signals outside this central region. In the absence of ORN activation, the fly’s locomotion can be described by a random walk model where a fly’s movement is described by its speed and turn-rate (or kinematics). Upon optogenetic stimulation, the fly’s behavior changes dramatically in two respects. First, there are large kinematic changes. Second, there are more turns at the border between light-zone and no-light-zone and these turns have an inward bias. Surprisingly, there is no increase in turn-rate, rather a large decrease in speed that makes it appear that the flies are turning at the border. Similarly, the inward bias of the turns is a result of the increase in turn angle. These two mechanisms entirely account for the change in a fly’s locomotion. No complex mechanisms such as path-integration or a careful evaluation of gradients are necessary.

Author summary

The strategy an animal employs to explore the environment and to find and return to the location where it has previously found food or mates is an important part of its behavior. In nature, animals have incomplete information about their environment, and must use this incomplete information to navigate. In most laboratory experiments, there is usually clear directional information making it difficult to infer an animal’s real strategy from laboratory behavioral experiments. In this study, we devise a new behavioral task wherein we remotely activate olfactory neurons when fruit flies are in a given location. This activation makes a given location attractive to the flies without providing any directional information and allows us to assess how flies navigate under these conditions. We find that flies navigate towards the activated location using two simple mechanisms: First, its speed in the activated region and its turn rate is much lower than it is elsewhere. Second, at the boundary of the odor-zone, its speed decreases dramatically and its turns become much sharper. Essentially, these simple mechanisms appear to be extremely robust.

Introduction

Movement is critical to an animal’s survival. Much of the work on the neural mechanisms underlying the control of movement has focused on navigational movements. As a result, many strategies underlying navigation [13] have been uncovered. Even animals with relatively simple brains employ these strategies and can combine sensory cues, visual landmarks and path integration [46] to navigate towards a specific location. However, not every animal movement is aimed at reaching a specific destination and are therefore not navigational. During these movements–broadly described as search movements–the animal might have no or incomplete information about the resources it is seeking. Even expert navigators such as desert ants rely on local search once navigational mechanisms have taken them in the vicinity of their home [7]. Understanding an animal’s search pattern in quantitative detail, and how it is altered by environmental stimuli or by navigational mechanisms as an animal becomes familiar with its environment is a fundamental question.

An obvious starting point for studying search movements is the study of movement in the absence of any information regarding the location of the resource that is being searched. This question has received much attention, particularly in the context of movement ecology [8,9]. The simplest approach to conceptualizing an animal’s search movements in the absence of any other information is as a random walk where an animal walks straight in a given direction, and then changes its direction at random to walk in a different direction. The run-and-tumble model [10] used in bacterial chemotaxis is an example of a random walk. Random walk models also work well in some isolated cases of movements in larger animals [11]. However, the randomness in the change in direction makes this model quite limited because of limited directional persistence. Most animal movement is characterized by movement in the same direction for long periods of time, and therefore, exhibit greater directional persistence than can be modeled by random walk models. Two popular methods to model greater directional persistence are Levy walks [12, 13] and correlated random walks [14, 15]. Levy walks allow greater directional persistence by allowing a larger proportion of long-distance walks, while correlated random walks model persistence by allowing correlation in the direction of consecutive turns. Levy walks and correlated random walks are still “kinematic” or “non-orienting” models, i.e., the animal’s movement in these models is not directed towards a particular destination by a navigational mechanism. Their success shows that non-orienting mechanisms can describe an animal’s movement in a homogeneous environment. Although both models have had much success, Levy walks and correlated random walks are inappropriate as models in laboratory behavioral experiments in which animals typically spend a large fraction of their time exploring the boundary of the arena [1621]. Moreover, in laboratory behavioral experiments, in which the temporal and spatial scales are short, stops can have a large effect on movement. Similarly, in a small arena, it is inaccurate to treat walks as straight walks (as in Levy walks) because even the small curvature of straight walk segments can have large effects on an animal’s trajectory. Therefore, a new kinematic model is necessary to accommodate the behavior of animals in a small arena.

Kinematic models can describe an animal’s movements in a homogenous environment because the animal does not have a strong directional preference. In some cases, a kinematic model is sufficient to describe an animal’s behavior even in the presence of environmental cues. Bacterial chemotaxis is a prime example of a phenomenon that can be described by a kinematic model. Similarly, correlated random walks have been successful in describing the effects of stimuli [22] on behavior through non-orienting effects such as a change in speed or distribution of turn angles. For example, resource-rich habitats can produce lower speeds and more frequent, less correlated turns leading to an encamped walking pattern. In contrast, resource-poor habitats may result in explorative walks with higher speeds and correlated turns [23]. However, more generally as the animal becomes familiar with the environment or in the presence of directional environmental cues, in addition to kinematic changes, navigational and other orienting mechanisms can also play an important role. These mechanisms cannot be modeled by kinematic models. Indeed, even animals with simple brains such as C. elegans and Drosophila larvae respond to odors with strategies that are orienting [24, 25]. Adult Drosophila responding to odors show both non oriented changes in behavior [26,27], and are also capable of using orienting sensory cues such as wind [26, 28] to navigate to an odor source. Flies can also employ path integration to return to the location of food [29, 30]. Thus, a modeling framework in which the relative contribution of all of these mechanisms to locomotion can be studied is necessary.

In this study, we investigate a fly’s locomotion in a small circular arena both in the absence of any stimulus and when its olfactory receptor neurons (ORNs) are optogenetically stimulated. The ORNs are activated only within a small central core of the arena. Immediately outside the central region, the light intensity decreases rapidly providing a directional cue that flies can employ to return to the center of the arena. Finally, there is an annular region within which the fly has little sensory information until the fly reaches the arena border. Thus, this arena allows an investigation of the interplay between orienting, non-orienting and path integration mechanisms in shaping a fly’s movement. We also create an analytical framework in which these three mechanisms could be investigated within a single framework. We find that in the absence of ORN stimulation, a purely non-orienting mechanism is sufficient to explain the fly’s distribution in our arena. When ORNs are optogenetically stimulated, a combination of orienting and non-orienting mechanisms are engaged to mediate a large change in the fly’s distribution in the arena.

Results

ORN activation alone in the absence of directional wind cue can mediate robust attraction

Because ORN activation by itself does not carry directional information, activating ORNs is an ideal method for creating a stimulus without inherent directionality. However, in most studies of olfactory behavior (but see [31, 32] odors are delivered in a stream of air. The air stream is a strong directional cue; therefore, it is difficult to dissociate the effect of air on behavior from the effect of odor. To dissociate the two, we decided to optogenetically activate ORNs. Drawing inspiration from our earlier study [27] in which a circular region of uniform odor concentration was surrounded by a region in which there was no odor (See Methods for details), we created a similar arena but replaced odor with red light (627 nm). Because flies’ photoreceptors have low sensitivity in the long wavelength, their behavioral response to red light, if any, is small. The arena was 8 cm in diameter; the central 2 cm region of the arena was illuminated with light of uniform intensity (light-zone). A sharp interface of 3 mm separated the light-zone from the rest of the arena (Fig 1A).

Fig 1. ORN activation alone in the absence of directional wind cue can mediate attraction.

Fig 1

A. Schematic for the behavioral arena (for details see Methods and S11 Fig). The fly is constrained to walk in a 2D-plane. Light intensity as a function of radial distance shows a sharp border between 10 mm and 13 mm away from the center. Red line is the mean. Error bars represent the range of values. B. Sample trajectories showing that the retinal-fed flies spend more time inside the light-zone during the presence of light (red tracks) compared to the before period (green) and are, therefore, attracted to the light-zone and the control flies are not. C. Fractional time spent inside—a measure of attraction—for the Orco control (n = 31 flies) and Orco retinal flies (n = 35 flies) inside the light zone for the before and during periods. The fractional time spent inside for the Orco retinal flies for the during case is significantly higher than that in the before period (*, p < 0.01).

We used Orco-Gal4 [33] to drive the expression of UAS-Chrimson, a red light-activated channel [34] in a large population of ORNs. Orco is one of the co-receptors for olfactory receptors and is necessary for activation of ORNs by odors [33], Orco-Gal4 expresses in about 70% of the ORNs. In the retinal-fed flies of this genotype (Orco-Gal4; UAS-Chrimson), a large population of olfactory receptor neurons (ORNs) are activated when the fly enters the light-zone; flies on retinal-less food serve as the control because Chrimson needs retinal for activation.

Following the experimental paradigm that we have employed earlier [27], we recorded the fly’s behavior three minutes before the light was turned on (green traces in Fig 1B, and in the three minutes during the presence of light (red traces in Fig 1B). The activation of Orco-ORNs dramatically changed the fly’s behavior (Fig 1B). One change in the behavior is that the flies spend significantly more time inside the light-zone when the Orco-ORNs are activated than when the ORNs are not activated (Fig 1C). The fractional time a fly spends inside the light-zone is a measure of their attraction to the light-zone. The results in Fig 1 show that ORN activation alone in the absence of a directional wind cue is sufficient to elicit a strong behavioral response.

In the rest of the study, we will model these flies’ locomotion and how their locomotion is modulated in response to odors. The main modeling goal was to develop the simplest model for a fly’s distribution in the arena, and the mechanisms it employs to redistribute itself when the ORNs are activated. A fly’s locomotion on a two-dimensional plane can be completely parameterized using three fly-centric variables—slip, thrust and yaw [35, 36] (S1A Fig). A recent study showed that a fly’s locomotion is characterized by peaks in yaw which can be employed to understand the structure in a fly’s behavior [36]. We reasoned that the same analytical framework can be used to model a fly’s position, i.e., changes in yaw might be tightly linked to large changes in curvature and could anchor an analysis of a fly’s movement. However, we found that peaks in yaw do not correspond in time to peaks in curvature. Furthermore, flies use slip, thrust and yaw flexibly to turn (S1 Fig and S1 Video) making it difficult to derive speed and curvature from slip, thrust and yaw. Therefore, to model how flies redistribute themselves in the arena, we directly modeled a fly’s locomotion based on its instantaneous speed and curvature.

A fly changes its orientation using three mechanisms

An animal’s track in a small arena cannot be classified a priori into straight walks and sharp turns because even the straight walks are curved. Moreover, the adult fly can turn sharply without stopping or reorienting itself following a sharp stop. Thus, qualitative observations of the data suggest that at least three states–walks, sharp turns and stops are necessary to describe a fly’s locomotion. It is straightforward to identify stops as time points at which the fly’s speed is close to zero (see Methods section on “Segmentation of tracks into boundary, walks, sharp turns and stops”). There are two possibilities regarding walks and sharp turns: If the curvature during walks and sharp turns lie along a continuum, then walks and sharp turns must be modeled as a single state. Alternatively, if the curvature during sharp turns is consistently higher than the curvature during walks, they would represent distinct states. To test whether curvature during sharp turns and walks are distinct, we segmented the tracks into putative sharp turns (regions with large changes in orientation), and putative curved walks (regions with little or gentle curvature). Sharp turns were identified by using a custom algorithm (see S2 Fig and Methods for the algorithm); regions between consecutive sharp turns were curved walk. We compared the distribution of average curvature of curved walk segments and sharp turn segments. Based on receiver operating characteristics (ROC) analysis on these distributions, sharp turns and curved walks were assigned accurately with 97% confidence using a binary logistic regression classifier based on the average curvature (S2 Fig). This implied that sharp turns and curved walks can indeed be segmented into two separate states; and overall a fly’s tracks could be segmented into three states–sharp turns, curved walks and stops.

Because flies tend to move over relatively long periods with similar speed and curvature (37), it is likely that each transition to one of the three states can be defined by a few parameters: Modeling stops is straightforward; stops can be modeled by two parameters—stop duration, and the change in a fly’s orientation during the stop. To investigate whether curved walk and sharp turns can be modeled using a few parameters we compared empirical track segments to synthetic ones that represented abstractions of the empirical tracks. A fly’s speed during both sharp turns and curved walks could be modeled by its mean speed. The change in orientation during a sharp turn can be modeled as an instantaneous change in curvature equal to the sum of curvature at the point of the local peak in curvature (Fig 2A1). The change in orientation during curved walks can be modeled by assuming that a fly has a fixed curvature throughout a given curved walk (Fig 2A2). Examples in Fig 2A show that both curved walk and sharp turns can be modeled using three parameters.

Fig 2. Three ways to change orientation: curved walk, sharp turn and stop.

Fig 2

A. Synthetic tracks generated using mean speed and curvature closely approximate empirical tracks. Examples of sharp turn (left) and curved walk (right) are shown. Filled circle marks the end of the track. B. Cumulative curvature of the empirical track is compared to the modeled track, and to the modeled track without one of the three states. C. The distribution of mean RMSE of the cumulative sum of the curvature for each model for all flies (n = 66). Taking out any of the three forms of reorientation significantly deteriorates the ability of the model to approximate empirical change in curvature (*, p < 0.01).

Given that we could accurately model the change in the fly’s orientation during a given segment, we checked whether a series of stops, sharp turns and curved walk can model the overall reorientation of a fly’s track during the entire experiment. To this end, we computed the cumulative sum of the curvature for the trajectory of each fly and compared this sum to the cumulative sum resulting from the model of sharp turn, curved walk and stops. To assess the relative contributions of sharp turn, curved walk and reorientation during stopping, we individually removed each type of reorientation and compared the resulting cumulative sum of the curvature to that of the empirical data (Fig 2C) and found that the RMSE was significantly higher when any of the three types of locomotion were removed (Fig 2C). In sum, a fly’s movement can be described in terms of three states–stop, curved walk and sharp turns each of which can be described by two to three parameters.

A four-state kinematic model can model a fly’s locomotion but not its response to odors

The three kinematic states–stop, walk and sharp turn describe a fly’s behavior everywhere in the arena except the boundary; the fly’s behavior at the boundary is fundamentally different from its behavior away from the boundary because the fly usually circles the boundary, and the fly’s behavior at the boundary is well described by two parameters–the time the fly spends and its angular velocity at the boundary. To examine whether these four states (Fig 3A) can model a fly’s position in the arena, we generated synthetic tracks. Just like the experimental flies, each synthetic fly walked for 6 minutes—3 minutes before the light turned on, and three minutes following light on. Synthetic tracks were composed of sequences of the four states. Synthetic flies started at the center of the arena and moved around the arena through a succession of transitions into the four states. Synthetic flies always started in curved walk. Curved walk ended in stop, sharp turn or at the boundary (Fig 3A). Each of these three states ended in a new curved walk. Tracks corresponding to each transition were generated as described in Fig 2 (see Methods for details) by sampling from speed, curvature and duration distributions for each state (S3 Fig and S4 Fig). Consistent with previous work [27,37], the behavior of the fly is different inside the light-zone and outside it, therefore three different distributions were used to model the fly’s behavior–before the presence of light, during-inside and during-outside. The duration that each transition lasted was also selected from the empirical distribution (S3 Fig and S4 Fig). Because our experimental flies were selected to enter the light-zone at least once both in the before and during period, the synthetic flies also went through the same selection criteria (see Methods for details). In all, 116 flies fulfilled our selection criteria; one example is shown in Fig 3B, and the entire set is shown in S7 Fig. The algorithm for generating synthetic tracks is detailed in S5 Fig. The behavior of synthetic flies depended solely on speed and curvature. Therefore, the model described in Fig 3 is a kinematic model or a non-orienting model. Moving forward, we will refer to this model as the Walk-Turn-Stop-Boundary (WTSB) model.

Fig 3. The walk-turn-stop-boundary (WTSB) model can describe a fly’s distribution in the arena in the absence of ORN activation.

Fig 3

A. Curved walk ends either when the fly reaches the arena boundary, makes a sharp turn or stops. B. Example empirical (top) and synthetic (bottom) tracks before the light is turned on. C. The time that synthetic flies spend inside the light-zone is not different from that for the empirical flies. D. The radial occupancy for the synthetic flies is similar to the empirical flies.

To test whether the flies generated using the WTSB model resemble empirical flies in their distribution in the arena we compared the distribution of times a fly spent within the light-zone. The distributions of the empirical and synthetic flies are similar (Fig 3C). In another, perhaps more nuanced measure, we compared the radial distribution of empirical and synthetic flies and found that the two radial distributions were quite similar (Fig 3D). Therefore, the kinematic model is an adequate model of a fly’s distribution in the arena before optogenetic activation of ORNs.

Given that the model describes a fly’s locomotion before activation well, we investigated whether the model can also describe modulation of locomotion upon ORN activation. ORN activation modulates many aspects of a fly’s locomotion (S3 Fig and S4 Fig). The changes in a fly’s walking speed, duration of its walks and the sharpness of its turns (Fig 4A1-3) were statistically significant.

Fig 4. ORN activation affects many aspects of a fly’s kinematics, but kinematic changes do not explain the increased time a fly spends inside the light.

Fig 4

A. Kinematic parameters modulated in the Orco retinal flies: There is a large decrease in walking speed (A1) and duration (A2), and increase in curvature of sharp turn (A3) (*, p < 0.01). B-D. Synthetic fly track generated using the WTSB model based on the changed kinematic parameters do not show the same attraction as the empirical flies. B. Example flies. Pink region designates light region. C. Experimental flies are significantly more attracted than the synthetic flies generated using the altered kinematics incorporated using the WTSB model. D. Radial occupancy for the empirical and synthetic flies for the period after first entry. The dotted red line shows the light border.

To assess whether the changes depicted in Fig 4A can explain the change in distribution following optogenetic activation, we generated synthetic flies with the altered kinematic parameters using the WTSB model. We compared the spatial distribution of synthetic flies in the presence of ORN activation (S7 Fig, red tracks) to that of the empirical flies. A visual inspection of the tracks (Fig 4B and S6 Fig) suggests that the synthetic flies are not as attracted to the light-zone as the empirical flies. Indeed, the time that the synthetic flies spent inside the light-zone is significantly less than the time spent by the empirical flies (Fig 4C). The radial distribution is also markedly different (Fig 4D). Therefore, the large kinematic changes when the ORNs are activated is not sufficient to mediate the large attraction observed when the ORNs are activated. However, the kinematic changes do mediate a small, but significant attraction (S9 Fig).

Increased and directed turning are necessary for a fly’s attraction to odors

That the WTSB model describes locomotion in the absence of ORN activation but not in its presence is likely because WTSB is a non-orienting model. A non-orienting model is sufficient in a homogenous environment but fails when the environment is no longer homogeneous. The flies’ tracks suggest a directed element (Fig 5A) when ORNs are active: Many flies appear to weave in and out of the light-zone (Fig 5A and S6 Fig). Indeed, there is a large increase in the density of sharp turns at the border of the light-zone (Fig 5B). Therefore, it appears that flies can sense the decrease in light intensity as they exit the light-zone and turn to re-enter the light-zone.

Fig 5. Flies turn more at the border and these turns are biased such that flies trajectory is directed towards the center of the arena.

Fig 5

A. Sample fly track shows increased turning near the light edge (pink region). B. Flies exhibit an increase in the number of turns within the odor boundary. This increase coincides with decrease in light intensity (in red). Thin black lines mark the region where the light intensity decreases from full intensity to no light. C. Increased tendency to turn at the light-border. C1. Schematic showing how the graph in C2 was generated. The fly’s trajectory is split into outside and inside trajectories based on the head position. Sharp turns are indicated by red segments and the location of sharp turn is indicated with blue points (outside) and black points (inside). Gray lines represent the body axis. C2. The probability of making the first two turns increases near the light-border at (1.3cm). The probability of remaining turns is about the same. D1. Definition of turn bias. The turn is inward when θ1>θ2. D2. The first two turns (shown by the solid line) made by the fly as it enters or leaves the odor zone show a directional bias so as to keep the fly inside the odor zone. This bias disappears during the later turns (shown by the dotted grey line). The red line shows the spatial profile of the light intensity.

As a first step towards modeling this orienting response, we measured the increase in the fly’s tendency to turn as it crossed in or out of the interface between the light-zone and the no light-zone (Fig 5C1), and found that the increased turn density is almost entirely due to the first two turns after the fly crosses the interface (Fig 5C2). The increased tendency to turn was modeled by introducing a “border choice parameter”. Importantly, a large fraction of these turns redirect the fly towards the light-zone because the angle between the radial vector and the heading direction after the turn is smaller than the corresponding angle before the turn (Fig 5D1 for definition, and Fig 5D2 for empirical data). Thus, the turns are biased, and to model this bias we introduced the “turn-bias parameter” that quantifies the fraction of turns that are inwardly directed. Both the “border choice” and “turn-bias” only affect the first two turns after the fly exits the arena (Fig 5C and 5D).

To investigate the effect of this directed response on attraction to the light-zone, we modified the kinematic model to include border choice (BC) and turn-bias (TB) parameters (n = 171). All the features of the model in Fig 3 are preserved; in addition, the fly makes more turns at the interface, and these turns are biased (see Methods). We refer to this model as the WTSB+BC+TB model. One example of synthetic flies (using the WTSB+BC+TB model) is shown in Fig 6A. The entire set of synthetic flies can be found in S8 Fig. The synthetic flies have a similar propensity to turn at the border as do the empirical flies (Fig 6B). The synthetic and empirical flies spend similar time inside the light-zone (Fig 6C). Furthermore, the radial density of the synthetic flies matched that of the empirical flies (Fig 6D) implying that with the addition of the orienting response, the change in the flies’ distribution could be accurately modeled.

Fig 6. A model that incorporates border choice and turn bias can describe attraction.

Fig 6

A. Sample empirical and synthetic tracks (using WTSB model + border choice(BC) + turn bias (TB)) after first entry into the light-zone. Pink region designates light ring. B. The synthetic flies show the same turn density as do the empirical flies. C. Attraction index for the synthetic flies after first entry is not different from that of the empirical flies. D. Radial occupancy for the empirical and synthetic for the period after first entry. The dotted red line shows the light border.

Mechanisms underlying orientation response: Slow down and turn hard

The orienting response observed in Fig 5 could result from either sensory cues or path-integration or a combination of the two. There are two components of the directed response: increased turning at the border of the light-zone and turn-bias. First, we will consider the mechanism underlying increased turning (Fig 7A and 7B), and then the mechanism underlying turn bias (Fig 7C).

Fig 7. Increased inward turn is a result of slowing down and turning hard at the light border.

Fig 7

A. ORNs are located in the antennae. Experiments with the right antennae removed causes unilateral sensing. A1. Schematic and example tracks. A2. Single antenna flies show a lower attraction as compared to Orco retinal flies (but not statistically significant) and in A3 show a comparable distribution of radial occupancy (*, p < 0.01). B. Although the flies turn after a similar time in the presence of light (B1), because they move slowly, these turns are closer to the border (B2). C1. Schematic showing optimal and non-optimal turn. C2. Flies have the same chance of executing optimal and non-optimal turns as they leave the light ring. C3. Orco flies significantly increase their sharp turn curvature at the odor-border leading to large turn-bias.

One possible mechanism underlying increased turning at the border of the light-zone is osmotropotaxis–a process by which the fly compares the stimulus intensity incident on the two antennae and turns towards the antennae that receives the stronger stimulus [38, 39]. To evaluate whether osmotropotaxis is the dominant mechanism underlying directed turns, we removed the olfactory organs (antennae) on the right-side and examined the behavior of flies (Fig 7A1, tracks from all the flies are shown in panel C of S10 Fig). Unilateral antennae removal did not induce turns in one direction; there was no difference between the number of turns towards the left versus the right. Flies with the olfactory organ on one-side spent a similar time inside the light-zone as did the empirical flies (Fig 7A2). The experimental flies also had a similar spatial distribution (Fig 7A3) upon ORN activation as did the control flies. Thus, it seems unlikely that the comparison across the two antennae is the dominant mechanism underlying the orienting response. Although not central to this study, it is important to note for completeness that the left turn inside the light-zone were much wider than the right turns (S10 Fig).

An alternate mechanism could be temporal comparison or klinotaxis [40, 41]. As a fly exits the light-zone, the decreasing light intensity results in a decrease in the ORN firing rate, this decrease in ORN firing rate could result in turns immediately following exit from the light-zone. If decrease in ORN firing rate were the mechanism that induces sharp turns, the time elapsed before the fly makes its first sharp turn after it exits the arena should be shorter in the presence of light. Surprisingly, the time elapsed before sharp turn is similar in both the retinal and control flies (Fig 7B1). The dominant reason for the increased density of turn is a large decrease in speed as the fly exits the arena (Fig 7B2). Because the fly is traveling slowly before it makes its first turn, the turns are closer to the arena border. The increased turning at the border is due to the decrease in speed as the fly exits the light-zone.

A possible mechanism for turn bias is an idiothetic mechanism as has been suggested by others [29, 30]. As the fly exits the light-zone, unless the fly is walking along the radial vector, it can either turn in the optimal direction to return to the odor-zone or in the non-optimal direction (Fig 7C1 for schematic). A higher percentage of turns in the optimal direction would support the idea that an idiothetic mechanism is being employed. However, we found that the probability of turns in the optimal direction is the same as the turns in the non-optimal direction (Fig 7C2) ruling out an idiothetic mechanism. Instead, the most likely mechanism for the large turn bias is the fact that the angle through which a fly turns during each sharp turn is much larger (Fig 7C3). The large turn angle means that many turns in the non-optimal directions also tend to reorient the flies inward.

Discussion

The success of the WTSB model in describing a fly’s locomotion in the absence of ORN activation provides two important insights. First, unsurprisingly, a non-orienting strategy is enough to describe a fly’s locomotion in the absence of ORN activation. In a small, dark arena, there is little to orient a fly’s locomotion in a given direction. Instead, the fly searches the arena without any specific navigational goal. The fly spends large chunks of its time at the arena border. On an average, each excursion to the arena border lasts 7 seconds. Inside the arena, the fly’s behavior is well-described by three states–walks, sharp turns and stops. Each of these states are kinematic states or non-orienting states because the behavior of the fly within each state can be modeled by sampling from a speed-curvature distribution. Second, the behavior within the curved walk is more sophisticated than many kinematic models employed (29) to describe them which model curved walks as straight walks with constant speeds; only the duration of the walks is varied. We found that each curved walk is described by speed, curvature and duration implying that flies not only select the duration of each walk, but also its speed and curvature.

It is noteworthy that each state is remarkably well-described by the mean speed and curvature. Since each state lasts 1 second on an average, it implies that the fly makes one decision (in selecting speed and curvature) every second on average. This feature of the model is consistent with the Hierarchical Hidden Markov Model (HHMM) employed in a previous study [37]. HHMM showed that the fly moved at similar speed and curvature over long durations. This consistency is likely why the average speed and curvature is an accurate descriptor of a fly’s kinematics within a state. This consistency is not just a matter of detail; it reflects a fundamental feature of search movements because it implies that the fly’s behavior unfolds in chunks of tens of steps during which the fly uses the same speed and curvature. This chunking implies that flies would make fewer decisions per unit time than implied in continuous-time models employed by others [26]. Because the flies are making fewer decisions per unit time, there will be greater variability between different instances of tracks generated from the same underlying model, and this contributes to the observed inter-individual variability [37].

Consistent with our previous work [27, 37], activating ORNs affects a fly’s behavior not only inside the light-zone (or odor-zone in the previous study) but also outside the light-zone where there is no light and the ORNs are presumably not active. Thus, ORN activation influences behavior both through direct sensory-motor transformations near the light-zone, and indirectly through mechanisms that likely rely on memory. Many of the changes we observe are “kinematic” changes or non-orientational changes. These changes–such as decrease in speed, run duration and increase in turning in the presence of odor–are consistent with changes observed in field behavior in insects [42], as well as consistent with previous work [27] in our lab using odor stimulation and not optogenetics. In a previous study, we found that a strong attractant–apple cider vinegar–also caused a decrease in speed inside the odor-zone. This decrease is consistent with recent work in flying Drosophila that analyzed changes in a fly’s behavior when odors were presented in the context of visual objects [31]. In other experiments, there is an increase in speed upon odor encounter[26, 4345]. An elegant explanation for this difference is that flies slow down if they expect to encounter an odor object, and move faster if they expect the object to be far away[31]. However, it is important to make two observations regarding these non-orientational changes. First, as we have shown in a previous work, different attractive odors produce different kinematic changes [27]. Second, that, at least in the present experiments, they only make a small contribution to the redistribution of flies in the arena. Much of the attraction is mediated by the fly’s increased propensity to turn at the border between the light-zone and no light-zone. Because most studies of insect olfactory behavior focus on orientational mechanisms, particularly orientation to wind, the importance of non-orientational mechanism in different behavioral contexts is poorly understood.

At first glance, the orientation behavior that we observe here appears similar to the orientation behavior reported in many other insects both during walking and during flight. Almost all insects exhibit the ability to turn back into the region of high odor concentration. However, the mechanism they employ appears to be diverse. One mechanism suggested by Kennedy for odor-tracking in moths [46], and subsequently also considered to be important in other insects [47, 48], is the automatic internally stored counter-turning which is released when the odor concentration decreases and brings the insect back into the odor plume. Another mechanism, in contrast to counter-turning, is a direct increase in turning in response to decrease in odor concentration [26]. Both mechanisms depend on increased turn rate. In contrast, the mechanism we demonstrate here appears to be novel because of the absence of increased turning. Rather, the sharp decrease in speed makes it appear that the flies turn more as they exit the light-zone. Another unexpected result is that the angle through which the fly turns at the light-no-light interface is much larger than the turn angle at other locations. Aspects of the mechanism that we demonstrate here-slow down and turn hard—have been observed in other cases. In many studies (for example Bell and Tobin 1981 [21]) the rate of turning per unit distance was shown to increase, a result similar to our observations. Similarly, there is also a precedence for the increase in turn angle [49].

The slow down and turn hard mechanism is simpler to implement than other mechanisms that have been proposed for the orienting behavior such as osmotropoataxis. It is certainly simpler than mechanisms based on spatial memory or path-integration. Essentially, a circuit that relates decreasing ORN response to decreased walking speed and increased turn angle during sharp turn is all that is necessary to produce robust attraction to a stimulus. This strategy is also generalizable beyond active ORN or odor as the stimulus; essentially, any sensor that can detect a gradient can be combined with a slowdown-and-turn-hard module to affect robust attraction. The turn-bias we observe in this study is strikingly similar to the results in a previous study by Kim and Dickinson [29]. As in this study, in the Kim and Dickinson study, flies increasingly return to a tastant by biasing their turns. While in the Kim and Dickinson study, the authors interpret this turn bias as evidence for path integration, we demonstrate that a similar result can be obtained simply by slowing down and turning more sharply.

Given the elegant demonstration that Drosophila projection neurons respond differentially to stimulation of ipsilateral versus contralateral antennae [39] and demonstrated osmotropotaxis in multiple insects [38, 5052], it is somewhat surprising that a bilateral comparison was not a dominant mechanism in the experiments performed in this study because the sharp light gradient makes the experimental condition ideal for osmotropotaxis. One possible explanation for the lack of a prominent role of osmotropotaxis is that the distance between the two antennae is not large enough, and therefore even with a steep light gradient the light intensity across the two antennae are not different enough to be detected over neural and environmental noise. Another possibility is that the dominant mechanism underlying the behavior in this arena is inhibition of ORNs as the fly moves from a region of high light intensity to low light intensity. Once an ORN’s firing rate reaches zero, differences in odor concentration between the two antennae would be difficult to detect. This interpretation is supported by the finding that the first two turns inside the light-zone display a left-right asymmetry whereas the first two turns outside do not. An osmotropotactic mechanism might be more useful in following a linear trail where the stimulus gradient is normal to the inter-antennal axis. Finally, that the bilateral input is not required is not particularly surprising because similar results were observed for fly larvae [51] and ultimately might reflect the fact that redundant mechanisms are at play; another study examining the algorithms underlying odor tracking in wind also reached a similar conclusion[26].

Strategies that animals employ to control their movement range from pure search movement in the absence of information about the environment to purely navigational movements. The WTSB model provides a flexible framework for investigating locomotion across a range of these strategies. Some insights that we obtain here are strikingly similar to the insights that we obtained using the HHMM model that we employed to model a similar dataset [27, 37]. The HHMM model we employed used variables similar to speed and curvature and returned states that had characteristic speed and curvature. Therefore, the HHMM that we obtained functioned as a kinematic model. The advantage of the WTSB framework is that it provides a flexible framework that can be tuned by the experimenter to evaluate different mechanisms underlying a fly’s behavior. Indeed, when we applied border choice and turn-bias (WTSB +BC+TB model in Fig 6), we were able to replicate the distribution of the fly in the arena. This ability to tune is likely a disadvantage when one is trying to establish differences between flies in which case a more rigid model such as an HHMM is likely a better choice.

Materials and methods

Experimental model and subject details

Drosophila melanogaster strains were raised in sparse culture condition as described in an earlier study [43]. 100–150 eggs were collected in standard cornmeal media and cultured in the incubator at 25⁰C in a 12hr dark/12 hour light cycle. All experiments were performed on adult female Drosophila. Newly eclosed adult female flies were transferred to fresh food vials wrapped in aluminum foil to prevent exposure to light. Half of the progeny were transferred to food without all trans-retinal (control flies), and the other half were transferred to food containing all trans-retinal (retinal flies). 10–15 flies were starved in a foil wrapped empty vial with a wet Kimwipe for 15–21 hours prior to the experiments. Experiments were conducted on control flies 3–5 days after eclosion, while experiments on retinal flies were conducted 4–5 days after putting them on the retinal food vials to allow more time for retinal to incorporate into Chrimson. All experiments were performed using Orco-Gal4;UAS-Chrimson flies.

Behavioral arena and experimental setup

The behavioral arena had a design similar to the arena used in a previous study[27]: The arena was circular with a radius of 40 mm, and the flies were constrained to walk because they were between two plexiglass plates. A central region of radius 12.5 mm could either be illuminated with a red light or it could be without a red light. A fly walking into the center when the light is turned on would have its ORN activated and would therefore “smell” an odor.

The arena consisted of the following parts placed on top of the each other– 1) Ø90 mm diameter and 3 mm high black Delrin plate with a Ø25 mm concentric hole for the red light was the bottom-most piece, 2) On top of the black Delrin piece were two Ø90 mm x 1.5 mm plexiglass plate; a 3 mm tall, Ø90 mm outside diameter and Ø80 inside diameter Delrin ring served as a spacer (S11 Fig). Flies walked between the two plexiglass plates.

Light was delivered using a red (617 nm) light emitting diode (LED) (Thorlabs M617L3) directly beneath the central light ring. The LED light was collimated (Thorlabs ACL2520U) and focused using a plano-convex lens (Thorlabs LA1433). Light intensity was measured using a photometer (Thorlabs S121C) at increments of 1 mm radial distance away from the center of the arena when the light was turned on. Fig 1A shows the mean, minimum, and maximum intensity over 10 measurements at each radial distance. The arena was lit with two infrared (850 nm) light sources (Lorex vq2121). Videos were acquired at 30 frames per second using a machine vision camera (Marlin 131B Camera, Allied Vision Technologies with FUJINON 1:1.4/9mm lens).

Flies were given a 5-minute light acclimation period followed by a 10-minute dark acclimation period that reflected experimental conditions.

Tracking the fly and assigning its head position

A custom-made MATLAB program was written using the MATLAB Image Processing Toolbox (Mathworks, Natick, MA Release 2018a) to automatically track the fly. Briefly, for any given video, a circular region of interest outlining the arena boundary was selected by the user. All subsequent processing steps were limited to this circular region. An average background frame was calculated for both the before light-on and during light-on periods by averaging randomly selected frames. The respective backgrounds were subtracted from each frame. In the background-subtracted frame, the fly could then be detected as an ellipse using the Matlab function regionprops.m. We defined the fly as the largest ellipse with a minimal area of 1.57 mm2 (1 mm semi-major axis x 0.5 mm semi-minor axis ellipse).

The major axis of the ellipse represented the long axis of the fly; the centroid of the ellipse represented the centroid of the fly. For each ellipse, we obtain tentative head and tail locations from the major axis. Starting from the second frame, we applied the Hungarian algorithm to reassign the head and tail to the tentative locations by minimizing the total distance traveled by the head and tail from the previous frame. Head position assignments were then corrected using two post-processing steps: 1) Flies do not move backwards for extended periods of time. 2) Flies do not turn at an angular speed > 120 degrees /frame (3600 degrees/second). The position of the fly on frames with no ellipses that fulfill this criterium (<1% of the total number of frames) were linearly interpolated based on the fly’s position on the frame before and after the frame under consideration. Finally, raw trajectories of the centroid and orientation were smoothed utilizing a 1 and 1.3 second LOESS filter respectively. Regions where the error in smoothing resulted in a larger than 0.0037 mm difference from the raw values were instead smoothed with a 0.2 and 0.3 second LOESS filter respectively.

Following the post-processing steps, we validated a sample of 400 frames across 10 videos by manually labeling the head and body positions. The median error was 0.15 mm for the centroid, 0.16 mm for head position, and 3.53 degrees for the orientation. The error was higher at the arena boundary compared to the rest of the arena.

Calculation of kinematic parameters from tracks

From the fly’s position and orientation, we obtained slip, thrust and yaw. We also obtained the speed and curvature of its track. These calculations are described below.

First, we describe the calculation of slip, thrust and yaw. Given the two consecutive center of mass positions (p1,p2) and the orientation of the drosophila body (θ), we can define the movement angle between the direction of movement and the body orientation as

φ=θtan1(<p2p1>j^<p2p1>i^)

And the speed (s) as

s=p2p1Δt

Defining thrust (T) as the movement of the fly along the main body axis and slip (S) as the movement of the fly perpendicular to the movement axis, we obtain:

T=scos(φ)
S=ssin(φ)

Finally, we can define yaw as Y = θ2θ1.

Next, we calculated curvature as follows: At any position, the direction of the movement trajectory can be approximated by the change in position one step prior and one step after the position, normalized by the speed. The normal vector (N) is defined as the vector normal to this movement trajectory and can be calculated as follows:

α(t)=(dytst+dyt+1st+1)i^+(dxtst+dxt+1st+1)j^
N=α(t)|α(t)|

The curvature is defined by the change in the angle of the normal vector: k = dN.

Segmentation of tracks into the four states: Boundary, walk, sharp turns and stop

Assigning the fly as part of boundary or stop state was straightforward:

Boundary: When the centroid was within 1.5 mm (half a fly length) of the arena boundary, the fly was assigned as being in the boundary state.

Stop: When the fly’s speed was less than 0.5 mm/s, we assigned the fly as being in the stop state.

The rest of walking tracks were further delineated into sharp turns and curved walks as follows.

We first binarized the tracks using a threshold (see Table 1) for the absolute value of the curvature and a threshold for the derivative of the curvature separately. We then calculated a weighted sum of the two binarized tracks (see Table 1 for the weights). Time points at which the weighted track was above the sharp turn threshold multiple were designated as sharp turns, and points below the curved walk multiple were designated as curved walks (S2 Fig). Points with values between these two thresholds were assigned to sharp turns or curved walk based on temporal proximity. If the point was nearest to a stretch (defined as >5 frames) of sharp turn, it was assigned as a sharp turn, otherwise it was assigned as curved walk.

Table 1. Weights used to delineate sharp turns from curved walks.

Description Value
Curvature threshold 13.843 degrees/frame
Change in curvature threshold 4.080 degrees/frame2
Curvature weight 0.890
Change in curvature weight 0.739
Sharp turn threshold multiple 1.365
Curved walk threshold multiple 0.230

The procedure above–including the various thresholds—was determined empirically. A MATLAB program using the global search algorithm from the Global Optimization Toolbox (Mathworks, Natick, MA Release 2018a) was written to fit the parameters for our segmentation algorithm. We minimized the root mean squared error between the empirical positional tracks and the recreated tracks. The resulting best fit parameter set were as follows:

Assessment of the contribution of slip and yaw to curvature during sharp turns

Percent contribution of yaw (p) was calculated as a function of the normalized duration of sharp turns in each normalized time bin (t) as follows:

p(t)=Y(t)¯k(t)¯

As the sum of the change in slip angle and the yaw should fully account for the curvature of the trajectory, the percent contribution due to slip angle is simply 1-p.

Walk-turn-stop-boundary model

Consistent with our analysis in previous studies [37], we first subdivided our behavioral data set into three distinct sets: 1) before first entry (before) into the light-zone, after first entry inside the light-zone (during in), and after first entry outside the light-zone (during out). To generate synthetic flies, we used the empirical distributions from these three distinct sets (S3 Fig and S4 Fig) to create 6-minute long trajectory. Each synthetic run starts at the center with a walk. A duration, speed and curvature is chosen for the walk. Walk terminates in a sharp turn or a stop if the fly is >1.5 mm (half-fly length) away from the boundary. If the fly is within 1.5 mm of the boundary, then the walk terminates in the boundary condition. Stops, sharp turns and boundary conditions all terminate in another walk. This process continues until there are 6 minutes of tracks. First entry is defined by the first time the fly enters the light-zone after the 3-minute mark. How each of the four states are modeled is described below.

Generation of each of the four states

  1. Stops: During a stop, a fly can reorient itself by turning in spot. As such, stop distributions in each scenario were characterized by the joint probability density function (pdf) between duration and total curvature during the stop.

  2. Sharp turns: Sharp turns were characterized by the joint pdf between the duration and total curvature of a sharp turn.

  3. Curved walks were characterized by the joint pdf between speed, duration, and average instantaneous curvature of a smoothed walk.

  4. Boundary distributions were defined by the joint pdf of the duration and total angle of the arc of movement around the boundary.

All pdfs were approximated using a multivariate kernel density estimation function [53]. This algorithm treats the kernel as the transition density of a linear diffusion process and selects bandwidth using a fast and accurate plug-in method.

Estimation of turn-bias and its implementation in a model

1. Estimation: Sharp turn-in bias was defined as the probability that a fly will turn in a direction that directs them closer to the center of the arena. To empirically calculate the turn-in bias, we first define a sharp turn as a set of three points such that p1 designates the start of the turn, p2 corresponds to the location of the max curvature, and p3 ended the turn. We defined the movement vectors that connect the three points as:

v1=p2p1
v2=p3p2

We further defined a vector that points radially inwards towards the center of the arena from the sharp turn index (p2) as:

u=p2

Next, we calculated the angle the fly trajectory made with u, the radially inward vector as the fly approached (θbefore) the sharp turn and as it left (θafter):

θbefore=cos1(v1uv1u)
θafter=cos1(v2uv2u)

We note that the fly turned inwards if θafter<θbefore and outwards if θafter>θbefore. The ratio of the number of inward turning instances over the total number of sharp turns results in the turn-in bias.

2. Implementation. Turn-in bias was implemented in the model as the decision to turn towards the center of the arena. After choosing the sharp turn angle by sampling from the distribution of sharp turn angles, we chose the direction of the turn (the turn can be in two directions) such that the fly points towards the arena center with a probability consistent with the empirical turn bias. Formally, we define a sharp turn choice as a set of three points {p1,p2,p3} where p1 initiated the location of the turn, p2 indicated the end location of a left turn and p3 indicated the end location of a right turn. Now we define the movement vectors as:

v1=p2p1
v2=p3p1

We can further define a vector that directs inwards from the sharp turn index (p1) as:

u=p1

Next, we calculated the angle the fly trajectory was making with the inward vector as the fly turned left and as it turned right (see definition of biases above). We designate the inward turning choice as the turn that results in a smaller θ. The choice of turn was then decided based upon the empirically derived turn in bias.

Definition of border choice

When a fly leaves or enters the light zone, they exhibit an increased chance of initiating a turn. We defined the location of the border to be 1.2 cm (0.3 when normalized to arena radius) from the center of the arena. We subdivided our 6-minute trajectories into two scenarios: before (BFE) and after first entry (AFE) based on the first time that a fly enters the light-zone after the light is turned on. For each scenario, we further subdivided the trajectories into inside tracks (entry of light zone to exit of light zone) and outside tracks (exit to entry). We considered the first two turns and calculated the probability mass function (pmf) as a function of the normalized radial location (r) where these turns occurred for outside (Pout(r)) and inside (Pin(r)) tracks separately.

One caveat of this approach is that the pmf will be skewed towards the light border because crossing tracks start at the border. To consider the contribution of this sampling bias, we fit the BFE pmf of sharp turn locations when crossing the arena border to a set of compounding distribution functions.

We employed the compounding distribution functions rather than the raw pmf because the low number of crossing resulted in a noisy empirical distribution. This set of compounding distribution functions were then used to detrend the empirical AFE pmf. The functions were derived as follows:

We begin by making two assumptions:

  1. Flies exhibit a uniform radial distribution inside the odor arena before crossing outwards and vice versa for crossing inwards

  2. The radial displacement for flies crossing inwards and outwards follow exponential distributions.

Based on these assumptions, the expected distribution of sharp turn locations (T) as a function of normalized radial position (r) depends on the location inside the arena where the walk starts (L) and the expected distribution (D) of radial distance traveled (x) for a given curved walk. Specifically, T can be calculated as a convolution of D and L using the following formula:

T(r)=(D*L)(r)=D(x)L(rx)dx (1)

For the outside tracks, let us then define the border location as b and thus L represents a uniform distribution ranging from 0 to b. Solving for Eq (1) this we obtain the following:

T(r)={1eλr0rbeλ(rb)eλr1r>b0o/w

For the inside tracks with the same border b, we can define L as a uniform distribution ranging from b to 1. Solving for Eq (1) this we obtain the following:

T(r)={eλ(rb)eλ(r1)0rbeλr11r>b0o/w

For both outside and inside tracks, we are interested in the tracks that cross the arena boundary and therefore our final detrend function is as follows:

T(r)={eλ(rb)eλ(r1)0rbeλ(rb)eλr1r>b0o/w

We then substract T(r) from the during odor distribution of sharp turns and pass through a rectifier before normalizing to a total probability of 1 for inside and outside tracks separately as shown below:

foutside=max(0,Pout(r)T(r))max(0,Pout(r)T(r))
finside=max(0,Pin(r)T(r))max(0,Pin(r)T(r))

We then implemented an additional baseline probability to initiate a turn as without it, synthetic flies often moved farther away from the light ring before initiating a turn as compared to empirical flies. A baseline of 0.2 was chosen in order to replicate the turn density profile of empirical flies.

Implementation of border choice

Border choice was implemented in the model for the first two turns after crossing the light border. As we considered that the border choice would likely be weaker for the second turn than for the first turn, implemented the border choice as follows:

finside(n)=finside*P(atleastnturns|insidetrack)
foutside(n)=foutside*P(atleastnturns|outsidetrack)
n{1,2}

Initialization of synthetic flies

All synthetic flies were initialized to start at the center of a unit circular arena (normalized) centered at (0,0) with an initial heading direction along the positive x-axis (0 degrees). All flies are initialized to select a curved walk as the first state that it enters.

Selection of synthetic flies

We used the same criteria for including the synthetic flies in our dataset as empirical flies. The flies were included if they reached a distance of at least 1.1x the radius of the light bound outside and 0.9x the radius of the light bound inside in both the before and during scenarios. Furthermore, we selected flies that had a first entry time that is within the 85th percentile of empirical first entry times.

Comparison of locomotor features

Below, we describe each description of locomotion used in this paper. In each description, we separate out the locomotor tracks into before first entry and after first entry

  1. Radial occupancy: The overall probability distribution of the average fly being a radial distance away. A bin size of 0.1 radial units (4 mm) was utilized in generating the histogram distribution.

  2. Attraction index: The amount of time a fly spends inside the light ring divided by the total time a fly is in a given scenario.

  3. Radial density of turns: This is the the probability mass function of the density of turns. It is calculated as below:

fR(r)=PR(rk)π(rk+12rk2)
fR(r)=fR(r)0RfR(r)

Where r is the radial distance away from the center of the arena and k is the bin number.

Quantification and statistical analysis

The data was analysized using estimation methods to calculate mean, mean differences, and confidence intervals using a MatLab toolbox [54,55]. Scatter plots show individual data points and corresponding error bars show mean and bootstrapped 95% confidence interval (resampled 10000 times, bias-corrected, and accelerated). 95% confidence interval for differences between means were calculated using the same boostrapping methods. P-values were further generated using wilcoxon rank-sum tests and reported in the legends for pro forma reporting.

Supporting information

S1 Fig. Flies flexibly employ slip, thrust and yaw to turn.

A. Definitions of fly centric kinematic descriptors (thrust, slip and yaw) and world coordinate descriptors (speed and curvature). B. Example segment of a fly’s trajectory showing that sharp turns do not always display peaks in yaw. Black and red lines show body position of the fly, gray lines show the orientation of the fly, and black dots show head position. Some sharp turns display a smooth change in orientation while others include sharp instantaneous yaw. C. Flies flexibly employ slip and yaw to turn. Top: Even when there is a change in yaw during the sharp turn the yaw occurs at different times during the sharp turn. The percent contribution of slip and yaw to sharp turns as a function of the percent progress of completing sharp turns changes with speed. Bottom: A large percentage of sharp turns simply don’t show a peak in yaw but this percentage decreases with speed. Blue and red dots represent the time of yaw and curvature peaks. D. Flies reported by AY. Katsov and colleagues move at much faster speed possibly due to higher temperatures and because the experiments were performed in the presence of light. Speed distribution for sharp turns and curved walks in the Orco Control (n = 31 flies) and Katsov flies in a large arena (n = 9456 tracks). Data obtained from Dryad (doi.org/10.5061/dryad.854j2). E. Characterization of the percent contribution of slip and yaw on sharp turns as a function of the percent progress of completing sharp turns for turns moving at less than 10mm/s (left), between 10 and 20mm/s (middle), and larger than 20mm/s (right).

(TIF)

S2 Fig. Sharp turns and curved walks can be segmented based on curvature.

A. A sample trajectory after delineation into curved walks and sharp turns using the algorithm in panel B. Gray circle designates arena boundary. B. Schematic for delineating sharp turns and curved walks. First the curvature and change in curvature are binarized. Then a weighted sum of the binarized values are calculated and smoothed. Finally, two global thresholds for sharp turns and curved walks are set and values between these thresholds are assigned based on time to nearest sharp turn and curved walk. C left: Cumulative probability function for the average curvature of sharp turns (red line) and curved walks (black line). right: The receiver operating characteristic curve for classification by a logistic regression with the average curvature shows high separability between sharp turns and curved walks.

(TIF)

S3 Fig. Joint probability distributions for sharp turn and stops.

Stop and turn states for Orco control (A1) and Orco retinal (A2) flies are described by the joint probability density function between curvature and duration. Sharp turns for Orco control (B1) and Orco retinal (B2) flies are described by the joint probability density function between curvature and duration.

(TIF)

S4 Fig. Joint probability distributions for curved walk and boundary.

Curved walks are described by the joint probability density function between curvature, speed, and duration of sharp turns. Shaded regions represent the 50th, 65th, 80th, and 90th percentile contours for Orco control distributions (A1) and Orco retinal distributions (A2). Arena boundary conditions for Orco control (B1) and Orco retinal (B2) flies are described by the joint probability density function between the central angle of movement and duration.

(TIF)

S5 Fig. Details of the walk turn stop boundary (WTSB) model.

When reaching the boundary, a synthetic fly selects an angular velocity, duration, and direction of movement. The fly leaves the boundary by orienting towards the center of the arena at an angular offset of +/- 10 degrees. When flies stop, they first stop for a duration before reorienting prior to initiating an directed run. Synthetic flies move with constant velocity and duration during directed runs until either the selected duration expires or they reach the arena boundary. They perform sharp turns by moving in a straight line for half of the duration of the sharp turn before reorienting and then in a straight line for the second half of the sharp turn.

(TIF)

S6 Fig. Tracks of empirical Orco retinal flies arranged in the increasing order of attraction index.

Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

(TIF)

S7 Fig. Synthetic flies based on purely kinematic parameters (WTSB model alone).

Tracks of synthetic Orco retinal flies obtained by the kinematic model arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

(TIF)

S8 Fig. Tracks of synthetic Orco retinal flies obtained when the border choice and turn bias are considered in the kinematic model.

Tracks are arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

(TIF)

S9 Fig. Comparison of attraction index between Orco retinal synthetic flies obtained by the kinematic model for the before and during light periods and Orco retinal synthetic flies obtained by the final model is shown.

(TIF)

S10 Fig. Single antenna Orco flies.

A. Schematic showing a sharp turn and the area covered by the sharp turn. B. Left: Cumulative density function for left and right turns of single antenna Orco flies. Left turns cover significantly higher area (two-sample KS test, p<0.005) despite similar number of turns (n = 484 left turns, n = 456 right turns). Middle: Much of this is contributed by the first two turns each time the flies enter the light ring (two-sample KS test, p<0.001, n = 68 left turns, n = 58 right turns). Right: There was an insignificant difference in the area covered by the first two turns outside the light ring (two-sample KS test, p = 0.366, n = 113 left turns, n = 111 right turns). C. Tracks of single antenna Orco flies arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

(TIF)

S11 Fig. Experimental apparatus. An IR video camera captures the movement of flies in a circular arena.

The arena is comprised of two Plexiglass plates (Ø90 x 1.5 mm high), a spacer (Ø90 mm outside, Ø80 mm inside x 3 mm high), and a black Delrin plate (Ø90 mm outside, Ø25 mm inside X 3 mm high). Drosophila walks in the 3 mm high region surrounded by the spacer. The video camera takes a 6-minute recording of the fly. During the last 3 minutes, a DAQ triggers the LED driver to walks in the 3 mm high region surrounded by the spacer. A condenser lens is placed above the LED to collimate the scattered light beam. The collimated light beam is then passed through a plano-convex lens to create a focused light spot that covers the 25 mm hole in the bottom of the arena.

(TIF)

S1 Video. Sample 10s segment of a fly’s trajectory reconstructed from image processing.

The fly is shown as a black oval with a major axis radius of 1.5 mm and minor axis radius of 0.6 mm for visualization. Black lines represent centroid locations during curved walks. Red lines represent centroid locations during sharp turns. Gray arrowheads represent the orientation of the fly. Black dots represent the head location of the fly at corresponding to the corresponding gray arrowhead. For scale, black bars represent 6 mm.

(AVI)

Acknowledgments

We would like to acknowledge the members of Bhandawat lab for discussions, and Nicholas Lent for help with experiments.

Data Availability

The data are held in a public repository (FigShare) https://doi.org/10.6084/m9.figshare.11356952.v1.

Funding Statement

The work was supported by funding from the NIH RO1NS097881 to VB, from the NIH RO1DC015827 to VB, and from the NSF IOS-1652647 to VB. The funders had no role in study design, data collection, and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Cheng K, Shettleworth SJ, Huttenlocher J, Rieser JJ. Bayesian integration of spatial information. Psychol Bull. 2007;133(4):625–37. 10.1037/0033-2909.133.4.625 [DOI] [PubMed] [Google Scholar]
  • 2.Cheng K. Arthropod navigation: ants, bees, crabs, spiders finding their way In: Wasserman EA, Zentall TR, editors. Comparative CognitionExperimental Explorations of Animal Intelligence: Oxford University Press; 2006. p. 189–209. [Google Scholar]
  • 3.Jeffery KJ. The neurobiology of spatial behaviour Oxford: Oxford University Press; 2003. xxxi, 316 p. p. [Google Scholar]
  • 4.Muller M, Wehner R. Path integration in desert ants, Cataglyphis fortis. Proc Natl Acad Sci U S A. 1988;85(14):5287–90. 10.1073/pnas.85.14.5287 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Hoffmann G. The Random Elements in the Systematic Search Behavior of the Desert Isopod Hemilepistus-Reaumuri. Behav Ecol Sociobiol. 1983;13(2):81–92. [Google Scholar]
  • 6.Wehner R, Muller M. The significance of direct sunlight and polarized skylight in the ant's celestial system of navigation. P Natl Acad Sci USA. 2006;103(33):12575–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Wehner R, Srinivasan MV. Searching Behavior of Desert Ants, Genus Cataglyphis (Formicidae, Hymenoptera). J Comp Physiol. 1981;142(3):315–38. [Google Scholar]
  • 8.Mueller T, Fagan WF. Search and navigation in dynamic environments—from individual behaviors to population distributions. Oikos. 2008;117(5):654–64. [Google Scholar]
  • 9.Holden C. Inching toward movement ecology. Science. 2006;313(5788):779–+. 10.1126/science.313.5788.779 [DOI] [PubMed] [Google Scholar]
  • 10.Berg HC, Brown DA. Chemotaxis in Escherichia-Coli Analyzed by 3-Dimensional Tracking. Nature. 1972;239(5374):500–&. 10.1038/239500a0 [DOI] [PubMed] [Google Scholar]
  • 11.Experimental Kareiva P. and Mathematical Analyses of Herbivore Movement—Quantifying the Influence of Plant Spacing and Quality on Foraging Discrimination. Ecol Monogr. 1982;52(3):261–82. [Google Scholar]
  • 12.Viswanathan GM, Buldyrev SV, Havlin S, da Luz MGE, Raposo EP, Stanley HE. Optimizing the success of random searches. Nature. 1999;401(6756):911–4. 10.1038/44831 [DOI] [PubMed] [Google Scholar]
  • 13.Reynolds AM. Current status and future directions of Levy walk research. Biol Open. 2018;7(1): bio030106 10.1242/bio.030106 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Kareiva PM, Shigesada N. Analyzing Insect Movement as a Correlated Random-Walk. Oecologia. 1983;56(2–3):234–8. 10.1007/BF00379695 [DOI] [PubMed] [Google Scholar]
  • 15.Bovet P, Benhamou S. Spatial-Analysis of Animals Movements Using a Correlated Random-Walk Model. J Theor Biol. 1988;131(4):419–33. [Google Scholar]
  • 16.Hall CS. Emotional behavior in the rat I Defecation and urination as measures of individual differences in emotionality. J Comp Psychol. 1934;18(3):385–403. [Google Scholar]
  • 17.Besson M, Martin JR. Centrophobism/thigmotaxis, a new role for the mushroom bodies in Drosophila. J Neurobiol. 2005;62(3):386–96. 10.1002/neu.20111 [DOI] [PubMed] [Google Scholar]
  • 18.Lima SQ, Miesenbock G. Remote control of behavior through genetically targeted photostimulation of neurons. Cell. 2005;121(1):141–52. 10.1016/j.cell.2005.02.004 [DOI] [PubMed] [Google Scholar]
  • 19.Soibam B, Mann M, Liu LZ, Tran J, Lobaina M, Kang YY, et al. Open-field arena boundary is a primary object of exploration for Drosophila. Brain Behav. 2012;2(2):97–108. 10.1002/brb3.36 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Simon P, Dupuis R, Costentin J. Thigmotaxis as an Index of Anxiety in Mice—Influence of Dopaminergic Transmissions. Behav Brain Res. 1994;61(1):59–64. 10.1016/0166-4328(94)90008-6 [DOI] [PubMed] [Google Scholar]
  • 21.Bell WJ, Tobin TR. Orientation to Sex-Pheromone in the American Cockroach—Analysis of Chemo-Orientation Mechanisms. J Insect Physiol. 1981;27(8):501–8. [Google Scholar]
  • 22.Turchin P. Quantitative analysis of movement: measuring and modeling population redistribution in animals and plants Sunderland, Mass: Sinauer Associates; 1998. ix, 396 p. p. [Google Scholar]
  • 23.Kareiva P, Odell G. Swarms of Predators Exhibit Preytaxis If Individual Predators Use Area-Restricted Search. Am Nat. 1987;130(2):233–70. [Google Scholar]
  • 24.Iino Y, Yoshida K. Parallel Use of Two Behavioral Mechanisms for Chemotaxis in Caenorhabditis elegans. J Neurosci. 2009;29(17):5370–80. 10.1523/JNEUROSCI.3633-08.2009 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Gomez-Marin A, Stephens GJ, Louis M. Active sampling and decision making in Drosophila chemotaxis. Nat Commun. 2011;2:441 10.1038/ncomms1455 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Alvarez-Salvado E, Licata AM, Connor EG, McHugh MK, King BMN, Stavropoulos N, et al. Elementary sensory-motor transformations underlying olfactory navigation in walking fruit-flies. Elife. 2018;7:e37815 10.7554/eLife.37815 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Jung SH, Hueston C, Bhandawat V. Odor-identity dependent motor programs underlie behavioral responses to odors. Elife. 2015;4:e11092 10.7554/eLife.11092 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Bell JS, Wilson RI. Behavior Reveals Selective Summation and Max Pooling among Olfactory Processing Channels. Neuron. 2016;91(2):425–38. 10.1016/j.neuron.2016.06.011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Kim IS, Dickinson MH. Idiothetic Path Integration in the Fruit Fly Drosophila melanogaster. Curr Biol. 2017;27(15):2227–+. 10.1016/j.cub.2017.06.026 [DOI] [PubMed] [Google Scholar]
  • 30.Corfas RA, Sharma T, Dickinson MH. Diverse Food-Sensing Neurons Trigger Idiothetic Local Search in Drosophila. Curr Biol. 2019;29(10):1660–8.e4. 10.1016/j.cub.2019.03.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Saxena N, Natesan D, Sane SP. Odor source localization in complex visual environments by fruit flies. The Journal of Experimental Biology. 2018;221(2):jeb172023. [DOI] [PubMed] [Google Scholar]
  • 32.Davies A, Louis M, Webb B. A Model of Drosophila Larva Chemotaxis. PLOS Computational Biology. 2015;11(11):e1004606 10.1371/journal.pcbi.1004606 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Larsson MC, Domingos AI, Jones WD, Chiappe ME, Amrein H, Vosshall LB. Or83b Encodes a Broadly Expressed Odorant Receptor Essential for Drosophila Olfaction. Neuron. 2004;43(5):703–14. 10.1016/j.neuron.2004.08.019 [DOI] [PubMed] [Google Scholar]
  • 34.Klapoetke NC, Murata Y, Kim SS, Pulver SR, Birdsey-Benson A, Cho YK, et al. Independent optical excitation of distinct neural populations. Nature Methods. 2014;11:338 10.1038/nmeth.2836 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Katsov AY, Clandinin TR. Motion Processing Streams in Drosophila Are Behaviorally Specialized. Neuron. 2008;59(2):322–35. 10.1016/j.neuron.2008.05.022 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Katsov AY, Freifeld L, Horowitz M, Kuehn S, Clandinin TR. Dynamic structure of locomotor behavior in walking fruit flies. Elife. 2017;6:e26410 10.7554/eLife.26410 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Tao L, Ozarkar S, Beck JM, Bhandawat V. Statistical structure of locomotion and its modulation by odors. Elife. 2019;8:e41235 10.7554/eLife.41235 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Borst A, Heisenberg M. Osmotropotaxis in Drosophila-Melanogaster. J Comp Physiol. 1982;147(4):479–84. [Google Scholar]
  • 39.Gaudry Q, Hong EJ, Kain J, de Bivort BL, Wilson RI. Asymmetric neurotransmitter release enables rapid odour lateralization in Drosophila. Nature. 2013;493(7432):424–U175. 10.1038/nature11747 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Fackrell JE, Robins AG. The effects of source size on concentration fluctuations in plumes. Boundary-Layer Meteorology. 1982;22(3):335–50. [Google Scholar]
  • 41.Vickers NJ, Christensen TA, Baker TC, Hildebrand JG. Odour-plume dynamics influence the brain's olfactory code. Nature. 2001;410(6827):466–70. 10.1038/35068559 [DOI] [PubMed] [Google Scholar]
  • 42.Hassell MP, May RM. Aggregation of Predators and Insect Parasites and Its Effect on Stability. J Anim Ecol. 1974;43(2):567–94. [Google Scholar]
  • 43.Bhandawat V, Maimon G, Dickinson MH, Wilson RI. Olfactory modulation of flight in Drosophila is sensitive, selective and rapid. J Exp Biol. 2010;213(Pt 21):3625–35. 10.1242/jeb.040402 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Budick SA, Dickinson MH. Free-flight responses of Drosophila melanogaster to attractive odors. J Exp Biol. 2006;209(Pt 15):3001–17. 10.1242/jeb.02305 [DOI] [PubMed] [Google Scholar]
  • 45.van Breugel F, Dickinson MH. Plume-tracking behavior of flying Drosophila emerges from a set of distinct sensory-motor reflexes. Curr Biol. 2014;24(3):274–86. 10.1016/j.cub.2013.12.023 [DOI] [PubMed] [Google Scholar]
  • 46.Kennedy J. Zigzagging and casting as a programmed response to wind‐borne odour: a review. Physiological Entomology. 1983;8(2):109–20. [Google Scholar]
  • 47.BELL WJ, TOBIN TR. Chemo‐orientation. Biological Reviews. 1982;57(2):219–60. [Google Scholar]
  • 48.Willis MA, Arbas EA. Odor-modulated upwind flight of the sphinx moth, Manduca sexta L. J Comp Physiol A. 1991;169(4):427–40. 10.1007/bf00197655 [DOI] [PubMed] [Google Scholar]
  • 49.HAVUKKALA I. Klinokinetic and klinotactic humidity reactions of the beetles Hylobius abietis and Tenebrio molitor. Physiological Entomology. 1980;5(2):133–40. [Google Scholar]
  • 50.MARTIN H. Osmotropotaxis in the Honey-Bee. Nature. 1965;208(5005):59. [Google Scholar]
  • 51.Louis M, Huber T, Benton R, Sakmar TP, Vosshall LB. Bilateral olfactory sensory input enhances chemotaxis behavior. Nat Neurosci. 2008;11(2):187–99. 10.1038/nn2031 [DOI] [PubMed] [Google Scholar]
  • 52.Duistermars BJ, Chow DM, Frye MA. Flies require bilateral sensory input to track odor gradients in flight. Curr Biol. 2009;19(15):1301–7. 10.1016/j.cub.2009.06.022 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Botev ZI, Grotowski JF, Kroese DP. Kernel density estimation via diffusion. The annals of Statistics. 2010;38(5):2916–57. [Google Scholar]
  • 54.Claridge-Chang A, Assam PN. Estimation statistics should replace significance testing. Nat. Meth. 2016; 13(2):108–109. [DOI] [PubMed] [Google Scholar]
  • 55.Ho J, Tumkaya T, Aryal S, Choi H, Claridge-Chang A. Moving beyond P values:data analysis with estimation graphics. Nat. Meth. 2019; 16: 565–566. [DOI] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007718.r001

Decision Letter 0

Bard Ermentrout, Samuel J Gershman

21 Oct 2019

Dear Dr Bhandawat,

Thank you very much for submitting your manuscript 'Mechanisms underlying attraction to odors in walking Drosophila.' for review by PLOS Computational Biology. Your manuscript has been fully evaluated by the PLOS Computational Biology editorial team and in this case also by independent peer reviewers. The reviewers appreciated the attention to an important problem, but raised some substantial concerns about the manuscript as it currently stands. While your manuscript cannot be accepted in its present form, we are willing to consider a revised version in which the issues raised by the reviewers have been adequately addressed. We cannot, of course, promise publication at that time.

Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

Your revisions should address the specific points made by each reviewer. Please return the revised version within the next 60 days. If you anticipate any delay in its return, we ask that you let us know the expected resubmission date by email at ploscompbiol@plos.org. Revised manuscripts received beyond 60 days may require evaluation and peer review similar to that applied to newly submitted manuscripts.

In addition, when you are ready to resubmit, please be prepared to provide the following:

(1) A detailed list of your responses to the review comments and the changes you have made in the manuscript. We require a file of this nature before your manuscript is passed back to the editors.

(2) A copy of your manuscript with the changes highlighted (encouraged). We encourage authors, if possible to show clearly where changes have been made to their manuscript e.g. by highlighting text.

(3) A striking still image to accompany your article (optional). If the image is judged to be suitable by the editors, it may be featured on our website and might be chosen as the issue image for that month. These square, high-quality images should be accompanied by a short caption. Please note as well that there should be no copyright restrictions on the use of the image, so that it can be published under the Open-Access license and be subject only to appropriate attribution.

Before you resubmit your manuscript, please consult our Submission Checklist to ensure your manuscript is formatted correctly for PLOS Computational Biology: http://www.ploscompbiol.org/static/checklist.action. Some key points to remember are:

- Figures uploaded separately as TIFF or EPS files (if you wish, your figures may remain in your main manuscript file in addition).

- Supporting Information uploaded as separate files, titled Dataset, Figure, Table, Text, Protocol, Audio, or Video.

- Funding information in the 'Financial Disclosure' box in the online system.

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions see here

We are sorry that we cannot be more positive about your manuscript at this stage, but if you have any concerns or questions, please do not hesitate to contact us.

Sincerely,

Bard Ermentrout

Associate Editor

PLOS Computational Biology

Samuel Gershman

Deputy Editor

PLOS Computational Biology

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: Tao, Ozarkar, and Bhandawat completed two behavioral experiments using walking Drosophila in a small arena where an optogenetic stimulus provided an appetitive cue in part of the arena. In the first experiment, they compared mutant flies (Orco-Gal4; UAS-Chrimson) to Orco-Gal4 only controls. In the second experiment, they removed one antennae of the fly and observed differences in behavior. In addition, they developed a walk-turn-stop-boundary (WTSB) model that described some aspects of fly behavior based only on the statistics of their movements.

The authors’ decomposition of fly movement into slip, yaw, and thrust was very elegant.

Were the experimental flies male, female or a mix of both?

Please make clear that only retinal-fed flies will express the Chrimson channel.

Were flies housed in the dark prior to experimentation? Fluorescent lights may contain enough red light to activate the Chrimson channel.

It is my understanding that Drosophila and other insects cannot see red light. This seems like a crucial point to make, since flies can exhibit phototactic behavior, and this could be an alternative mechanism to explain their attraction to the optogenetic stimulus.

I’m assuming the wings were removed from the flies prior to the experiment. Please make this point clear.

I’m assuming the Orco-Gal4 gene has been shown to be encoded in ORN’s; and furthermore, that it has been shown to encode something attractive to flies. It would be useful to know what the odorant is (if it is known).

It would be useful for readers to know that fly ORNs are located on the antennae. Therefore, removing an antennae would be reducing a bilateral system to a unilateral one.

In prior work, the same authors concluded that individual flies’ behaviors in a similar task cannot be represented by the behavior of an average fly, but were separable into several distinct clusters based on a 10 state Hidden Markov Model. Compared to the authors’ prior work, the WTSB model seems to be limited in scope with less utility. Perhaps the authors could make some predictions about untested behaviors using the WTSB?

These two sentences in the abstract seem contradictory. “Second, the fly turns more at the border between light-zone and no-light zone and these turns have an inward bias. Surprisingly, there is no increase in turn rate, rather a large decrease in speed that makes it appear that the flies are turning at the border.” How can the fly turn more, but not increase its turn rate? This result would make me double-check my methods for identifying turns.

The authors repeatedly refer to fly “kinematics.” Encoding of kinematics (motion of muscles) vs kinetics (forces necessary to produce movements) is a debate established in motor neuroscience. Not sure you want to use this jargon here, as it applies to fly neurobiology.

In the introduction, the description of “navigational movements” may be better described as “goal directed movements” or “orienting movements towards a stimulus.”

The authors make a point that path integration is not necessary to describe behavior in their models. However, I feel that the experiments are somewhat limited in their ability to disentangle path integration from “kinematic” models of decision-making in the fly as the appetitive stimulus is relatively large compared to the size of the arena. Path integration may come into play when either a) the appetitive stimulus is small compared to the arena size; or b) the arena size is large with multiple available stimuli to explore.

Results “ORN activation alone in the absence of air can mediate robust attraction.” I believe the authors meant to say in the “absence of wind” or in the “absence of air currents.” However, note that in even relatively still air in the laboratory, there will still be some air currents. It may be worth measuring and reporting these with an anemometer, since flies can exhibit anemotaxis.

It is not clear to me how the authors parse out “stops.” I’m assuming it’s when velocity is below some threshold.

Line 203 states that “the synthetic flies are not as attracted to the light-zone as the empirical flies.” Why would they be? The model has no mechanism to respond to rewarding stimuli.

Line 255 A deeper analysis of the effect of removing an antennae seems to be warranted. The flies appear to spin preferentially in one direction. This suggests to me that the flies were using a binaral or stereo-olfaction mechanism for detecting the edge of the stimulus.

Line 266 “The increased turning at the border is due to the decrease in speed as the fly exits the light-zone.” Is this consistent with klinotaxis or not?

Line 292 “It is clear from our data that flies not only select the duration of each walk, but also its speed and curvature.” Please clarify.

Line 342 “Essentially, a circuit that relates decreasing ORN response to decreased walking speed and increased turn angle during sharp turn is all that is necessary to produce robust attraction to a stimulus.” This seems like a key point. Can you propose such a circuit or how it might be implemented by Drosophila neurobiology?

The Hungarian algorithm approach to determining head position seems novel and may warrant further explanation. Otherwise, please provide a citation where this method has been used before.

1-1.3s LOESS smoothing seems like oversmoothing to me. I would be more comfortable if a uniform smoothing was used throughout.

Speed is given as both variables d and s in the methods section.

I am confused as to the difference in Figure 4D and Figure 5G. This appears to be the same data, but the result is different.

Figure 5B, is it noteworthy that the peak of turn density is near the inflection point of the laser intensity?

Supplementary Figure 1 (right panel). Did you analyze data from the Katsov, et al. study? If so, please state where this data is available or if you got it through contact with the authors.

Supplementary Figure 2B. Please include the y-axis and thresholds in the plots of curvature and derivative of curvature.

Supplementary Figure 3. What is the significance of including this figure?

Supplementary Figure 4 (caption). What do the authors mean by the “central angle of movement”?

Supplementary Figure 6-8. Compliments to the authors on displaying all the raw data.

Reviewer #2: Multiple studies have explored how odors are represented in the peripheral olfactory system of Drosophila and how freely-moving flies respond to odor plumes carried by turbulent air flows. In spite of this work, very little is known about the orientation behavior of flies in response to pure olfactory stimulations. Bhandawat and colleagues fill this important gap by using an elegant experimental paradigm. They take advantage of optogenetics to activate all olfactory receptor neurons (ORNs) in the central region of a circular arena. This effectively creates a binary odorant landscape where flies accumulate in the light zone (or odor zone). Using state-of-the-art behavioral analysis, the authors quantify how odor stimulation modifies the kinematic parameters of the fly locomotion.

To ask whether changes in kinematic parameters are sufficient to reproduce the observed behavior of real flies, the authors turn to agent-based modeling. The simulations point out the insufficiency of a purely kinematic model of foraging. Further analysis bring the authors to establish that a crucial component of the fly's navigation algorithm is the ability to reorient toward the source upon exiting the odor zone. Surprisingly, the authors report that reorientation does not involve a bias of turns toward the gradient but that it arises from a deceleration of the fly followed by sharp turning. Given the idiosyncratic nature of the assay (the all-or-none nature of the light landscape and pan-neuronal activation of the peripheral olfactory system), it is unclear whether this conclusion can be generalized to more natural conditions of olfactory stimulations.

Overall, the research is well designed and neatly executed. The manuscript is clearly written (in particular, the introduction abounds with useful references). The conclusions are interesting and of general interest.

Major comments/suggestions:

1. In lines 113-114, the authors make a case that "even the straight walks are curved". This statement is supported by the trajectory segments shown in Fig 2. But it also begs the question of why many trajectories in Supplementary Fig. 7 include long segments that are perfectly linear. These straight segments appear to be inexistent in Supplementary Fig. 6. Could these straight segments in Supp. Fig 7 be due to a tracking artifacts? If not, the authors should look into the behavioral significance of segments devoid of any curvature.

2. In Figs. 4 and 5, the authors use their model to make a convincing case that a non-reorienting model (WTSB) is insufficient to account for the behavior of real flies stimulated by an odor gradient. They go on to show that the introduction of a "border choice" and a "turn-bias" parameter can account for the ability of flies to re-enter the odor zone upon its exit. This is done by training and "\\validating the model on the same dataset. To validate the model further, I would encourage the authors to monitor the behavior of Orco-Gal4;UAS-Chrimson flies in a gradient with a geometry different from the binary landscape - for instance a Gaussian gradient produced by a filter. Testing the behavior in a smoother light gradient might reveal whether flies are capable of biasing their turns toward the source when the stimulus landscape is not binary.

In the paragraph that starts on line 340, the authors argue that reorientation maneuvers based on slowing down followed by (non-biased) sharp turning could account for the navigation of walking flies. Although this conclusion is plausible, it would be strengthened by a validation of the model in more realistic olfactory landscapes than that on which the model was trained.

3. Fig 5B shows that more turns take place inside the odor zone. This point is also evident from trajectories shown in the main figures. Yet, the authors did not establish the ability of their model to reproduce the behavior of flies inside the odor zone. How do flies behave when they experience an all-or-none increase in ORN activity while re-entering the odor zone? Although one might predict that flies move straight as soon as they reenter the odor zone (a surge response that would be compatible with the model of Alvarez-Salvado & Nagel 2018), real flies appear to behave differently. Is the turning dynamics inside the odor zone the same as that outside the odor zone (excluding the interface)?

4. Do flies behave differently upon optogenetic stimulation of all ORNs compared to when stimulated by real odors as was studied by Jung & Bhandawat in 2015?

5. In line 265, the authors refer to behavior "in the absence of light". Do they mean "in the absence of retinal"? Although this difference might look purely semantic, it is associated with a potentially more profound problem. The authors have not ruled out that flies respond to abrupt changes in red light through their visual and/or thermosensory system. Although flies are not supposed to orient to red light, It would be important to exclude that the all-or-none red stimulation does not induce startles. The authors could conduct this control by extending their analysis to a condition where flies do not experience any light change. In behavior devoid of light stimulation, they could apply a behavioral analysis with a "mocked odor zone" and quantify the change in kinematic parameters when flies exit this "mocked zone". This no-light control would nicely complement the no-retinal control.

5. Could the authors take advantage of their orienting model to account for differences in the behavior observed between unilateral and bilateral sensing in Fig. 6A2 and 6A2? How different would the overall reorientation dynamics be if flies were capable of biasing their turns toward the source (Fig. 6C1)? The agent-based model appears to be ideal to address this question. In their discussion of the results observed with flies having unilateral olfactory function, the authors should refer to previous work by Frye (Duistermars & Frye, CB 2009) and Nagel (Alvarez-Salvado & Nagel, eLife 18).

Minor comments/suggestions:

- Abstract: The authors state that they "create a new behavior". Stating that they created a new conditions of olfactory stimulations might be more appropriate.

- The kinematic analysis is based on the average behavior of multiple flies. Recent work by the lab of de Bivort and the authors has highlighted the high degree of variability in olfactory behaviors across individual flies. Does this inter-individual variability partly invalidate the development of a model based on behavioral averages? Whereas the dataset obtained for individual flies might not be sufficient to build and validate agent-based models, this issue should be addressed in the manuscript. Wouldn't the HHMM framework previously proposed by the authors be perfectly suited for this analysis?

- Classifiers are designed to distinguish curved walks from sharps turns. In Supplementary Fig. 2, the performance of these classifiers is evaluated by conducting a ROC analysis. Presumably, the true and false positives were defined based on a ground truth. However, I didn't find in the text a description of what the ground truth corresponds to. This point should be clarified.

- In Fig. 3A, the authors compare real trajectory segments with synthetic trajectory segments simulated with the kinematic model. How was this comparison achieved? Did the authors make the synthetic fly start with the same initial conditions as the real fly to obtain the segments shown in Fig 3A? If so, how did they select the synthetic segments shown in the comparison with the experimental segments? Additional details related to this comparison between experimental and simulated behaviors should be provided in the figure caption and the main text.

- In Fig. 5C1, the blue and black dots are difficult to tell apart.

- In Fig 5D2, the "first-two-turns" and "later-turn" probability function is defined for radial distance inside the odor zone. Does this mean that the turn bias toward the source is calculated for positions inside the odor zone? Wouldn't this be inconsistent with the definition of the inward turn, which assumes the the position is outside the zone?

- Line 296: I didn't understand why each state must necessarily last 1 second. Could this be further explained in the main text?

Typos:

- Line 45: "random walks has been" -> "random walks have been"

- Line 142: To be consistent with the figure labeling and the main text, 2A2 should be written with 2 as a subscript.

- Line 172: The parenthesis including Figure S3 and Figure S4 should be closed.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Andrew E. Papale

Reviewer #2: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007718.r003

Decision Letter 1

Bard Ermentrout, Samuel J Gershman

9 Jan 2020

Dear Dr Bhandawat,

Thank you very much for submitting your manuscript, 'Mechanisms underlying attraction to odors in walking Drosophila.', to PLOS Computational Biology. As with all papers submitted to the journal, yours was fully evaluated by the PLOS Computational Biology editorial team, and in this case, by independent peer reviewers. The reviewers appreciated the attention to an important topic but identified some aspects of the manuscript that should be improved.

We would therefore like to ask you to modify the manuscript according to the review recommendations before we can consider your manuscript for acceptance. Your revisions should address the specific points made by each reviewer and we encourage you to respond to particular issues Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.raised.

In addition, when you are ready to resubmit, please be prepared to provide the following:

(1) A detailed list of your responses to the review comments and the changes you have made in the manuscript. We require a file of this nature before your manuscript is passed back to the editors.

(2) A copy of your manuscript with the changes highlighted (encouraged). We encourage authors, if possible to show clearly where changes have been made to their manuscript e.g. by highlighting text.

(3) A striking still image to accompany your article (optional). If the image is judged to be suitable by the editors, it may be featured on our website and might be chosen as the issue image for that month. These square, high-quality images should be accompanied by a short caption. Please note as well that there should be no copyright restrictions on the use of the image, so that it can be published under the Open-Access license and be subject only to appropriate attribution.

Before you resubmit your manuscript, please consult our Submission Checklist to ensure your manuscript is formatted correctly for PLOS Computational Biology: http://www.ploscompbiol.org/static/checklist.action. Some key points to remember are:

- Figures uploaded separately as TIFF or EPS files (if you wish, your figures may remain in your main manuscript file in addition).

- Supporting Information uploaded as separate files, titled 'Dataset', 'Figure', 'Table', 'Text', 'Protocol', 'Audio', or 'Video'.

- Funding information in the 'Financial Disclosure' box in the online system.

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com  PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

We hope to receive your revised manuscript within the next 30 days. If you anticipate any delay in its return, we ask that you let us know the expected resubmission date by email at ploscompbiol@plos.org.

If you have any questions or concerns while you make these revisions, please let us know.

Sincerely,

Bard Ermentrout

Associate Editor

PLOS Computational Biology

Samuel Gershman

Deputy Editor

PLOS Computational Biology

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: First sentence of abstract, change “is” to “are”

Incomplete sentence in abstract: “behavior in which Drosophila or fruit flies explore a circular

arena.”

I would rewrite this section in the abstract for clarity. “First, there are large kinematic changes. Second, the fly turns more at the border between light-zone and no-light-zone and these turns have an inward bias. Surprisingly, there is no increase in turn-rate, rather a large decrease in speed that makes it appear that the flies are turning at the border. Similarly, the inward bias of the turns is a result of the increase in turn angle.”

Author summary change “its” to “their” in the sentence “animals have incomplete information about its environment”

In the author summary, please clarify what is meant by “In most laboratory experiments, the information is complete”

In author summary, “we devise a new behavior” should be we devise a new behavioral task or behavioral paradigm.

Typo in author summary “navigate towards to”

Typo in author summary: “First, its speed in the activated region and its turn rate is much lower than it is elsewhere.”

Typo in author summary: “turns becomes”

Typo in introduction: “However, not every animal movement is aimed at reaching a specific destination and are therefore not navigational.”

Typo on line 20: “Random walk model also works well in some isolated cases”

Typo line 25: “therefore exhibit”

Typo line 35: “in laboratory behavioral experiment”

Typo line 45: “describing the effects of stimulus”

Typo line 55: “non-oriented” change to “non orienting”

Typo line 70: “is” to “are”

Typo line 170: “Tracks corresponding to each transition was generated”

Line 180 “fly” to “flies”

Line 193: “modulate” to “modulates”

Line 265: Is it simply because the flies spend more time closer to the border of the stimulus that they are more likely to turn more? And you’re arguing against klinotaxis because the time before first (sharp) turn after leaving the stimulus is not longer in retinal flies? To be fair, you’ve made it pretty difficult to navigate via klinotaxis with the abrupt step-function light stimulus, but off the top of my head I can’t think of a hole in the logic. Does it maybe matter whether you consider the inner “edge” or the outer “edge” to be when the flies “leave the stimulus”?

Line 305: Typo add “this”

Line 331: I would hedge the description of counter turning in moths as an “automatic, internally stored mechanism” that is “released.” It sounds like Kennedy (1983) suggests it might be in his/her review, so maybe just add the phrase, “As suggested by Kennedy” if the authors feel this is indeed an appropriate conclusion from this review. In my opinion, the evidence is far from conclusive however.

Reviewer #2: The authors have essentially addressed the concerns I raised in my previous report. I appreciate the reason why they did not characterize orientation responses to graded stimuli (all-or-none nature of odor plumes). I will not insist on having them include this graded analysis to the present manuscript and, since they are "actively working on these issues", I look forward to seeing their results in a future manuscript. Although I am very supportive of this study and praise its quality, I remain puzzled about the following two points:

1. The existence of long and straight trajectory segments (walks) in the model simulations. I believe I understand the origin of these trajectories - the explanations of the authors are quite clear. But these explanations do not mitigate the fact that the presence of a large number of straight walks from one side of the arena to another points out one aspect of the model that is unrealistic. In case what I am referring to is unclear, I indicated some of the straight walks with a blue arrow in a PDF in attachment. If these straight walks arise from the fact that the average curvature of a trajectory segment is determined prior to the walk, doesn't the discrepancy between simulations and experimental data argue that local curvature should be updated continuously during a walk?

2. I had recommended that the authors look into the ability of their model to reproduce the behavior of flies inside the odor zone. In particular, I suggested analyzing the behavioral dynamics that follows re-entry into the odor zone. The authors answered "Excellent point. We show that the model does replicate the behavior of the flies. To address this critique, we have split Figure 5 into Figures 5 and 6." As explained, the authors split the content of the previous Figure 5 into two figures and added one panel (6B) that does not really address my recommendation (the turn density is not informative about the straightness of the walks). No other changes were apparently made. Am I missing something?

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Andrew E. Papale

Reviewer #2: No

Attachment

Submitted filename: StraightWalks.pdf

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007718.r005

Decision Letter 2

Bard Ermentrout, Samuel J Gershman

7 Feb 2020

Dear Dr. Bhandawat,

We are pleased to inform you that your manuscript 'Mechanisms underlying attraction to odors in walking Drosophila.' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch within two working days with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Bard Ermentrout

Associate Editor

PLOS Computational Biology

Samuel Gershman

Deputy Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #2: I have no additional comments.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #2: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007718.r006

Acceptance letter

Bard Ermentrout, Samuel J Gershman

11 Mar 2020

PCOMPBIOL-D-19-01609R2

Mechanisms underlying attraction to odors in walking Drosophila.

Dear Dr Bhandawat,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Laura Mallard

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

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

    Supplementary Materials

    S1 Fig. Flies flexibly employ slip, thrust and yaw to turn.

    A. Definitions of fly centric kinematic descriptors (thrust, slip and yaw) and world coordinate descriptors (speed and curvature). B. Example segment of a fly’s trajectory showing that sharp turns do not always display peaks in yaw. Black and red lines show body position of the fly, gray lines show the orientation of the fly, and black dots show head position. Some sharp turns display a smooth change in orientation while others include sharp instantaneous yaw. C. Flies flexibly employ slip and yaw to turn. Top: Even when there is a change in yaw during the sharp turn the yaw occurs at different times during the sharp turn. The percent contribution of slip and yaw to sharp turns as a function of the percent progress of completing sharp turns changes with speed. Bottom: A large percentage of sharp turns simply don’t show a peak in yaw but this percentage decreases with speed. Blue and red dots represent the time of yaw and curvature peaks. D. Flies reported by AY. Katsov and colleagues move at much faster speed possibly due to higher temperatures and because the experiments were performed in the presence of light. Speed distribution for sharp turns and curved walks in the Orco Control (n = 31 flies) and Katsov flies in a large arena (n = 9456 tracks). Data obtained from Dryad (doi.org/10.5061/dryad.854j2). E. Characterization of the percent contribution of slip and yaw on sharp turns as a function of the percent progress of completing sharp turns for turns moving at less than 10mm/s (left), between 10 and 20mm/s (middle), and larger than 20mm/s (right).

    (TIF)

    S2 Fig. Sharp turns and curved walks can be segmented based on curvature.

    A. A sample trajectory after delineation into curved walks and sharp turns using the algorithm in panel B. Gray circle designates arena boundary. B. Schematic for delineating sharp turns and curved walks. First the curvature and change in curvature are binarized. Then a weighted sum of the binarized values are calculated and smoothed. Finally, two global thresholds for sharp turns and curved walks are set and values between these thresholds are assigned based on time to nearest sharp turn and curved walk. C left: Cumulative probability function for the average curvature of sharp turns (red line) and curved walks (black line). right: The receiver operating characteristic curve for classification by a logistic regression with the average curvature shows high separability between sharp turns and curved walks.

    (TIF)

    S3 Fig. Joint probability distributions for sharp turn and stops.

    Stop and turn states for Orco control (A1) and Orco retinal (A2) flies are described by the joint probability density function between curvature and duration. Sharp turns for Orco control (B1) and Orco retinal (B2) flies are described by the joint probability density function between curvature and duration.

    (TIF)

    S4 Fig. Joint probability distributions for curved walk and boundary.

    Curved walks are described by the joint probability density function between curvature, speed, and duration of sharp turns. Shaded regions represent the 50th, 65th, 80th, and 90th percentile contours for Orco control distributions (A1) and Orco retinal distributions (A2). Arena boundary conditions for Orco control (B1) and Orco retinal (B2) flies are described by the joint probability density function between the central angle of movement and duration.

    (TIF)

    S5 Fig. Details of the walk turn stop boundary (WTSB) model.

    When reaching the boundary, a synthetic fly selects an angular velocity, duration, and direction of movement. The fly leaves the boundary by orienting towards the center of the arena at an angular offset of +/- 10 degrees. When flies stop, they first stop for a duration before reorienting prior to initiating an directed run. Synthetic flies move with constant velocity and duration during directed runs until either the selected duration expires or they reach the arena boundary. They perform sharp turns by moving in a straight line for half of the duration of the sharp turn before reorienting and then in a straight line for the second half of the sharp turn.

    (TIF)

    S6 Fig. Tracks of empirical Orco retinal flies arranged in the increasing order of attraction index.

    Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

    (TIF)

    S7 Fig. Synthetic flies based on purely kinematic parameters (WTSB model alone).

    Tracks of synthetic Orco retinal flies obtained by the kinematic model arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

    (TIF)

    S8 Fig. Tracks of synthetic Orco retinal flies obtained when the border choice and turn bias are considered in the kinematic model.

    Tracks are arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

    (TIF)

    S9 Fig. Comparison of attraction index between Orco retinal synthetic flies obtained by the kinematic model for the before and during light periods and Orco retinal synthetic flies obtained by the final model is shown.

    (TIF)

    S10 Fig. Single antenna Orco flies.

    A. Schematic showing a sharp turn and the area covered by the sharp turn. B. Left: Cumulative density function for left and right turns of single antenna Orco flies. Left turns cover significantly higher area (two-sample KS test, p<0.005) despite similar number of turns (n = 484 left turns, n = 456 right turns). Middle: Much of this is contributed by the first two turns each time the flies enter the light ring (two-sample KS test, p<0.001, n = 68 left turns, n = 58 right turns). Right: There was an insignificant difference in the area covered by the first two turns outside the light ring (two-sample KS test, p = 0.366, n = 113 left turns, n = 111 right turns). C. Tracks of single antenna Orco flies arranged in the increasing order of attraction index. Green and red lines show tracks prior to and after first entry. Pink region indicates the light region. The outer black circle indicates the arena bound.

    (TIF)

    S11 Fig. Experimental apparatus. An IR video camera captures the movement of flies in a circular arena.

    The arena is comprised of two Plexiglass plates (Ø90 x 1.5 mm high), a spacer (Ø90 mm outside, Ø80 mm inside x 3 mm high), and a black Delrin plate (Ø90 mm outside, Ø25 mm inside X 3 mm high). Drosophila walks in the 3 mm high region surrounded by the spacer. The video camera takes a 6-minute recording of the fly. During the last 3 minutes, a DAQ triggers the LED driver to walks in the 3 mm high region surrounded by the spacer. A condenser lens is placed above the LED to collimate the scattered light beam. The collimated light beam is then passed through a plano-convex lens to create a focused light spot that covers the 25 mm hole in the bottom of the arena.

    (TIF)

    S1 Video. Sample 10s segment of a fly’s trajectory reconstructed from image processing.

    The fly is shown as a black oval with a major axis radius of 1.5 mm and minor axis radius of 0.6 mm for visualization. Black lines represent centroid locations during curved walks. Red lines represent centroid locations during sharp turns. Gray arrowheads represent the orientation of the fly. Black dots represent the head location of the fly at corresponding to the corresponding gray arrowhead. For scale, black bars represent 6 mm.

    (AVI)

    Attachment

    Submitted filename: point-by-point response_v2.pdf

    Attachment

    Submitted filename: StraightWalks.pdf

    Attachment

    Submitted filename: Tao_ozarkar_Bhandawat_track_changes.pdf

    Data Availability Statement

    The data are held in a public repository (FigShare) https://doi.org/10.6084/m9.figshare.11356952.v1.


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES