Alternation emerges as a multi-modal strategy for turbulent odor navigation

  1. Nicola Rigolli
  2. Gautam Reddy
  3. Agnese Seminara  Is a corresponding author
  4. Massimo Vergassola  Is a corresponding author
  1. MalGa, Department of Civil, Chemical and Mechanical Engineering, University of Genova, Italy
  2. Institut de Physique de Nice, Université Côte d’Azur, Centre National de la Recherche Scientifique, France
  3. Department of Physics and INFN Genova, University of Genova, Italy
  4. NSF-Simons Center for Mathematical and Statistical Analysis of Biology, Harvard University, United States
  5. Physics & Informatics Laboratories, NTT Research, Inc, United States
  6. Center for Brain Science, Harvard University, United States
  7. Laboratoire de physique de l’École Normale Supérieure, CNRS, PSL Research University, Sorbonne Université, France


Foraging mammals exhibit a familiar yet poorly characterized phenomenon, ‘alternation’, a pause to sniff in the air preceded by the animal rearing on its hind legs or raising its head. Rodents spontaneously alternate in the presence of airflow, suggesting that alternation serves an important role during plume-tracking. To test this hypothesis, we combine fully resolved simulations of turbulent odor transport and Bellman optimization methods for decision-making under partial observability. We show that an agent trained to minimize search time in a realistic odor plume exhibits extensive alternation together with the characteristic cast-and-surge behavior observed in insects. Alternation is linked with casting and occurs more frequently far downwind of the source, where the likelihood of detecting airborne cues is higher relative to ground cues. Casting and alternation emerge as complementary tools for effective exploration with sparse cues. A model based on marginal value theory captures the interplay between casting, surging, and alternation.

Editor's evaluation

This work demonstrates how animals can combine different kinds of sensing actions to improve the accuracy of finding the sources of olfactory signals. Previous work have provided an explanation of the casting and surging behaviors used to find the plume in order to navigate towards the sources. This work adds "alternation" - sniffing in the air far from the ground - that animals can do by rearing on hind legs. The authors show that alternation occurs more frequently far away from the source and that this can be explained by the marginal value theory.


The behavior of dogs alternating between sniffing in the air and close to the ground while tracking an odor scent is familiar to any cynophilist (Thesen et al., 1993; Steen et al., 1996; Hepper and Wells, 2005; Jinn et al., 2020). A similar behavior is well documented for rodents, where the slowdown associated with sniffing in the air can lead to stopping and rearing of the animal on its hind legs (Khan et al., 2012; Gire et al., 2016). This ‘alternation’ between the two sensorimotor modalities strongly suggests that both airborne and ground odor cues may be exploited by animals and integrated into a multi-modal navigation strategy.

Despite the behavior’s familiarity, the reasons underlying the alternation between airborne and ground odor cues as well as the rationale of their integration are largely unknown (Reddy et al., 2022). Rodents may rear on their hind legs for a variety of reasons, generally associated with novelty detection, information gathering, anxiety and fear, as reviewed by Lever et al., 2006. In the laboratory odor-guided search developed by Gire et al., 2016, mice tend to pause and rear more often in the early stages of the task. This empirical observation is consistent with rearing in response to novelty and the hypothesis that raising their head may provide the animals additional olfactory information (Lever et al., 2006). On the physical side, it is expected that ground and airborne odor signals convey complementary information even if both signals are generated by a single source of odors. Indeed, airborne odors are valuable as distal cues because they are transported rapidly over long distances by flows that are often turbulent. The downside of airborne cues is that turbulence breaks odor plumes in discrete pockets, which can only be detected sparsely (Murlis and Jones, 1981; Shraiman and Siggia, 2000; Falkovich et al., 2001; Celani et al., 2014). Furthermore, since local gradients are randomized in relation to the source direction at the timescales of olfactory searches, gradient-ascent navigation strategies are not possible (Vergassola et al., 2007). Conversely, odor cues close to the ground are smoother and more continuous than odors in the air (Fackrell and Robins, 1982; Nironi et al., 2015). The physical reason is that viscous effects make fluids slow down while flowing close to the ground at rest. As a result, boundary layers are created and the structure of the flow depends on the height from the ground (Anderson, 2005). In short, airborne cues are more sparse and difficult to exploit for navigation than ground signals, yet they are faster and cover longer ranges. It is therefore likely that the relative value of sniffing closer vs. farther from the ground depends on the position of the searcher relative to the source via the statistics of odor detections that the searcher experiences. The corresponding decision of the most appropriate sensorimotor modality in response to a given history of detections is then expected to play a major role in determining an effective navigational strategy.

Here, we propose a normative theory to rationalize alternation behavior and the integration of airborne and ground-based olfactory modalities. First, we create a well-controlled setup using fully resolved numerical simulations of the odor concentration field generated by an odor source in a channel flow. Simulations produce realistic odor plumes over distances of several meters to the source. Second, we ask what is the optimal strategy to reach the olfactory source (target) as identified by machine learning methods. Specifically, we formalize the olfactory search problem as a partially observable Markov decision process (POMDP) and use state-of-the-art methods to solve the corresponding Bellman optimization problem. The agent performing the olfactory search is given the choice between the actions of freely moving while sniffing on the ground or stopping and sniffing in the air. Solving the POMDP yields a policy of actions taken in response to a history of odor stimuli, which is encoded into a set of probabilistic beliefs about the location of the source. While the searcher could a priori reach the target using ground cues only, we demonstrate that learned strategies generically feature alternation between airborne and ground odor cues. Alternation is more frequent far downwind of the source and is associated with casting. The emergence of this non-trivial behavior is rationalized as the need to gather information under strong uncertainty from distal airborne cues, which leads to better long-term reward compared to local exploration for the source or proximal ground cues.


Consider a food source located outdoors which exudes odor at a constant rate. The odor is steadily carried by the wind and dispersed due to turbulent fluctuations. In the atmosphere, turbulent transport of odors dominates molecular diffusion and determines the statistics of the odor signal. A plume-tracking agent which enters the area downwind has to navigate its way upwind toward the source by sniffing the ground or pausing to sniff in the air for odor.

The statistics of odors on the ground is profoundly different from the statistics of odors in the air (see representative time courses in Figure 1). In the situation represented in Figure 1, the divide between air and ground is dictated by the fluid dynamics in the boundary layer close to the ground. In our direct numerical simulations (DNS) of odor transport, the air travels in a channel from left and hits an obstacle at 25 cm/s, which generates turbulence. The simulations are designed to resolve the dynamics at all relevant scales, from few mm to several m, which demands massive computational resources (see Materials and methods for details of the numerical scheme). Odor is released from a spherical source of size 4 cm located 56 cm above the ground. At the height of the source, odor is efficiently carried several meters downwind within pockets of odor-laden air which remain relatively concentrated, but are distorted and broken by turbulence. Thus, odor in the air is intense but intermittent, that is, it varies abruptly in time. Conversely, odor near the ground is smoother but also less intense (see Figure 1). It is smoother because the air in contact with the ground is still, which creates a nearly stagnant boundary layer where the disruptive effect of turbulence is tamed; it is less intense because odorant molecules generally bind to surfaces, which act as odor sinks (see comprehensive discussions in the context of the design of olfactory tasks Gorur-Shandilya et al., 2019).

Alternation between different olfactory modalities is widespread in animal behavior.

Left: A rodent rearing on hind legs and smelling with its nose high up in the air; a dog performing a similar behavior. Credit: irin-k/ and Kasefoto/ Right: Side view of the direct numerical simulation of odor transport. Shades of blue give a qualitative view of the intensity of velocity fluctuations in a snapshot of the field. Colors are meant to emphasize the boundary layer near the bottom, where the velocity is reduced by the no-slip condition at the ground. Representative time courses of intense intermittent odor cues in air (sampled at 53 cm from the ground, locations marked with 1 and 2) vs. smoother and dimmer cues near the ground (sampled at 5 mm from from the ground, locations marked with 1’ and 2’). Different animals sniff at different heights, which alters details of the plumes but does not affect the general conclusions. Data obtained from direct numerical simulations of odor transport as described in the text, see Materials and methods for details.

Our simulations specifically consider the limiting case of total adsorption of odor molecules. Qualitatively, similar results are expected for models intermediate between total adsorption and total reflection, where particles have a finite likelihood of being adsorbed or re-emitted in the bulk. Total (or partial) depletion of odors at the ground surface implies that an agent with a finite detection threshold can only sense ground odors near the source. Conversely, the agent can sense larger plumes in the air than on the ground compare top views in the air vs. the ground in Figure 2a-b, and it is able to detect odor in air across a more extended area (see Figure 2c and Figure 2—figure supplement 1).

Figure 2 with 1 supplement see all
Snapshots of odor plume obtained from direct numerical simulations of the Navier-Stokes equations in three spatial dimensions.

Top view of the odor plume (a) at nose height and (b) at ground. (c) 10% isoline of the probability to detect the odor r(x,y) (defined as the probability that odor is above a fixed threshold of 0.14% with respect to the maximum concentration at the source) at the ground (gray) and at the nose height (black). Data to generate Figure 2 are public on Zenodo (

The statistics of odor encounters detected along the search path of a plume-tracking agent provides useful information about the location of the source, which guides subsequent navigation. We consider an agent moving along a path r1,r2,,rt while measuring the odor signal o1,o2,,ot. The agent’s present knowledge is fully summarized by the posterior distribution of the agent’s location relative to the source, bt, also called the belief vector. The agent computes Bayesian updates of the belief bt using a model (the likelihood of odor detections) and the current observation ot. At each time step, ts, the agent decides among six alternatives: (i–iv) move to one of the four neighboring locations while sniffing the ground, (v) stay at the same location and sniff the ground, or (vi) stay at the same location and sniff the air. The agent decides among these choices based on the long-term reward it expects to receive, as discussed in the next paragraph.

We pose the agent’s task in the framework of optimal decision-making under uncertainty. The agent’s actions are driven by a unit reward received when it successfully finds the source. Rewards are discounted at a rate λ, that is, the expected long-term reward is e-λTT. Here, T is the time taken to find the source and the expectation is over the prior knowledge available to the agent, its navigational strategy, and the statistics of odor encounters. The expected long-term reward or value, V(bt), given the current state of knowledge, bt, can be calculated using the Bellman equation, a dynamic programming equation which takes into account all possible future trajectories of an optimal agent. Specifically, we obtain the Bellman equation (see Materials and methods for details)

(1) V(bt)=maxa{Γa+γ(1Γa)ot+1P(ot+1|bt,a)V(bt+1)},

where Γa is the probability of finding the source immediately after taking action a, γe-λts and the probability P(ot+1|bt,a) of observing ot+1 is determined by the physical environment and the signal detection threshold of the agent. Intuitively, the terms in the argument of the max function in Equation 1 represent the value of finding the source, detecting the odor signal or not detecting the odor signal, each event being weighted by its probability. The optimal action is the one that maximizes the value, that is, the parenthesis on the right-hand side of Equation 1. For simplicity, we discretize observations into detections (odor signal above a fixed threshold) and non-detections, which implies that the behavior depends solely on the probability per unit time of detecting the odor on the ground or in the air (Figure 2c). Thus, the agent uses a (partially inaccurate) Poissonian detection model. The model is partially inaccurate as the average detection rate does match the simulated odor plumes but the model of the agent lacks the appropriate spatiotemporal correlations because detections are independent in the Poissonian model and they are not in the real flow. See Results for more details and the corresponding performance.

The decision-making dynamics form a POMDP (see Materials and methods for a brief introduction to POMDPs). To solve Equation 1, we use approximate methods, which exploit a piecewise linear representation of the value function: V(bt)maxi{α} (Shani et al., 2013). The αi’s are a set of hyperplanes, which are found by simulating trajectories of the agent along exploratory search paths (Materials and methods). Given an existing set of αi’s, the rule for adding new hyperplanes is obtained by plugging in V(bt)maxi{α} into Equation 1. As training progresses, the set of hyperplanes grows and yields increasingly accurate approximations of the value function. For each test run, we begin with a uniform prior distribution and simulate the POMDP until the agent finds the source. If the agent does not find the source within 1000 steps, we interrupt the simulation. The time step, ts, and the distance traveled at each step are set such that the agent sniffs three times per second and at every step it moves 12 cm.


The agent navigates by alternating between sniffing the ground and air

An agent initially downwind of the odor source learns to navigate the odor plume to maximize the discounted reward described previously, that is, to minimize the search time. The upshot of the learning phase is that the final search policy alternates between sniffing on the ground and the air (Figure 3). The average time taken to reach the source reduces considerably with the training time, indicating the emergence of an effective navigational strategy (Figure 3—figure supplement 1A, B).

Figure 3 with 2 supplements see all
Representative trajectories undertaken by an agent learning how to reach the source of a turbulent odor cue.

(a) Top view of a representative trajectory at the end of training. (b) Three-dimensional view of sample trajectory from panel (a), superimposed to two snapshots of odor plumes near ground (shades of blue) and in the air (shades of red). Trajectories are obtained by training a partially observable Markov decision process (POMDP), where the agent computes Bayesian updates of the belief using observations (odor detection or no detection) and their likelihood (detection rates from simulations of odor transport). Agents trained with this idealized model of odor plumes successfully track targets when tested in realistic conditions (see Figure 3—video 1).

The trajectories learnt by the agent display a variety of behaviors reminiscent of those exhibited by animals, which include wide crosswind casts interleaved with upwind surges. Notably, the agent exhibits a recurring motif which cycles between moving to a new location and pausing to sniff in the air. The alternating behavior emerges directly as a consequence of the statistics of the physical environment in spite of pausing to sniff in the air, which leads to the cost of a stronger discount in the reward.

When, where, and why does the agent sniff in the air? Trajectories shown in Figure 3 exhibit extensive alternation at the beginning of the search when the agent is far downwind compared to when it is close to the source. A quantitative analysis across training and test realizations confirms that the agent’s rate of sniffing in the air is significantly higher farther away from the source (Figure 4(a)). This observation is rationalized by the greater probability of detecting an odor signal in the air at distant locations (Figure 2(c)) despite the increased intermittency in the airborne signal (Figure 1). In spite of the added cost entailed by slowing down locomotion, sniffing in the air ultimately speeds up the localization of the source (Figure 4(b)). This behavior is maintained across different training realizations and when the discount factor, γ, is reduced so that the delay incurs a greater cost. In sum, alternation emerges as a robust, functional aspect of an effective long-term strategy of olfactory search (see also Figure 4—figure supplement 1).

Figure 4 with 2 supplements see all
Empirical characterization of the alternation between olfactory sensory modalities.

(a) The agent sniffs more often in the air when it is far from the source, that is, outside of the airborne plume. The rate of sniffing in the air is the fraction of times the agent decides to sniff in the air rather than move and sniff on the ground. The fraction is computed over the entire trajectory in the conditions identified in the different panels. Statistics is collected over different realizations of the training process and many trajectories, with different starting positions (see Materials and methods for details). (b) The number of steps needed to reach the target minus the number of steps needed to travel from the starting position to the source in a straight line. The horizontal line marks the median, boxes mark 25th and 75th percentiles; red dot: outlier (value exceeds 75th percentile + ×1.5 interquartile range). Dashed lines mark 10th and 90th percentile. For reference, a straight line from the center of the belief to the source is 240 steps. Agents that are given the possibility to pause and sniff in the air are able to reach the target sooner than agents that can only sniff on the ground. (c) Agents sniff in the air once every five steps on average when they cast (three consecutive steps crosswind), whereas they only sniff in the air once every 60 steps while surging upwind (three consecutive steps upwind). (d) Entropy (cyan) and value (purple) of the belief vs. time, along the course of one trajectory. The red dot indicates a detection, which provides considerable information about source location and thus makes entropy plummet and value increase.

A striking feature of the trajectories in Figure 3 is the strong correlation between casting and sniffing the air before the first detection is made. To quantify this effect, we categorize the agent’s behavior into casts (persistent crosswind movements) and surges (upwind movement), and measure the rate of sniffing the air (fraction of time spent executing action (vi) – staying at the same location and sniffing the air – among the six possible actions offered to the searcher) for both of these behaviors. We consider the agent to be surging if it moves k consecutive steps upwind and casting if it moves k consecutive steps crosswind or sniffs in the air. We use k=3, results shown hereafter do not depend strongly on this choice. We find that the rate of sniffing in the air is typically an order of magnitude greater during casts as compared to surges (Figure 4(c)), indicating that alternation is tightly linked to the switch between casting and surging. Casting has been classically interpreted as a strategy for efficient exploration in an intermittent environment. The coupling between casting and alternation observed here suggests that sniffing in the air is an alternative mode of exploration which aids and complements casting when searching for a sparse cue. Exploration dominates the first part of the search until the first detections which substantially reduce uncertainty (see entropy of the posterior distribution in Figure 4(d)).

Overall, we led to the following picture of the search dynamics. At the beginning of the search, the agent has a broad prior that is much larger than the odor plume of size xthr×ythr, where xthr is the plume length and ythr is the plume width when sniffing in the air. The agent then has to identify and home into the xthr×ythr region that contains the odor plume. The bottleneck in this phase is the scarcity of odor detections, which require an efficient exploration strategy. Once the odor plume is detected, the agent knows it is near the source and the search is driven by surface-borne odor cues, while the frequency of sniffing in the air is significantly reduced. In short, our simulations show that the behavior can be split into two distinct phases: (1) an initial exploration phase accompanied by extensive casting and alternation, where the agent attempts to localize the plume, and (2) odor-guided behavior in a regime relatively rich in cues, which enable the agent to precisely locate the source within the plume.

We conclude this section noting that the above remarks are expected to hold more generally than in the specific setup of our simulations. Figure 3—video 1 shows that the same behaviors are displayed by agents navigating a realistic plume despite their learning in a (partially inaccurate) Poissonian model of odor detections. This finding indicates the robustness of the learning scheme to inaccuracies in the model of the environment, which are inevitably present in any realistic situation. More specifically, the static information provided by the average detection rate map is found to be sufficient for navigation and alternation. While more information on dynamical spatiotemporal correlations may help further improve performance, the fundamental requirement for alternation is the presence of wider detection rate maps in the air than on the ground. Thus, as long as this feature is preserved, we expect agents to display alternating behaviors and the two phases mentioned above. In particular, these properties should hold also when different models of odor transport are employed by the searcher and/or surface adsorption chemistry is more involved than pure adsorption. Figure 4—figure supplement 2 shows that the agent navigates successfully when the odor statistics is different from the one that was used for training, suggesting that the strategy is robust to a broad set of different flow conditions.


We now proceed to understand the transition between the two distinct phases of search that were identified previously. While a detailed analysis of each individual decision is challenging, we can gain intuition by decomposing the agent’s overall behavior into segments. Each segment is then rationalized by examining how the agent explores the locations where it believes it can find an odor signal or the source. For this purpose, let us examine how the agent’s belief of its location relative to the source evolves as the search proceeds.

In the representative example depicted in Figure 5, the agent begins with a uniform prior belief, much larger than the plume, as shown in the top row of Figure 5. The agent makes its first action by sniffing in the air and does not detect an odor signal. Since odor is not detected, the likelihood that the agent is immediately downwind of the source is reduced, which leads to a posterior belief updated via Bayes’ rule (second row, Figure 5). The agent proceeds by casting crosswind in a loop while occasionally pausing to sniff in the air (third row, Figure 5), after which it executes an upwind surge (fourth row, Figure 5). The decision to surge at that specific moment can be understood from examining the belief immediately before the surge: because the agent did not detect any odor over the entire cast-and-sniff sequence, the likelihood that the agent is located near the source, that is, within the plume, is extremely low (third row, Figure 5).

Progression of the belief the agent has about its own position relative to the source.

From top, first panel: Before starting the search the agent has a flat belief about its own position, much broader than the plume in air represented by the 25% isoline of the probability of detection. Second: Belief after a single sniff in the air and no detection. The white region corresponds to the extent of the plume in air and indicates that because the agent did not detect the odor, it now believes it is not within the plume right downstream of the source. Third: As the agent casts, its belief about its own position translates sideways with it; additionally, at each sniff in the air with no detection, the belief gets depleted right downstream of the source, as in the panel right above. As a result, the cast-and-sniff cycle sweeps away a region of the belief as wide as the cast and as long as the plume. Fourth: As the agent surges upwind, its belief about its own position translates forward with it; additionally, as it sniffs on the ground with no detection, the belief gets depleted in a small region right downstream of the source, corresponding to the extent of the plume on the ground. Fifth: After detection, the belief shrinks to a narrow region around the actual position of the agent, which leads to the final phase of the search within the plume. Green (purple) wedges indicate that the entropy of the belief decreases (value of the belief increases) as the agent narrows down its possible positions (and approaches the source).

At this point, it is more valuable to surge upwind rather than continuing to explore the same area. By surging forward, the agent is now more likely to encounter the plume, which enables it to effectively explore the remaining part of the belief. The key to the above argument is that the agent lacks knowledge of its position relative to the source, and it acts so as to narrow down its belief. Indeed, over the course of a search, entropy of the belief steadily declines, while its value increases (Figure 4(d)).

A repetition of the sequence of casting, alternation, and surging follows as the agent steadily narrows down the belief, until it finally detects the odor (bottom panel, Figure 5). The detection shrinks the posterior to a small patch which makes entropy plummet (Figure 4(d)) and leads the agent rapidly to the source. The first detection event (identified by the red dot in Figure 4(d)) is what marks the transition between searching for the plume and searching within the plume, as discussed above.

Searching for airborne cues

We now expand on the intuition above by introducing a simplified, quantitative model of the search. We aim to address the search dynamics in the initial phase before detection, when the agent searches for the plume. This is the key phase as the localization of the plume largely dominates the search time (see red dot in Figure 4(d)). We identify three main questions about the search, which we address in more detail below: (1) how wide should the agent cast?; (2) how long should the agent spend casting before surging upwind?; (3) where should the agent sniff during the casting phase? Specifically, we highlight and quantify the various trade-offs associated with the cast-sniff-surge modes of exploration.

To introduce the main simplification of the model, we note that in the exploratory regime at large distances, the agent is more likely to detect odor by sniffing in the air due to the larger detection range of airborne cues. We therefore ignore odor signal on the ground and assume the agent only detects odor by sniffing in the air. This simplifies the analysis considerably as the search path is then parameterized by the discrete locations at which the agent sniffs in the air rather than the specific trajectory taken between sampling locations. The agent’s prior belief distribution, b(x,y), of its location with respect to the source is assumed to be uniform with length Lx (xthr) (along the downwind direction) and width Ly (ythr), similar to the example shown in Figure 5 (top). The probability of detecting an odor signal in a sniff, r(x,y), depends on the range and width of the plume through the parameters xthr and ythr respectively, which we assume are known to the agent. To decouple the upwind surge and crosswind cast, we approximate the detection probability map in Figure 2(c) as r(x,y)=f(x)g(y), where f(x) is a constant when 0<x<xthr and 0 otherwise and g(y) has a characteristic length scale ythr, namely, g(y)=e-y2/2ythr2. Instead of receiving reward for finding the source, the agent receives a unit reward (discounted at a rate λ) on detecting odor, at which point the search ends.

We first build an intuitive picture of the search dynamics in this simplified setting. To detect the plume, the agent has to sufficiently explore the region in which it expects to detect odor, which is delineated by the prior. Each sniff in the air will sample a patch of size xthr×ythr immediately upwind from its location. Since the prior’s width is larger than the plume width (Lyythr), the agent cannot sample the full breadth of the prior in one sniff and will thus have to cast crosswind and sniff the air. As each sniff explores a patch of length xthr, a few bouts of cast-and-sniff across a width Ly will effectively explore an upwind region of size xthr×Ly. If odor is not detected during the bouts, the likelihood that the source is contained within this region is negligible. An application of Bayes’ rule converts the initial prior of length Lx into a posterior of reduced length Lx-xthr. Since the agent now believes that it is downwind of the plume by at least a distance xthr, it will surge upwind by xthr and explore the next patch using the same procedure of cast-and-sniff. The process is repeated until the plume is detected.

The above argument implies that the search process can be split into distinct episodes where in each episode the agent executes bouts of cast-and-sniff followed by a surge of length xthr. The search can then be decomposed into a maximum of NLx/xthr distinct episodes or until the agent detects odor. Suppose that in each episode n (n=1,2,,N), the agent spends time tn executing bouts of cast-and-sniff. The casting duration tn is to be optimized. As discussed next, the optimal tn depends on the cumulative probability of not detecting the signal (conditional on the target being in that patch) after casting for time t, denoted c(t), which in turn depends on the sampling strategy during casting.

The expected discounted reward at the beginning of the search is V1e-λTT, where T is the time taken to find the odor signal. We use dynamic programming to compute and optimize V1. V1 is the sum of the expected reward if the agent finds odor in the first patch within time t1 and the expected reward after moving to the next patch if it does not. The information gained from not detecting odor is taken into account in the latter term through a Bayesian update of the prior. However, we show that V1 and the casting times, t1,t2,,tN, can be calculated using an equivalent, simpler expression which does not require Bayesian updates (Materials and methods). Denote Vn as the expected discounted reward at the beginning of the nth episode. We show that V1 can be calculated using the recursive equation

(2) Vn=maxt{1N0tc(s)eλsds+eλ(t+xthrv)Vn+1}.

The time t that maximizes the parenthesis determines the optimal duration tn the agent should spend casting before surging upwind. The first and second terms in the parenthesis of (2) are the expected discounted rewards if the agent detects odor during casting and the search ends or if it does not detect odor, surges a distance xthr (which takes time xthr/v) and continues to the next episode, respectively. The factor -c in the first term is the probability density to detect odor at time t conditional on the target being in the current patch, which depends on the casting strategy discussed further below. Since the prior is uniform, the probability that the target is in the current patch is 1/N, which sets the factor in front of the integral.

We first show that the duration tn obeys a marginality condition. The agent should stop casting when the value of continuing to explore the current patch is just outweighed by the value of moving on to the next patch. This intuition is quantified by the optimization over t in Equation 2. Zeroing the time derivative of Equation 2, we obtain that tn is the value of t that satisfies the equality c(t)eλt/N=λeλ(t+xthrv)Vn+1. The left-hand side is the rate of value acquired for staying in the current patch. The right-hand side is the rate of value lost for delaying departure. Thus, by maximizing value we obtain that, at optimality, the added value of continuing to cast matches the added value of anticipating surge, similar to the condition prescribed for patch-leaving decisions during foraging by marginal value theory (MVT) (Charnov, 1976). The marginality condition leads to a relationship between the casting time and the value at the next episode

(3) c(tn)=Nλeλxthr/vVn+1.

When n=N, the agent casts indefinitely, which gives VN=-1N0c(s)e-λsds from Equation 2. The casting time for each episode is obtained using the boundary condition Equation 3 and c(t), which we shall determine in the next paragraph. Note that we have ignored the possibility that after the Nth episode, the agent turns back and moves downwind to re-explore earlier regions, which can be incorporated into this framework by imposing a different boundary condition. This extension marginally affects the earlier stages of the search path and does not affect general conclusions.

We now optimize for the sampling strategy during the bouts of cast-and-sniff, which in turn determines c(t). Each cast-and-sniff requires the agent to decide where to sniff on the crosswind axis, given the marginal posterior distribution b~(y)=0xthrdxb(x,y). The next sniff location at a displacement Δy from the current location is obtained from a dynamic programming equation similar to Equation 2, which relates the current value to the value of moving and sampling elsewhere.

(4) V(b~)=maxΔy{[Γb~(Δy)+(1Γb~(Δy))V(b~)]×eλ(|Δy|/v+tsniff)},

where b~ is the posterior after sampling at the new location conditional on no detection, and Γb~(Δy) is the probability of detection. The two terms in the Bellman equation correspond to the cases when the agent detects odor and does not detect odor, respectively, which are discounted in proportion to the time taken to travel a distance |Δy|, |Δy|/v, and the time taken to sniff in the air, denoted by tsniff. At each decision, the recursion in Equation 4 is expanded and optimized with respect to the subsequent nsteps sniff locations Δy1,Δy2,,Δynsteps using standard gradient-free optimization methods. The agent then moves by Δy1, b~ is updated using Bayes’ rule and the procedure is repeated. Optimization yields a sampling strategy and the corresponding c(t).

The optimized casting strategy is a zigzag (Figure 6a) which expands over time to the width of the prior. The expanding casting width can be again interpreted in the marginal value framework: at the first counterturn, the value of finding odor toward the agent’s previous heading is just outweighed by the value of finding it on the opposite side after appropriate discounting due to travel time. The discounted value on the opposite side can match the value at the current side due to the imbalance in the probabilities of detection between the two sides after the Bayesian update. This idea extends to subsequent counterturns, until the zigzags extend to the prior’s width. The probability of not detecting odor decays exponentially with a rate that increases with optimization depth nsteps (Figure 6b), highlighting the importance of a long-term strategy. In the low-detection rate limit, we generically expect a constant detection rate (say c(t)=e-κt), consistent with the exponential decay observed in simulations. The detection rate κ decreases with tsniff (Figure 6c), which in turn translates to a decreased value (from Equation 3) and highlights the cost of pausing to sniff in the air. From Equation 3, we then have

(5) tn=κ1log(κeλxthr/vNλ Vn+1).
Predictions of a simplified POMDP with detections allowed in the air only.

Results are both shown for an analytical (green, left) and a computational (orange, right) model. (a) Optimized sniff locations during casting (conditional on no detection) show a zigzag of increasing amplitude. (b) The probability of not detecting the signal against time, c(t), decays exponentially with detection rate, κ, shown here for different values of the optimization depth nsteps. κ saturates beyond nsteps=9. (c) κ monotonically decreases with the time per sniff, tsniff, reflecting the cost of pausing to sniff the air. In panels (a), (b), and (c), we use ythr/Ly=1/20, Ly=1, λ=0.5, v=1, and tsniff=0 (for (a) and (b)). (d) Casting times (in units of 1/λ) generally increase as the search progresses. Obtained using Equation 5 for different values of κ/λ (colored lines). Here, N=6 and λxthr/v=0.05. (e,f) The surge length and cast width from simulations of a simplified partially observable Markov decision process (POMDP), where the agent can detect an odor signal only by sniffing in the air. Results for different prior and plume dimensions (blue stars) align with the theoretical prediction (red line) that the surge length and cast width are equal to the detection range in air, xthr, and the prior width, Ly, respectively. Results from the full POMDP, where the agent can detect odor on the ground, are also consistent with the predictions (yellow crosses). Experiments were repeated over 5 different seeds. (g) The time spent casting in each patch for the simplified and full POMDP increases as the search progresses, as predicted by the theory (panel (d)). Here, we set the prior length, Lx=4xthr, which corresponds to N=4 patches. Boxes and dashed lines represent the standard error and the standard deviation around the mean, respectively.

We use Equations 2 and 5 along with the boundary condition VN=κN(κ+λ) to solve for the casting times. The results show increasing casting times with episode index n (Figure 6d). Intuitively, as the search progresses, the marginal cost for the agent to continue casting decreases due to its increasing confidence that it is in the right patch, driving the agent to spend more time casting before leaving the patch.

We test predictions from the theory using simulations of a simplified POMDP. Specifically, the agent is trained to find the target with an odor signal that can be detected only by sniffing in the air. The detection probability map r(x,y) is rectangular with plume detection range xthr and width ythr. Simulations confirm that the surge length and cast width are equal to the detection range and the prior width, respectively (Figure 6e and f). The time spent exploring a patch increases monotonically as the search progresses, as predicted by the theory (Figure 6d and g). Notably, we find that the trajectories from the full POMDP considered in the previous sections are also consistent with these predictions, suggesting that these aspects are generic features of foraging for a sparse odor signal during the first phase of exploration.


Motivated by the goal of disentangling elementary components in the complexity of animal behavior, we have investigated a dynamics driven entirely by olfactory cues. In the model, an agent searches for a source of odors transported by a turbulent flow and at each step decides either to move while sniffing on the ground or pause, rear up and sniff in the air. The goal is to locate the source in the shortest possible time, which is the reward function used to identify effective policies of action using machine learning methods. Analogously to dogs and rodents mentioned in the introduction, we obtain behavioral policies which feature alternation between the two modalities of sniffing on the ground vs. in the air. The appeal of our approach is that we could identify the rationale for the observed alternation and its basic factors. On the one hand, movement and progression toward the source is halted during the rearing phase of sniffing in the air. On the other hand, odor sources create large turbulent plumes that reach larger distances in the air than on the ground. Therefore, sniffing in the air may have a higher chance of intersecting odor cues than on the ground. These two competing effects underlie the process of alternation and their balance determines the rate of switching between the two modalities, which depends on the distance as discussed in the next paragraph.

The effect of alternation is particularly pronounced at large distances to the source. There, due to turbulent mixing, the odor concentration drops substantially and no gradients are present (Celani et al., 2014). In our realistic setting, where the searcher does start at large distances, the process can be qualitatively split in two phases: first, the agent needs to approach the source enough for an almost continuous odor plume to be present; second, it needs to locate the source within the plume. The latter task, which is the regime that most laboratory experiments have considered so far (Reddy et al., 2022), is much easier than the former as the rate of odor detection close to the source and within the conical plume is relatively high. Therefore, the task boils down to staying close to the center of the conical plume, where the signal is highest. Conversely, the bottleneck during the first, harder phase is the scarcity of information on the location of the source, which the agent tries to overcome by increasing its chances of odor detection. Slowing down its progression is thus the price that the agent pays in order to get oriented in the uncertain conditions typical of large distances to the source. The transition between the two search phases typically occurs after a handful of odor detections.

Note that we have focused here on the case of a stationary source, where odor statistics in the air and on the bottom layers are discriminated by the adsorption on the ground. In fact, at the onset of odor emission (and even in the absence of adsorption), plumes start out larger in the air than near the ground, simply because air travels more slowly near the ground. It follows from our results that alternation should be more frequent in the early stages of odor release in non-steady conditions. This prediction could be tested experimentally by switching on an odor source and monitoring the fraction of sniffing in the air as a function of the time elapsed since the switch and the onset of odor emission. We expect that the benefits of sniffing the air vs. the ground will hold even if the adsorption of odor molecules is modified. While the fully absorbing conditions considered here clearly reduce the amount of odors close to the ground, the odors will extend less on the ground than in the air even for other boundary conditions where partial absorption is considered. We expect then that quantitative properties of the odor will depend on details of the adsorption process but alternation and its increase with the distance to the source will qualitatively hold in general.

While we considered here two olfactory sensorimotor modalities, we expect that our methodology and results apply more broadly to distinct sensory systems and cues. If there is no conflict in the acquisition and processing of multiple sensory cues, then it is clearly advantageous to combine them. Conversely, if their combination has some form of cost and a partial or total conflict exists, then our results suggest that the logic identified here will apply and there will be some form of alternation.

The machine learning methodology that we have employed here to identify effective policies of actions belongs to the general family of POMDP (Kaelbling et al., 1998; Sutton and Barto, 2018). This framework applies to a broad class of decision problems, where agents need to accomplish a prescribed task by a series of actions taken with partial knowledge of the environment. Specifically, the agent combines external cues and its internal model of the world to infer a belief about the state of the environment. In our setting, the agent is the searcher, cues are odor detections (or their absence), the task is to localize the source, and beliefs pertain to the location of the source of odors. While the agent proceeds along its path and gathers information via odor cues, its belief narrows down and eventually concentrates at the location of the source. Trajectories of a POMDP agent with a single sensory modality and their relation to phenomenological approaches as Vergassola et al., 2007, were discussed in Reddy et al., 2022. Here, we have given the agent the choice of multiple sensory modalities at each decision step, which allowed us to highlight the presence of alternation and establish its link with MVT (Charnov, 1976).

MVT describes the behavior of an optimally foraging individual in a system with spatially separated resources. Due to the spatial separation, animals must spend time traveling between patches. Since organisms face diminishing returns, there is a moment the animal exhausts the patch and ought to leave. In MVT, the optimal departure time is determined as the time at which the marginal value of staying in a patch equals that of leaving and exploring another patch. In our setting, these patches correspond to regions of the agent’s belief which are explored using a combination of casting and sniffing in the air. MVT thus determines when to stop cast-and-sniff exploration and surge toward the next patch in the belief.

As MVT, our machine learning methodology provides a normative theory that disregards constraints by construction, for instance on memory of the agent or its capacity of processing data. The goals of the approach are threefold: first, it provides understanding and fundamental limits on performances; second, understanding can inspire the development of strategies less demanding, as it was the case with Vergassola et al., 2007, and Masson, 2014; third, the developed methodologies apply to robots, which are typically less constrained than animals (Russell, 1999; Webb and Consilvio, 2001). The counterpart of cognitive strategies like those developed here is provided by reactive strategies, which take the opposite view of enforcing strong constraints, for example, on memory, and explore what can be achieved within those limits. The two approaches provide complementary views to the problem and we refer to the work in Voges et al., 2014, for a discussion of their comparison, values, and limits. While a similar study for the case of alternation is beyond the scope of this work, a few comments on memory requirements and robustness of our strategies are worth. The increase of the number of hyperplanes with the number of training episodes is shown in Figure 3—figure supplement 1. As in the case of olfactory searches mentioned above, we expect that simplified strategies with less memory requirements will be inspired by our algorithms. The robustness of our strategies is investigated in Figure 4—figure supplement 2. The plots show the performance of our search strategy when the model of the environment is incorrect. Robustness with respect to the length and steadiness of the model are reported. Specifically, training is performed with a model that is consistent with the stationary plume used in the main text. The agent is then tested for localization of the source of a larger or smaller plume (Figure 4—figure supplement 2 left, for different sizes of the plume) or of a meandering plume (i.e. identical in size to the plume used for training, but rotating with different frequencies and amplitudes, Figure 4—figure supplement 2 right). Note that while the plume varies in these simulations, the agent still keeps the static model used for training, thus the model is now inaccurate. The upshot is that strategies developed here do not need to have their parameters set exactly at the correct values of the environment and are robust to partial misrepresentations.

We conclude by noting that, in addition to the familiar cases of dogs and rodents mentioned in the introduction, other species can sense chemical cues both in the bulk and on surfaces, and may feature a similar phenomenology of alternation. In particular, a large body of experimental evidence has been collected for turbulent plume-tracking by aquatic organisms, as reviewed in Webster and Weissburg, 2009. Crustaceans sense chemical cues with their antennules floating in water and switch to sensing with their feet as they approach the target (Grasso, 2001). For example, lobsters were observed in dim light in a flume of dimensions 2.5 m × 90 cm × 20 cm, as they left their shelter upon release of a turbulent plume of odor obtained from grounded mussel (Moore et al., 1991). As the animals encountered the plume, they often displayed special behaviors, including raising up, sweeping their sensory legs on the bottom of the flume, and increasing flicking of lateral antennules. Similar observations were made for blue crabs capturing live clams or tracking spouts releasing clam extract (Weissburg and Zimmer-Faust, 2002). In these experiments blue crabs would occasionally lower their abdomen closer to the surface or extend their walking legs to raise above their normal height. Finally, pelagic marine mollusks Nautilus pompilius, were observed to track the source of a turbulent plume by swimming at different heights, above and below the center of the plume. Interestingly, most animals sampled at higher heights beyond 1 m from the source, and swam at lower heights when closer to the source (Basil and Atema, 2000). These experiments indicate that animals may alternate between different heights, and that sampling at higher elevation may be particularly useful at larger distances, which is again in qualitative agreement with our results. The ensemble of these observations suggest that alternation between sensorimotor modalities is likely to be present in the behavior of aquatic organisms as well. We hope that results presented here will motivate more experiments, on dogs, rodents, and aquatic organisms alike, with the goal of assessing quantitative aspects of the observed behaviors, testing our framework and advancing understanding of how sensorimotor modalities are integrated.

Materials and methods

Direct numerical simulations

Request a detailed protocol

The Navier-Stokes (Equation M1) and the advection-diffusion equation for passive odor transport (Equation M2) describe the spatiotemporal evolution of odor released in a fluid. We can solve these equations with DNS and obtain realistic odor fields to feed the POMDP algorithm:

(M1) tu+uu=1ρP+ν2uu=0
(M2) tθ+uθ=κθ2θ+q

where u is the velocity field, ρ is the fluid density, P is pressure, ν is the fluid kinematic viscosity, θ is the odor concentration, κθ is its diffusivity, and q an odor source.

We simulate a turbulent channel of length L, width W, and height H, where fluid flows from left to right and hits a solid hemicylindrical obstacle of height 38 cm set on the ground, which produces turbulence. A horizontal parabolic velocity profile is set at the left boundary u=6Ub[zH-(zH)2], where z is the vertical coordinate and Ub is the mean horizontal speed. We impose the no-slip condition at the ground and on the obstacle and an outflow condition at the other boundaries (see Rigolli et al., 2021, for more details).

When the turbulent flow is fully developed a concentrated odor source is added at 0.58 m from the ground, that is, 20 cm above the center of the obstacle. The source is defined by a Gaussian profile with radius σ5η, where η is the smallest scale of turbulent eddies (see Table 1). We set adsorbing boundary conditions at the inlet, on the ground, and on the obstacle and zero gradient conditions on the sides and top.

Table 1
Parameters of the simulation.

Length L, width W, height H of the computational domain; horizontal speed along the centerline U; mean horizontal speed Ub=u; Kolmogorov length scale η=(ν3/ϵ)1/4, where ν is the kinematic viscosity and ϵ is the energy dissipation rate; mean size of grid cell Δx; Kolmogorov timescale τη=η2/ν; energy dissipation rate ϵ=ν/2(ui/xj+uj/xi)2; Taylor microscale λ=u2/(u/x)2; wall length scale y+=ν/uτ, where the friction velocity is uτ=τ/ρ and the wall stress is τ=ρνdu/dz|z=0; Reynolds number Re=U(H/2)/ν based on the centerline speed U and half height; Reynolds number Reλ=Uλ/ν based on the centerline speed and the Taylor microscale λ; magnitude of velocity fluctuations u relative to the centerline speed; large eddy turnover time T=H/2u. First and third rows are the labels, second and forth rows report results in non-dimensional units, third and fifth rows correspond to dimensional parameters in air, assuming the mean speed is 25 cm/s.

15 m3 m1.5 m0.33 m/s0.25 m/s0.23 cm1 cm
0.36 s1.2e-4 m2/s36 cm0.14 cm

The simulation was realized by customizing the open-source software Nek5000 (Fischer et al., 2008) developed at Argonne National Laboratory, Illinois. The three-dimensional (3D) volume of the channel is discretized in a finite number of elements and Nek5000 solves the Navier-Stokes and scalar transport equations within every element with a spectral element method. To accurately describe all relevant scales of turbulence from the dissipative scale to the length of the domain, the solution is expanded in eighth grade polynomials in each of 160,000 elements, thus effectively discretizing space in 81,920,000 grid points. Table 1 summarizes the parameters that characterize the flow. Each DNS runs for 300,000 time steps where δt=10-2τη following a strict Courant criterionwith UΔt/Δx<0.4 to ensure convergence of both the velocity and scalar fields. Snapshots of velocity and odor fields are saved at constant frequency ω=1/τη. Fully parallelized simulations require 2 weeks of computational time using 320 cpu, see Rigolli et al., 2021, for further details. The dataset containing odor concentration fields at nose and ground level is publicly available at

The POMDP framework

Request a detailed protocol

We briefly introduce POMDPs before describing the specific algorithms used in our simulations. We refer to Shani et al., 2013, for a detailed review on POMDPs. POMDPs are a generalization of Markov decision processes (MDPs) analogous to the relationship between hidden Markov models and Markov models (Kaelbling et al., 1998; Sutton and Barto, 2018). In an MDP, we define a state space, an action space, and a reward function. The dynamics of the state space is Markovian and is defined entirely by the transition matrix, T(s|s,a), which gives the probability of transitioning to state s given the current state s and the action taken, a. After each transition, the agent receives a reward, which has expectation r(s,a,s). Given the transition matrix and the reward function, the goal is typically to find the unique optimal policy, Π*(s), which maximizes the discounted sum of future rewards, r0+γr1+γ2r2+, where γ is the discount factor and rt is the expected reward t steps after the initial state. Often, but not always, this involves solving for the value function, V(s), which is the expected discounted sum of rewards from state s, conditional on policy Π*(s). The value function satisfies the central dynamic programming equation known as the Bellman, 2003, equation:

(M3) V(s)=maxa(sT(s|a,s){r(s,a,s)+γV(s)}).

While MDPs deal with fully observable states, POMDPs have one additional feature which makes it appropriate for our setting. Instead of observing the current state, the agent only receives certain observations, o, from which the true latent state has to be dynamically inferred. The agent is assumed to have a model of the environment, P(o|s,a). In our setting, this likelihood function encodes the statistics of detections and non-detections at various locations downwind of an odor source (Figure 2—figure supplement 1). A POMDP therefore maps a sequence of recent observations and actions o-1,a-1,o-2,a-2, to a strategic action. While the dimensionality increases rapidly with the length of the observation history, the entire history is encoded by the current posterior distribution over states, b, also known as the belief vector. The problem of solving for the optimal action is recast as the problem of solving for the policy Π*(b). The Bellman equation on states for MDPs translates into a Bellman equation on belief vectors for POMDPs:

(M4) V(b)=maxa(s,sb(s)T(s|a,s)×{r(s,a,s)+γoP(o|s,a)V(ba,o)}),

where ba,o is the posterior belief state given the agent takes action a and observes o. Using Bayes’ rule, ba,o is given by

(M5) ba,o(s)=P(s|a,o,b)=P(o|s,a)sT(s|s,a)b(s)P(o|b,a),

where the normalizing factor is

(M6) P(o|b,a)=sb(s)sT(s|s,a)P(o|s,a)

Recall that b(s)=P(s) and thus the term sT(s|s,a)b(s) is the probability of transitioning to state s given the current belief state b and action a whereas P(o|s,a) is the probability of observing o at the new state s. Intuitively, the Bayes’ rule takes into account the new information gained from the most recent observation (via P(o|s,a)) and the information lost due to the state space dynamics (via T(s|s,a)), which are in turn influenced by the action.

Algorithms to solve POMDPs

Request a detailed protocol

We use POMDP-solvers which approximate the value function, V(b), for all b . If the value function is known, the optimal policy is simply to choose the action that yields the highest future expected return given the current belief vector:

(M7) Π(b)=argmaxas,sb(s)T(s|a,s)×{r(s,a,s)+γoP(o|s,a)V(ba,o)}.

Computing the value function V(b) exactly for all belief vectors for tasks containing more than a handful of states is infeasible. Existing methods exploit a specific representation of the value function, which leads to the approximation discussed by Shani et al., 2013. We recapitulate here the main results and refer to Shani et al., 2013, for more details. In particular, it can be shown that the value function can be approximated arbitrarily well by a finite set H of hyperplanes (Sondik, 1978), each of which is parameterized by α(s):

(M8) V(b)=maxαHαb.

An initial set H is expanded using the Bellman Equation M4. Using vector notation, we can write

(M9) V(b)=maxa{rab+γoP(o|b,a)V(ba,o)},

where ra(s)sT(s|a,s)r(s,a,s). Let αa,o(s) be defined as

(M10) αa,o(s)=sα(s)P(o|s,a)T(s|s,a).

and using the belief update (Equation M5), it follows that

(M11) V(b)=maxa{rab+γomaxαbαa,o}.

Given the previous set H, we can add a new α vector to it corresponding to belief vector b called the ‘backup’ operation:

(M12) backup(H,b)=argmaxαabbαab,
(M13) whereαab=ra+γoargmaxαa,obαa,o.

In other words, given a previous set H and new belief vector, one can use the Bellman equation to update H and obtain a better approximation to the value function. The key computational advantage of using the above backup operation is that the αa,o’s can be pre-computed for the current H and re-used when backing up.

The question then is: how do we efficiently collect new belief vectors to update H and prune vectors from H that are no longer necessary? Algorithms differ at these two stages. We use Spaan and Vlassis, 2005, which simulates random exploration of the agent. Specifically, at each step in a ‘training’ episode, we start from an initial prior, pick actions (uniform) randomly and then sample observations from P(o|b,a). The new belief vector obtained using Bayes’ rule is then used to backup H. Finally, after adding a new set of α vectors into H, it is efficient to prune the existing ones that are guaranteed to not be used. We prune the α vectors whose every component is smaller than those of another vector (see Shani et al., 2013, for other heuristic pruning methods).

Three parameters can be tuned: the discount factor γ, the number of belief points sampled per each episode of random exploration, and the total number of training episodes. The discount rate sets the planning horizon, which is set to be of the same order as the typical number of steps to get to the target. Increasing the latter two parameters improves the strategy at the expense of increased training time. We solve the POMDP for various values of these two parameters and show that the performance saturates at a parameter range within computational feasibility.

POMDPs for learning sniff-and-search strategies

Request a detailed protocol

To implement POMDPs that learn to navigate odor plumes by employing multiple modes of search, we consider a simple state space consisting of a 2D grid with dimensions 10×2 discretized with 30 points per unit length so that the state space has size 10×2×302=18,000. The agent can take six possible actions corresponding to movement in either of the four directions or staying at the same spot while sniffing ground odor cues. The sixth action corresponds to staying at the same spot and sniffing airborne odor cues. After every action, the agent can make one of three observations – no detection, an odor detection, or finding the odor source. Odor detections are binarized, that is, the odor is detected if the concentration is above a certain threshold. The intermittent nature of turbulent fluctuations imply that there is little additional information in the graded concentration beyond the information contained in the detection rate (Vergassola et al., 2007; Victor et al., 2019). We assume a Poisson rate of detection with the rate map at the ground level and at the nose level when sniffing in the air obtained by measuring the fraction of time the odor concentration is above 0.14% with respect to the maximum concentration at source in the flow simulations. As described above, we use the Perseus algorithm (Spaan and Vlassis, 2005), which performs random exploration starting from a given prior belief of where the source is located. We use a uniform prior of dimensions 28.6m×3.4m. After training, the POMDP algorithm yields a set H which encodes an approximation to the value function mapping belief vectors to expected discounted rewards for each of the possible actions. The decision at each step is then obtained from (Equation M7).

Parameters for POMDP used in main text

Request a detailed protocol

The main figures represent results using: discount factor γ=0.99, number of training episodes i=320, number of belief points sampled per training episode i=100, likelihood in the air and at the ground is defined as shown in Figure 2—figure supplement 1, in Figure 6 likelihood in the air is defined as a rectangle with dimensions xthr×ythr. Results in Figure 4 are tested and averaged over three different starting positions (x=8; y=0, 0.3, –0.5), 8 different seeds, 50 different realizations for the same seed (trajectories differ for the history of detections according to the Poissonian model).

The effect of varying γ are represented in Figure 4—figure supplement 1. (all other parameters are kept constant); the effect of varying the number of training episodes is represented in Figure 3—figure supplement 1 (averaged over three different locations and three seeds): few tens of training episodes are enough to successfully locate the target, to obtain a robust strategy and to avoid the poor performance showed in the first two violin plots of Figure 3—figure supplement 1B, it is necessary to increase the number of training episodes. Figure 3—figure supplement 1C shows the cost of increasing the number of episodes in terms of memory (i.e. the number of α vectors the agent has to store during the training phase).

Training requires up to 2 days in time on one processor, while testing a single realization takes 10 hr.

Derivation of (Equation 2)

Request a detailed protocol

We consider a scenario where a target is located at one of N possible patches, n=1,2,,N with probabilities p0=(p1,p2,,pN)(npn=1). Note that pn=1/N for all n for the prior considered in the main text. The agent starts at n=1 and moves sequentially from n=1 to n=N while spending time tn sampling in each patch. Moving from a patch to the next one takes time τxthr/v. At n=N, the agent samples indefinitely, tN=. The agent receives reward of one when the target is found in a patch, which is discounted at rate λ. The value V1e-λTT, where T is the search time, is the expected discounted reward optimized w.r.t. tn’s. We derive two sets of recursive equations (with and without Bayesian updates) to calculate V1. We show that both formulations lead to the same optimal casting times, however, the set of equations without Bayesian updates are much simpler to compute.

Suppose the cumulative probability of finding the target in time tconditional on the target being in that patch is d(t). Note that c(t)1-d(t) is used in the main text. Denote r(t)0td(s)e-λsds. This is the expected discounted reward if the agent searches for time t in a patch that contains the target.

Say N=3. Since V1 is the expected discounted reward optimized over the casting times t1,t2, we have

(M14) V1=maxt1,t2{p1r(t1)+eλ(t1+τ)p2r(t2)+eλ(t1+t2+2τ)p3r()}=maxt1,t2{p1r(t1)+eλ(t1+τ)(p2r(t2)+eλ(t2+τ)(p3r()))}=maxt1{p1r(t1)+eλ(t1+τ)×maxt2{p2r(t2)+eλ(t2+τ)(p3r())}}

The last equation above motivates a recursive equation for general N:

(M15) Vn=maxtn{pnr(tn)+eλ(tn+τ)Vn+1},

with boundary condition, VN=pNr(). Optimizing over tn, we obtain the marginal value condition

(M16) pnr(tn)=λeλ(tn+τ)Vn+1.

If the rate of detection during casting is a constant κ, we have d(t)=1eκt,r(t)=κ0te(κ+λ)sds=κκ+λ(1e(λ+κ)t) and r(t)=κe(κ+λ)t. Plugging this expression into (Equation M16), we get

(M17) tn=κ1log(pnκeλτλVn+1)

Now, let’s calculate V1 using Bayesian updates and show that the optimal times exactly correspond to what we have in the previous equation. Denote V~n(q) as the value at patch n for an arbitrary probability vector q=(q1,q2,,qN). We now show that V1=V~1(p0), where p0=(p1,p2,,pN) is the prior. We have

(M18) V~n(q)=maxtn{qnr(tn)+eλ(tn+τ)(1qnd(tn))V~n+1(q)},

where q is the posterior conditional on no detection. The two terms on the right-hand side correspond to the case when the agent finds the target in the patch before tn (with probability qnd(tn)) and does not find it (with probability 1-qnd(tn)), respectively. Given the observation that the target is not found in patch n, the posterior probabilities, q, are obtained using Bayes’ rule:

(M19) qm=qm1qnd(tn),for mn,qn=qn(1d(tn))1qnd(tn).

We show that V~1(p0)=V1 for N=3. The general case of starting from any patch, prior and number of patches (N) follows. Expanding (Equation M18) starting from n=1,

(M20) V~1(p0)=maxt1,t2{p1r(t1)+eλ(t1+τ)(1p1d(t1))×(p2r(t2)+eλ(t2+τ)(1p2d(t2))p3r())},

where p2 is obtained from the first Bayesian update and p3′′ is obtained after the second Bayesian update. Using (Equation M19), we have p2=p2/(1-p1d(t1)),p3=p3/(1-p1d(t1)) and p3′′=p3/(1-p2d(t2))=p3/(1-p1d(t1)-p2d(t2)).

Since p3′′(1-p2d(t2))=p3, simplifying (Equation M20), we get

(M21) V~1(p)=maxt1,t2{p1r(t1)+eλ(t1+τ)(1p1d(t1))×(p2r(t2)+eλ(t2+τ)p3r())},=maxt1,t2{p1r(t1)+eλ(t1+τ)(p2r(t2)+eλ(t2+τ)p3r())},

where p2=p2/(1-p1d(t1)),p3=p3/(1-p1d(t1)) are used in the second step. This equation exactly corresponds to (Equation M14). The upshot is that the normalization factors from the Bayesian updates go through the parenthesis and cancel out. However, optimizing for tn directly using (Equation M18) is difficult due to the dependence of q on tn.

Data availability

All data generated or analyzed during this study are included in the manuscript and supporting file. The dataset with the simulation results has been made public at

The following data sets were generated
    1. Rigolli N
    2. Reddy G
    3. Seminara A
    4. Vergassola M
    (2022) Zenodo
    Alternation emerges as a multi-modal strategy for turbulent odor navigation - Dataset.


  1. Book
    1. Bellman R
    Dynamic Programming
  2. Book
    1. Russell RA
    Odor Detection by Mobile Robots
    Singapore: Orld Scientific.
  3. Book
    1. Sutton R
    2. Barto A
    Reinforcement Learning: An Introduction
    MIT Press.
  4. Book
    1. Webb B
    2. Consilvio T
    MIT Press.

Decision letter

  1. Tatyana O Sharpee
    Reviewing Editor; Salk Institute for Biological Studies, United States
  2. Ronald L Calabrese
    Senior Editor; Emory University, United States

Our editorial process produces two outputs: (i) public reviews designed to be posted alongside the preprint for the benefit of readers; (ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.

Decision letter after peer review:

Thank you for submitting your article "Alternation emerges as a multi-modal strategy for turbulent odor navigation" for consideration by eLife. Your article has been reviewed by 2 peer reviewers, one of whom is a member of our Board of Reviewing Editors, and the evaluation has been overseen by Ronald Calabrese as the Senior Editor. The reviewers have opted to remain anonymous.

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

Essential revisions:

It is important to add discussions of implementation constraints associated with memory requirements and assumptions about wind parameters and movement of the sources as discussed in detail by Reviewer 1.

Reviewer 2 stresses the importance of making the simulation dataset easily accessible to readers.

Reviewer #2 (Recommendations for the authors):

Please make the dataset with the simulation results available. I did not see it in the zip file.

Please provide color for velocity fluctuations in Figure 1.

Please clarify the statement on line 134 that the model lacks the appropriate spatiotemporal correlations.

Line 139 and ff: there are missing words and text. For example, there is (1) but no subsequent points. In any case, please add more here about how hyper-planes are constructed.

The possible set of actions is described in line 111ff but the rate of sniffing is not described as one of the variables there. Later (line 172ff), the authors discuss the frequency of sniffing as a function of distance from the source. Therefore, this frequency should be explicitly included in the initial setup of the model.

Line 178 double word: "the the".

Author response

Reviewer #2 (Recommendations for the authors):

Please make the dataset with the simulation results available. I did not see it in the zip file.

The dataset has been made public at

Please provide color for velocity fluctuations in Figure 1.

The flow is an illustration and colors have been chosen for visual purposes. We prefer then to keep things as they are and to take the above remark into account by changing the caption so as to make it clear that it is an illustration that has the purpose of providing an artistic view of the dynamics.

Please clarify the statement on line 134 that the model lacks the appropriate spatiotemporal correlations.

The sentence “The model is partially inaccurate as the average detection rate does match the simulated odor plumes but the model of the agent lacks the appropriate spatiotemporal correlations because detections are independent in the Poissonian model and they are not in the real flow.” (Lines 133-135) has been added for clarification.

Line 139 and ff: there are missing words and text. For example, there is (1) but no subsequent points. In any case, please add more here about how hyper-planes are constructed.

We have modified the text to describe in some more detail the idea for the construction of the hyperplanes without consulting the Methods. The relevant lines are 138-143.

The possible set of actions is described in line 111ff but the rate of sniffing is not described as one of the variables there. Later (line 172ff), the authors discuss the frequency of sniffing as a function of distance from the source. Therefore, this frequency should be explicitly included in the initial setup of the model.

The frequency of sniffing is fixed throughout the search and is not modified as a function of distance to the source. What we meant by “rate of sniffing the air” is the fraction of time spent in action (vi) among the six possible alternative actions offered to the searcher ((i-iv) move to one of the four neighboring locations while sniffing the ground, (v) stay at the same location and sniff the ground or (vi) stay at the same location and sniff the air). The sentence at line 175 has been modified to clarify the possible ambiguity as: “… and measure the rate of sniffing the air (fraction of time spent in the action (vi) -- staying at the same location and sniffing the air -- among the six possible alternative actions offered to the searcher) for both of these behaviors.”

Line 178 double word: "the the".

The typographical error has been corrected.

Article and author information

Author details

  1. Nicola Rigolli

    1. MalGa, Department of Civil, Chemical and Mechanical Engineering, University of Genova, Genova, Italy
    2. Institut de Physique de Nice, Université Côte d’Azur, Centre National de la Recherche Scientifique, Nice, France
    3. Department of Physics and INFN Genova, University of Genova, Genova, Italy
    Conceptualization, Investigation, Methodology, Writing – original draft, Writing – review and editing
    Contributed equally with
    Gautam Reddy
    Competing interests
    No competing interests declared
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0002-0734-2105
  2. Gautam Reddy

    1. NSF-Simons Center for Mathematical and Statistical Analysis of Biology, Harvard University, Cambridge, United States
    2. Physics & Informatics Laboratories, NTT Research, Inc, Sunnyvale, United States
    3. Center for Brain Science, Harvard University, Cambridge, United States
    Conceptualization, Investigation, Methodology, Writing – original draft, Writing – review and editing
    Contributed equally with
    Nicola Rigolli
    Competing interests
    No competing interests declared
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0002-1276-9613
  3. Agnese Seminara

    1. MalGa, Department of Civil, Chemical and Mechanical Engineering, University of Genova, Genova, Italy
    2. Institut de Physique de Nice, Université Côte d’Azur, Centre National de la Recherche Scientifique, Nice, France
    Conceptualization, Investigation, Methodology, Writing – original draft, Writing – review and editing
    For correspondence
    Competing interests
    Reviewing editor, eLife
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0001-5633-8180
  4. Massimo Vergassola

    Laboratoire de physique de l’École Normale Supérieure, CNRS, PSL Research University, Sorbonne Université, Paris, France
    Conceptualization, Investigation, Methodology, Writing – original draft, Writing – review and editing
    For correspondence
    Competing interests
    No competing interests declared
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0002-7212-8244


National Science Foundation (1764269)

  • Gautam Reddy

European Research Council (101002724)

  • Agnese Seminara

Air Force Office of Scientific Research (FA8655-20-1-7028)

  • Agnese Seminara

NIH Office of the Director (R01DC018789)

  • Agnese Seminara

National Science Foundation (PHY-1748958)

  • Massimo Vergassola

Gordon and Betty Moore Foundation (2919.02)

  • Gautam Reddy

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


GR was partially supported by the NSF-Simons Center for Mathematical & Statistical Analysis of Biology at Harvard (award number #1764269) and the Harvard Quantitative Biology Initiative. This work received support from: the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 101002724 RIDING); the Air Force Office of Scientific Research under award number FA8655-20-1-7028; the National Institutes of Health (NIH) under award number R01DC018789. The authors are grateful to the OPAL infrastructure from Université Côte d’Azur and the Université Côte d’Azur’s Center for High-Performance Computing for providing resources and support. NR is thankful for the support of Instituto Nazionale di Fisica Nucleare (INFN) Scientific Initiative SFT. This research was initiated at the Kavli Institute for Theoretical Physics supported in part by NSF Grant No. PHY-1748958 and the Gordon and Betty Moore Foundation Grant No. 2919.02.

Senior Editor

  1. Ronald L Calabrese, Emory University, United States

Reviewing Editor

  1. Tatyana O Sharpee, Salk Institute for Biological Studies, United States

Publication history

  1. Preprint posted: December 16, 2021 (view preprint)
  2. Received: January 11, 2022
  3. Accepted: August 7, 2022
  4. Accepted Manuscript published: August 23, 2022 (version 1)
  5. Version of Record published: September 20, 2022 (version 2)
  6. Version of Record updated: September 26, 2022 (version 3)


© 2022, Rigolli, Reddy et al.

This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.


  • 452
    Page views
  • 169
  • 1

Article citation count generated by polling the highest count across the following sources: Crossref, PubMed Central, Scopus.

Download links

A two-part list of links to download the article, or parts of the article, in various formats.

Downloads (link to download the article as PDF)

Open citations (links to open the citations from this article in various online reference manager services)

Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)

  1. Nicola Rigolli
  2. Gautam Reddy
  3. Agnese Seminara
  4. Massimo Vergassola
Alternation emerges as a multi-modal strategy for turbulent odor navigation
eLife 11:e76989.
  1. Further reading

Further reading

    1. Physics of Living Systems
    Ye Li, Shiqi Liu ... Yilin Wu
    Research Article

    Long-range material transport is essential to maintain the physiological functions of multicellular organisms such as animals and plants. By contrast, material transport in bacteria is often short-ranged and limited by diffusion. Here we report a unique form of actively regulated long-range directed material transport in structured bacterial communities. Using Pseudomonas aeruginosa colonies as a model system, we discover that a large-scale and temporally evolving open channel system spontaneously develops in the colony via shear-induced banding. Fluid flows in the open channels support high-speed (up to 450 µm/s) transport of cells and outer membrane vesicles over centimeters, and help to eradicate colonies of a competing species Staphylococcus aureus. The open channels are reminiscent of human-made canals for cargo transport, and the channel flows are driven by interfacial tension mediated by cell-secreted biosurfactants. The spatial-temporal dynamics of fluid flows in the open channels are qualitatively described by flow profile measurement and mathematical modeling. Our findings demonstrate that mechanochemical coupling between interfacial force and biosurfactant kinetics can coordinate large-scale material transport in primitive life forms, suggesting a new principle to engineer self-organized microbial communities.

    1. Immunology and Inflammation
    2. Physics of Living Systems
    Derek M Britain, Jason P Town, Orion David Weiner
    Research Advance

    T cells use kinetic proofreading to discriminate antigens by converting small changes in antigen binding lifetime into large differences in cell activation, but where in the signaling cascade this computation is performed is unknown. Previously, we developed a light-gated immune receptor to probe the role of ligand kinetics in T cell antigen signaling. We found significant kinetic proofreading at the level of the signaling lipid diacylglycerol (DAG) but lacked the ability to determine where the multiple signaling steps required for kinetic discrimination originate in the upstream signaling cascade (Tischer and Weiner, 2019). Here we uncover where kinetic proofreading is executed by adapting our optogenetic system for robust activation of early signaling events. We find the strength of kinetic proofreading progressively increases from Zap70 recruitment to LAT clustering to downstream DAG generation. Leveraging the ability of our system to rapidly disengage ligand binding, we also measure slower reset rates for downstream signaling events. These data suggest a distributed kinetic proofreading mechanism, with proofreading steps both at the receptor and at slower resetting downstream signaling complexes that could help balance antigen sensitivity and discrimination.