Animals switch between behavioral states to adapt to their environments, pursue goals, and to meet energy intake requirements. For example, highly active states are often associated with food or mate searching or predator avoidance while more inactive states are associated with rest or feeding. The nematode C. elegans exhibits behavior states such as dwelling, roaming, and quiescence characterized by low, high, and absent locomotory activity, respectively. It has been observed that food influences the decision to alternately roam or dwell while liquid environments promote a decision to alternate between roaming and quiescence. We investigated the possibility that these three behaviors could exist in any mechanical environment via long-term, longitudinal imaging of C. elegans behavior. We find that roaming, dwelling, and quiescence can occur regardless of the mechanical environment and that fasting induces quiescence by a regulated mechanism that likely depends on neuropeptides. We characterized feeding, locomotion, posture, and egg-laying and find that these stereotypically differ depending on the given behavioral state suggesting that behavioral states reflect the status of multiple neural circuits. We investigated how conserved food-responsive signaling pathways influence behavior state decisions and find that the foraging homolog
egl-4 is regulates the architecture of behavioral dynamics while insulin-like signaling is required in the nervous system to regulate decisions over behavior state type. Overall our results show that dwelling, roaming, and fasting quiescence are not just locomotory states but distinct behavior states regulated food availability and evolutionarily conserved signaling pathways involved in nutrition. .