Skip to main content
eLife logoLink to eLife
. 2016 Oct 22;5:e19920. doi: 10.7554/eLife.19920

Internal states drive nutrient homeostasis by modulating exploration-exploitation trade-off

Verónica María Corrales-Carvajal 1,2, Aldo A Faisal 2,3,4, Carlos Ribeiro 1,*
Editor: Iain D Couzin5
PMCID: PMC5108593  PMID: 27770569

Abstract

Internal states can profoundly alter the behavior of animals. A quantitative understanding of the behavioral changes upon metabolic challenges is key to a mechanistic dissection of how animals maintain nutritional homeostasis. We used an automated video tracking setup to characterize how amino acid and reproductive states interact to shape exploitation and exploration decisions taken by adult Drosophila melanogaster. We find that these two states have specific effects on the decisions to stop at and leave proteinaceous food patches. Furthermore, the internal nutrient state defines the exploration-exploitation trade-off: nutrient-deprived flies focus on specific patches while satiated flies explore more globally. Finally, we show that olfaction mediates the efficient recognition of yeast as an appropriate protein source in mated females and that octopamine is specifically required to mediate homeostatic postmating responses without affecting internal nutrient sensing. Internal states therefore modulate specific aspects of exploitation and exploration to change nutrient selection.

DOI: http://dx.doi.org/10.7554/eLife.19920.001

Research Organism: D. melanogaster

eLife digest

When making decisions, animals, including humans, do not always choose the same option. One reason for this is that their “internal state” changes the value of different options. This is particularly evident when deciding what type of food to eat. Depending on which nutrients the animal needs, it will choose to eat different foods.

Amino acids are key nutrients that affect health, lifespan and reproduction. Female fruit flies that have recently mated, for example, eat more amino acids in order to obtain the raw materials required to produce eggs. Despite the importance of amino acids, little was known about how animal behavior changes in response to a lack of this nutrient.

Corrales-Carvajal et al. used a video tracking system to measure the time that fruit flies – some of which had a need for amino acids – spent feeding on patches of yeast (which are rich in amino acids) versus patches of sucrose. Recently mated females – and virgins that had been fed a diet lacking in amino acids – consumed more yeast than sucrose, whereas virgin females that were not amino acid deficient showed the opposite pattern. To bias the fly toward eating the right food for their needs, several aspects of the fly’s behavior changed, including the number and length of individual feeding bouts. These different behaviors did not all change at the same time.

The pattern of exploration taken by the flies also depended on their need for amino acids. Amino acid deficient flies spent most of their time near known yeast patches. By contrast, fully fed flies adopted a riskier foraging strategy, moving away from known sources of food to explore their environment more widely. In common with humans, the flies relied upon their sense of smell to efficiently identify different types of food.

Overall, the results presented by Corrales-Carvajal et al. provide us with a detailed understanding about how changes to the internal state of the fly affect its behavior. The next step will be to use the powerful genetic tools available for studying fruit flies to reveal the neural circuits and molecular mechanisms that help animals find the types of food that they need.

DOI: http://dx.doi.org/10.7554/eLife.19920.002

Introduction

Nutrition is key for optimizing the evolutionary fitness of animals. Accordingly, many organisms are able to select the nutrients that fulfill their current needs. Recent work has highlighted the importance of the balance of dietary carbohydrates and proteins/amino acids (AAs) for overall mortality, fecundity and lifespan in most species (Fontana and Partridge, 2015) ranging from Drosophila (Grandison et al., 2009; Lee et al., 2008; Skorupa et al., 2008) to rodents (Solon-Biet et al., 2014, 2015) and humans (Levine et al., 2014). The emerging picture is that there is a trade-off between reproduction and longevity driven by the protein-to-carbohydrate ratio in the diet: a low ratio extends lifespan but reduces reproductive output, while a high ratio reduces lifespan but promotes offspring production (Simpson et al., 2015). The mechanisms by which the brain shapes behavioral output during dietary balancing to solve this ethologically relevant trade-off are still largely unknown.

Significant advances have been made in our understanding of the neural circuitry underlying decision-making (Barron et al., 2015; Lisman, 2015). But we are only beginning to understand how the internal state of an animal dictates the selection of specific actions (Krashes et al., 2009; Sternson, 2013). This question becomes particularly relevant in value-based decision making, such as nutrient balancing, where the value of the available options is dependent on the current needs of the animal (Itskov and Ribeiro, 2013; Ribeiro and Dickson, 2010; Simpson and Raubenheimer, 2012). Thus, the behavioral strategies animals use to adapt nutrient decisions to their internal states provide an ethologically relevant framework to understand how internal states change behavior to mediate value-based decisions.

The fly has emerged as an important model to study complex computational tasks due to the availability of sophisticated genetic tools (Luo et al., 2008; Olsen and Wilson, 2008), a numerically simple nervous system, and the advent of methods to quantitatively characterize behavior. Advanced computational tools have been applied successfully in Drosophila to study for example chemotaxis (Gomez-Marin et al., 2011; van Breugel and Dickinson, 2014), action mapping (Berman et al., 2014), aggression and courtship (Coen et al., 2016; Dankert et al., 2009), fly-fly interactions (Branson et al., 2009; Schneider et al., 2012), and predator avoidance (Muijres et al., 2014). This recent quantitative approach to behavioral analysis has given rise to the field of computational ethology: the use of computerized tools to measure behavior automatically, to characterize and describe it quantitatively, and to explore patterns which can explain the principles governing it (Anderson and Perona, 2014). When combined with powerful genetic approaches (Bath et al., 2014; Ohyama et al., 2015) the fine description of behavior afforded by these methods will allow us to make significant steps forward in our understanding of the neuronal circuits and molecular pathways that mediate behavior.

Flies can detect and behaviorally compensate for the lack or imbalance of proteins and amino acids in the food (Bjordal et al., 2014; Ribeiro and Dickson, 2010; Vargas et al., 2010) and adapt their salt and protein intake to their current mating state (Walker et al., 2015). The current nutrient state is thought to be read out directly by the nervous system through the action of nutrient-sensitive mechanisms such as the TOR and GCN2 pathways (Bjordal et al., 2014; Chantranupong et al., 2015; Ribeiro and Dickson, 2010). Mating acts on salt and yeast appetite via the action of male-derived Sex Peptide acting on the Sex Peptide Receptor in female reproductive tract neurons, and the resultant silencing of downstream SAG neurons (Feng et al., 2014; Ribeiro and Dickson, 2010; Walker et al., 2015). SAG neurons have been proposed to then change chemosensory processing to modify nutrient intake (Walker et al., 2015). The recent development of technologies that can measure the flies’ feeding behavior quantitatively (Itskov et al., 2014; Ro et al., 2014; Yapici et al., 2016) gives access to the fine structure of the feeding program, and how flies homeostatically modulate this program according to their internal state. However, the further structure of foraging decisions, such as arriving at or leaving a specific food patch, and how flies balance the trade-off between exploiting a needed nutrient resource and exploring the surrounding environment to discover new resources, is still poorly understood. Understanding how internal states change the behavioral strategies of an animal should allow us to understand how the animal manages to maintain nutrient homeostasis.

Here, we developed a quantitative value-based decision making paradigm to study the foraging strategies implemented by adult Drosophila melanogaster to reach protein homeostasis. We use an automated video tracking setup to characterize the exploitation and exploration of sucrose and yeast patches by flies in different dietary amino acid and mating states. We found that metabolic state and mating modulate the decisions to stop at a yeast patch and leave it. Furthermore, we describe how the internal deficit of dietary amino acids increases exploitation of proteinaceous patches and restricts global exploration and how these behaviors dynamically shift towards increasing exploration as the fly reaches satiation. Importantly, we provide two examples on how our paradigm can be used in the dissection of the genetic and neuronal mechanisms underlying nutrient decisions: First, we show that olfaction is not required to reach protein homeostasis, but that it mediates the efficient recognition of yeast as an appropriate food source in mated females. Second, we show that octopamine mediates homeostatic postmating responses, but not the effects of internal sensing of amino acid deprivation state. Our study provides a quantitative description of how the fly changes behavioral decisions to achieve homeostatic nutrient balancing as well as initial insights into the mechanisms underlying protein homeostasis.

Results

Automated monitoring of nutrient choices using image-based tracking

Animals are able to adapt their feeding preference towards a particular food in response to their current needs (Dethier, 1976; Griffioen-Roose et al., 2012; Itskov and Ribeiro, 2013; Warwick et al., 2009). However, the behavioral strategies used by animals to make feeding decisions according to their internal state are currently largely unknown. To capture how flies decide what food to eat, we built an automated image-based tracking setup (Figure 1A) that captures the position of a single Drosophila melanogaster in a foraging arena (Figure 1B) containing 9 yeast patches (amino acid source) and 9 sucrose patches (carbohydrate source) of equal concentration.

Figure 1. Automated monitoring of nutrient choices using image-based tracking.

(A) Schematic of the image-based tracking setup. (B) Schematic of the foraging arena, containing an inner flat circular area with 9 sucrose (carbohydrate source) and 9 yeast (amino acid source) patches. All patches had a concentration of 180 g/L of the corresponding substrate. Each food patch has an approximate diameter of 3 mm which is approximately the body length of the experimental flies. (C) Example of the kinematic parameters and behavior classification associated to the representative trajectory shown in (D). Dashed gray horizontal lines indicate the thresholds used for behavior classification, definition of yeast and sucrose micromovements and food patch visits (see materials and methods). Dashed orange rectangle marks the beginning and end of the yeast visit (see inset in D). The different colors in the ethogram correspond to the behaviors labeled with the same color in (D). (D) Representative trajectory of a fly walking in the arena. Filled circles represent food patches. Gray and colored trajectories correspond to head and body centroid position, respectively. Small arrows in between both trajectories indicate body orientation. The color code for the different behaviors is indicated by the colored labels. Inset: a yeast visit is defined as a group of consecutive yeast micromovements, in which the head distance to the center of the food patch was never >5 mm (gray dashed line in the main trajectory). (E,G) Total duration of yeast and sucrose micromovements for virgin, n = 15 (E) and mated, n = 26 (G) female flies fed with the AA+ rich diet. (F,H) Distribution of yeast and sucrose micromovement durations for virgin (F) and mated (H) female flies fed with the rich diet. Bin size: 2.2 s. *p<0.05, ***p<0.001, significance was tested by Wilcoxon rank-sum test. In panels E and G and in the following figures in which boxplots are used, the black line represents the median, colored boxes represent inter-quartile range (IQR) and gray dots represent the value of the y-axis parameter for single flies.

DOI: http://dx.doi.org/10.7554/eLife.19920.003

Figure 1.

Figure 1—figure supplement 1. Ground-truthing of behavior.

Figure 1—figure supplement 1.

(A) Normalized histogram of head speed of amino acid-deprived mated females (AA- diet) from two independent video tracking experiments: orange lines represent data obtained from an assay in which the arena contained 9 yeast and 9 sucrose patches; black lines represent data obtained from an assay in which the arena contained 18 agarose patches (no food). For each experiment, the speed was calculated for periods inside and outside food patches. Vertical dashed gray lines in main panel and insets indicate the speed thresholds used to classify resting (0–0.2 mm/s), micromovement (0.2–2 mm/s) and walking (>2 mm/s). Insets are a zoom-in of the indicated regions of the main histogram. Black and orange lines indicate mean and shaded area s.e.m. (B) Normalized histogram of the head speed displayed during manually annotated behaviors. Time indicates the total length of the scored behaviors. (C) Proportion of manually annotated behaviors observed during yeast (left) or sucrose (right) micromovements. (D) Cumulative histogram of head positions during the first annotated proboscis extension in a yeast patch.

The distribution of the food patches was designed to promote frequent encounters with food sources, such that nutritional decisions, rather than food finding, determine the fly’s food exploitation strategies. We recorded the behavior of the fly over two hours during these nutritional decisions, and developed custom software to track the position of the fly’s body and head centroids (all tracking data generated in this study are available for download from the Dryad repository [Corrales-Carvajal et al., 2016]). We then extracted multiple kinematic parameters (see Materials and methods for detailed list) and computed the locomotor activity and the distance of the fly from each food patch during the whole duration of the assay (Figure 1C and D and Video 1). Upon a detailed analysis of the distribution of head speeds when the flies were inside or outside food patches (Figure 1—figure supplement 1A) we decided to use two speed thresholds to split the locomotor activity of the flies into three types: resting (speed ≤ 0.2 mm/s), micromovement (0.2 mm/s < speed ≤ 2 mm/s) and walking (speed > 2 mm/s). Furthermore, slow walking bouts (2 mm/s < speed < 4 mm/s) that were coupled with a rapid change in angular speed were defined as sharp turns (2 mm/s < speed < 4 mm/s and |angular speed| ≥ 125°/s) (Figure 1C and D).

Video 1. Behavior classification during nutrient decisions.

Download video file (3.4MB, mp4)
DOI: 10.7554/eLife.19920.005

A 20-s-segment of the trajectory depicted in Figure 1C–D, starting on second 40 and following the same color code. The first 7 s of the video are slowed-down 0.5 x, as indicated by the white label at the top right corner of the video frame with the fly.

DOI: http://dx.doi.org/10.7554/eLife.19920.005

To characterize the behaviors that occur during these defined locomotor activity types, we manually annotated resting, feeding, grooming and walking events and assigned them to the corresponding speed profiles. In agreement with previous studies (Martin, 2004; Robie et al., 2010; Zou et al., 2011), we found that more than 80% of the speeds displayed during manually annotated resting or walking periods were below 0.2 mm/s or above 2 mm/s, respectively (Figure 1—figure supplement 1B). Furthermore, we reasoned that micromovements could correspond to either grooming or feeding. Indeed, 70% of grooming fell in the micromovement category; while for manually-annotated feeding bouts, half of these periods were categorized as micromovements, the other half occurred at low speeds and were thus classified as resting. However, flies showed a very low rate of proboscis extension during feeding bouts at <0.2 mm/s (data not shown) and we therefore reasoned that these slow bouts had little contribution to the amount of food ingested. For this reason, we decided to use the time the fly was performing micromovements when its head was in contact with the food patch as a proxy for the time the fly spent feeding (henceforth termed yeast micromovements or sucrose micromovements). To strengthen the argument that these micromovement periods within a food patch represented mostly feeding bouts and not grooming, we used the annotated video segments to quantify the percentage of feeding and grooming during a food micromovement bout. Indeed, we observed that 92.2% of the yeast micromovements and 70.6% of the sucrose micromovements corresponded to feeding bouts (Figure 1—figure supplement 1C). Hence sucrose and yeast micromovements are a good way to capture the periods the fly spends feeding on a food patch.

To start exploring how flies with different internal states react to the different foods, we used this metric to characterize the behavior of virgin and mated females that were previously fed a rich diet. Virgin flies displayed a preference for sucrose over yeast over the total time of the assay, while the opposite was observed in mated females (Figure 1E and G). A closer look at the duration of micromovements on the two food sources, revealed very similar duration profiles between yeast and sucrose for virgin females, while a higher prevalence of long events (≥20 s) on yeast when compared to sucrose was observed in mated flies (Figure 1F and H). These results suggest that for mated females, yeast has a higher salience as food source, even in fully-fed conditions. These observations are in accord with previous reports showing that mating leads to a switch in yeast preference in flies (Ribeiro and Dickson, 2010; Vargas et al., 2010; Walker et al., 2015). Thus, the analysis of food micromovements allows us to capture previously-described changes in food preference elicited by mating. Furthermore, these results demonstrate that one way in which mating increases yeast preference is by inducing long feeding bouts, allowing us to make first conclusions about the behavioral mechanisms behind changes in food choice.

Flies increase yeast feeding and micromovements in response to amino acid challenges and mating

A key question in nutritional neuroscience is how animals homeostatically compensate for the lack of specific nutrients (Dethier, 1976; Itskov and Ribeiro, 2013; Simpson and Raubenheimer, 2012). A concrete example of this homeostatic regulation of feeding behavior is the robust increase in preference for yeast when flies are deprived of proteinaceous food (Ribeiro and Dickson, 2010; Vargas et al., 2010). To study the behavioral strategies underlying nutritional homeostasis, we manipulated the metabolic state of the flies by letting them feed ad libitum on a chemically defined (holidic) medium (Piper et al., 2013) during three days prior to the foraging assay. This holidic medium allows us to specifically manipulate amino acids (AA) in the diet, leaving the other macronutrients and micronutrients intact. Previous work has identified three different AA compositions having different impacts on reproduction in mated females: AA+ rich (supporting a high rate of egg laying), AA+ suboptimal (supporting a lower rate of egg laying) and AA- (leading to a dramatic reduction in egg laying) (Piper et al., 2013; Figure 2A). Furthermore, to better understand how internal metabolic state and mating state interact at the behavioral level we also analyzed virgin females pre-fed these different diets.

Figure 2. Flies increase yeast feeding and micromovements in response to amino acid challenges and mating.

(A) Graphical representation of the five internal states tested and the resulting reproductive output as reported by Piper et al. (2013), all flies were pre-fed during three days with the indicated holidic medium: (i) Virgin AA+ rich, (ii) Virgin AA+, (iii) Mated AA+ rich, (iv) Mated AA+ suboptimal, (v) Mated AA−. (B) Effect of internal states on the total number of yeast sips obtained using flyPAD assay (n = 32–43). (C) Effect of internal states on the total duration of yeast micromovements obtained from the video tracking assay (n = 15–35). (D) Behaviors displayed by single flies in the five internal states indicated in (A), during the video tracking assay. Each row represents the ethogram of a single fly, following the same color code used in Figure 1D. Yellow: yeast micromovements. Black: sucrose micromovements. Pink: micromovements outside the food patches. Blue: walking bouts. Gray: resting bouts. Green: sharp turns. (E) Dynamics of yeast micromovements quantified as the cumulative duration of yeast micromovements. Gray lines correspond to single flies. Thick colored lines indicate median. *p<0.05, **p<0.01, ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

DOI: http://dx.doi.org/10.7554/eLife.19920.006

Figure 2.

Figure 2—figure supplement 1. flyPAD setup, sucrose sips and yeast sips dynamics.

Figure 2—figure supplement 1.

(A) Schematic of flyPAD arena, adapted from (Itskov et al., 2014). (B) Effect of internal states on the number of sucrose sips. Experimental groups are: Virgin (open circles) and mated (closed circles) females pre-fed three types of holidic media: AA+ rich, AA+ suboptimal and AA−. The concentration of yeast and sucrose in the food patches was the same used in the video tracking assay. (C) Cumulative number of yeast sips of flies in the five internal state conditions indicated. Line represents the mean and the shading the s.e.m.
Figure 2—figure supplement 2. Sucrose micromovements.

Figure 2—figure supplement 2.

Effect of internal states on the total duration of sucrose micromovements obtained from the video tracking assay.
Figure 2—figure supplement 3. Fraction of yeast non-eaters and coefficient of variation for yeast micromovements.

Figure 2—figure supplement 3.

(A) Effect of internal states on the proportion of yeast non-eaters. A yeast non-eater is a fly for which the total duration of yeast visits was lower than 1 min. Significance was tested by a 2 x 2 Fischer’s exact test using the modified Wald method (Agresti and Coull, 1998) with Bonferroni correction. (B) Effect of internal states on the coefficient of variation (CV) for yeast micromovements (CV = SD/mean).

To quantify the microstructure of the feeding behavior of flies with different internal states, we used the flyPAD technology (Figure 2—figure supplement 1A), which allowed us to decompose the feeding motor pattern into 'sips' (Itskov et al., 2014). As the number of sips correlates strongly with food intake, this method enabled us to precisely measure the impact of internal states on feeding decisions. Consistent with previous observations (Ribeiro and Dickson, 2010; Vargas et al., 2010; Walker et al., 2015) (Figure 1E), virgin flies showed very little interest in yeast during the whole assay, as measured by the total number of yeast sips (Figure 2Bi). Yeast feeding increased with AA deprivation (Figure 2Bii), and mating (Figure 2Biii). Notably, AA-challenged mated females showed a strong increase in the number of yeast sips (Figure 2Biv and v) with the highest rate of yeast feeding in mated flies completely deprived of AAs (Figure 2Bv). We next asked whether these differences in feeding behavior could be captured using the yeast and sucrose micromovements measured using the tracking setup. Indeed, we observed that the yeast micromovements increased in the same way as the yeast sips after AA challenges in virgin and mated females (Figure 2C).

Importantly none of these internal state changes led to an increase in the total number of sucrose sips (Figure 2—figure supplement 1B) or in the total duration of sucrose micromovements (Figure 2—figure supplement 2), highlighting the dietary specificity of the manipulation and allowing us to focus our subsequent analysis on the fly’s behavior towards yeast patches. Flies are therefore capable of sensing deficits in AAs and of compensating by specifically increasing feeding and micromovements on yeast, an AA-rich substrate. Furthermore, this homeostatic response is modulated by the mating state of the fly. Our tracking approach is therefore now a validated strategy to uncover the changes in behavioral strategies elicited by different internal states and how these changes allow the animal to reach homeostasis.

Flies show high inter-individual variability in the response to yeast

We investigated the dynamics of yeast micromovements by comparing the ethogram of each individual fly along the two hours of the assay and across all the internal state conditions tested (Figure 2D, yeast micromovements are shown in yellow). This type of visualization revealed that the behavior towards yeast was highly variable. The observed increase in the total duration of yeast micromovements across the different internal state conditions seems to come from the combination of two factors: on one hand, the proportion of flies that showed any interest in yeast at all (Figure 2—figure supplement 3A) and on the other hand, the strength of the interest displayed by these flies, measured by the total duration of yeast micromovements. The behavior towards yeast was also highly variable across individuals of the same condition. For example, the total duration of yeast micromovements displayed by AA-deprived flies ranged from 5 to 59 min. Still, the initial steep increase in yeast micromovements during the first 30 min of the assay was very consistent (Figure 2Ev and Figure 2—figure supplement 1C). Overall, the variability increased as a function of deprivation (Figure 2—figure supplement 3B). The reaction to internal state changes is therefore highly variable across individuals. However, full AA deprivation in mated females leads to a robust population-wide effect, highlighting the importance of AAs for the animal.

Metabolic state and mating modulate the probability of stopping at a yeast patch and leaving it

To feed, flies need to stay on food patches. We decided to call these events visits (Figure 1C and inset in Figure 1D). A visit is defined as all consecutive bouts of micromovements on the same patch, for as long as the fly stayed in close proximity of the patch. As we observed in the total duration of yeast micromovements, the total duration of yeast visits increased as a result of mating and AA deprivation (Figure 3A). Therefore, we hypothesized that the fly increases yeast intake by changing different aspects of its foraging decisions, such as approaching a patch more often, stopping at it more and/or leaving it less often. We measured approaching, stopping and leaving decisions by quantifying the number of encounters, the fraction of encounters in which the fly stops on a patch (visits) and the duration of visits, respectively. One easy way to increase the total time on yeast would be to approach yeast patches more often. However, none of the internal state modifications leading to an increase in yeast intake caused an increase in the total number of yeast encounters (Figure 3—figure supplement 1A). Furthermore, the rate of encounters remains constant across internal states, with the exception of the mated fully AA-deprived females (Figure 3B), which had a low absolute number of encounters (Figure 3—figure supplement 1A). To explain the behavioral changes underlying homeostasis, we focused on the decision to stop at a yeast patch (Figure 3C) and leave it (Figure 3D).

Figure 3. Metabolic state and mating modulate the probability of stopping at a yeast patch and leaving it.

(A) Effect of internal states on the total duration of yeast visits. Experimental groups are the ones shown in Figure 2: Mated (filled circles) and virgin (open circles) females pre-fed three types of holidic media: AA+ rich, AA+ suboptimal and AA−. (B) Effect of internal states on the decision to approach a yeast patch quantified as the number of yeast encounters per minute of walking outside the food patches (rate of yeast encounters). (C) Effect of internal states on the decision to stop at a yeast patch quantified as the fraction of yeast encounters in which the fly stopped at the yeast patch. (D) Effect of internal states in the decision to leave a yeast patch quantified as the average duration of yeast visits. (E) Combination of foraging strategies (total number of visits in x-axis and average duration of those visits in y-axis) to reach different total durations of yeast visits (green to blue lines), for individual AA-challenged mated flies: pre-fed either a suboptimal diet (yellow circles) or an AA- diet (red circles). ns, not significant (p≥0.05), *p<0.05, **p<0.01, ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

DOI: http://dx.doi.org/10.7554/eLife.19920.010

Figure 3.

Figure 3—figure supplement 1. Yeast encounters and probability of leaving.

Figure 3—figure supplement 1.

(A) Effect of internal states on the absolute number of yeast encounters. (B) Complementary cumulative distribution function for yeast visit durations. Single dots represent one yeast visit. All yeast visits belonging to all animals of the same internal state condition were pooled, ranked and plotted in the same color as indicated in (Clauset et al., 2009).

We found that in virgins, AA deprivation had a specific effect as it only modulated the decision to leave a patch, with deprived virgins showing longer visits (Figure 3D and Figure 3—figure supplement 1B). Mating also modulated the decision to leave, as fully-fed mated females took longer to leave a yeast patch than virgins (Figure 3D and Figure 3—figure supplement 1B), and, to a smaller degree, had a higher probability of stopping at a proteinaceous food patch upon encounter (Figure 3C). Surprisingly, pre-feeding mated flies with the suboptimal diet caused a dramatic increase in the probability of stopping at a yeast patch (Figure 3C). The strong effect on the decision to stop shows that flies are able to homeostatically modify their behavior in response to even subtle dietary differences that have a negative impact on their fitness (Piper et al., 2013). This is even more striking considering that the removal of all AAs does not lead to further changes in the stopping and leaving decisions, despite its drastic impact on egg production and yeast feeding (Figure 2).

We showed above that there is considerable variability across individuals in their behavioral response towards yeast. This was also the case for the strategies each mated fly chose to compensate for both AA challenges. We observed that these flies reached the same total times on yeast by mixing strategies in different ways: some flies had fewer but longer visits, while others had a higher number of visits, but each visit was shorter (Figure 3E). Taken together, these data show that both metabolic and mating states significantly change the decisions to stop at a yeast patch and leave it. Furthermore, the strongest effect is observed when both states act together, as seen in AA-challenged mated females. The specific behavioral strategy each fly employs to reach homeostasis, however, varies widely.

The lack of dietary AAs increases exploitation and local exploration of yeast patches

We have shown that AA deprivation leads to a 1.6-fold increase in yeast feeding when compared to the suboptimal diet treatment (Figure 2B). Surprisingly, however, a change of this magnitude is not visible in the total duration of the yeast visits (Figure 3A), nor is this homeostatic effect recapitulated in changes in specific foraging decisions (Figure 3). We therefore speculated that instead of modulating exploratory decisions, a lack of AAs could increase the motivation of the flies to exploit the yeast patch. Indeed, the time course of yeast visits (Figure 4A and Figure 4—figure supplement 1A) shows that AA-deprived flies displayed a sharp increase in the total duration of yeast visits during the first minutes, while flies pre-fed a suboptimal AA diet displayed a much more delayed and shallower increase in this parameter. As these early visits were also longer (Figure 4—figure supplement 1B), we measured the time it took each fly to engage in its first 'long' (≥30 s) visit (Figure 4—figure supplement 1C and D), and found that AA-deprived flies indeed attained their first long yeast visit much sooner than flies fed a suboptimal diet (Figure 4B): the median latency for AA-deprived flies was just 4.38 min (IQR = 2.08–7.7), which was three times shorter than the 12.37 min (IQR = 19.87–9.86) observed in flies fed with the suboptimal diet. These results therefore suggest that AA-deprived flies are indeed more motivated to exploit yeast patches.

Figure 4. The lack of dietary AAs increases exploitation and local exploration of yeast patches.

(A) Rolling median of the total duration of yeast visits using a 5 min window and a step of 4 min for flies pre-fed a suboptimal diet (yellow) or AA− diet (red). (B) Effect of AA deprivation on the time elapsed until the fly engages in the first 'long' (≥30 s) yeast visit. (C) Histogram of the x-y relative position of all mated flies pre-fed a suboptimal diet (left) or a AA− diet (right) with respect to the center of the yeast patch (0,0). The pixel color indicates the fraction of time that flies in the indicated condition spent in the corresponding location bin. (D) Effect of AA deprivation on the average minimum distance to the center of the yeast patch, during a yeast visit. (E) Effect of AA deprivation on the average area covered during a yeast visit. (F) Example trajectories of head position during a yeast visit for a fly of the indicated condition. Hot colors indicate higher head speeds. (GJ) Effect of AA deprivation on the locomotor activity of mated flies during yeast visits: (G) average histogram of head speeds, (H) body centroid speed, (I) angular speed and (J) proportion of the indicted behaviors during yeast visits. ns, not significant (p≥0.05), **p<0.01, ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction. Panels B, D, E, HJ compare the indicated parameters between mated flies pre-fed a suboptimal diet (yellow) and mated flies pre-fed an AA− diet (red).

DOI: http://dx.doi.org/10.7554/eLife.19920.012

Figure 4.

Figure 4—figure supplement 1. Yeast visits dynamics and latency.

Figure 4—figure supplement 1.

(A,B) Rolling median of the total duration of yeast visits (A) and average duration of yeast visits (B) using a 5 min window and a step of 4 min for flies fed a AA+ rich diet (purple), AA+ suboptimal diet (yellow), and AA-deprived flies (red). (C,D) Ethograms from Figure 2D showing the latency to engage in the first 'long' (≥30 s) yeast visit for each fly of the indicated condition as a blue dot.
Figure 4—figure supplement 2. No effect in local exploration of yeast patches for flies pre-fed a suboptimal diet.

Figure 4—figure supplement 2.

(A) Effect of AA challenges on the average minimum distance to the center of yeast patches, during a yeast visit. (B) Effect of AA challenges on the body centroid speed, during a yeast visit. (C) Effect of AA challenges on the angular speed, during a yeast visit.
Figure 4—figure supplement 3. Modulation of yeast feeding program microstructure by AA challenges.

Figure 4—figure supplement 3.

(A) Schematic of feeding program microstructure. Two components of the feeding microstructure can be modulated to reach protein homeostasis: the number of sips inside each feeding burst (blue shading) and the inter-burst interval (IBI). (B) Mean inter-burst-interval duration. (C) Mean number of yeast sips inside a feeding burst. (D) Histogram of the inter-sip-interval durations for the indicated internal states. (E) Histogram of the sip durations for the indicated internal states. In D and E the lines represent the mean and the shaded areas the s.e.m.

We next asked if AA deprivation could also induce differences in the way flies behaved on the yeast patches. When we plotted the distribution of the positions of the flies on the proteinaceous food patches, we observed that AA-deprived flies covered the patches more homogeneously than flies kept on a suboptimal diet, which preferred to stay at the edge of the patch Figure 4C). In fact, deprived flies ventured much more into the food patch as quantified by the fact that during a visit, their average minimum distance from the patch center was much smaller (Figure 4D) and that they covered a larger area of the resource (Figure 4E). These data suggest that AA-deprived flies are not only more motivated to start exploiting a yeast patch but are also more active while on the food patch.

This was further supported when we quantified locomotor activity during each visit to yeast. As visible in the two example trajectories displayed in Figure 4F, we observed that deprived flies were more active, displaying higher linear (Figure 4G and H) and angular speeds (Figure 4I). Accordingly, these flies had fewer resting bouts and more sharp turns (Figure 4J). These changes in behavior observed on the food patch were only induced by a complete lack of AAs, as there was no difference in these parameters between mated females pre-fed the rich diet versus those pre-fed the suboptimal diet (Figure 4—figure supplement 2). All these data are in agreement with an increase in yeast exploitation upon full AA deprivation. Flies lacking AAs would be more 'eager' to exploit and therefore ingest yeast, leading to a strong increase in yeast feeding as observed using the flyPAD (Figure 2B).

Animals homeostatically increase food intake upon food deprivation, by changing the micro-structure of their feeding motor pattern (Davis and Smith, 1992; Itskov et al., 2014) (Figure 4—figure supplement 3A). As video tracking does not give us access to the fine structure of the proboscis motor program, we used the flyPAD technology to characterize the changes in the microstructure of feeding upon AA deprivation. Pre-feeding flies a suboptimal diet led to a decrease only in the inter-burst-interval (IBI) when compared to flies kept on a rich diet (Figure 4—figure supplement 3B) while the number of sips in each feeding burst did not change (Figure 4—figure supplement 3C). Full AA deprivation, however, led to a strong increase in the number of sips per burst with only a mild further decrease in the IBI. These effects are very similar to those observed upon mating in yeast-deprived females, which leads to both a decrease in the inter-burst interval and an increase in the number of yeast sips per burst (Walker et al., 2015).

The volume ingested during a feeding bout is a product of the duration of that bout and the feeding rate. Therefore, we analyzed the rhythmic feeding motor pattern and observed that it was only slightly modified by dietary AA levels (Figure 4—figure supplement 3D and E). The mode of the inter-sip-interval distributions decreased from 0.08 s in mated females pre-fed the rich diet to 0.07 s when pre-fed the suboptimal diet (p=0.0045, Wilcoxon rank-sum test with Bonferroni correction), while no further change was observed when they were pre-fed the AA− diet (0.07 s, p=1). However, the mode of the sip duration distributions did not change when mated flies pre-fed a suboptimal diet were compared to females kept on a rich diet (0.12 s, p=0.1196), but it decreased when flies were pre-fed the AA− diet (0.11 s, p=0.0067). Taken together, while AA deprivation has minimal effects on the decision to stop at a proteinaceous food patch and leave it, this metabolic manipulation leads to drastic changes in its exploitation. The described changes in activity are likely to support an increased intake of the yeast resource, which is further promoted by a change in the feeding motor pattern of the fly. The increase in exploitation can also be interpreted as an increase in local, resource-directed exploration which could aid the micro-optimization of food intake within non-homogenous natural food patches.

Amino acid challenges reduce global exploration and increase revisits to the same yeast patch

The data presented above clearly demonstrate that different internal states interact to modulate food exploitation. But what could be the effects of internal states on the exploratory behaviors of flies? In order to capture how far the fly would forage to reach the next yeast patch, we calculated three types of transition probabilities: transitions to the same yeast patch, transitions to adjacent yeast patches, and transitions to distant yeast patches. We found that mated flies fed the rich diet had a high probability of transitioning to distant yeast patches (75%) (Figure 5A and D), and a lower probability of transitioning to adjacent food patches (25%) (Figure 5A and E).

Figure 5. Amino acid challenges reduce global exploration and increases revisits to same yeast patch.

(AC) Effect of internal states on exploratory behavior of mated females pre-fed with an AA rich diet (A), an AA suboptimal diet (B) or an AA− diet (C). Example trajectories show head position during a yeast-yeast transition. Arrows and pie charts indicate the transition probabilities to visit three types of yeast patches: the same (orange), an adjacent one (blue) or a distant one (black). (DF) Comparison of the transition probabilities described in (AC) across the different diet treatments in mated females. (G) Average distance covered during transitions to yeast visits. ns, not significant (p≥0.05), *p<0.05, **p<0.01, ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

DOI: http://dx.doi.org/10.7554/eLife.19920.016

Figure 5.

Figure 5—figure supplement 1. Dynamics of yeast-yeast transitions in single flies.

Figure 5—figure supplement 1.

Ethograms showing the yeast visits for each fly (each row is a single fly) along the 120 min of the video tracking assay, for the indicated condition. Colors indicate if the food patch visited previous to every yeast visit was the same (orange), an adjacent (blue) or a distant one (black). Pie charts indicate the accumulated median transition probabilities by the end of the assay, for the indicated condition (same as Figure 5A–C).

Strikingly, these flies almost never returned to the yeast patch they had just visited (Figure 5A and F). Fully-fed flies therefore display a high rate of global exploratory activity, traveling larger distances during their transitions (Figure 5G) and mainly choosing to visit distant food patches (as in the example trace). Challenging flies with a suboptimal diet (Figure 5B) or one lacking all AAs (Figure 5C) significantly altered their exploratory behavior: they strongly reduced their probability of transitioning to distant yeast patches (Figure 5D) and increased the probability of transitioning to adjacent yeast patches (Figure 5E). Further, in contrast to the fully-fed flies, AA-challenged flies showed a strong increase in their probability of returning to the same yeast patch (Figure 5F and Figure 5—figure supplement 1). As one would expect, these changes in behavior are also seen as a decrease in the average distance traveled by animals during transitions to yeast (Figure 5G). Dietary AA challenges therefore lead to a switch from global to local exploration (see example traces in Figure 5A–C). One of the most striking changes is the strong increase in returns to the same yeast patch upon AA deprivation. This change in exploratory strategy leads to an effective additional increase in the time on the same yeast patch without requiring a change in the decision to leave it. Taken together, these changes in exploratory strategy should enable the fly to efficiently increase the intake of yeast while minimizing the distance traveled to the next patch. It also allows the fly to focus on a resource whose quality she knows while avoiding testing food patches of unknown qualities, thereby reducing exploratory risk.

Flies dynamically adapt their exploitatory and exploratory behavior to their internal AA state

If yeast exploitation and exploration are indeed regulated by the internal AA state of the fly, we hypothesized that flies should dynamically adapt their behavior as their internal state changes over the course of the assay due to satiation. To capture this effect independently from the varying yeast intake dynamics displayed by each fly, we divided the total duration of yeast micromovements of each fly into four periods, which we called 'yeast quartiles' (Figure 6A). Each yeast quartile consists of 25% of the time that the fly spent in yeast micromovements, but covers a different amount of absolute time in the assay for each fly.

Figure 6. Flies dynamically adapt their exploitatory and exploratory behavior as their internal AA satiation changes.

(A) Definition of yeast quartiles based on the total duration of yeast micromovements along the two hours of the video tracking assay for an example fly. Arrows indicate start and end points of each yeast quartile. Each yeast quartile consists of 25% of the time that the fly spent in yeast micromovements, but covers a different amount of absolute time in the assay for each fly, as shown in (B). (B) Example trajectories of head positions during each yeast quartile defined in (A). Red indicates the occurrence of a yeast micromovement. (CH) Effect of yeast satiation on exploration (CE) and exploitation (FH) parameters, for mated AA-deprived flies, quantified during the four yeast quartiles of each fly. As the flies spend more time on yeast, the values of these parameters change towards the values of flies fed with a rich diet. *p<0.05, ***p<0.001, significance was tested by Wilcoxon rank-sum test.

DOI: http://dx.doi.org/10.7554/eLife.19920.018

Figure 6.

Figure 6—figure supplement 1. Exploitation parameters in AA-deprived flies revert back to fully-fed values.

Figure 6—figure supplement 1.

(AC) Exploitation parameters from first yeast quartile (Q1) and fourth yeast quartile (Q4) of AA-deprived mated females compared to the values observed in flies pre-fed a rich and a suboptimal diet along the 2 hr of the video tracking assay. (A) Average minimum distance of the head to the center of the yeast patch, (B) angular speed during yeast visits. (C) Average duration of yeast visits. ns, not significant (p≥0.05), ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

As hypothesized, the flies displayed clear differences in their foraging behavior across the four analyzed quartiles. The effect on exploration was clearly visible in the raw tracking traces for the four quartiles (Figure 6B). As the time spent on yeast increased, the average distance traveled to the next yeast patch (Figure 6C) and the probability of visiting a distant yeast patch increased (Figure 6D), while the probability of revisiting the same yeast patch decreased (Figure 6E). Accordingly, parameters related to patch exploitation such as the average minimum distance from the center of the patch (Figure 6F), the angular speed on the yeast patch (Figure 6G), and the average duration of the yeast visit (Figure 6H) reverted to the values observed in fully-fed females (Figure 6—figure supplement 1A–C). These results show that flies are capable of dynamically adapting their behavioral strategies according to their current internal state and strengthen the notion that foraging strategies are modified by the AA state of the animal to homeostatically balance the intake of AA-rich foods.

ORs mediate efficient recognition of yeast as an appropriate food source

Starvation changes olfactory representations of food odors and these changes are thought to be required to find food efficiently (Beshel and Zhong, 2013; Root et al., 2011). As a proof of principle of how our setup could be used to uncover the neuronal mechanisms underlying foraging decisions, we decided to analyze the role of olfaction in nutrient homeostasis. Olfactory sensory neurons in Drosophila express two main types of chemosensory receptors: Odorant Receptors (OR) and Ionotropic glutamate receptors (IRs) (Rytz et al., 2013; Vosshall and Stocker, 2007). The OR type of olfactory receptors have been shown to significantly contribute to the olfactory detection of yeast over large distances (Becher et al., 2010; Christiaens et al., 2014) and are known to mediate physiological responses to yeast odors (Libert et al., 2007). We therefore focused on the function of these receptors in homeostatic yeast feeding by tracking the foraging behavior of flies lacking Orco, a co-receptor essential for OR function (Larsson et al., 2004). Unexpectedly, we observed that in general upon AA deprivation, Orco mutants showed a similar total duration of yeast visits as controls (Figure 7A). However, upon closer inspection of the time course of yeast visits, we observed that flies with impaired olfaction had a very long latency to engage in a long yeast visit when compared to the genetic controls (Figure 7B–D, see also Figure 4A and Figure 7—figure supplement 1). While Orco mutants needed around 25 min to enter into a high yeast exploitation 'mode' (median = 25.58 min, IQR = 15.05–30.06) the genetic controls required only 5–8 min to do so (Figure 7C).

Figure 7. ORs mediate efficient recognition of yeast as an appropriate food source.

(A) Orco1/1 AA-deprived flies spend as much total time visiting yeast as AA-deprived control flies (n = 10–14). (B) Rolling median of the total duration of yeast visits using a 5 min window and a step of 4 min. (C) Effect of Orco mutation on the latency to engage in the first 'long' (≥30 s) yeast visit. (D) Behaviors displayed by Orco1/1and control flies, along the 120 min of the assay. Each row represents the ethogram of a single fly, following the same color code used in Figure 1D. Yellow: yeast micromovements. Black: sucrose micromovements. Pink: micromovements outside the food patches. Blue: walking bouts. Gray: resting bouts. Green: sharp turns. Blue circles indicate the latency (see C) of each fly. Arrows indicate example flies shown in (E). (E) Top: Example trajectory of head positions of an Orco1/1 AA-deprived fly during the 23-min-long latency period (first three panels on the left) and during 45 min after the latency period (fourth panel). Bottom: Example trajectory of head positions of a Canton S AA-deprived fly during the 4-min-long latency period (first panel on the left) and from the latency point up to minute 68 (three panels on the right). Highlighted trajectory segments represent yeast encounters (pink) and yeast visits (blue). (FG) Exploration and locomotor activity during latency period is not affected in Orco1/1 flies as indicated by the number of yeast encounters (F) and the body centroid speed outside food patches (G). (H) The first long yeast visit is longer in Orco1/1 flies than in control flies. (I) Probability of transition to same yeast patch is higher in Orco1/1 flies than in control flies. ns, not significant (p≥0.05), *p<0.05, **p<0.01, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

DOI: http://dx.doi.org/10.7554/eLife.19920.020

Figure 7.

Figure 7—figure supplement 1. Yeast dynamics of Orco mutant flies.

Figure 7—figure supplement 1.

Cumulative duration of yeast micromovements. Gray lines correspond to single flies. Thick colored lines indicate median.

Olfaction has been proposed to be important for the fly to locate food sources (Root et al., 2011). Orco mutants, however, have plenty of encounters with yeast during the latency period. This is clearly visible in the example trace (Figure 7E) where pink dots mark encounters with yeast patches. In fact, the number of encounters of Orco mutant flies with yeast patches was similar to, or even higher than, that of controls (Figure 7F). The increased latency also seems not to be due to an impairment in locomotion, as mutant flies walked as fast when outside the food patches as genetic controls (Figure 7G). These data indicate that in our assay, Orco mutant flies easily find yeast patches but fail to efficiently engage into long yeast visits.

If Orco mutant flies are inefficient in stopping at yeast patches, how do they manage to homeostatically compensate for the AA challenge? We observed that the duration of the first long visit (Figure 7H) and the probability of revisiting the same yeast patch (Figure 7I) were greater for the Orco mutants than for the controls. These results indicate that mutant flies were either more AA deprived than controls or compensated for their sensory deficit by displaying a generally higher exploitatory motivation. Taken together these results show that, in mated females, OR-mediated olfaction is necessary for efficient recognition of yeast as an appropriate resource but is not required to locate food patches at a short range or to achieve nutritional homeostasis.

Octopamine mediates homeostatic postmating responses but not internal sensing of AA deprivation state

Neuromodulators are thought to be important in translating internal states into behavioral output (Taghert and Nitabach, 2012). While octopamine has been shown to mediate the postmating increase in yeast feeding (Walker et al., 2015), it has been proposed that it does not contribute to homeostatic changes in feeding behavior (Yang et al., 2015). We therefore decided to show that our setup could be used to test possible neuromodulatory effects of octopamine on yeast foraging, using mutants for the gene encoding Tyramine β-hydroxylase (TβH), an enzyme required for the biosynthesis of octopamine in the whole animal. As expected, we observed that in AA-deprived females, the drastic increase in the total duration of yeast visits after mating was greatly reduced in TβhnM18 flies (Figure 8A and Figure 8—figure supplement 1A). Likewise, octopamine also seems to be required to elicit the full increase in the probability of stopping at yeast (Figure 8B and Figure 8—figure supplement 1B) and the full increase in the duration of yeast visits (Figure 8C and Figure 8—figure supplement 1C), reiterating our previous observation that these two parameters are modulated by mating (Figure 3). To test whether octopamine was also required for mediating changes in yeast feeding behavior upon AA deprivation, we used the flyPAD technology. TβhnM18virgin flies were able to increase the number of sips after AA deprivation to a similar extent as control flies (Figure 8D and Figure 8—figure supplement 1D) showing that octopamine is not involved in translating the internal state of AA deprivation into increased yeast intake. Overall, these results confirm that the decisions to stop at a yeast patch and leave it are strongly modulated by mating. They also show that octopamine mediates these postmating responses towards yeast, but is not required to sense the internal AA deprivation state. These results provide a first step towards dissecting the role of octopamine in nutrient homeostasis.

Figure 8. Octopamine mediates postmating response towards yeast but not internal sensing of AA deprivation state.

(AC) Effect of the TβhnM18 mutation on the postmating change in foraging parameters, obtained from the video tracking assay after 1 hr: total duration of yeast visits (A), probability of stopping at a yeast patch (B) and average duration of yeast visits (C) for Canton S and TβhnM18females, both AA-deprived. Bars depict difference between median value of mated minus virgin groups for the correspondent parameter. Error bars show 5% and 95% bootstrap confidence intervals (n = 25–33). (D) Effect of Tβh mutation on the increase of yeast sips after AA deprivation in virgin females, quantified using the flyPAD setup. Bars depict difference between median values of AA+ (suboptimal) minus AA−deprived groups. Error bars show 5% and 95% bootstrap confidence intervals (n = 26–34). ns, not significant. (AC) Show statistically significant differences between Canton S and TβhnM18females, as the confidence intervals don’t overlap.

DOI: http://dx.doi.org/10.7554/eLife.19920.022

Figure 8.

Figure 8—figure supplement 1. Octopamine mediates postmating response to yeast.

Figure 8—figure supplement 1.

(AC) Effect of the TβhnM18mutation on the postmating change in foraging parameters, obtained using the video tracking setup: (A) total duration of yeast visits, (B) probability of stopping at a yeast patch and (C) average duration of yeast visits for AA-deprived Canton S and TβhnM18virgin (open circles) and mated (closed circles) females. (D) Effect of TβhnM18mutation on the increase of yeast sips after AA deprivation in virgin females, using the flyPAD assay. ns, not significant (p≥0.05), *p<0.05, **p<0.01, ***p<0.001, significance was tested by Wilcoxon rank-sum test with Bonferroni correction.

Discussion

In order to maintain nutrient homeostasis animals need to be able to adapt their nutrient preferences to their current state. But which behavioral alterations underlie such changes in preference? Here we use an automated video tracking setup to quantitatively capture the behavioral adaptations to AA and mating state changes that allow the animal to maintain nutrient homeostasis. We started by separating the behaviors flies display towards food into discrete decisions: the decision to approach a food patch, the decision to stop at it, and the decision to leave it (Figure 9). Strikingly, mating and AA challenges induced compensatory behaviors towards yeast patches but not sucrose patches, indicating that the fly changes its exploitation decisions in a resource specific way. Furthermore, internal state modifications impact specific decisions to a different extent. While mating had a major effect on the probability of a fly leaving a yeast patch, AA challenges strongly increased the probability of stopping at a food patch. Nevertheless, the effect of AA deprivation on the decision to stop at a food patch was strongly dependent on mating suggesting that both internal states act synergistically to increase yeast intake. Furthermore, while full AA deprivation leads to a strong increase in yeast feeding when compared to flies kept on a suboptimal diet, the described decisions were not further altered by this drastic nutritional manipulation. There was, however, a considerable decrease in the latency to visit yeast patches for a long time and a general increase in parameters related to the 'eagerness' of the fly to exploit the resource (latency to engage on a yeast visit, locomotor activity on the patch and area of patch covered). Internal states, therefore, alter feeding in specific ways, allowing the fly either to spend more time on the food through the modulation of patch decisions, or to increase resource exploitation through the modulation of motivation without changing patch decisions. These specific changes allow the animal to dose its exploitatory behavior and hence the intake of nutrients over a large range (~17 fold) to match its current needs.

Figure 9. Model of behavioral strategies modulated by internal AA state.

Figure 9.

We propose a model in which virgin flies with high internal levels of AAs display low intake mostly ignore yeast patches upon encounter and have a high probability of leaving the yeast patch upon stopping at it. Internal AA levels decrease as a consequence of poor diets which induce a change in the leaving decision, inducing increased yeast intake. Octopamine mediates the postmating changes in the foraging decisions of stopping at the yeast patch and leaving it upon encounter. As the internal AA levels decrease in mated females, their exploration patterns switch from global exploration to local exploration and multiple returns to the same yeast patch.

DOI: http://dx.doi.org/10.7554/eLife.19920.024

The specific changes observed in the behavior upon alterations of internal state are in agreement with a modular organization of behavioral control. Such modularity has been previously described in the organization of motor output, such as locomotion (Kiehn, 2016), swimming (Huang et al., 2013), grooming (Seeds et al., 2014), and feeding (Itskov et al., 2014; Walker et al., 2015). This accumulated evidence suggests that the nervous system uses different mechanisms and hence circuits to change specific aspects of behavioral outcomes or decisions and that these changes add up to reach a specific goal. In agreement with this model, it has been shown that the impact of different starvation times on gustatory input relies on different mechanisms (Inagaki et al., 2012). Similarly, our data show that octopamine is specifically required for mediating the changes in yeast decisions observed upon mating but not upon AA deprivation (Figure 9). Nevertheless, some decisions, such as the decision to stop at a yeast patch, seem to be synergistically gated by both the mating and the AA state of the fly. It will be interesting to dissect how different internal states act at the circuit level to change behavioral decisions: do they act differentially on specific neuronal populations, or is the observed synergism a reflection of the different internal states acting on the same set of neurons?

While at the population level the effect of internal state manipulations led to stereotypical changes in behavior, the effect of internal state on the decisions implemented varied greatly at the individual level. This effect is reminiscent of the large individual differences observed in human physiology in response to identical diets (Zeevi et al., 2015). While such behavioral differences can stem from different metabolic states prior to the experiment, transgenerational effects in metabolism (Öst et al., 2014), or differences in the microbiota of the flies (Broderick and Lemaitre, 2012), there is a real possibility that they also reflect idiosyncrasies in behavior and metabolic susceptibilities to internal state changes at the individual level. Indeed, upon AA challenges, we observed that some flies increased their total time on yeast by having many short yeast visits, while some flies had fewer but longer visits. It will be interesting to investigate if these differences reflect behavioral idiosyncrasies, as observed before in many animals including Drosophila (Buchanan and de Bivort, 2015; Dingemanse et al., 2010; Kain and de Bivort, 2012). Differentiating between these two possibilities and identifying the physiological and circuit mechanisms leading to idiosyncrasies will be key to a better understanding of behavior. This is especially relevant for understanding metabolic conditions related to nutrition such as obesity.

In order to balance the intake of specific nutrients the animal should be able to specifically change its decisions towards the food source which contains the nutrient it needs. Our data show that this is indeed the case, pointing to a possible important contribution of chemosensory systems to nutrient decisions. Indeed, taste processing has been shown to be changed by the mating state of the animal and to contribute to the adaptation of behavioral decisions such as food choice (Walker et al., 2015) and egg laying site selection (Hussain et al., 2016). The contribution of olfaction to nutrient selection is less well understood. The sense of smell is thought to be mostly important for food search behavior (Becher et al., 2010), with starvation changing olfactory sensitivity to improve the finding of a food source (Root et al., 2011). Our data suggest that while olfactory-impaired mated flies are able to homeostatically increase yeast intake upon AA deprivation, OR-mediated olfaction still plays an important role in their capacity to do so. Interestingly, olfaction doesn’t seem to be important for locating the food but for identifying yeast as an appropriate food source. These data suggest that flies use multimodal integration to decide which food to ingest. In humans, flavor, the integration of different sensory modalities such as taste and smell, is key to the perception of food (Verhagen and Engelen, 2006). Similarly, in mosquitoes olfaction acts together with other sensory cues to initiate a meal (McMeniman et al., 2014). Identifying the chemosensory basis for yeast feeding decisions might therefore be a powerful way to investigate the neuronal basis of flavor perception.

While one would expect that internal states increase food intake by changing exploitation decisions, their effects on exploratory behaviors in our paradigm are not trivial. Exploration is key for animals to find the resources they require and to acquire information about their surrounding environment (Calhoun et al., 2014; Hassell and Shouthwood, 1978; Hills et al., 2015). In our paradigm, however, animals do not need to search for resources as they are readily available. A key question then becomes why animals leave a food patch at all, especially when they are deprived of AAs (Figure 9). The fact that they still do so means that there is a value in leaving the current food patch, even if that one provides the urgently required nutrients to produce offspring and has not been depleted yet. We can only speculate that there must be an advantage in taking the 'risk' of exploring unknown options and maybe identifying a better resource. Animals might often require other resources and leaving the current food patch might allow them to also explore the availability of these. Flies seem to nevertheless manage their exposure to uncertainty by tuning the spatial properties of their exploration. Their internal states not only define the probability of leaving a food patch, they also define if they will explore locally or more globally. The more deprived they are, the more local their exploratory pattern will be (Figure 9). Remarkably, while the leaving probability of flies pre-exposed to a suboptimal AA diet and a diet lacking AAs looks identical, their exploratory patterns are very different. For example, AA-deprived flies display a higher rate of returns to the same patch right after leaving it. Therefore, while the neuronal processes determining staying decisions seem not to be altered between both AA-challenged states, full AA deprivation must act on the circuits controlling exploration to strongly increase the probability of revisiting the patch the fly just left. This allows the fly to de facto stay longer on the same food patch without changing its leaving decisions. We would like to propose that the apparent separate regulation of these two aspects of the fly behavior suggests that there are two separate internal state sensing processes regulating exploitation and exploration decisions. The combination of both behavioral and circuit modules would allow the fly to trade off the requirement to exploit specific resources and the 'risk' of exposing itself to resources of unknown or lower quality. Furthermore, it is interesting to note the similarity between the revisits to the same food patch we observed upon strong AA deprivation and the 'dances' observed by Vincent Dethier in the blowfly (Dethier, 1976). Both phenomena are examples of how animals regulate their search behavior and exposure to uncertainty by modulating the local dynamics of their exploratory behavior, in a state-dependent manner. While the budget theory is a classic aspect of foraging theory, it has recently started to be reassessed. It is mainly controversial if energy-deprived animals, including humans, are more or less risk-prone (Kacelnik and El Mouden, 2013). Our data suggest that the exploratory behavior of AA-deprived animals minimizes their exposure to uncertainty. The description of how different aspects of risk management are implemented at the behavioral level opens up the opportunity to identify the circuit mechanisms by which internal states control exploration-exploitation trade-offs and therefore how animals decide how much to expose themselves to the unknown.

The success of neurogenetics has relied to a large extent on the use of simple binary end-point behavioral assays to perform large-scale unbiased screens (Leitão-gonçalves and Ribeiro, 2014; Ugur et al., 2016; Vosshall, 2007). This approach has allowed the field to make important contributions to the molecular and circuit basis of innumerable phenomena, including learning and memory (Heisenberg, 2015), chronobiology (Konopka and Benzer, 1971), innate behaviors (Demir and Dickson, 2005; Yapici et al., 2008), and sensory physiology (Larsson et al., 2004). While identifying these cornerstones of neuroscience was crucial, we are now in a position to start understanding how these mechanisms act at the circuit level to perform more complex computations such as the ones used during decision-making and exploration. This endeavor requires the use of a richer and dynamic description and analysis of behavior (Gomez-Marin et al., 2014). We used a combination of computer vision (Anderson and Perona, 2014) and a quantitative, automated capacitance-based behavioral assay (Itskov et al., 2014) with internal state and genetic manipulations to characterize and identify the behavioral changes allowing the animal to achieve homeostasis. It is interesting to consider that while we identify an important role of OR-mediated olfaction in nutrient decision-making, this would not have been possible using end-point analyses, as the animal manages to compensate for its sensory challenge using alternative means. The use of dynamic, quantitative descriptions of complex behavior therefore enables neuroscientists to decompose these into discrete processes, opening up the possibility to go beyond assigning circuits and molecules to general behaviors to start explaining how they act to control the generation of complex cognitive processes.

Materials and methods

Drosophila stocks, genetics and rearing conditions

Unless stated otherwise all experiments were performed with Canton S female flies. Canton S flies were obtained from the Bloomington stock center. Orco1/1 flies were a kind gift of Sofia Lavista-Llanos from the Hansson laboratory (Larsson et al., 2004). Orco1/+ flies were obtained by crossing Canton S virgins with Orco1/1 males. TβhnM18 flies were a kind gift of Scott Waddell (Monastirioti et al., 1996). Fly rearing, maintenance, and behavioral testing were performed at 25°C in climate-controlled chambers at 70% relative humidity in a 12 hr-light-dark cycle. All experimental and control groups were matched for age and husbandry conditions.

Media compositions

The standard yeast-based medium (YBM) contained, per liter, 80 g cane molasses, 22 g sugar beet syrup, 8 g agar, 80 g corn flour, 10 g soya flour, 18 g yeast extract, 8 ml propionic acid, and 12 ml nipagin (15% in ethanol) supplemented with instant yeast granules on the surface. To ensure a homogenous density of offspring among experiments, fly cultures were always set with five females and three males per vial and left to lay eggs for three days. Flies were reared in YBM until adulthood. Three different types of holidic medium were used as described previously (Piper et al., 2013) using the following formulations: 50S200NYaa (AA+ rich), 50S200NHUNTaa (AA+ suboptimal) and 50S0N (AA−). Composition of the media is as described in Piper et al., (2013), without food preservatives and only differ in amino acids composition. The proportion of amino acids in 50S200NYaa diet is adjusted to match that in yeast and was considered a rich diet maximizing egg laying (Piper et al., 2013). The detailed holidic media compositions can be found in Table 1.

Table 1.

Composition of holidic medium.

DOI: http://dx.doi.org/10.7554/eLife.19920.025

Ingredient Stock Amount per liter
Gelling agent Agar 20 g
Sugar Sucrose 17.12 g
Amino acids for 50S200NHUNTaa* L-isoleucine 1.82 g
L-leucine 1.21 g
L-tyrosine 0.42 g
Amino acids for 50S200NYaa* L-isoleucine 1.16 g
L-leucine 1.64 g
L-tyrosine 0.84 g
Metal ions CaCl2.6H2O 1000x: 250 g/l 1 ml
CuSO4.5H2O 1000x: 2.5 g/l 1 ml
FeSO4.7H2O 1000x: 25 g/l 1 ml
MgSO4 (anhydrous) 1000x: 250 g/l 1 ml
MnCl2.4H2O 1000x:1 g/l 1 ml
ZnSO4.7H2O 1000x: 25 g/l 1 ml
Cholesterol Cholesterol 20 mg/ml in Ethanol 15 ml
Water Water (milliQ) 1 l minus combined volume to be added after autoclaving
Autoclave 15 min at 120ºC. All additions below should be performed using sterile technique
Amino acids for 50S200NHUNTaa* Essential amino acid stock solution 8 g/l L- arginine monohydrochloride
10 g/l L-histidine
19 g/l L- lysine monohydrochloride
8 g/l L-methionine
13 g/l L-phenylalanine
20 g/l L-threonine
5 g/l L-tryptophan
28 g/l L-valine
60.51 ml
Non-essential amino acid stock solution 35 g/l L-alanine
17 g/l L-asparagine
17 g/l L-aspartic acid sodium salt monohydrate
0.5 g/l L-cysteine hydrochloride
25 g/l L-glutamine
32 g/l glycine
15 g/l L-proline
19 g/l L-serine
60.51 ml
Sodium glutamate stock solution 100 g/l L-glutamic acid monosodium salt hydrate 15.13 ml
Amino acids for 50S200NYaa* Essential amino acid stock solution 23.51 g/l L-arginine monohydrochloride
11.21 g/l L-histidine
28.70 g/l L-lysine monohydrochloride
5.62 g/l L-methionine
15.14 g/l L-phenylalanine
21.39 g/l L-threonine
7.27 g/l L-tryptophan
22.12 g/l L-valine
60.51 ml
Non-essential amino acid stock solution 26.25 g/l L-alanine
13.89 g/l L-asparagine
13.89 g/l L-aspartic acid sodium salt monohydrate
30.09 g/l L-glutamine
17.89 g/l glycine
9.32 g/l L-proline
12.56 g/l L-serine
60.51 ml
Sodium glutamate stock solution 100 g/l L-glutamic acid monosodium salt hydrate 18.21 ml
Cysteine stock solution 50 g/l L-cysteine hydrochloride 5.28 ml
Vitamins Vitamin solution 125x:
0.1 g/l thiamine hydrochloride
0.05 g/l riboflavin
0.6 g/l nicotinic acid
0.775 g/l Ca pantothenate
0.125 g/l pyridoxine hydrochloride
0.01 g/l biotin
14 ml
Sodium folate 1000x: 0.5 g/l 1 ml
Base Buffer 10x:
30 ml/l glacial acetic acid
30 g/l KH2PO4
10 g/l NaHCO3
100 ml
Other nutrients 125x:
6.25 g/l choline chloride
0.63 g/l myo-inositol
8.13 g/l inosine
7.5 g/l uridine
8 ml

* To prepare the 50S200NHUNTaa diet, use the values shaded in blue. To prepare the 50S200NYaa diet, use the values shaded in orange.

Behavioral assays

Groups of 9 to 11 newly hatched (0–6 hr old) female flies of the indicated genotypes were transferred to vials containing fresh standard yeast-based medium (YBM). Three days later, all vials were transferred to fresh standard medium and 4 males were added to half of the vials to obtain mated female flies. After two more days, all vials were transferred once again to fresh standard YBM. On the sixth day, all vials were transferred to fresh holidic media. Flies were left to feed ad-libitum for three days on the holidic media and then tested in the video tracking or flyPAD setups. Single flies were tested in individual arenas that contained two kinds of food patches: yeast (180 g/L) and sucrose (180 g/L), each mixed with 0.75% (tracking) or 1% (flyPAD) agarose. Flies were individually transferred to the arenas by mouth aspiration and allowed to feed for 1 (flyPAD) or 2 (tracking) hours, except for the tracking experiment with TβhnM18 mutant flies, which lasted 1 hr. flyPAD data were acquired using the Bonsai framework (Lopes et al., 2015) and analyzed in MATLAB (Mathworks, Natick, MA) using custom-written software, as described (Itskov et al., 2014). To avoid patch exhaustion before the end of the tracking assays, each circular patch contained 5 µL of food with a diameter of approximately 3 mm. After each assay, the tracking arenas were washed with soap, rinsed with 70% ethanol, and finally with distilled water.

Videos that had more than 10% of lost frames (due to technical problems during acquisition) were excluded from the analysis. No further data was excluded. The experiment that compares the conditions AA+ suboptimal and AA− (results shown in Figures 16) was performed 3 times independently, which means that an independent set of individuals (n=15–35, shown in the corresponding figure legend) was reared and tested under the corresponding conditions. The experiment comparing AA+ rich vs AA− was performed two times independently. The experiments comparing TβhnM18 or Orco mutant flies with their corresponding controls were performed once with the sample size indicated in the corresponding figure legend. We confirmed that the claims made in this manuscript held for every experimental replicate. We never tested the same individual more than once.

Behavioral box and arena design

The behavioral arenas for the video tracking (Figure 1B) were designed and manufactured in-house using a laser-cutter and a milling machine. Material used for the base was acrylic and glass for the lid. The outer diameter of the arena was 73 mm. The inner area containing food patches was flat and had a diameter of 50 mm and a distance to the lid of 2.1 mm. To allow a top-view of the fly throughout the whole experiment, the outer area of the arena had 10° of inclination (Simon and Dickinson, 2010) and the glass lid was coated with 10 µL of SigmaCote the night before the assays. Food patches were distributed in two concentric circles equidistantly from the edge. Furthermore, sucrose and yeast patches were alternated such that from a given food patch, there was at least one adjacent yeast and one adjacent sucrose patch. The radius of each food patch was approximately 1.5 mm. The minimum distance between the centers of two adjacent food patches is 10 mm. White LEDs 12V DC (4.8 watt/meter), were used for illumination of the arenas. They were placed under the arenas, as backlight illumination and on the walls of the behavioral box, surrounding the arenas, as shown in Figure 1A. A white cardboard arch was used to improve illumination to reflect light towards the arenas (Figure 1A). Three fly arenas were recorded simultaneously from the top using a video camera (Genie HM1400 camera, Teledyne DALSA, Canada; frame acquisition rate: 50 fps) connected to a desktop computer using a Gigabit Ethernet connection.

Tracking algorithm

Body centroid positions and major axis of the fly body in each frame were extracted using custom off-line tracking algorithms written in Bonsai (Lopes et al., 2015) and Matlab (Mathworks). The arena diameter in the video was measured to find the correspondence between pixels in the video and mm in the real world (1 pixel = 0.155 mm). The typical length of the major axis of the fly body in a video was 19 pixels (~3 mm). Video acquisition was made with slight overexposure to obtain a strong contrast between the fly and the arena. Since the fly body was the darkest object in the arena, a pixel intensity threshold was used to obtain the centroid and orientation of the fly blob. The head position was extracted using custom MATLAB (Mathworks) software. Head position in the first frame was manually selected. From there on, the head position is automatically propagated to the consecutive frames using a proximity rule (Gomez-Marin et al., 2011). This rule, however, does not hold during a jump of the fly. Therefore, in addition to the proximity rule, for the intervals in-between jumps, the head position was automatically corrected using the fact that flies walk forward most of the time. Manual annotation of 510 inter-jump-intervals revealed that 98% were correctly classified. All the body and head centroid tracking data generated in this study are available for download from the Dryad repository (Corrales-Carvajal et al., 2016).

Behavioral classification

Raw trajectories of head and body centroids were smoothed using a Gaussian filter of 16 frames (0.32 s) width. The width was chosen empirically by comparing the raw and smoothed tracks. The speed was measured from the smoothed coordinates by calculating the distance covered from the current frame and the next frame, divided by the time between them (0.02 s). Similarly, the angular speed was measured by calculating the difference between the heading angle from the current frame and the next frame, divided by the time between them. The heading angle for this calculation was obtained from the head and tail smoothed centroids. Walking and non-walking instances were classified applying a 2 mm/s threshold in the head speed, based on the distribution of head speed for AA-deprived flies in Figure 1—figure supplement 1A and previous studies (Martin, 2004; Robie et al., 2010). The head speed used was also smoothed using a Gaussian filter of 60 frames (1.2 s) to avoid rapid changes in classification around the thresholds. Sharp turns were classified when a local maximum in the angular speed exceeded a 125°/s threshold, as long as the body centroid speed was below 4 mm/s. A wider Gaussian filter (width of 2.4 s) was applied to the head speed to classify resting bouts, using a threshold of 0.2 mm/s. The remaining events during the non-walking segments that were not classified as resting were classified as micromovements.

Food encounters, micromovements, and visits

Manual annotation of 107 feeding events showed that when the head position was at 3 mm or less from the center of the food patch, flies were already close enough to have leg contact. Initially, encounters with a food patch were defined as the moments in which the fly crossed this 3 mm distance threshold. To avoid misclassifying the transient head movement associated with grooming or feeding around this threshold as new encounters, consecutive encounters were merged when the total displacement of the head in any direction was lower or equal than 2 pixels (0.31 mm) during the time elapsed in-between the encounters. From each feeding event, the distance from the head of the fly to the center of the patch was also captured. Since 95% of the first proboscis extensions happened below 2.5 mm, this was the selected distance threshold to define yeast and sucrose micromovements (Figure 1—figure supplement 1D). In this way, food micromovements were defined as the time in which flies were classified in a micromovement (see definition in previous section) and their head was simultaneously inside a circle of 2.5 mm around the food patch (see gray dashed line in Figure 1D inset). The two pixels displacement rule used in the definition of encounters was also applied here to avoid definitions of false new micromovements. A visit was defined as a series of consecutive food micromovements (already corrected for small displacements) in which the head distance to the center of the food patch was never larger than 5 mm during the time elapsed in-between the food micromovements (Figure 1D inset). 5 mm is the maximum radius of non-overlapping circles around the food patches (see gray dashed line in main trajectory of Figure 1D). This 5 mm threshold was also used to merge consecutive encounters (consecutive encounters were merged if the head distance to the center of the food patch was never larger than 5 mm during the time in-between encounters). In this way, for every visit there is an encounter, but there can be an encounter and no visit if the fly doesn’t stop at the food patch (food micromovement).

Exploitation, exploration and locomotor activity parameters

All of these parameters, unless specified otherwise, were calculated for each fly and for the whole duration of the assay.

  1. Yeast (or sucrose) micromovements: Events in which the fly was micromoving (0.2 mm/s < head speed < 2 mm/s, see Behavioral classification section for details) on the food patch (head position ≤ 2.5 mm from the center of the food patch).

  2. Total duration of yeast (or sucrose) micromovements (min): Sum of the durations of all yeast (or sucrose) micromovements. Initially calculated in frames and converted to minutes by dividing by the frame rate (50 frames per second) and dividing by 60.

  3. Fraction of yeast non-eaters: Number of flies with a total duration of yeast visits lower than 1 min divided by the total number of flies in that internal state condition.

  4. Coefficient of variation: Standard deviation divided by the mean of the total duration of yeast micromovements for each internal state condition.

  5. Cumulative time of yeast micromovements (min): Cumulative sum of frames in which the fly was in a yeast micromovement, converted to minutes as described for parameter 2.

  6. Yeast (or sucrose) visits: Series of consecutive food micromovements in which the head distance to the center of the food patch was never larger than 5 mm during the time elapsed in-between the food micromovements.

  7. Total duration of yeast visits (min): Sum of the durations of all yeast visits. Durations of visits were calculated similarly to parameter 2.

  8. Number of yeast encounters: Sum of all yeast encounters.

  9. Rate of yeast encounters: Sum of all yeast encounters divided by the time spent walking outside the food patches.

  10. Probability of stopping at a yeast patch: Number of encounters with yeast that contained at least one yeast micromovement, divided by the total number of yeast encounters.

  11. Average duration of yeast visits (min): Sum of all the durations of yeast visits divided by the total number of yeast visits.

  12. Number of yeast visits: Sum of all yeast visits.

  13. Rolling median of total duration of yeast visits (min): Sum of the duration of all yeast visits that occurred within a 5 min sliding window with a step of 4 min.

  14. Latency to long yeast visit (min): Time elapsed from the beginning of the assay until the fly engages in a yeast visit which is at least 30 s long.

  15. Average minimum distance from yeast (mm): Average of the minimum distance from the head to the center of the yeast patch for each visit, across all yeast visits.

  16. Average area covered during yeast visits (pixels): Average across all yeast visits of the number of different pixels covered by the head of the fly during each yeast visit.

  17. Speedbody during yeast visits (mm/s): Average of body centroid speed across all frames in which the fly was inside a yeast visit. Calculation of speed was as described in the behavioral classification section and then smoothed using a Gaussian filter of 60 frames (1.2 s).

  18. Angular speed during yeast visits (°/s): Average of angular speed across all frames in which the fly was inside a yeast visit. Calculation of angular speed was as described in the behavioral classification section.

  19. Transition probability to a distant yeast patch: Number of visits to a distant yeast patch divided by the total number of yeast visits. Visits to distant yeast patches were of two kinds: either the distance between the previous and current patch centers was >16 mm or the distance from the fly head to the center of the previous patch was >16 mm at any point during the inter-visit-interval. Only transitions between visited yeast patches were considered.

  20. Transition probability to an adjacent yeast patch: Number of visits to an adjacent yeast patch divided by the total number of yeast visits. Two patches were defined as adjacent if the distance between their centers was ≤16 mm. Only transitions in which the distance from the fly head to the center of the previous patch was ≤16 mm during the whole inter-visit-interval were considered. Otherwise, the transition was classified as to a distant yeast patch (see parameter 19). Only transitions between visited yeast patches were considered.

  21. Transition probability to the same yeast patch: Number of visits to the same yeast patch divided by the total number of yeast visits. Visits to the same yeast patch were those in which the previous visit happened in the same patch as the current visit. Only transitions in which the distance from the fly head to the center of the previous patch was ≤16 mm during the whole inter-visit-interval were considered. Otherwise, the transition was classified as to a distant yeast patch (see parameter 19). Only transitions between visited yeast patches were considered. The values of the transition probabilities depicted as pie charts in Figure 5A–C are the medians shown in panels D-F scaled so they sum to 100%.

  22. Distance traveled to next yeast visit (mm): Average distance covered from the end of a visit to any food patch (yeast or sucrose) to the beginning of the next visit to a yeast patch.

  23. Yeast quartiles: The sum of the durations of all the yeast micromovements from the latency point (see parameter 14) onwards was considered as 100% of yeast time for a given fly. First yeast quartile (Q1) was the time elapsed between the latency point and the 25% of yeast time for that fly. Q2 was the time elapsed between 25% and 50% of yeast time for that fly. In the same way, Q3 went from 50% to 75% and Q4 from 75% to 100% of yeast time for that fly.

  24. Speed outside food patches (mm/s): Similar to parameter 17, but for all frames in which the fly was not engaged in a food visit. In Figure 7G, this parameter was calculated only for the latency period (parameter 14).

Acknowledgements

We thank Sofia Lavista-Llanos (Hansson Lab), Scott Waddell and Carolina Rezával (Goodwin Lab) for sharing fly stocks. Stocks obtained from the Bloomington Drosophila Stock Center (NIH P40OD018537) were used in this study. We thank Célia Baltazar for technical assistance in running some of the tracking and flyPAD experiments; Pavel Itskov for assistance with analysis code for flyPAD data; Ana Machado for contributions to early phases of this project; Alex Gomez-Marin, Gonçalo Lopes, José Cruz and Ricardo Ribeiro for help in improving the tracking algorithms; and FABLAB-EDP (http://fablabedp.edp.pt) for kindly providing access to the milling machine used for the arenas manufacturing. We also thank Christian K Machens, Gonzalo G de Polavieja, Samuel SJ Walker and members of the Behavior and Metabolism laboratory for helpful discussions and comments on the manuscript, as well as Gil Costa for his help with illustrations.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Funding Information

This paper was supported by the following grants:

  • Fundação para a Ciência e a Tecnologia PTDC/BIA-BCM/118684/2010 to Carlos Ribeiro.

  • Human Frontier Science Program RGP0022/2012 to Aldo A Faisal, Carlos Ribeiro.

  • Champalimaud Foundation to Verónica María Corrales-Carvajal, Carlos Ribeiro.

  • Fundação para a Ciência e a Tecnologia Graduate Student Fellowship, SFRH/BD/51113/2010 to Verónica María Corrales-Carvajal.

Additional information

Competing interests

The authors declare that no competing interests exist.

Author contributions

VMC-C, Technical development of the project, Conception and design, Acquisition of data, Analysis and interpretation of data, Drafting or revising the article.

AAF, Initial conceptual and technical development of the project, Conception and design.

CR, Initial technical development of the project, Supervision of the project, Conception and design, Analysis and interpretation of data, Drafting or revising the article.

Additional files

Major datasets

The following dataset was generated:

Corrales-Carvajal VM,Faisal AA,Ribeiro C,2016,Data from: Internal states drive nutrient homeostasis by modulating exploration-exploitation trade-off,http://dx.doi.org/10.5061/dryad.s58qh,Available at Dryad Digital Repository under a CC0 Public Domain Dedication

References

  1. Agresti A, Coull BA. Approximate is better than “exact” for interval estimation of binomial proportions. The AmericanStatistician. 1998;52:119–126. doi: 10.1080/00031305.1998.10480550. [DOI] [Google Scholar]
  2. Anderson DJ, Perona P. Toward a science of computational ethology. Neuron. 2014;84:18–31. doi: 10.1016/j.neuron.2014.09.005. [DOI] [PubMed] [Google Scholar]
  3. Barron AB, Gurney KN, Meah LF, Vasilaki E, Marshall JA. Decision-making and action selection in insects: inspiration from vertebrate-based theories. Frontiers in Behavioral Neuroscience. 2015;9:216. doi: 10.3389/fnbeh.2015.00216. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bath DE, Stowers JR, Hörmann D, Poehlmann A, Dickson BJ, Straw AD. FlyMAD: rapid thermogenetic control of neuronal activity in freely walking Drosophila. Nature Methods. 2014;11:756–762. doi: 10.1038/nmeth.2973. [DOI] [PubMed] [Google Scholar]
  5. Becher PG, Bengtsson M, Hansson BS, Witzgall P. Flying the fly: long-range flight behavior of Drosophila melanogaster to attractive odors. Journal of Chemical Ecology. 2010;36:599–607. doi: 10.1007/s10886-010-9794-2. [DOI] [PubMed] [Google Scholar]
  6. Berman GJ, Choi DM, Bialek W, Shaevitz JW. Mapping the stereotyped behaviour of freely moving fruit flies. Journal of the Royal Society Interface. 2014;11:20140672. doi: 10.1098/rsif.2014.0672. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Beshel J, Zhong Y. Graded encoding of food odor value in the Drosophila brain. Journal of Neuroscience. 2013;33:15693–15704. doi: 10.1523/JNEUROSCI.2605-13.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Bjordal M, Arquier N, Kniazeff J, Pin JP, Léopold P. Sensing of amino acids in a dopaminergic circuitry promotes rejection of an incomplete diet in Drosophila. Cell. 2014;156:510–521. doi: 10.1016/j.cell.2013.12.024. [DOI] [PubMed] [Google Scholar]
  9. Branson K, Robie AA, Bender J, Perona P, Dickinson MH. High-throughput ethomics in large groups of Drosophila. Nature Methods. 2009;6:451–457. doi: 10.1038/nmeth.1328. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Broderick NA, Lemaitre B. Gut-associated microbes of Drosophila melanogaster. Gut Microbes. 2012;3:307–321. doi: 10.4161/gmic.19896. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Buchanan SM, Kain JS, de Bivort BL. Neuronal control of locomotor handedness in Drosophila. PNAS. 2015;112:6700–6705. doi: 10.1073/pnas.1500804112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Calhoun AJ, Chalasani SH, Sharpee TO. Maximally informative foraging by Caenorhabditis elegans. eLife. 2014;3:e04220. doi: 10.7554/eLife.04220. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Chantranupong L, Wolfson RL, Sabatini DM. Nutrient-sensing mechanisms across evolution. Cell. 2015;161:67–83. doi: 10.1016/j.cell.2015.02.041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Christiaens JF, Franco LM, Cools TL, De Meester L, Michiels J, Wenseleers T, Hassan BA, Yaksi E, Verstrepen KJ. The fungal aroma gene ATF1 promotes dispersal of yeast cells through insect vectors. Cell Reports. 2014;9:425–432. doi: 10.1016/j.celrep.2014.09.009. [DOI] [PubMed] [Google Scholar]
  15. Clauset A, Shalizi CR, Newman MEJ. Power-law distributions in empirical data. SIAM Review. 2009;51:661–703. doi: 10.1137/070710111. [DOI] [Google Scholar]
  16. Coen P, Xie M, Clemens J, Murthy M. Sensorimotor transformations underlying variability in song intensity during Drosophila courtship. Neuron. 2016;89:629–644. doi: 10.1016/j.neuron.2015.12.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Corrales-Carvajal VM, Faisal AA, Ribeiro C. 2016. Data from: Internal states drive nutrient homeostasis by modulating exploration-exploitation trade-off. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]
  18. Dankert H, Wang L, Hoopfer ED, Anderson DJ, Perona P. Automated monitoring and analysis of social behavior in Drosophila. Nature Methods. 2009;6:297–303. doi: 10.1038/nmeth.1310. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Davis JD, Smith GP. Analysis of the microstructure of the rhythmic tongue movements of rats ingesting maltose and sucrose solutions. Behavioral Neuroscience. 1992;106:217–228. doi: 10.1037/0735-7044.106.1.217. [DOI] [PubMed] [Google Scholar]
  20. Demir E, Dickson BJ. fruitless splicing specifies male courtship behavior in Drosophila. Cell. 2005;121:785–794. doi: 10.1016/j.cell.2005.04.027. [DOI] [PubMed] [Google Scholar]
  21. Dethier VG. The Hungry Fly: A Physiological Study of the Behavior Associated with Feeding. Cambridge, MA: Harvard University Press; 1976. [Google Scholar]
  22. Dingemanse NJ, Kazem AJ, Réale D, Wright J. Behavioural reaction norms: animal personality meets individual plasticity. Trends in Ecology & Evolution. 2010;25:81–89. doi: 10.1016/j.tree.2009.07.013. [DOI] [PubMed] [Google Scholar]
  23. Feng K, Palfreyman MT, Häsemeyer M, Talsma A, Dickson BJ. Ascending SAG neurons control sexual receptivity of Drosophila females. Neuron. 2014;83:135–148. doi: 10.1016/j.neuron.2014.05.017. [DOI] [PubMed] [Google Scholar]
  24. Fontana L, Partridge L. Promoting health and longevity through diet: from model organisms to humans. Cell. 2015;161:106–118. doi: 10.1016/j.cell.2015.02.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Gomez-Marin A, Paton JJ, Kampff AR, Costa RM, Mainen ZF. Big behavioral data: psychology, ethology and the foundations of neuroscience. Nature Neuroscience. 2014;17:1455–1462. doi: 10.1038/nn.3812. [DOI] [PubMed] [Google Scholar]
  26. Gomez-Marin A, Stephens GJ, Louis M. Active sampling and decision making in Drosophila chemotaxis. Nature Communications. 2011;2:441. doi: 10.1038/ncomms1455. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Grandison RC, Piper MD, Partridge L. Amino-acid imbalance explains extension of lifespan by dietary restriction in Drosophila. Nature. 2009;462:1061–1064. doi: 10.1038/nature08619. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Griffioen-Roose S, Mars M, Siebelink E, Finlayson G, Tomé D, de Graaf C. Protein status elicits compensatory changes in food intake and food preferences. American Journal of Clinical Nutrition. 2012;95:32–38. doi: 10.3945/ajcn.111.020503. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Hassell MP, Southwood TRE. Foraging strategies of insects. Annual Review of Ecology and Systematics. 1978;9:75–98. doi: 10.1146/annurev.es.09.110178.000451. [DOI] [Google Scholar]
  30. Heisenberg M. Outcome learning, outcome expectations, and intentionality in Drosophila. Learning & Memory. 2015;22:294–298. doi: 10.1101/lm.037481.114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Hills TT, Todd PM, Lazer D, Redish AD, Couzin ID, Cognitive Search Research Group Exploration versus exploitation in space, mind, and society. Trends in Cognitive Sciences. 2015;19:46–54. doi: 10.1016/j.tics.2014.10.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Huang KH, Ahrens MB, Dunn TW, Engert F. Spinal projection neurons control turning behaviors in zebrafish. Current Biology. 2013;23:1566–1573. doi: 10.1016/j.cub.2013.06.044. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Hussain A, Üçpunar HK, Zhang M, Loschek LF, Grunwald Kadow IC. Neuropeptides modulate female chemosensory processing upon mating in Drosophila. PLoS Biology. 2016;14:e1002504. doi: 10.1371/journal.pbio.1002455. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Inagaki HK, Ben-Tabou de-Leon S, Wong AM, Jagadish S, Ishimoto H, Barnea G, Kitamoto T, Axel R, Anderson DJ. Visualizing neuromodulation in vivo: TANGO-mapping of dopamine signaling reveals appetite control of sugar sensing. Cell. 2012;148:583–595. doi: 10.1016/j.cell.2011.12.022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Itskov PM, Moreira JM, Vinnik E, Lopes G, Safarik S, Dickinson MH, Ribeiro C. Automated monitoring and quantitative analysis of feeding behaviour in Drosophila. Nature Communications. 2014;5:4560. doi: 10.1038/ncomms5560. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Itskov PM, Ribeiro C. The dilemmas of the gourmet fly: the molecular and neuronal mechanisms of feeding and nutrient decision making in Drosophila. Frontiers in Neuroscience. 2013;7:12. doi: 10.3389/fnins.2013.00012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Kacelnik A, El Mouden C. Triumphs and trials of the risk paradigm. Animal Behaviour. 2013;86:1117–1129. doi: 10.1016/j.anbehav.2013.09.034. [DOI] [Google Scholar]
  38. Kain JS, Stokes C, de Bivort BL. Phototactic personality in fruit flies and its suppression by serotonin and white. PNAS. 2012;109:19834–19839. doi: 10.1073/pnas.1211988109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Kiehn O. Decoding the organization of spinal circuits that control locomotion. Nature Reviews Neuroscience. 2016;17:224–238. doi: 10.1038/nrn.2016.9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Konopka RJ, Benzer S. Clock mutants of Drosophila melanogaster. PNAS. 1971;68:2112–2116. doi: 10.1073/pnas.68.9.2112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Krashes MJ, DasGupta S, Vreede A, White B, Armstrong JD, Waddell S. A neural circuit mechanism integrating motivational state with memory expression in Drosophila. Cell. 2009;139:416–427. doi: 10.1016/j.cell.2009.08.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. 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:703–714. doi: 10.1016/j.neuron.2004.08.019. [DOI] [PubMed] [Google Scholar]
  43. Lee KP, Simpson SJ, Clissold FJ, Brooks R, Ballard JWO, Taylor PW, Soran N, Raubenheimer D. Lifespan and reproduction in Drosophila: New insights from nutritional geometry. PNAS. 2008;105:2498–2503. doi: 10.1073/pnas.0710787105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Leitão-gonçalves R, Ribeiro C. Using neuron specific RNAi in Drosophila for understanding the molecular and neuronal basis of behavior. In: Dubnau J, editor. Behavioral Genetics of the Fly (Drosophila Melanogaster) Cambridge, UK: Cambridge University Press; 2014. pp. 202–216. [DOI] [Google Scholar]
  45. Levine ME, Suarez JA, Brandhorst S, Balasubramanian P, Cheng CW, Madia F, Fontana L, Mirisola MG, Guevara-Aguirre J, Wan J, Passarino G, Kennedy BK, Wei M, Cohen P, Crimmins EM, Longo VD. Low protein intake is associated with a major reduction in IGF-1, cancer, and overall mortality in the 65 and younger but not older population. Cell Metabolism. 2014;19:407–417. doi: 10.1016/j.cmet.2014.02.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Libert S, Zwiener J, Chu X, Vanvoorhies W, Roman G, Pletcher SD. Regulation of Drosophila life span by olfaction and food-derived odors. Science. 2007;315:1133–1137. doi: 10.1126/science.1136610. [DOI] [PubMed] [Google Scholar]
  47. Lisman J. The challenge of understanding the brain: where we stand in 2015. Neuron. 2015;86:864–882. doi: 10.1016/j.neuron.2015.03.032. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Lopes G, Bonacchi N, Frazão J, Neto JP, Atallah BV, Soares S, Moreira L, Matias S, Itskov PM, Correia PA, Medina RE, Calcaterra L, Dreosti E, Paton JJ, Kampff AR. Bonsai: an event-based framework for processing and controlling data streams. Frontiers in Neuroinformatics. 2015;9:7. doi: 10.3389/fninf.2015.00007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Luo L, Callaway EM, Svoboda K. Genetic dissection of neural circuits. Neuron. 2008;57:634–660. doi: 10.1016/j.neuron.2008.01.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Martin JR. A portrait of locomotor behaviour in Drosophila determined by a video-tracking paradigm. Behavioural Processes. 2004;67:207–219. doi: 10.1016/j.beproc.2004.04.003. [DOI] [PubMed] [Google Scholar]
  51. McMeniman CJ, Corfas RA, Matthews BJ, Ritchie SA, Vosshall LB. Multimodal integration of carbon dioxide and other sensory cues drives mosquito attraction to humans. Cell. 2014;156:1060–1071. doi: 10.1016/j.cell.2013.12.044. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Monastirioti M, Linn CE, White K. Characterization of Drosophila tyramine beta-hydroxylase gene and isolation of mutant flies lacking octopamine. Journal of Neuroscience. 1996;16:3900–3911. doi: 10.1523/JNEUROSCI.16-12-03900.1996. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Muijres FT, Elzinga MJ, Melis JM, Dickinson MH. Flies evade looming targets by executing rapid visually directed banked turns. Science. 2014;344:172–177. doi: 10.1126/science.1248955. [DOI] [PubMed] [Google Scholar]
  54. Ohyama T, Schneider-Mizell CM, Fetter RD, Aleman JV, Franconville R, Rivera-Alba M, Mensh BD, Branson KM, Simpson JH, Truman JW, Cardona A, Zlatic M. A multilevel multimodal circuit enhances action selection in Drosophila. Nature. 2015;520:633–639. doi: 10.1038/nature14297. [DOI] [PubMed] [Google Scholar]
  55. Olsen SR, Wilson RI. Cracking neural circuits in a tiny brain: new approaches for understanding the neural circuitry of Drosophila. Trends in Neurosciences. 2008;31:512–520. doi: 10.1016/j.tins.2008.07.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Öst A, Lempradl A, Casas E, Weigert M, Tiko T, Deniz M, Pantano L, Boenisch U, Itskov PM, Stoeckius M, Ruf M, Rajewsky N, Reuter G, Iovino N, Ribeiro C, Alenius M, Heyne S, Vavouri T, Pospisilik JA. Paternal diet defines offspring chromatin state and intergenerational obesity. Cell. 2014;159:1352–1364. doi: 10.1016/j.cell.2014.11.005. [DOI] [PubMed] [Google Scholar]
  57. Piper MD, Blanc E, Leitão-Gonçalves R, Yang M, He X, Linford NJ, Hoddinott MP, Hopfen C, Soultoukis GA, Niemeyer C, Kerr F, Pletcher SD, Ribeiro C, Partridge L. A holidic medium for Drosophila melanogaster. Nature Methods. 2014;11:100–105. doi: 10.1038/nmeth.2731. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Ribeiro C, Dickson BJ. Sex peptide receptor and neuronal TOR/S6K signaling modulate nutrient balancing in Drosophila. Current Biology. 2010;20:1000–1005. doi: 10.1016/j.cub.2010.03.061. [DOI] [PubMed] [Google Scholar]
  59. Ro J, Harvanek ZM, Pletcher SD. FLIC: High-throughput, continuous analysis of feeding behaviors in Drosophila. PLoS One. 2014;9:e101107. doi: 10.1371/journal.pone.0101107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Robie AA, Straw AD, Dickinson MH. Object preference by walking fruit flies, Drosophila melanogaster, is mediated by vision and graviperception. Journal of Experimental Biology. 2010;213:2494–2506. doi: 10.1242/jeb.041749. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Root CM, Ko KI, Jafari A, Wang JW. Presynaptic facilitation by neuropeptide signaling mediates odor-driven food search. Cell. 2011;145:133–144. doi: 10.1016/j.cell.2011.02.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Rytz R, Croset V, Benton R. Ionotropic receptors (IRs): chemosensory ionotropic glutamate receptors in Drosophila and beyond. Insect Biochemistry and Molecular Biology. 2013;43:888–897. doi: 10.1016/j.ibmb.2013.02.007. [DOI] [PubMed] [Google Scholar]
  63. Schneider J, Dickinson MH, Levine JD. Social structures depend on innate determinants and chemosensory processing in Drosophila. PNAS. 2012;109:17174–17179. doi: 10.1073/pnas.1121252109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Seeds AM, Ravbar P, Chung P, Hampel S, Midgley FM, Mensh BD, Simpson JH. A suppression hierarchy among competing motor programs drives sequential grooming in Drosophila. eLife. 2014;3:e02951. doi: 10.7554/eLife.02951. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Simon JC, Dickinson MH. A new chamber for studying the behavior of Drosophila. PLoS One. 2010;5:e8793. doi: 10.1371/journal.pone.0008793. [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. Simpson SJ, Le Couteur DG, Raubenheimer D. Putting the balance back in diet. Cell. 2015;161:18–23. doi: 10.1016/j.cell.2015.02.033. [DOI] [PubMed] [Google Scholar]
  67. Simpson SJ, Raubenheimer D. The Nature of Nutrition: A Unifying Framework From Animal Adaptation to Human Obesity. Oxford, UK: Princeton University Press; 2012. [Google Scholar]
  68. Skorupa DA, Dervisefendic A, Zwiener J, Pletcher SD. Dietary composition specifies consumption, obesity, and lifespan in Drosophila melanogaster. Aging Cell. 2008;7:478–490. doi: 10.1111/j.1474-9726.2008.00400.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Solon-Biet SM, McMahon AC, Ballard JW, Ruohonen K, Wu LE, Cogger VC, Warren A, Huang X, Pichaud N, Melvin RG, Gokarn R, Khalil M, Turner N, Cooney GJ, Sinclair DA, Raubenheimer D, Le Couteur DG, Simpson SJ. The ratio of macronutrients, not caloric intake, dictates cardiometabolic health, aging, and longevity in ad libitum-fed mice. Cell Metabolism. 2014;19:418–430. doi: 10.1016/j.cmet.2014.02.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Solon-Biet SM, Walters KA, Simanainen UK, McMahon AC, Ruohonen K, Ballard JWO, Raubenheimer D, Handelsman DJ, Le Couteur DG, Simpson SJ. Macronutrient balance, reproductive function, and lifespan in aging mice. PNAS. 2015;112:3481–3486. doi: 10.1073/pnas.1422041112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Sternson SM. Hypothalamic survival circuits: blueprints for purposive behaviors. Neuron. 2013;77:810–824. doi: 10.1016/j.neuron.2013.02.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Taghert PH, Nitabach MN. Peptide neuromodulation in invertebrate model systems. Neuron. 2012;76:82–97. doi: 10.1016/j.neuron.2012.08.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Ugur B, Chen K, Bellen HJ. Drosophila tools and assays for the study of human diseases. Disease Models & Mechanisms. 2016;9:235–244. doi: 10.1242/dmm.023762. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. van Breugel F, Dickinson MH. Plume-tracking behavior of flying Drosophila emerges from a set of distinct sensory-motor reflexes. Current Biology. 2014;24:274–286. doi: 10.1016/j.cub.2013.12.023. [DOI] [PubMed] [Google Scholar]
  75. Vargas MA, Luo N, Yamaguchi A, Kapahi P. A role for S6 kinase and serotonin in postmating dietary switch and balance of nutrients in D. melanogaster. Current Biology. 2010;20:1006–1011. doi: 10.1016/j.cub.2010.04.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Verhagen JV, Engelen L. The neurocognitive bases of human multimodal food perception: sensory integration. Neuroscience & Biobehavioral Reviews. 2006;30:613–650. doi: 10.1016/j.neubiorev.2005.11.003. [DOI] [PubMed] [Google Scholar]
  77. Vosshall LB, Stocker RF. Molecular architecture of smell and taste in Drosophila. Annual Review of Neuroscience. 2007;30:505–533. doi: 10.1146/annurev.neuro.30.051606.094306. [DOI] [PubMed] [Google Scholar]
  78. Vosshall LB. Into the mind of a fly. Nature. 2007;450:193–197. doi: 10.1038/nature06335. [DOI] [PubMed] [Google Scholar]
  79. Walker SJ, Corrales-Carvajal VM, Ribeiro C. Postmating circuitry modulates salt taste processing to increase reproductive output in Drosophila. Current Biology. 2015;25:2621–2630. doi: 10.1016/j.cub.2015.08.043. [DOI] [PubMed] [Google Scholar]
  80. Warwick S, Vahed K, Raubenheimer D, Simpson SJ. Free amino acids as phagostimulants in cricket nuptial gifts: support for the 'Candymaker' hypothesis. Biology Letters. 2009;5:194–196. doi: 10.1098/rsbl.2008.0731. [DOI] [PMC free article] [PubMed] [Google Scholar]
  81. Yang Z, Yu Y, Zhang V, Tian Y, Qi W, Wang L. Octopamine mediates starvation-induced hyperactivity in adult Drosophila. PNAS. 2015;112:5219–5224. doi: 10.1073/pnas.1417838112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Yapici N, Cohn R, Schusterreiter C, Ruta V, Vosshall LB. A taste circuit that regulates ingestion by integrating food and hunger signals. Cell. 2016;165:715–729. doi: 10.1016/j.cell.2016.02.061. [DOI] [PMC free article] [PubMed] [Google Scholar]
  83. Yapici N, Kim YJ, Ribeiro C, Dickson BJ. A receptor that mediates the post-mating switch in Drosophila reproductive behaviour. Nature. 2008;451:33–37. doi: 10.1038/nature06483. [DOI] [PubMed] [Google Scholar]
  84. Zeevi D, Korem T, Zmora N, Israeli D, Rothschild D, Weinberger A, Ben-Yacov O, Lador D, Avnit-Sagi T, Lotan-Pompan M, Suez J, Mahdi JA, Matot E, Malka G, Kosower N, Rein M, Zilberman-Schapira G, Dohnalová L, Pevsner-Fischer M, Bikovsky R, Halpern Z, Elinav E, Segal E. Personalized nutrition by prediction of glycemic responses. Cell. 2015;163:1079–1094. doi: 10.1016/j.cell.2015.11.001. [DOI] [PubMed] [Google Scholar]
  85. Zou S, Liedo P, Altamirano-Robles L, Cruz-Enriquez J, Morice A, Ingram DK, Kaub K, Papadopoulos N, Carey JR. Recording lifetime behavior and movement in an invertebrate model. PLoS One. 2011;6:e18151. doi: 10.1371/journal.pone.0018151. [DOI] [PMC free article] [PubMed] [Google Scholar]
eLife. 2016 Oct 22;5:e19920. doi: 10.7554/eLife.19920.028

Decision letter

Editor: Iain D Couzin1

In the interests of transparency, eLife includes the editorial decision letter and accompanying author responses. A lightly edited version of the letter sent to the authors after peer review is shown, indicating the most substantive concerns; minor comments are not usually included.

Thank you for submitting your article "Internal states drive nutrient homeostasis by modulating exploration-exploitation trade-off" for consideration by eLife. Your article has been favorably evaluated by K VijayRaghavan as the Senior Editor and three reviewers, including Steve Simpson (Reviewer #2) and a member of our Board of Reviewing Editors.

The reviewers have discussed the reviews with one another and the Reviewing Editor has drafted this decision to help you prepare a revised submission..

Summary:

All of the reviewers applaud the rigor of the quantitative approach employed in this work, and find value in the comprehensive analysis of Drosophila behavior in the face of specific nutritional challenges. The results were seen as both interesting and useful to a broad range of readers.

Essential revisions:

It is felt that the link to neural mechanism is rather a 'proof of principle', and does not go deep into the mechanism as may be possible with this model system. It was not felt that this is a critical flaw, but rather that the limitations need to be more clearly discussed, providing an opportunity to set the scene as to where research of this type could (and likely will) be directed in future.

Reviewer #1:

This paper addresses the very important challenge of identifying key drivers of nutritional decision-making using Drosophila as a tractable model organism. Furthermore, it employs advanced tracking to quantify the motion and precise feeding decisions of individuals among multiple resource patches.

This analysis shows that flies sense deficits in amino acids and can adjust their motion and feeding behavior to compensate, and that this is impacted by their mating state. Given that the experimental design was such as to remove (to a great degree) the effects of search, and rather to focus on the behavior of flies once on a patch, the analysis focused on the decisions to engage and to leave (as opposed to find) patches. The analysis includes highly detailed information as to how flies move on the patches.

An area which needs improving, in my mind, however, is at it relates to the neural mechanisms at work. This has the potential to be the most interesting part of the paper (and the one I was looking forward to getting to!), but in the end it provides useful, but indirect, evidence of the actual mechanisms at work. For example, the experiments suggest the importance of octopamine, but they do not get into the regions of the brain (or even if it is in the brain) important, and I think that while this section is helpful it is more of a start than a conclusion to the story, and perhaps the authors could make more clear what is, and what is not, shown by these data.

In summary I find this a highly rigorous and useful paper.

Reviewer #2:

The authors have provided an extremely detailed behavioural analysis of nutrient-specific foraging behaviour in Drosophila, coupled with two experiments looking at the involvement of olfaction and octopamine in different stages of the control of protein homeostasis. Although the manuscript is extensive, the narrative is interesting and the illustrations beautifully composed. The paper adds significantly to the literature on appetite control and nutrient regulation. I have a few somewhat substantive issues.

Abstract: change "deeply" to "profoundly" or similar. I would also remove the second sentence, which is over-egging things and not strictly true.

I felt the term "engaging the food" to be a little awkward (begs the question "Engaging food in what?"). "Stop at" is what the data indicate – or "arrested at the food". I pick up on the precision of language a little more below.

In the subsection “The lack of dietary AAs increases exploitation and local exploration of yeast patches”. This is more by way of a comment than a suggestion: the point is introduced and to some extent tested, but it is worth pointing out somewhere that the volume ingested during a feeding bout (meal) is a product of the duration of the feeding bout and the rate at which food is ingested across the meal. Meal size (and its volumetric and other determinants) has been shown in some insect systems to be positively correlated with ingestion rate and affected by common inputs (both homeostatic and non-homeostatic) (e.g. Animal Behav. 36: 1216-27). Hence, meal duration (which is estimated in the present set up) tends to be a more conserved variable than meal size (a fly can eat more by ingesting faster over the same meal duration). Changes in ingestion rate can result from greater amplitude of feeding central pattern generator (and hence motor) output, or greater frequency of rhythm, or through a change in intra-meal burst and interval structure. The data reported address and show a contribution from the latter, but changes in both amplitude and frequency of CPG output are also known.

In the fourth paragraph of the subsection “The lack of dietary AAs increases exploitation and local exploration of yeast patches”.– 'intake' rather than 'use', which is a vague term. There are numerous other instances throughout the manuscript of faintly teleological terminology – "decision", "engage", "exploitation", "exploration", "choose to visit distant patches", etc. In such a beautiful analysis of behaviour as this, I would rather see clear, objective description. Maybe I'm being a pedant on this, but J.S. Kennedy (The New Anthropomorphism, 1993, CUP) was spot on in my view.

The one counter-intuitive finding is that reported in the subsection “Amino acid challenges reduce global exploration and increase revisits to the same yeast patch”. My understanding is that theory and experiment (Levy flight; intrinsic (local) search vs. extrinsic search (ranging); Dethier's fly dance, etc.) predicts that flies should stay nearby "high quality" patches and roam more extensively when on "lower quality" patches. Staying nearby to an imbalanced food source when in a state of AA imbalance and roaming globally when AA balanced appears contrary to expectations and suggests something interesting, perhaps about the evolved predicted spatial distribution of protein resources in the environment, e.g. complementary imbalanced AA sources are likely to be close by to one another. In the last paragraph of the aforementioned subsection there is an unconvincing statement on this issue, which needs some more thought I think.

Subsection “ORs mediate efficient recognition of yeast as an appropriate food source”. This section could be set up by referencing back to the observation reported earlier that arrival rates at food sources was not impacted by state – implying that olfactory cues acting over a distance are not involved, but close-range chemosensory cues (short-range olfactory and gustatory) are more likely. Would help build the narrative.

The Discussion is where you need to address the matter mentioned above in the subsection “Amino acid challenges reduce global exploration and increase revisits to the same yeast patch”. The blowfly dance results seem at odds with present findings – flies dance more vigorously and stay longer locally after stimulation with a higher concentration food source. The same is the case for bees and other animals (William Bell's work – e.g. see his 1990 book). It is true that greater levels of deprivation elicit greater local dancing to a given food; but still the effect is strongly dependent on food quality relative to state.

Reviewer #3:

Ribeiro's group uses this paper to establish a new assay to assess the relationships between internal state defined by the interaction between sexual experience (mated or virgin) and metabolic experience (more or less amino acids in the medium) on behaviour (explore or exploit). I like the analysis very much and I think it will be a welcome addition to the literature. Their method includes potential to dissect decision-making at the level of behavior and offers a world of new possibilities for evaluating the contribution of genes, development, and physiology to behavior. They note and promise that they are providing insight into mechanism as well and this part of the paper pales when compared to the behavioral analysis. The nod to mechanism occurs via the manipulation of Orco to demonstrate a role for smell in the behavioural strategy used by mated females. Not clear that it plays a role for the virgins because there are no data and it seems less likely but entirely possible that olfaction is used to detect or evaluate sugars. I do not think more experiments need to be performed but I think the Orco data provide more of a proof of principle than an exposition of mechanism and the paper would be improved if these data were presented that way. This same point applies to the tyramine β hydroxylase experiments. The paper is written as if these data provide insight into the brain, but there are no experiments to show that brain octopamine as opposed to octopamine in the ventral nerve cord are responsible for the effects. Again, I am not suggesting that this already long manuscript needs more data, only that the nod to mechanism is more of statement of possibility than indication of genetic pathways, anatomic pathways, or neuronal circuits. The paper is more than just a "methods paper" because of the insights provided by this analysis of effects of environment on foraging, reproductive behavior and, potentially, decision making. The readers of eLife will like this one.

eLife. 2016 Oct 22;5:e19920. doi: 10.7554/eLife.19920.029

Author response


[…] Essential revisions:

It is felt that the link to neural mechanism is rather a 'proof of principle', and does not go deep into the mechanism as may be possible with this model system. It was not felt that this is a critical flaw, but rather that the limitations need to be more clearly discussed, providing an opportunity to set the scene as to where research of this type could (and likely will) be directed in future.

We agree that the analysis of the Orco and Tβh mutants is a first step towards a detailed mechanistic dissection of the behavioral adaptations happening upon changes in internal state. In the revised version we have modified the Introduction, the Orco manipulation section, the octopamine section and the Discussion to highlight this more clearly. We highlight the specific changes below and in the answers to the comments to each reviewer:

We have modified the second part of the last paragraph of the Introduction to highlight that the two mutation experiments are examples of the potential of our setup to dissect the underlying neuronal mechanisms of the behavior under study. We also removed the word “mechanistic” and described our results from the mutation experiments as “initial insights”:

“Importantly, we provide two examples on how our paradigm can be used in the dissection of the genetic and neuronal mechanisms underlying nutrient decisions: First, we show that olfaction is not required to reach protein homeostasis, but that it mediates the efficient recognition of yeast as an appropriate food source in mated females. Second, we show that octopamine mediates homeostatic postmating responses, but not the effects of internal sensing of amino acid deprivation state. Our study provides a quantitative description of how the fly changes behavioral decisions to achieve homeostatic nutrient balancing as well as initial insights into the mechanisms underlying protein homeostasis.”

The first paragraph of the Orco manipulation section now clearly states that this experiment is a proof of principle:

“As a proof of principle of how our setup could be used to uncover the neuronal mechanisms underlying foraging decisions, we decided to analyze the role of olfaction in nutrient homeostasis.”

To clarify that the results from the octopamine manipulation do not give us specific insights about the brain, we state that the Tβh manipulation affects the whole animal. We also added "to show that our setup could be used" to this sentence to highlight the fact that these experiments are more about exploring the usefulness of the tracking approach than an in depth exploration of molecular mechanisms:

“We therefore decided to show that our setup could be used to test possible neuromodulatory effects of octopamine on yeast foraging, using mutants for the gene encoding Tyramine β-hydroxylase (TβH), an enzyme required for the biosynthesis of octopamine in the whole animal.”

And in the last paragraph of the octopamine section, we highlight that this is just a “first step” in the dissection of the mechanisms:

“These results provide a first step towards dissecting the role of octopamine in nutrient homeostasis.”

We have added the word “behavioral” to emphasize that we are referring to the behavioral and not neuronal mechanisms: “Furthermore, these results demonstrate that one way in which mating increases yeast preference is by inducing long feeding bouts, allowing us to make first conclusions about the behavioral mechanisms behind changes in food choice”.

Reviewer #1:

This paper addresses the very important challenge of identifying key drivers of nutritional decision-making using Drosophila as a tractable model organism. Furthermore, it employs advanced tracking to quantify the motion and precise feeding decisions of individuals among multiple resource patches.

This analysis shows that flies sense deficits in amino acids and can adjust their motion and feeding behavior to compensate, and that this is impacted by their mating state. Given that the experimental design was such as to remove (to a great degree) the effects of search, and rather to focus on the behavior of flies once on a patch, the analysis focused on the decisions to engage and to leave (as opposed to find) patches. The analysis includes highly detailed information as to how flies move on the patches.

An area which needs improving, in my mind, however, is at it relates to the neural mechanisms at work. This has the potential to be the most interesting part of the paper (and the one I was looking forward to getting to!), but in the end it provides useful, but indirect, evidence of the actual mechanisms at work. For example, the experiments suggest the importance of octopamine, but they do not get into the regions of the brain (or even if it is in the brain) important, and I think that while this section is helpful it is more of a start than a conclusion to the story, and perhaps the authors could make more clear what is, and what is not, shown by these data.

In summary I find this a highly rigorous and useful paper.

We thank the reviewer for the positive evaluation of our work. We have modified the Introduction, the interpretation of the octopamine results and the Discussion to be clearer about what is and what is not shown by these data. Please see the above response to the Essential Revisions for details on the revised sections.

Reviewer #2:

The authors have provided an extremely detailed behavioural analysis of nutrient-specific foraging behaviour in Drosophila, coupled with two experiments looking at the involvement of olfaction and octopamine in different stages of the control of protein homeostasis. Although the manuscript is extensive, the narrative is interesting and the illustrations beautifully composed. The paper adds significantly to the literature on appetite control and nutrient regulation. I have a few somewhat substantive issues.

Abstract: change "deeply" to "profoundly" or similar. I would also remove the second sentence, which is over-egging things and not strictly true.

We have changed the word “deeply” as suggested and we have changed the second sentence of the Abstract to:

“A quantitative understanding of the behavioral changes upon metabolic challenges is key to a mechanistic dissection of how animals maintain nutritional homeostasis.”

I felt the term "engaging the food" to be a little awkward (begs the question "Engaging food in what?"). "Stop at" is what the data indicate – or "arrested at the food". I pick up on the precision of language a little more below.

We agree the word “engaging the food” might not be the best option. In our opinion what is important is to use a terminology that clearly differentiates between the animal stopping at the food and not moving at all (“resting”) and the animal stopping but being still active (e.g. “micromoving”). As "stop at" should be clear enough we have decided to follow your recommendation and use the term “stop at” the food patch instead of “engaging” the food patch. We have changed the manuscript and the figures accordingly.

In the subsection “The lack of dietary AAs increases exploitation and local exploration of yeast patches”. This is more by way of a comment than a suggestion: the point is introduced and to some extent tested, but it is worth pointing out somewhere that the volume ingested during a feeding bout (meal) is a product of the duration of the feeding bout and the rate at which food is ingested across the meal. Meal size (and its volumetric and other determinants) has been shown in some insect systems to be positively correlated with ingestion rate and affected by common inputs (both homeostatic and non-homeostatic) (e.g. Animal Behav. 36: 1216-27). Hence, meal duration (which is estimated in the present set up) tends to be a more conserved variable than meal size (a fly can eat more by ingesting faster over the same meal duration). Changes in ingestion rate can result from greater amplitude of feeding central pattern generator (and hence motor) output, or greater frequency of rhythm, or through a change in intra-meal burst and interval structure. The data reported address and show a contribution from the latter, but changes in both amplitude and frequency of CPG output are also known.

While food intake can theoretically be increased by an increase in the frequency of the feeding rhythm we had not found any evidence for such an effect in Drosophila melanogaster in a previous study (Itskov et al., Nature Communications, 2014). However, a careful analysis of the feeding rhythm data of the experiments in this manuscript revealed very small effects of internal states on sip durations and inter-sip-intervals. The effects are very small but we have decided to change the manuscript to include these data. In the two new panels D and E of Figure 4—figure supplement 3, we now analyze the effect of internal state on the feeding rhythm. We have added the following text to describe the observed effects:

“The volume ingested during a feeding bout is a product of the duration of that bout and the feeding rate. […] However, the mode of the sip duration distributions did not change when mated flies pre-fed a suboptimal diet were compared to females kept on a rich diet (0.12 s, p = 0.1196), but it decreased when flies were pre-fed the AA- diet (0.11 s, p = 0.0067).”

In the fourth paragraph of the subsection “The lack of dietary AAs increases exploitation and local exploration of yeast patches” – 'intake' rather than 'use', which is a vague term. There are numerous other instances throughout the manuscript of faintly teleological terminology – "decision", "engage", "exploitation", "exploration", "choose to visit distant patches", etc. In such a beautiful analysis of behaviour as this, I would rather see clear, objective description. Maybe I'm being a pedant on this, but J.S. Kennedy (The New Anthropomorphism, 1993, CUP) was spot on in my view.

We have done our best to carefully choose the words we used in this study. In general we tried to avoid any word which indicates that we are measuring food intake using video tracking or the flyPAD method. Although all our data indicate that both methods allow us to extrapolate food intake quite precisely, technically speaking we are not measuring food intake.

We have modified the text to minimize the use of the words mentioned by Dr. Simpson. We find however, that completely avoiding the use of words such as "decide" and "choose" is detrimental to the readability of the manuscript. Furthermore, these two terms are widely used in many studies describing animal behavior, including studies using invertebrates. See for example:

1) Bussell, Jennifer J., Nilay Yapici, Stephen X. Zhang, Barry J. Dickson, and Leslie B. Vosshall. 2014. “Abdominal-B Neurons Control Drosophila Virgin Female Receptivity.” Current Biology24 (14). In Abstract: "The female must parse her own reproductive state, the external environment, and male sensory cues to decide whether to copulate"

2) Palmer, Chris R., and William B. Kristan. 2011. “Contextual Modulation of Behavioral Choice.” Current Opinion in Neurobiology21 (4). "Both the nematode worm (Caenorhabditis elegans) [11] and the medicinal leech (Hirudo sp.) [12] decide whether to swim or to crawl based, in part, on the level of water they are in."

3) Barron, Andrew B, Kevin N Gurney, Lianne F S Meah, Eleni Vasilaki, and James A R Marshall. 2015. “Decision-Making and Action Selection in Insects: Inspiration from Vertebrate-Based Theories.” Frontiers in Behavioral Neuroscience9 (August). "The process of decision-making in the insect olfactory learning pathway is illustrated by how the system changes as an animal learns a specific odor is rewarding and changes its behavior to effect an appetitive response to the odor"

4) Dickson, Barry J. 2008. “Wired for Sex: The Neurobiology of Drosophila Mating Decisions.” Science322 (5903). "The female decides whether to accept or reject the male, depending on her perception of his pheromone and acoustic signals, as well as her own readiness to mate."

5) Haberkern, Hannah, and Vivek Jayaraman. 2016. “Studying Small Brains to Understand the Building Blocks of Cognition.” Current Opinion in Neurobiology37. "The strongest behavioral evidence that insects must use abstract internal representations comes from honeybees, which display behaviors akin to deliberative decision-making."

6) Yang, Chung-Hui, Priyanka Belawat, Ernst Hafen, Lily Y Jan, and Yuh-Nung Jan. 2008. “Drosophila Egg-Laying Site Selection as a System to Study Simple Decision-Making Processes.” Journal Article. Science319 (5870). "The first indications that egg-laying site selection may employ a simple decision-based process emerged from our observations of females as they lay eggs."

We have therefore felt it best to not completely remove these two words from our manuscript.

The one counter-intuitive finding is that reported in the subsection “Amino acid challenges reduce global exploration and increase revisits to the same yeast patch”. My understanding is that theory and experiment (Levy flight; intrinsic (local) search vs. extrinsic search (ranging); Dethier's fly dance, etc.) predicts that flies should stay nearby "high quality" patches and roam more extensively when on "lower quality" patches. Staying nearby to an imbalanced food source when in a state of AA imbalance and roaming globally when AA balanced appears contrary to expectations and suggests something interesting, perhaps about the evolved predicted spatial distribution of protein resources in the environment, e.g. complementary imbalanced AA sources are likely to be close by to one another. In the last paragraph of the aforementioned subsection there is an unconvincing statement on this issue, which needs some more thought I think.

Unfortunately, we think that the point raised by Dr. Simpson stems from a misunderstanding of our experimental design. We recognize that we have to be clearer in our description. The AA+ rich (balanced) and AA+ suboptimal (imbalanced) labels refer to the dietary pre-treatment of the flies 3 days prior to the foraging assay. During the assay, all flies irrespective of their internal state were tested in an arena containing food patches of the same quality (9 food patches with yeast at 180g/L and the other 9 with sucrose at 180g/L). This is important as the experimental design aims at describing the effect of different internal state on foraging in the same environment. Therefore, since we don’t test the behavior of flies around patches of varying qualities, our results don’t contradict the previously reported findings. We therefore consider the statement valid: “Taken together, these changes in exploratory strategy should enable the fly to efficiently increase the intake of yeast while minimizing the distance travelled to the next spot.”

Because we consider this is a crucial point that should be very clear in our manuscript, we have now modified both the text and the figures to clarify the experimental design and our findings more clearly. Specifically:

When describing the diets used for the metabolic state manipulations, we added a sentence that clarifies that these diets were given before the assay: “we manipulated the metabolic state of the flies by letting them feed ad libitum on a chemically defined (holidic) medium (Piper et al., 2014) during three days prior to the foraging assay. This holidic medium allows us to specifically manipulate amino acids (AA) in the diet”.

In Figure 2A, the holidic medium label now says: “Dietary pre-treatment (holidic medium):”

We changed the text in the last paragraph of the Introduction: "Furthermore, we describe how the internal deficit of dietary amino acids increases exploitation of proteinaceous patches and restricts global exploration and how these behaviors dynamically shift towards increasing exploration as the fly reaches satiation.”

In Figure 5 we have added the label “Dietary pre-treatment” on top of the text describing the internal state conditions and we have added the labels “Yeast 180 g/L” and “Sucrose 180 g/L” on top of the representative trajectories in panels A, B and C. Furthermore, in all figures containing panels with box plots, we have changed the label referring to the metabolic state from “AA” to “AA pre-treatment”.

At the beginning of the Results section where we describe the tracking setup, we explain: “To capture how flies decide what food to eat, we built an automated image-based tracking setup (Figure 1A) that captures the position of a single Drosophila melanogaster in a foraging arena (Figure 1B) containing 9 yeast patches (amino acid source) and 9 sucrose patches (carbohydrate source) of equal concentration.”

Substrate labels in Figure 1B now read: “Yeast 180g/L” and “Sucrose 180 g/L”.

We hope that with these changes clarify the experimental design.

Subsection “ORs mediate efficient recognition of yeast as an appropriate food source”. This section could be set up by referencing back to the observation reported earlier that arrival rates at food sources was not impacted by state – implying that olfactory cues acting over a distance are not involved, but close-range chemosensory cues (short-range olfactory and gustatory) are more likely. Would help build the narrative.

We thank Dr. Simpson for this suggestion. We had considered using this narrative but decided not to do so given that the encounter rate increases in AA-deprived flies.

The Discussion is where you need to address the matter mentioned above in the subsection “Amino acid challenges reduce global exploration and increase revisits to the same yeast patch”. The blowfly dance results seem at odds with present findings – flies dance more vigorously and stay longer locally after stimulation with a higher concentration food source. The same is the case for bees and other animals (William Bell's work – e.g. see his 1990 book). It is true that greater levels of deprivation elicit greater local dancing to a given food; but still the effect is strongly dependent on food quality relative to state.

We hope that we have clarified this issue in the preceding answer to your earlier comments. As we think that the interpretation is still correct and there is no conflict with previous blowfly dance results we decided not to modify the text in the subsection “Amino acid challenges reduce global exploration and increase revisits to the same yeast patch”.

Reviewer #3:

Ribeiro's group uses this paper to establish a new assay to assess the relationships between internal state defined by the interaction between sexual experience (mated or virgin) and metabolic experience (more or less amino acids in the medium) on behaviour (explore or exploit). I like the analysis very much and I think it will be a welcome addition to the literature. Their method includes potential to dissect decision making at the level of behavior and offers a world of new possibilities for evaluating the contribution of genes, development, and physiology to behavior. They note and promise that they are providing insight into mechanism as well and this part of the paper pales when compared to the behavioral analysis. The nod to mechanism occurs via the manipulation of Orco to demonstrate a role for smell in the behavioural strategy used by mated females. Not clear that it plays a role for the virgins because there are no data and it seems less likely but entirely possible that olfaction is used to detect or evaluate sugars. I do not think more experiments need to be performed but I think the Orco data provide more of a proof of principle than an exposition of mechanism and the paper would be improved if these data were presented that way. This same point applies to the tyramine β hydroxylase experiments. The paper is written as if these data provide insight into the brain, but there are no experiments to show that brain octopamine as opposed to octopamine in the ventral nerve cord are responsible for the effects. Again, I am not suggesting that this already long manuscript needs more data, only that the nod to mechanism is more of statement of possibility than indication of genetic pathways, anatomic pathways, or neuronal circuits. The paper is more than just a "methods paper" because of the insights provided by this analysis of effects of environment on foraging, reproductive behavior and, potentially, decision making. The readers of eLife will like this one.

We appreciate the positive assessment of our work and thank the reviewer for the pertinent remarks. We have modified several sections of the manuscript to present the tyramine β hydroxylase manipulation results and the Orco manipulation results as proof of principle rather than mechanistic insights into neuronal processes (see also answers to major comments of Reviewer #1). In summary:

In the last paragraph of the Introduction we highlight that the two mutation experiments are examples of the potential of our setup to dissect neuronal mechanisms of the behavior under study. We also removed the word “mechanistic” and describe the results from the experiments with the mutants as “initial insights”.

We introduce the Orco manipulation as a proof of principle experiment (subsection “ORs mediate efficient recognition of yeast as an appropriate food source”, first paragraph).

In the octopamine section we added "we therefore decided to show that our setup could be used to test possible neuromodulatory effects of octopamine on yeast foraging" to this sentence to highlight the fact that these experiments are more about exploring the usefulness of the tracking approach than an in depth exploration of molecular mechanisms. And in the conclusion of this section, we highlight that this is just a “first step” in the dissection of the mechanisms.

In the Discussion to remove any association of our results with specific insights about the brain (second paragraph), we changed the word “brain” by “nervous system” and highlight that it is the accumulated evidence (not just our results) which lead us to conclude that the nervous system might use different mechanisms to change specific aspects of behavioral outcomes.

Furthermore, we have modified the Abstract to clearly state that the results of the Orco manipulation apply only to mated females:

“Finally, we show that olfaction mediates the efficient recognition of yeast as an appropriate protein source in mated females”.

We have also added this clarification in the conclusion of the results of the Orco manipulation section:

“Taken together these results show that, in mated females, OR-mediated olfaction is necessary for efficient recognition of yeast as an appropriate resource but is not required to locate food patches at a short range or to achieve nutritional homeostasis.”

Finally, we have also included the term “mated” in the Discussion: “Our data suggest that while olfactory-impaired matedflies…”

Regarding the detection of sugars, we are aware that some few studies have suggested that flies can detect sugar at a distance. While this is therefore a possibility we have done our best to minimize that our sucrose patches emit volatiles. We use sucrose with 99.5% purity mixed with ultrapure agarose and milliQ water to prepare our sucrose patch solutions. The sugar patches in our foraging arena should therefore not have any volatiles that can be detected by the flies using olfaction. As the experimental evidences for olfactory detection of sugars at a distance are scarce and we minimize the probability that our sucrose patches emit volatiles we think it is unlikely that flies use olfaction to evaluate sugars. However, as always in science one never knows.

Associated Data

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

    Data Citations

    1. Corrales-Carvajal VM, Faisal AA, Ribeiro C. 2016. Data from: Internal states drive nutrient homeostasis by modulating exploration-exploitation trade-off. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]

    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES