Animals regulate their food intake in response to the available level of food. Recent observations of feeding dynamics in small animals showed feeding patterns of bursts and pauses, but their function is unknown. Here, we present a data-driven decisiontheoretical model of feeding in Caenorhabditis elegans. Our central assumption is that food intake serves a dual purpose: to gather information about the external food level and to ingest food when the conditions are good. The model recapitulates experimentally observed feeding patterns. It naturally implements trade-offs between speed versus accuracy and exploration versus exploitation in responding to a dynamic environment. We find that the model predicts three distinct regimes in responding to a dynamical environment, with a transition region where animals respond stochastically to periodic signals. This stochastic response accounts for previously unexplained experimental data.decision theory | feeding behavior | sequential analysis R egulation of food intake is important for maintaining energy balance in animals. Failure can lead, for example, to reduced fitness, metabolic disorders, and cardiovascular diseases (1, 2). To successfully regulate their feeding, animals need to assess the expected availability of food in their environment.Recent advances in automated longitudinal imaging of small animals make the acquisition of large-scale quantitative feeding data possible. Data from worms (3, 4) and flies (5) reveal complex dynamics that are responsive to the availability of food in the animal's environment. These data suggest that food uptake occurs in bouts of high-rate feeding, whose duration and frequency increase with the presence of food. Whether these dynamics serve a function is not known.In this paper we hypothesize that the dynamics of feeding observed in small animals are intimately related to a decisionmaking process. Since feeding behaviors are costly in energy and can expose animals to toxins and pathogens, the decision to feed carries consequences and should be considered carefully by the animal. We posit that food uptake from the environment serves two purposes: to provide the animal with information about the food that is available in the environment and to take up nutrients. To explore the implications of this assertion, we develop, analyze, and experimentally test a quantitative model.We focus on the regulation of feeding by the roundworm Caenorhabditis elegans, a free-living nematode that is found predominantly in fruit composts and feeds on bacteria. The feeding organ of the worm, the pharynx, is a simple neuromuscular pump. Each pump brings a small number of bacteria suspended in water into the pharyngeal lumen. The pharynx then expels the water, grinds the bacteria, and sends them into the intestine. Pumping is therefore a proxy for the behavioral dynamics of feeding. Supported by microfluidics technology, time traces of pumping in individual worms can be obtained over long periods of time using either optical (3, 4) or electrophysiological...