Food regulates the incidence of dwelling, roaming, and quiescence. A: same as Fig. 7A. B: automated scoring of swimming (S), dwelling (D), and quiescence (Q) based on activity corresponding to the data shown in A. A shows 2 h of activity from individual worms immersed in different concentrations of food, and B shows the same data points after being rescored as S, D, or Q. C–E: proportion of time spent in a given behavioral state for each food concentration tested. Worms in 2×, 4×, and 8× food were analyzed with high-food algorithm conditions and the rest with low-food algorithm conditions (see methods and Table 2). The values and error markers show means and SE of 5 experiments totaling ~24 worms for each condition, and values were adjusted by a % of error calculated by comparing algorithm scores to manual scoring. F: relative % of behavioral transitions observed. Direction of transitions was not recorded. Error bars represent the SE of 3 experiments containing a total of 403 sessions from 3 experiments.