Literature DB >> 31541919

Random Walk Revisited: Quantification and Comparative Analysis of Drosophila Walking Trajectories.

Kuo-Ting Tsai1, Ya-Hui Chou2.   

Abstract

Walking trajectory is frequently measured to assess animal behavior. Air-supported spherical treadmills have been developed for real-time monitoring of animal walking trajectories. However, current systems for mice mainly employ computer mouse microcameras (chip-on-board sensors) to monitor ball motion, and these detectors exhibit technical issues with focus and rotation scale. In addition, computational methods to analyze and quantify the "random walk" of organisms are under-developed. In this work, we overcame the hurdle of frame-to-signal translation to develop a treadmill system with camera-based detection. Moreover, we generated a package of mathematical methods to quantify distinct aspects of Drosophila walking trajectories. By extracting and quantifying certain features of walking dynamics with high temporal resolution, we found that depending on their internal state, flies employ different walking strategies to approach environmental cues. This camera-based treadmill system and method package may also be applicable to monitor the walking trajectories of other diverse animal species.
Copyright © 2019 The Authors. Published by Elsevier Inc. All rights reserved.

Entities:  

Keywords:  Biological Sciences; Biomechanics; Biophysics; Evolutionary Biology

Year:  2019        PMID: 31541919      PMCID: PMC6831876          DOI: 10.1016/j.isci.2019.08.054

Source DB:  PubMed          Journal:  iScience        ISSN: 2589-0042


Introduction

Animals continuously integrate dynamic multisensory cues while searching their ever-changing environment for food, mates, safety, or other objectives (Anderson and Perona, 2014, Dickinson et al., 2000, Greenspan and Ferveur, 2000). After compiling sensory information, neural circuits then translate it into movements with different trajectories, which can be observed and used as a readout for analysis. Animal trajectories can be either three-dimensional, such as those for flight and swimming, or two-dimensional, as for walking and crawling. As the movements of organisms are the products of multiple integrated neural circuits, the trajectories should exhibit signatures that distinguish them from models of non-biological movements, such as Brownian motion (Klafter et al., 1996, Dickinson et al., 2000). Lévy walk and Lévy flight are the best-established analyses to describe the “random walk/flight” of animal search strategies (Bartumeus et al., 2005, Rhee et al., 2011). In most experiments exploring animal motility, the random walk is used to describe the walking trajectories of control animals. However, starved animals are often used for olfactory and gustatory studies, and accumulating evidence suggests that internal state-dependent mechanisms are important determinants of walking trajectories (Van Breugel et al., 2018, Grunwald Kadow, 2019, Rengarajan et al., 2019). Whether control flies with distinct internal states exhibit similar random walk patterns remains unclear. Therefore, a better quantitative definition of random walk (at a millisecond timescale) is necessary. Drosophila is one of the most prevalent animal models for dissecting the connections between neural circuit integration and behavior (Gaudry et al., 2012b, Dickinson et al., 2000, Robie et al., 2017, Branson et al., 2009, Kabra et al., 2012, Dankert et al., 2009, Grover et al., 2016). Although many paradigms for assessing behavior have been established to evaluate animal movement under different physiological states and during different tasks (Kim and Dickinson, 2017, Semmelhack and Wang, 2009, Bahl et al., 2013, Coen et al., 2014, Gomez-Marin et al., 2011, Wu et al., 2014, Álvarez-Salvado et al., 2018, Bidaye et al., 2014, Reynolds and Frye, 2007), the quantitative analytical tools to analyze the measured trajectories remain under-developed. Spherical treadmill systems have been developed to acquire walking trajectories or other behavioral features of different animals during the performance of tasks, such as navigation, osmotrophotaxis, olfactory discrimination, motion detection, auditory transduction, or gait control (Borst and Heisenberg, 1982, Takasaki et al., 2012, Radvansky and Dombeck, 2018, Kain et al., 2013, Buchner, 1976, Gaudry et al., 2012a, Kohatsu et al., 2011, Clark et al., 2011, Lehnert et al., 2013, Seelig et al., 2010, Bahl et al., 2015, Ribeiro et al., 2018). Notably, these systems have recently been adapted to incorporate visual or olfactory virtual reality, creating a powerful tool for dissecting neural circuit activity and regulatory mechanisms (Seelig et al., 2010, Harvey et al., 2009, Radvansky and Dombeck, 2018, Sato et al., 2017, Haberkern et al., 2019, Kohatsu and Yamamoto, 2015, Runyan et al., 2017). Such treadmill systems require minimal delay time for closed-loop feedback and high precision of signals, both of which are largely determined by the detector that digitally records the motion of an air-supported ball. The most widely used treadmill systems for mice, rats, and flies utilize the sensor chips from a computer mouse to measure directional ball motion (Harvey et al., 2009, Seelig et al., 2010, Gaudry et al., 2012a, Kain et al., 2013, Radvansky and Dombeck, 2018, Haberkern et al., 2019, Kohatsu and Yamamoto, 2015). Such sensor chips offer high temporal resolution and directly report the displacements of ball surface. However, there are three major limitations with these sensor chip detectors. First, the distance between the sensor and the detected surface must be within the working distance of the sensor. If not, a compensatory optical design is necessary to acquire the motion of the ball. However, the fitting measurement for such compensatory optical design is lacking. Second, single optical computer mouse sensors are not able to monitor the rotation axis of the ball. Thus, if a sensor is pointed directly at the rotation axis, it will fail to report rotation of the ball. The use of two orthogonally aligned senor chips ensures the detection of ball rotation, but this design cannot give complete information about shifts in rotation axis. Third, validating the accuracy of signals from the computer mouse sensors remains challenging. An alternative modality for animal treadmill detectors is to use a camera to track visible patterns on the ball surface (Moore et al., 2014). Such a “camera-mode” treadmill system would supply information about every pixel in a region of interest (ROI), but camera detectors also suffer from limitations. First, specular reflection on the ball surface may deteriorate the tracked patterns. This issue can be resolved by proper illumination of the ball surface. Second, the recorded contours of patterns on the ball surface will vary based on their positions. As such, patterns located in the central zone of the ROI will appear to be expanded, whereas the same patterns near the rim of the ball will be distorted. Third, an established model of ball patterns is required for reconstruction of ball motion from video frames (Moore et al., 2014). This limitation prevents camera-mode treadmill systems from being easily adapted by other laboratories. In this study, we developed a new camera-mode treadmill system to bypass the issues of focus and lack of complete information about rotation that are common to “computer-mouse-mode” systems. Our system also overcomes a major limitation of camera-mode systems, as it does not require a pre-established model of visible markings on the ball (ball patterns). We successfully translated the captured frames into digital signals, and the calibration of odor arrival delay time with a photoionization detector (PID) allowed us to maximize temporal resolution at odor phase transitions. We identified four features of optically recorded ball motion to collectively describe individual walking patterns: rotation, distance, straightness, and curl. As a proof of principle, we used our system to measure the effects of internal state-dependent mechanisms on distinct walking strategies of single Drosophila. In addition, we revisited the idea of random walk in control flies, and interestingly, we did not observe differential walking patterns between starved and fed flies. Importantly, our camera-mode treadmill system is scalable, making it suitable for studies on other animal species in addition to Drosophila.

Results

Camera-Mode Fly Treadmill System

To collect signals of ball motion that allow verifiable reconstruction of walking trajectories, we designed and built a camera-mode fly treadmill system (Figures 1A, 1B, and S1A, Video S1). In this system, the motion of an air-supported ball is driven by the walking maneuvers of a tethered fly. As the motion of an observed ball surface is symmetric to its opposite surface, we positioned the camera detector underneath the air-supported ball (Figure 1A). In previous float mounts of computer-mouse-mode treadmill systems, a single air outlet was sufficient to support the ball and allow a tethered fly to stand on top (Buchner, 1976, Seelig et al., 2010, Gaudry et al., 2012a, Kain et al., 2013, Haberkern et al., 2019, Kohatsu and Yamamoto, 2015, Clark et al., 2011, Bahl et al., 2015). However, a one-air-stream float mount may suffer from two potential drawbacks. First, air turbulence may occur during experimental sessions. Second, the walking fly may deliver enough force to the ball that is pushed into the margin of the air outlet. To overcome these issues, we designed a float mount with four air inlets (Figures 1A and S1B). The mutually counteracting airflow from four outlets largely eliminated the occasional air turbulence that occurs in float mounts with a single air outlet. This design also allowed us to position a high-speed charge-coupled device camera facing the bottom of the floating ball. A small 192 × 200-pixel area of the ball bottom was brought into focus, allowing frames to be acquired at 100 Hz (sampling time: 10 ms) (Figure 1C). We then developed a custom tracking program in C++. The fundamental idea behind the tracking program is that for each frame, the pattern in the central zone of the air-supported ball is fitted with the previous frame. The displacement and the rotation of the pattern are then considered as motion in the X-Y plane and along the rotation axis. Note that in this work, “motion” and “movement” are used to specifically refer to the movements of the ball and the fly, respectively.
Figure 1

Fly Treadmill System

(A) The schematic diagram of the camera-mode fly treadmill system.

(B) Lateral view of a tethered fly walking on the ball suspended on the float mount.

(C) Bottom view of the ball (left panel). (Middle and right panels) A single frame of infrared video recording of ball motion. Asterisks mark the four air inlets. The arrowhead indicates a mark for positioning the nozzle.

(D) (Top) The on and off phases of the solenoid valves of the odor delivery system. (Middle) The dynamics of odor concentration (10−1 dilution of pentanoic acid) detected by photoionization detector (PID). Black dots indicate the average of 29 trials (green lines) and are shown as mean ± SD. Gray zone is the on phase of solenoid valves. Note a 22-s delay between the switching on of solenoid valves and the arrival of odor at a flow rate 17 mL/min. (Bottom) After calibration to the PID signal, the odor history can be divided as pre-odor (off, blue), during odor (on, orange), and post-odor (off, magenta) phases. All experimental data show odor delivery phases after PID signal correction, unless otherwise noted. Scale bars, 2 mm in (B) and 1 mm in (C).

See also Figures S1 and S2, and Video S1.

Fly Treadmill System (A) The schematic diagram of the camera-mode fly treadmill system. (B) Lateral view of a tethered fly walking on the ball suspended on the float mount. (C) Bottom view of the ball (left panel). (Middle and right panels) A single frame of infrared video recording of ball motion. Asterisks mark the four air inlets. The arrowhead indicates a mark for positioning the nozzle. (D) (Top) The on and off phases of the solenoid valves of the odor delivery system. (Middle) The dynamics of odor concentration (10−1 dilution of pentanoic acid) detected by photoionization detector (PID). Black dots indicate the average of 29 trials (green lines) and are shown as mean ± SD. Gray zone is the on phase of solenoid valves. Note a 22-s delay between the switching on of solenoid valves and the arrival of odor at a flow rate 17 mL/min. (Bottom) After calibration to the PID signal, the odor history can be divided as pre-odor (off, blue), during odor (on, orange), and post-odor (off, magenta) phases. All experimental data show odor delivery phases after PID signal correction, unless otherwise noted. Scale bars, 2 mm in (B) and 1 mm in (C). See also Figures S1 and S2, and Video S1.

Video S1. A Tethered Fly Walking on the Treadmill System, Related to Figure 1

A starved wild-type fly encountered the food odor pentanoic acid (10−1 dilution, applied at 17 mL/min). Individual 20-s videos were extracted from 1-min recordings of pre-odor, odor, and post-odor phases, respectively. We also built an odor delivery system, consisting of a pipeline and nozzle, to flow-in odorants to the tethered fly (Figures 1D and S2). Delivery is controlled by four two-way solenoid valves (Figure 1D, top). To estimate the delay time between switching on odor flow with the solenoid valves and odor arrival at the fly, a PID was placed on the ball surface in the same position as a tethered fly (Figure S1E). In this system, the delay time was 22 s when the odor was delivered at 17 mL/min (middle panel in Figure 1D). Therefore the odor signal timing in our experiments was adjusted according to the measured delay time for the corresponding flow rate (bottom panel in Figure 1D).

Digitizing Fly Walking Trajectories

A major challenge in the development of our camera-mode treadmill system was digitizing fly walking trajectories from the video recording of ball motion. To this end, we tested four methods: gradients pyramid, grayscale value pyramid, low discrepancy sampling, and optic flow (Figure S3, Video S2). We found that the motion of tested object can be best translated from a serial set of frames using optic flow. The ball motion videos were subjected to optic flow analysis to translate the frame information to flow vectors. The flow vectors were then used to generate five features: displacement along the x axis (X), displacement along the y axis (Y), rotation center at X, rotation center at Y, and curl (Figure 2A) (see Methods for a description of the relationships between rotation centers, yaw, roll, and pitch). X and Y were then further used to calculate the “distance” and “orientation,” which stand for the magnitude and the direction of displacement in the X-Y plane, respectively (explained in detail below) (Figure 2A). Next, the first two features were integrated to reconstruct the walking trajectories of individual flies (Figures 2B and 2C). In addition, the ball rotation center can be reconstructed from rotation center-X and rotation center-Y (Figures 2D and 2E).
Figure 2

Reconstructing Fly Trajectories from Ball Motion

(A) (Top) Time history of starved fly-driven ball motion as displacement along X-dimension (X), displacement along Y-dimension (Y), distance, orientation, rotation center at X, rotation center at Y, and curl at every 10-ms interval (sampling time). The features were derived from the motion of the ball. The speed (mm/10 ms) has the same pattern as walking distance. Odor was a 10−1 dilution of pentanoic acid at 17 mL/min.

(B) A reconstructed walking trajectory of a starved fly according to the first two features in (A). Dashed-line contoured area indicates the direction of the nozzle. Color codes of odor phases are the same as (A).

(C) Reconstructed walking trajectories of 16 starved flies.

(D) The position of the ball rotation center derived from the same fly as in (B).

(E) The position of ball rotation centers derived from the same group of flies as in (C).

See also Figure S3 and Video S2.

Reconstructing Fly Trajectories from Ball Motion (A) (Top) Time history of starved fly-driven ball motion as displacement along X-dimension (X), displacement along Y-dimension (Y), distance, orientation, rotation center at X, rotation center at Y, and curl at every 10-ms interval (sampling time). The features were derived from the motion of the ball. The speed (mm/10 ms) has the same pattern as walking distance. Odor was a 10−1 dilution of pentanoic acid at 17 mL/min. (B) A reconstructed walking trajectory of a starved fly according to the first two features in (A). Dashed-line contoured area indicates the direction of the nozzle. Color codes of odor phases are the same as (A). (C) Reconstructed walking trajectories of 16 starved flies. (D) The position of the ball rotation center derived from the same fly as in (B). (E) The position of ball rotation centers derived from the same group of flies as in (C). See also Figure S3 and Video S2. Flies with different internal states are expected to differentially value the same food odor or stimuli (Van Breugel et al., 2018, Grunwald Kadow, 2019). We therefore reasoned that flies with different internal states may show distinct walking patterns in response to the same environmental cues, and the trajectory features we measured should be sufficient to identify such differences. To test this hypothesis and validate our system, individual flies that were either fed or starved were placed on the ball of the treadmill system, and after some time, food odor or water vapor was administered. The seven distinct features of ball motion were extracted (Figures 3A–3C) and used to reconstruct the walking trajectories (Figures 3D–3F) and ball rotation centers (Figures 3G–3I) for single flies. As expected, we saw that flies with different internal states were likely to exhibit distinct walking trajectory patterns in response to environmental cues, odor, or water vapor (explained in detail below).
Figure 3

Trajectories Derived from Flies with Different Internal States Show Different Walking Characteristics

(A–C) Similar to Figure 2A, the panels show the time history of ball motion features driven by a fed fly in response to food odor (A), by a starved fly in response to food odor (B), and by a starved fly in response to water vapor (C). A 10−1 dilution of pentanoic acid or water vapor was applied at 17 mL/min. (B) The same data as shown in Figure 2A.

(D–F) Similar to Figure 2C, the panels show the reconstructed walking trajectories of 15 fed flies in response to food odor (D), 16 starved flies in response to food odor (E), and 17 starved flies in response to water vapor (F). (E) Same data as shown in Figure 2C.

(G–I) Similar to Figure 2E, the panels show the reconstructed rotation centers of 15 fed flies in response to food odor (G), 16 starved flies in response to food odor (H), and 17 starved flies in response to water vapor (I). (H) The same data as shown in Figure 2E.

Trajectories Derived from Flies with Different Internal States Show Different Walking Characteristics (A–C) Similar to Figure 2A, the panels show the time history of ball motion features driven by a fed fly in response to food odor (A), by a starved fly in response to food odor (B), and by a starved fly in response to water vapor (C). A 10−1 dilution of pentanoic acid or water vapor was applied at 17 mL/min. (B) The same data as shown in Figure 2A. (D–F) Similar to Figure 2C, the panels show the reconstructed walking trajectories of 15 fed flies in response to food odor (D), 16 starved flies in response to food odor (E), and 17 starved flies in response to water vapor (F). (E) Same data as shown in Figure 2C. (G–I) Similar to Figure 2E, the panels show the reconstructed rotation centers of 15 fed flies in response to food odor (G), 16 starved flies in response to food odor (H), and 17 starved flies in response to water vapor (I). (H) The same data as shown in Figure 2E.

Flies in Different Internal Status Orientated the External Cues in Different Kinetics

Two ball motion features, displacement along the x axis and displacement along the y axis, were used to derive the orientation of a tested fly (Figure 4A). Orientation was calculated as the counterclockwise angle (θ) between two sampling time points (middle panel in Figure 4A). Accordingly, the orientation dynamics of a representative fly in pre-odor, odor, and post-odor phases were reconstructed to an orientation distribution map (right panel in Figure 4A). In the example shown, the fly tended to orient itself to ∼288° during odor and post-odor phases, which corresponds to the approximate position of nozzle (odor source covers the area from ∼270° to 306°). Maps from all single flies in the same test group were then compiled and are shown as a normalized distribution map (Figure 4B). To better understand the individual variability of walking dynamics, we did not exclude statistical outliers; instead, all collected trajectories were used in the analyses.
Figure 4

Flies with Different Internal States Oriented toward Environmental Cues with Different Temporal Dynamics

(A) Schematic illustrating the calculation of orientation. (Left) A reconstructed walking trajectory. Asterisk indicates the trajectory phase, which is enlarged in the middle panel. (Middle) Orientation is estimated as the counterclockwise angle (black arrow) between the positive x axis (black dashed line) and the vector drawn along the trajectory in a given time interval (gray arrow). (Right) Reconstructed orientation distribution map of a fly during pre-odor (blue), odor (orange), and post-odor (magenta) phases. Radius is the percentage of orientation angles (see Methods). The representative fly tended to orient toward ∼288° during odor and post-odor phases. Orange bracket indicates the positional range of the odor source (∼270°–306°).

(B) Reconstructed orientation distribution maps from 15 fed flies in response to food odor (left), 16 starved flies in response to food odor (middle), or 17 starved flies in response to water vapor (right) during pre-odor (blue), odor (orange), and post-odor (magenta) phases. Orange brackets indicate the positional range of the odor source (∼270°–306°). The percentages of orientation angles derived from flies in the same experimental group and in different odor phases were subjected to statistical analysis (see Methods). Mann-Whitney U test was used to compare the unpaired phases. N.S., not significant. *p < 0.05.

(C) Orientation distribution of groups of flies with different internal states (n = 15, 16, and 17 for fed/applied odor, starved/applied odor, and starved/applied water vapor groups, respectively). The orientations of flies were calculated in 10-s time bins. The percentages of orientation distributions of flies in the same group in a given time bin were normalized and shown as heatmap. Orange lines indicate the positional range of the odor source (∼270°–306°).

(D) Data were analyzed similar to (C), but only the orientation distribution data in the range between 270° and 306° in (C) were extracted. Each dot represents the normalized frequencies between 270° and 306° of the same group in each time bin.

See also Figures S4 and S5.

Flies with Different Internal States Oriented toward Environmental Cues with Different Temporal Dynamics (A) Schematic illustrating the calculation of orientation. (Left) A reconstructed walking trajectory. Asterisk indicates the trajectory phase, which is enlarged in the middle panel. (Middle) Orientation is estimated as the counterclockwise angle (black arrow) between the positive x axis (black dashed line) and the vector drawn along the trajectory in a given time interval (gray arrow). (Right) Reconstructed orientation distribution map of a fly during pre-odor (blue), odor (orange), and post-odor (magenta) phases. Radius is the percentage of orientation angles (see Methods). The representative fly tended to orient toward ∼288° during odor and post-odor phases. Orange bracket indicates the positional range of the odor source (∼270°–306°). (B) Reconstructed orientation distribution maps from 15 fed flies in response to food odor (left), 16 starved flies in response to food odor (middle), or 17 starved flies in response to water vapor (right) during pre-odor (blue), odor (orange), and post-odor (magenta) phases. Orange brackets indicate the positional range of the odor source (∼270°–306°). The percentages of orientation angles derived from flies in the same experimental group and in different odor phases were subjected to statistical analysis (see Methods). Mann-Whitney U test was used to compare the unpaired phases. N.S., not significant. *p < 0.05. (C) Orientation distribution of groups of flies with different internal states (n = 15, 16, and 17 for fed/applied odor, starved/applied odor, and starved/applied water vapor groups, respectively). The orientations of flies were calculated in 10-s time bins. The percentages of orientation distributions of flies in the same group in a given time bin were normalized and shown as heatmap. Orange lines indicate the positional range of the odor source (∼270°–306°). (D) Data were analyzed similar to (C), but only the orientation distribution data in the range between 270° and 306° in (C) were extracted. Each dot represents the normalized frequencies between 270° and 306° of the same group in each time bin. See also Figures S4 and S5. Several factors, such as the genetic background of flies, the concentration of odor, and the speed of odor plume, may influence the results. To optimize the test conditions, we first examined the odor distribution maps of flies from five different genetic backgrounds (Figure S4A). We found that DL wild-type flies have most consistent orientation responses to odor, so we used DL wild-type flies in subsequent experiments. The airflow delivery system for odor or water vapor has two potential effects on fly behavioral responses (Zhou and Wilson, 2012). First, the airflow itself produces shearing forces on flies. Second, the magnitude of airflow determines the dynamics of odor concentration and the delay time for the odor plume to reach the fly. Therefore, we examined the effects of odor delivery at 10, 17, and 22 mL/min on the orientation distributions of flies (Figure S4B). Flies from three experimental groups showed the most differential dynamic responses to odor delivered at 17 mL/min. Therefore, we used an odor delivery flow rate of 17 mL/min for subsequent experiments. To address whether the internal state of a fly would affect its response toward a stimulus, we administered pentanoic acid food odor to either fed or starved DL flies. We found that both groups of flies effectively oriented themselves toward the odor, suggesting they were attracted by the food odor (comparing pre-odor and odor phases, Figure 4B). However, fed and starved flies showed different orientation dynamics across pre-odor, odor, and post-odor phases (Figures 4C and 4D). Starved flies tended to orient themselves toward the odor faster at the initial stage of odor phase; in contrast, fed flies tended to stay oriented toward the odor at late stage of odor phase. A similar response at the initial stage of the odor phase was also observed when water vapor was applied to starved flies (right panel, Figures 4B–4D). Such differences are unlikely to be the result of reduced locomotor activity in starved flies based on control experiments (Figure S5, Methods). These results suggested that starved flies respond more quickly to an environmental cue, no matter whether it is food odor or water. In addition, the same food odor may have different valence to starved and fed flies.

Flies with Different Internal States Exhibit Different Walking Patterns in Response to Environmental Cues

The first feature we extracted from the ball motion, orientation, was sufficient to show that flies with different internal states have distinct response dynamics to the same food odor. We next asked whether flies with different internal states tend to use different walking strategies to explore the environmental cues. In addition, we were interested to know whether flies with similar internal states exhibit different walking patterns in response to different external cues. To delineate these responses, we evaluated three additional features: distance, straightness (derived from displacement and distance), and curl (Figure 5). The dynamic changes in distance suggested that flies tend to walk longer for certain time after encountering food odor, but not water (Figures 5A and 5B). This movement pattern was particularly obvious in starved flies encountering food odor.
Figure 5

Extracting Walking Features of Flies with Different Internal States

(A) A schematic diagram of distance. Distance (black arrow) is the position change along X- and Y-dimensions between two consecutive 10-ms sampling times.

(B) The average of distance in a given 5-s time bin is shown. Each line represents the average distance traversed by a fly in three odor phases, with same color codes as Figure 1D. The black dots and lines show mean ± SD in each time bin.

(C) A schematic diagram of straightness. Straightness was calculated as the displacement (black arrow)/accumulated distance (gray line) in a 5-s time bin.

(D) The dynamics of straightness in three odor phases. The black dots and lines show mean ± SD in each time bin.

(E) A schematic diagram of curl is shown from the bottom view of the ball. Curl was calculated as the rotation of a displacement field at pixels between two consecutive frames as indicated by arrows.

(F) The curl derived from single flies in each 5-s time bin was averaged. The black dots and lines show mean ± SD in each time bin.

(G) Similar to (F) but shows the absolute value of curl, |curl|.

(H) The cross-correlation between the distance and |curl| was tested in the three groups of flies.

(I) The correlation between average of distance and average of curl in each 5-s time bin derived from three groups of flies.

(B, D, E, G, and H) Mann–Whitney U-test was used to assess paired data for time-binned feature distributions during phase switches. *p < 0.05, **p < 0.01, ***p < 0.005; N.S., not significant. See also Figure S6.

Extracting Walking Features of Flies with Different Internal States (A) A schematic diagram of distance. Distance (black arrow) is the position change along X- and Y-dimensions between two consecutive 10-ms sampling times. (B) The average of distance in a given 5-s time bin is shown. Each line represents the average distance traversed by a fly in three odor phases, with same color codes as Figure 1D. The black dots and lines show mean ± SD in each time bin. (C) A schematic diagram of straightness. Straightness was calculated as the displacement (black arrow)/accumulated distance (gray line) in a 5-s time bin. (D) The dynamics of straightness in three odor phases. The black dots and lines show mean ± SD in each time bin. (E) A schematic diagram of curl is shown from the bottom view of the ball. Curl was calculated as the rotation of a displacement field at pixels between two consecutive frames as indicated by arrows. (F) The curl derived from single flies in each 5-s time bin was averaged. The black dots and lines show mean ± SD in each time bin. (G) Similar to (F) but shows the absolute value of curl, |curl|. (H) The cross-correlation between the distance and |curl| was tested in the three groups of flies. (I) The correlation between average of distance and average of curl in each 5-s time bin derived from three groups of flies. (B, D, E, G, and H) Mann–Whitney U-test was used to assess paired data for time-binned feature distributions during phase switches. *p < 0.05, **p < 0.01, ***p < 0.005; N.S., not significant. See also Figure S6. Straightness is a feature that describes the twists and turns of curves (Figure 5C, Methods) and was calculated in 5-s bins. For a given straightness close to 1, the path traversed by the fly is close to a straight line. More dynamic (changes in) straightness along time represents a higher frequency of a fly's walking trajectory alternating between straight lines and tortuous paths. Immediately upon and during administration of food odor, fed flies tended to travel more in straight line, as evidenced by the slight increase in straightness (Figure 5D). Interestingly, the fed flies exhibited reduced straightness soon after the odor was turned off. In contrast, although starved flies also tended to travel more in straight line when they encountered food odor or water, this trend was sustained when the external cues were turned off (Figure 5D). The rotation of the ball, as evaluated by curl, reflects the behavior of a tethered fly coordinating its six legs to move differentially, rather than walking straight or sideways (Figures 1C and 5E). Notably, curl contains information of magnitude and direction, which includes both positive and negative values that typically cancel each other out when averaged over any appreciable timescale (Figure 5F). Therefore, we focused on only the magnitude, |curl| (Figure 5G). We found that starved flies, but not fed flies, tended to have slightly higher |curl| when they encountered food odor or water (Figure 5G). Interestingly, this trend was only sustained in the post-odor phase for starved flies encountering food odor, but not water vapor. These results collectively suggested that both fed and starved flies tend to walk straighter and/or faster when they encounter environmental cues. Such trends were especially observed in starved flies, which tended to walk much faster when encountering food odor but walked much straighter when encountering water vapor. Interestingly, only starved flies exposed to food odor tended to maintain the walking patterns after the odor was turned off.

The Feature of Ball Rotation Cannot Be Ignored

We next sought to explore how the interplay between distance and curl may reflect the patterns of ball motion and thus fly walking trajectories. We analyzed the cross-correlation between the series of distance and the series of |curl| in 5-s time bins (see Methods). No obvious correlations were found between these two features in any of the three groups for any odor phase (Figure 5H), indicating that |curl| did not shift, either linearly or simultaneously, with changes in distance. To further understand the interaction between |curl| and distance, we examined the correlation between the average and standard deviation of distance and |curl| in each odor signal phase (Figures 5I and S6). The |curl| value (average) and the changes in |curl| (SD) were both strongly correlated to the distance and changes in distance. These results suggested that the feature distance is only correlated to the feature |curl| (ball rotation) over a short time period (a 5-s time bin), but not at every single sampling time (10 ms). When the ball rotates along the roll or pitch axis, curl has high correlation with displacement in the X-Y plane. In contrast, when the ball rotates along the yaw axis, curl does not correlate with the displacements along the x and y axes. Therefore, based on our findings that the ball center shifts during experiments (Figures 3G–3I) and the strong correlation between |curl| and distance (Figure 5I), ball rotation is an indispensable feature when reconstructing walking trajectories from the motion of a ball in treadmill systems.

Revisiting the Random Walk of Control Flies

A random walk is mathematically defined as a path or process that is composed of a succession of consistently random steps. Although the biological definition of “random walk” is less clear, the walking patterns of starved animals under a control environment (without applied cues) are generally described using this term. We may stipulate that flies were under a control environment before the application of food odor or water vapor, which is the pre-odor phase in our experimental sets. Thus, we reasoned that the features we use to characterize trajectories should allow us to describe the biological random walk of flies, and furthermore we expected that flies with different internal states would differentially perform random walks. We therefore compared the pre-odor phase walking features of fed and starved flies (Figures 6A–6D). We found that starved and fed flies did not exhibit differences in accumulated distance, straightness, frequency of normalized distribution of orientation (within 270°–306°), or accumulated |curl| (Figure 6C). The 28 variables extracted from the walking patterns of fed and starved flies were then subjected to principle-component analysis (PCA) to test whether these variables can collectively distinguish between the walking patterns of fed and starved flies (Figures 6D and S7). We did not observe clear separation of the two clusters, suggesting that fed and starved flies may have similar walking patterns when there was no obvious external cue.
Figure 6

Flies with Different Internal States Showed Similar Scale-free Walking Patterns

(A) The reconstructed walking trajectories of fed (left panel, n = 15) or starved (right panel, n = 33) flies in the pre-odor phase. The trajectories are coded blue (start) to black (end) as indicated.

(B) The features of a single fed (left) or a single starved (right) fly.

(C) Accumulated distance, straightness, frequency of normalized distribution of orientation within 270°–306°, and accumulated |curl| of fed and starved flies. The black dots and lines show mean ± SD in each group. Mann-Whitney U test to compare the unpaired phases. N.S., not significant.

(D) Principle-component analysis of 28 features derived from the fed and starved fly walking patterns in the pre-odor phase.

(E) A representative scale-free analysis of a starved fly walking trajectories in the pre-odor phase. Power-scaling ζ was calculated from least-squares linear fitting of the structure functions showing displacements in an increased sampling time on a log-log plot (top). The power-law scaling α was obtained by least-squares linear fitting of the power-scaling ζ against the power q (bottom) (Methods). In this case, the power-law scaling α = 0.73.

(F) The power-law scaling for distance, Δorientation, and Δcurl derived from fed and starved flies in the pre-odor phase.

(G) Representative trials from three flies with different internal states and encountered different environmental cues. The dynamics of three walking features, curl, orientation, and accumulated displacement are shown throughout the three phases. Representative data from flies in the three groups are shown. The odor-phase is indicated by the gray shadow. The y axis shows the value of curl (positive and negative values represent two opposite rotation directions). Orientation is color coded as shown. Scale bar for curl, 0.1.

See also Figures S7 and S8.

Flies with Different Internal States Showed Similar Scale-free Walking Patterns (A) The reconstructed walking trajectories of fed (left panel, n = 15) or starved (right panel, n = 33) flies in the pre-odor phase. The trajectories are coded blue (start) to black (end) as indicated. (B) The features of a single fed (left) or a single starved (right) fly. (C) Accumulated distance, straightness, frequency of normalized distribution of orientation within 270°–306°, and accumulated |curl| of fed and starved flies. The black dots and lines show mean ± SD in each group. Mann-Whitney U test to compare the unpaired phases. N.S., not significant. (D) Principle-component analysis of 28 features derived from the fed and starved fly walking patterns in the pre-odor phase. (E) A representative scale-free analysis of a starved fly walking trajectories in the pre-odor phase. Power-scaling ζ was calculated from least-squares linear fitting of the structure functions showing displacements in an increased sampling time on a log-log plot (top). The power-law scaling α was obtained by least-squares linear fitting of the power-scaling ζ against the power q (bottom) (Methods). In this case, the power-law scaling α = 0.73. (F) The power-law scaling for distance, Δorientation, and Δcurl derived from fed and starved flies in the pre-odor phase. (G) Representative trials from three flies with different internal states and encountered different environmental cues. The dynamics of three walking features, curl, orientation, and accumulated displacement are shown throughout the three phases. Representative data from flies in the three groups are shown. The odor-phase is indicated by the gray shadow. The y axis shows the value of curl (positive and negative values represent two opposite rotation directions). Orientation is color coded as shown. Scale bar for curl, 0.1. See also Figures S7 and S8. Lévy walk and Lévy flight, two types of scale-free behavior, are the best-established analyses to describe the “random walk/flight” of animal search strategies (Rhee et al., 2011, Bartumeus et al., 2005, Reynolds and Frye, 2007). The distribution of velocity patterns for Brownian motion exhibits a normal distribution, whereas that of scale-free movement is not normal; instead, it is characterized by a fat tail or self-similarity (Mörters and Peres, 2010, Clauset et al., 2009). To further address whether flies walked in a scale-free manner or as a random walk without application of external cues, we subjected the features of distance, change of orientation, and change of curl to scale-free analysis (Figures 6E and 6F). This analysis involves calculating the power-law scaling α from the structure functions for displacements over sampling time . When the power-law scaling α < 0.5, the movement of subjects is considered to be odd. When α approximates 0.5, the subject movement is considered to be a random walk. When α > 0.5, the walking patterns are considered to be scale free, as they follow a power-law function (Figure 6E). We found that fed and starved flies both exhibited scale-free patterns for all three tested features (Figure 6F). After calculating orientation, distance, straightness and curl to characterize the walking features of a fly recorded by the treadmill system, we sought to test whether these features are collectively sufficient to identify differential walking strategies. We plotted the changes of orientation and curl along the cumulative distance for each of the three odor signal phases (Figures 6G and S8). Indeed, these features clearly reflected the differential walking patterns or strategies employed by flies with different internal states and encountering different environmental cues.

Discussion

Treadmill systems have been widely employed to monitor animal walking trajectories and to dissect neural mechanisms in subjects that are performing assigned tasks. The most prevalent treadmill systems used for mammals and insects are computer-mouse-mode systems that have the advantage of a fast closed feedback loop but lack focus verification and information about rotation index. To bypass these two issues, we built an easily adapted camera-mode treadmill system and identified a set of features that sufficiently describe fly walking trajectories. We further demonstrated the power of this system by decoding the differential walking strategies that reflect the internal states of animals. The major difference in output between our system and those equipped with two-chip sensors is that the yaw, pitch, and roll of ball motion are derived from the X and Y displacements, respectively, detected by two chips in those mouse-mode treadmills, but ours directly measures the rotation and curl of ball motion. Moreover, unlike previous camera-mode treadmill, a pre-established ball pattern model is not required by our system. Importantly, the system described here can also be scaled up for application to other animal species.

The Camera-Mode Treadmill System

Our camera-mode treadmill system has several advantages. First, the float mount is equipped with four airflow inlets to support the ball, which largely eliminated the frequent problem of air turbulence when using a single airflow inlet; thus, our system is amenable to long-term recording. Second, camera-based video recording combined with frame-by-frame signal translation by optical flow allows for verification of reconstructed trajectories. Third, a set of features, including curl from ball rotation, effectively describes the trajectory patterns. In addition, the estimation of odor arrival delay time with a PID improves the accuracy of measuring dynamic trajectory pattern responses to odor administration. We assembled a set of features to describe the reconstructed walking trajectories: distance, straightness, orientation, and curl (Figures 4 and 5). These four features have enough power to describe the different walking patterns of flies with different internal states and encountering different external cues. Most importantly, we found that curl is highly correlated with distance, which means that this parameter is indispensable when analyzing X- and Y-displacement (also see below discussion) (Figures 5I and S6). Distance and straightness are the products of ball motion along an X-Y plane, whereas |curl| is derived from the rotation of the ball. All these three features collaboratively reflect the movement of a fly. Accordingly, we may further envision the combination of standard deviation of curl and the average of displacement as the product of fly walking speed. Therefore, our results suggest that the faster a fly walks on the ball, the more dynamic (variable) the ball rotation is. Our findings further support the idea that curl can serve as a biologically meaningful feature of fly walking behavior that can be measured by treadmill systems. Specifically, when curl is calculated over a very short sampling time (e.g., millisecond scale), it may reflect changes in fly stepping patterns. On the other hand, when the sample time is on the scale of seconds, curl may instead reflect effects on guidance strategies.

Ball Rotation and Curl

The computer-mouse-mode treadmill systems used for flies, mice, and rats lack the capacity to detect ball rotation and/or shift of the rotation center. It is not clear how this information deficit may affect the reconstructed walking trajectories. However, using our camera-mode treadmill system, we found the ball rotation centers frequently shifted during experimental phases (Figures 2D, 2E, and 3G–3I). Such rotation center drift demonstrated that the ball often switched its rotation along yaw, roll, or pitch axes. Therefore, reconstructing the trajectories through two orthogonally aligned mouse cameras may result in under- or over-estimated distances. To better understand the relationship between ball rotation and reconstructed distance, we calculated curl to quantify ball rotation along time. We found that the average and standard deviation of |curl| are highly correlated with the average and standard deviation of distance (Figures 5I and S6). Therefore, the ball rotation feature cannot be ignored when reconstructing animal walking trajectories.

Internal State-Dependent Walking Strategies

A growing body of evidence has demonstrated that inner conditions and past experiences contribute to motivation and decision-making mechanisms that guide animal behavior in response to environmental cues (Kim and Dickinson, 2017, Rengarajan et al., 2019, Jennings et al., 2019). Flies in different physical conditions may have different motivation levels and sensitivity to environmental cues, depending on the correspondence between these cues and their internal states. We therefore applied either food odor or water vapor to fed or starved flies and monitored their walking trajectories during different odor phases to test the performance of the four features of trajectory that we analyzed. Starved flies oriented themselves toward the external cues more quickly than fed flies, irrespective of whether the cue was food odor or water vapor (Figures 4C and 4D). This result implies that starved flies may be more attentive to environmental cues than fed flies. Interestingly, as soon as the food odor was turned off, fed flies immediately returned to walking patterns with shorter distance or lower speed, whereas starved flies continued to walk with longer distance or higher speed (Figure 5B). Differential post-odor behaviors were also found in the average of |curl| for starved flies. When the odor supply was turned off, starved flies experiencing food odor maintained the higher average of |curl|, whereas in starved flies experiencing water vapor, this feature immediately dropped to a level similar to that in the pre-odor phase (Figure 5G). These results suggest that starved and fed flies exhibit different post-experience behaviors. Because the PCA did not show obvious clustering of different experimental groups or odor phases, it may be that 28 walking variables are not sufficient to discriminate groups or phases in the eigenspace. This insufficiency could result from minor differences in walking features among the test subjects. Collectively, the four features of rotation, distance, straightness, and curl have enough power to distinguish the internal status-dependent behaviors both during and after the administration of cues.

Random Walk Revisited

Starved flies have been broadly used as controls in many experimental paradigms; however, this internal state clearly biases the decision making that determines walking patterns. We therefore revisited the idea that control flies perform a random walk. We did not observe significant differences between fed and starved flies in any examined baseline features or analyses (Figure 6). Thus, our results offer support to the notion that fed and starved flies do not show significant differences in walking patterns when there is no obvious external cue. However, we cannot exclude the possibility that the analytic tools used in this work do not have sufficient power to identify subtle differences. The fundamental difference between Brownian motion and scale-free movement is in the distribution of velocity patterns: Brownian motion has a normal distribution, whereas scale-free motion has a non-normal distribution. Moreover, scale-free movement may exhibit strong correlation between events along time, which is not a feature of Brownian motion. Therefore, such scale-free walking trajectories may reflect the existence of a “mind” or “thinking” (Raichlen et al., 2014). Interestingly, we noticed that the correlation between |curl| and distance existed over short time periods (Figures 5I and S6) and not at every single sampling time (Figure 5H). This observation indicated that the correlation was not derived from simultaneous fluctuations of distance and |curl| but from their global tendencies. In the future, it will be interesting to explore possible relationship between the global tendencies of distance and |curl| and the event correlation properties of scale-free movement.

Limitations of the Study

Although the current camera-mode treadmill system solves some problems with computer-mouse-mode treadmill systems, the build reported herein did not offer fast-enough feedback signals to reconstruct trajectories in real time. In the future, faster frame capture and transmission may overcome this limitation. In addition, we did not simultaneously record the gait or movements of the six legs on each tested fly while it was walking on the ball. This lack of information made correlating the individual features of ball motion to any aspect of fly movement infeasible. In the future, simultaneous recording of the fly and the ball (Kain et al., 2013) will solve this issue.

Methods

All methods can be found in the accompanying Transparent Methods supplemental file.
  40 in total

1.  Female contact activates male-specific interneurons that trigger stereotypic courtship behavior in Drosophila.

Authors:  Soh Kohatsu; Masayuki Koganezawa; Daisuke Yamamoto
Journal:  Neuron       Date:  2011-02-10       Impact factor: 17.173

2.  Visual Projection Neurons Mediating Directed Courtship in Drosophila.

Authors:  Inês M A Ribeiro; Michael Drews; Armin Bahl; Christian Machacek; Alexander Borst; Barry J Dickson
Journal:  Cell       Date:  2018-07-19       Impact factor: 41.582

3.  Transduction in Drosophila olfactory receptor neurons is invariant to air speed.

Authors:  Yi Zhou; Rachel I Wilson
Journal:  J Neurophysiol       Date:  2012-07-18       Impact factor: 2.714

4.  Elementary sensory-motor transformations underlying olfactory navigation in walking fruit-flies.

Authors:  Efrén Álvarez-Salvado; Angela M Licata; Erin G Connor; Margaret K McHugh; Benjamin Mn King; Nicholas Stavropoulos; Jonathan D Victor; John P Crimaldi; Katherine I Nagel
Journal:  Elife       Date:  2018-08-21       Impact factor: 8.140

5.  FicTrac: a visual method for tracking spherical motion and generating fictive animal paths.

Authors:  Richard J D Moore; Gavin J Taylor; Angelique C Paulk; Thomas Pearson; Bruno van Swinderen; Mandyam V Srinivasan
Journal:  J Neurosci Methods       Date:  2014-02-01       Impact factor: 2.390

6.  Free-flight odor tracking in Drosophila is consistent with an optimal intermittent scale-free search.

Authors:  Andy M Reynolds; Mark A Frye
Journal:  PLoS One       Date:  2007-04-04       Impact factor: 3.240

7.  Select Drosophila glomeruli mediate innate olfactory attraction and aversion.

Authors:  Julia L Semmelhack; Jing W Wang
Journal:  Nature       Date:  2009-04-26       Impact factor: 49.962

8.  Intracellular dynamics of hippocampal place cells during virtual navigation.

Authors:  Christopher D Harvey; Forrest Collman; Daniel A Dombeck; David W Tank
Journal:  Nature       Date:  2009-10-15       Impact factor: 49.962

9.  Leg-tracking and automated behavioural classification in Drosophila.

Authors:  Jamey Kain; Chris Stokes; Quentin Gaudry; Xiangzhi Song; James Foley; Rachel Wilson; Benjamin de Bivort
Journal:  Nat Commun       Date:  2013       Impact factor: 14.919

10.  An olfactory virtual reality system for mice.

Authors:  Brad A Radvansky; Daniel A Dombeck
Journal:  Nat Commun       Date:  2018-02-26       Impact factor: 14.919

View more
  1 in total

1.  Drosophila females receive male substrate-borne signals through specific leg neurons during courtship.

Authors:  Eleanor G Z McKelvey; James P Gyles; Kyle Michie; Violeta Barquín Pancorbo; Louisa Sober; Laura E Kruszewski; Alice Chan; Caroline C G Fabre
Journal:  Curr Biol       Date:  2021-06-25       Impact factor: 10.900

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.