(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.