Skip to main content
eLife logoLink to eLife
. 2021 May 4;10:e58523. doi: 10.7554/eLife.58523

Sniff-synchronized, gradient-guided olfactory search by freely moving mice

Teresa M Findley 1,, David G Wyrick 1,, Jennifer L Cramer 2, Morgan A Brown 2, Blake Holcomb 2, Robin Attey 2, Dorian Yeh 2, Eric Monasevitch 2, Nelly Nouboussi 2, Isabelle Cullen 2, Jeremea O Songco 1, Jared F King 2, Yashar Ahmadian 1,3,, Matthew C Smear 2,
Editors: Upinder Singh Bhalla4, Catherine Dulac5
PMCID: PMC8169121  PMID: 33942713

Abstract

For many organisms, searching for relevant targets such as food or mates entails active, strategic sampling of the environment. Finding odorous targets may be the most ancient search problem that motile organisms evolved to solve. While chemosensory navigation has been well characterized in microorganisms and invertebrates, spatial olfaction in vertebrates is poorly understood. We have established an olfactory search assay in which freely moving mice navigate noisy concentration gradients of airborne odor. Mice solve this task using concentration gradient cues and do not require stereo olfaction for performance. During task performance, respiration and nose movement are synchronized with tens of milliseconds precision. This synchrony is present during trials and largely absent during inter-trial intervals, suggesting that sniff-synchronized nose movement is a strategic behavioral state rather than simply a constant accompaniment to fast breathing. To reveal the spatiotemporal structure of these active sensing movements, we used machine learning methods to parse motion trajectories into elementary movement motifs. Motifs fall into two clusters, which correspond to investigation and approach states. Investigation motifs lock precisely to sniffing, such that the individual motifs preferentially occur at specific phases of the sniff cycle. The allocentric structure of investigation and approach indicates an advantage to sampling both sides of the sharpest part of the odor gradient, consistent with a serial-sniff strategy for gradient sensing. This work clarifies sensorimotor strategies for mouse olfactory search and guides ongoing work into the underlying neural mechanisms.

Research organism: Mouse

Introduction

Sensory observations are often made in concert with movements (Ahissar and Assa, 2016; Gibson, 1966). During active search behavior, animals make sampling movements in order to extract relevant sensory information from the environment (Gibson, 1962; Schroeder et al., 2010). Sampling behavior is flexible and can be customized for the problem the animal is trying to solve (Kleinfeld et al., 2006; Yarbus, 1967). In the brain, sensory and motor systems interact extensively (Andersen and Mountcastle, 1983; Duhamel et al., 1992; McGinley et al., 2015; Musall et al., 2019; Niell and Stryker, 2010; Poulet and Hedwig, 2006; Sommer and Wurtz, 2002; Stringer et al., 2019), which reflects the importance of interpreting self-induced stimulus dynamics (Sommer and Wurtz, 2008; Sperry, 1950; von Holst and Mittelstaedt, 1950; Webb, 2004). Here, we show how mice sample the environment while navigating a noisy odor gradient.

Navigating by chemical cues may be one of the most ancient problems motile organisms evolved to solve, and it remains crucial in the lives of almost all modern species. Unicellular organisms and some invertebrates navigate chemical gradients by chemotaxis (Bargmann, 2006; Berg, 2000; Lockery, 2011). In essence, their movement programs can be described as having two states: they move straight when the concentration is increasing and reorient their movements when the concentration is decreasing. Whereas chemical gradients are stable and informative at the spatial scale of these organisms, for many larger or flying organisms, odor gradient cues do not provide useful positional information (Crimaldi et al., 2002; Murlis et al., 1992; Baker et al., 2018). At this larger spatial scale, turbulent airflow moves odor molecules in dynamic spatiotemporal patterns, disrupting concentration gradients and nullifying classical chemotaxis strategies. Instead, olfactory cues often gate movements that depend on other sensory modalities. Here too, these organisms' behavioral structure can be described as transitions between two states: detection of odor promotes upwind movement while the absence of odor promotes crosswind casting movement (Kennedy and Marsh, 1974; van Breugel and Dickinson, 2014; Vickers and Baker, 1994). In this behavioral program, known as odor-gated anemotaxis, odor cues gate behavioral responses to positional information provided by another modality. In both chemotaxis and odor-gated anemotaxis, search tasks can be described with a two-state search model.

In comparison to invertebrates, our understanding of olfactory search behavior in vertebrates is more rudimentary, even in commonly studied rodent models. In these animals, access to the olfactory environment is gated by respiration, which is in turn responsive to incoming olfactory stimulation (Kepecs et al., 2006; Wachowiak, 2011). Novel odors evoke rapid sniffing, during which respiration synchronizes with whisker, nose, and head movements on a cycle-by-cycle basis (Kurnikova et al., 2017; Moore et al., 2013; Ranade et al., 2013). Thus, during active mammalian olfaction, sensory and motor systems interact in a closed loop via the environment, as is true for other sensory modalities such as vision or somatosensation (Ahissar and Assa, 2016; Gibson, 1966). The cyclical sampling movements coordinated by respiration further synchronize with activity in widespread brain regions (Karalis and Sirota, 2018; Kay, 2005; Macrides et al., 1982; Vanderwolf, 1992; Yanovsky et al., 2014; Zelano et al., 2016) similarly to correlates of locomotor, pupillary, and facial movements observed throughout the brain (McGinley et al., 2015; Musall et al., 2019; Niell and Stryker, 2010; Stringer et al., 2019). Respiratory central pattern generators may coordinate sampling movements to synchronize sensory dynamics across modalities with internal brain rhythms (Kleinfeld et al., 2014).

Previous work has shown that rodents follow odor trails, where the concentration gradient is steep and stable, with rapid sniffing accompanied by side-to-side head movements (Jones and Urban, 2018; Khan et al., 2012). In these conditions, serial sniffing and stereo olfactory cues guide movements of the nose. Likewise, moles used concentration comparisons across space and time to locate a food source in a sealed experimental chamber in which a lack of airflow allowed for even diffusion of a chemical gradient (Catania, 2013). In this study, when input to the nares was reversed, moles navigated towards odor sources at a distance, but demonstrated significant deficits at identifying odor location when near the source. Behavioral modeling in mice further supports that inter-naris concentration comparison plays a more important role in search near the source (Liu et al., 2020). Thus, both serial sniffing and stereo cues can guide olfactory search behavior. The sensory computations and movement strategies employed during navigation of an airborne odor plume are less clear. In previous experiments where rodents searched in airborne odor plumes, mice developed a memory-based strategy of serially sampling each possible reward location for the presence of odor, turning search tasks into detection tasks (Bhattacharyya and Bhalla, 2015; Gire et al., 2016). Thus, it remains unclear whether mammals can follow noisy concentration gradients under turbulent conditions.

To better understand the sensory computations and sampling strategies for olfactory search, we designed a two-choice behavioral assay where mice use olfactory cues to locate an odor source while we monitor sniffing and movements of the head, nose, and body. We found that mice use a concentration gradient-guided search strategy to navigate olfactory environments that contain turbulent flow. We found that these navigational behaviors are robust to perturbations including introduction of a novel odorant, varying the concentration gradient, and naris occlusion. Given the fundamental importance of sniffing to olfactory function, we hypothesized that mice would selectively sample the environment such that nose movement would be tightly coupled to respiration. Consistent with this hypothesis, we found that mice synchronize rhythmic three-dimensional head movements with the sniff cycle during search. These sniff-synchronized movement rhythms are prominent during trials, and largely absent during the inter-trial interval (ITI), suggesting that sniff synchronous movement is a proactive strategy rather than a reactive reflex. To find structure in this search strategy, we used unsupervised computational methods to parse movement trajectories into discrete motifs. These movement motifs are organized into two distinguishable behavioral states corresponding to investigation and approach, reminiscent of the two-state olfactory search programs described in smaller organisms. Temporally, investigation motifs lock to the sniff cycle with precision at a tens of milliseconds scale. Spatially, patterns of investigation and approach usage indicate a strategic advantage for investigating across the steepest part of the odor gradient. Our findings reveal the microstructure of olfactory search behavior in mice, identifying sensory computations and movement strategies that are shared across a broad range of species.

Results

Olfactory search in noisy gradients of airborne odor

We developed a two-alternative choice task in which freely moving mice report odor source location for water rewards (Materials and methods and Figure 1A). To capture the search behavior, we measured respiration using nasal thermistors (McAfee et al., 2016) and video-tracked the animal’s body, head, and nose position in real time at 80 frames/s (Figure 1B, E and Figure 1—figure supplement 1). The mouse initiates a trial by inserting its nose in a port (Figure 1C, ‘initiation’), which activates odor release from two ports at the opposite end of the arena. The mouse reports the location of higher odor concentration by walking toward it (Figure 1C, ‘search’). In previous studies, rodents performing olfactory search tasks developed memory-guided foraging strategies. In essence, animals run directly to potential odor sources and sample each in turn, thus converting the search tasks to detection tasks (Bhattacharyya and Bhalla, 2015; Gire et al., 2016). To prevent mice from adopting sample-and-detect strategies, our task forces mice to commit to a decision at a distance from the actual source. Using real-time video-tracking (Lopes et al., 2015), we enforced a virtual ‘decision line’, such that the trial outcome is determined by the mouse’s location when it crosses this decision line (Figure 1C, ‘outcome’). For stimuli, we deliver odor from two separate flow-dilution olfactometers, giving independent control over odor concentration on the two sides. To test olfactory search over a range of difficulties, we presented four odor patterns, defined by the ratio of odor concentration released from the two sides (Video 1, 100:0,80:20, 60:40, 0:0).

Figure 1. Behavioral assay for freely moving olfactory search.

(A) Diagram of experimental chamber where mice are tracked by an overhead camera while performing olfactory search. (B) Top: nose and head positions are tracked using red paint at the top of the head. Sniffing is monitored via an intranasally implanted thermistor. Bottom: example of sniffing overlaid on a trace of nose position across a single trial. (C) Diagram of trial structure. Initiation. Mice initiate a trial via an initiation poke (gray oval). Search. Odor is then released from both odor ports (gray rectangles) at different concentrations. Outcome. Mice that cross the decision line (red) on the side delivering the higher concentration as tracked by the overhead camera receive a reward at the corresponding water port (blue ovals). (D) Colormaps of average odor concentration across ~15 two-second trials captured by a 7 × 5 grid of sequential photoionization detector recordings. Rows represent side of stimulus presentation (left or right). Odor concentrations beyond the decision line were not measured. (E) Comparison of sniff recordings taken with an intranasally implanted thermistor and intranasally implanted pressure cannula. These are implanted on the same mouse in different nostrils. Top: example trace of simultaneous pressure cannula (blue) and thermistor (red) recordings with inhalation points (as detected in all future analyses) overlaid on the traces in their respective colors. Bottom left: histogram of peak latencies (pressure inhalation onset – thermistor inhalation onset). 14/301 inhalations (4.7%) were excluded as incorrect sniff detections. These were determined as incorrect because they fell more than 2 standard deviations outside the mean in peak latency (mean = 1.61585 ms, SD = ±14.93223 ms). Bottom right: peak latencies, defined as the difference between pressure inhalation onset and thermistor inhalation onset, plotted against instantaneous sniff frequency.

Figure 1.

Figure 1—figure supplement 1. Calibrating alignment of video frames with sniff signal.

Figure 1—figure supplement 1.

(A) Sinusoidal signals (5, 8, 10, and 15 Hz) were simultaneously sent to the analog input channel (used to capture sniffing) and to a phosphor-display oscilloscope (Tektronix). The display of the oscilloscope was reflected by mirrors to allow it to be video-captured inside the behavioral arena. (B) The timing relationship is given by the lag between peaks in the analog input channel and the vertical peaks in the position of the oscilloscope trace. Analog input led video frames by 23.5 ± 15.7 ms (mean ± sd; approximately two frames at 80 frames/s).
Figure 1—figure supplement 2. Characterizing the odor stimulus conditions.

Figure 1—figure supplement 2.

(A) Colormaps of average odor concentration across ~15 two-second trials captured by a 7 × 5 grid of sequential photoionization detector (PID) recordings. -- Each row represents trial type (left correct or right correct). 80:20 odor condition (see Materials and methods: behavioral training: 80:20). (B) Same as (A), for the 60:40 odor condition (see Materials and methods: interleaved: 60:40). (C) Absolute concentration discriminability map based on PID recordings (see Materials and methods). Darker shades indicate regions where absolute concentrations are most discriminable according to ROC analysis (see Methods: Mapping the Olfactory Environment). Essentially, these regions downwind of the odor ports have the largest differences in absolute concentration between left and right trials. (D) Concentration gradient discriminability map based on PID recordings. Darker shades indicate regions where odor concentration gradient angles are most discriminable according to ROC analysis. Essentially, this region around the lateral midline of the arena has the largest differences in concentration gradient between left and right trials.

Video 1. Odor gradients are temporally dynamic and noisy.

Download video file (523.1KB, mp4)

Colormaps represent the time course of odor concentration for pseudo-trials assembled from individual trials at each sampling location.

We measured the spatiotemporal distribution of odor using a photoionization detector (PID) in a 5 × 7 grid of sampling locations (Figure 1D and Figure 1—figure supplement 2). Pinene was used for the majority of experiments because it is a neutral-valence odorant that is sensitively detected by the PID. As designed, varying the concentration ratios produced across-trial-averaged gradients of different magnitudes. Airflow in the arena is turbulent, imposing temporal fluctuations on the odor gradient (Video 2). Thus, our assay tests an animal’s ability to navigate noisy odor gradients.

Video 2. Example trials with sniffing.

Download video file (3.2MB, mp4)

Three dots on the mouse represent the coordinates of front of snout, back of head, and center of mass extracted using Deeplabcut. Sniffing is indicated by color (blue = inhalation, pink = exhalation) and sound (higher tone = inhalation, lower tone = exhalation). Video frame rate is slowed by 4×.

Mice learn the olfactory search task rapidly and robustly. We trained mice in the following sequence (Figure 2A): first, naïve, water-restricted mice obtained water rewards from all ports in an alternating sequence (Figure 2—figure supplement 1A; 'Water sampling'). In the next phase of training, we added odor stimulation such that odor delivery alternated in the same sequence as reward, so that the mice would learn to associate odor with reward ports (Figure 2—figure supplement 1B; 'Odor association'). Following these initial training steps, mice were introduced to the olfactory search paradigm. Odor was pseudo-randomly released from either the left or right odor source ('100:0'), signaling water availability at the corresponding reward port. Almost all mice performed above chance in the first session (Figure 2B; binomial test, p<0.05 for 24 out of 25 mice, 75 ± 9.2% correct, mean ± sd). Within four sessions, most animals exceeded 80% performance (19 out of 26). Following 100:0, mice were introduced to the 80:20 condition with mean performance across mice in the first session reaching ~60% (Figure 2—figure supplement 1). Most subjects improved to exceed 70% performance over the next seven sessions (17 out of 24). The mice that did not were excluded from subsequent experiments.

Figure 2. Mice use concentration gradient cues in turbulent flow to perform search.

(A) Initial training steps. Water sampling. In this task, mice alternate in sequence between the initiation, left, and right nose pokes to receive water rewards. Odor association. Next, mice run the alternation sequence as above without water rewards released from the initiation poke, making its only utility to initiate a trial. Further, odor is released on the same side of water availability to create an association between odor and reward. Odor search. Here, mice initiate trials by poking the initiation poke. Odor is then randomly released from the left or right odor port. Correct localization (see Figure 1C, decision line) results in a water reward and incorrect is deterred by an increased inter-trial interval (ITI). (B) Performance curve across sessions for the odor search (100:0) training step (n = 26). (C–F) Session statistics for four different experiments. Each colored line is the average of an individual mouse across all sessions, black points are means across mice, and whiskers are ±1 standard deviation across mice. Top: percent of correct trials. Middle: average trial duration. Bottom: average path tortuosity (total path length of nose trajectory/shortest possible path length). (C) Odor omission. The 80:20 concentration ratio (Figure 1) and odor omission (0:0) conditions randomly interleaved across a session. Data shown includes all sessions for each mouse (n = 19). (D) Variable ΔC, Constant |C|. Three concentration ratio conditions (100:0, 80:20, 60:40) randomly interleaved across a session. Data shown includes all sessions for each mouse (n = 15). (E) Constant ΔC, Variable |C|. Concentration ratio conditions 90:30 and 30:10 randomly interleaved across a session (n = 5). Data shown for first session only. (F) Naris occlusion. 80:20 sessions for mice with no naris stitch, a sham stitch that did not occlude the nostril, and a naris stitch that occluded one nostril (n = 13). Data shown includes all naris occlusion sessions even if the mouse did not perform under every experimental condition.

Figure 2.

Figure 2—figure supplement 1. Session statistics across trainer sessions.

Figure 2—figure supplement 1.

Individual mice are depicted by colored lines, average across mice are black points, and whiskers are ±1 standard deviation from the average across mice. Mice 2054–2062 did not have trainer 1 and 2 recorded (this accounts for increasing n), and mice were commonly removed from the experiment if they lost sniff signal (this accounts for the reducing n). Above: number of trials performed or percent of correct trials. Middle: average trial duration. Below: average trial path tortuosity (total path length/shortest possible path length). (A) Session statistics for the first trainer, water sampling (n = 19). (B) Session statistics for the second trainer, odor association (n = 19). (C) Session statistics for the third trainer, 100:0 or olfactory search (n = 26). Mice perform above 70% in first session. (D) Session statistics for final training step, 80:20, that preceded experiments shown in Figure 2 (n = 24).
Figure 2—figure supplement 2. Mice generalize search task to novel odorants and variable |C| session.

Figure 2—figure supplement 2.

(A) Performance, trial duration, and trial tortuosity (total path length/shortest possible path length) for the last session of pinene training in 80:20 and the first session of vanillin in 80:20 across mice (n = 3). (B) Grouped by stimulus condition (90:30, 30:10, 0:0), each line represents the rolling average across mice (window = 10) for the first session (n = 5). Shaded regions represent ±1 standard deviation.

Next, we tested whether mice trained to search pinene plumes would generalize their search behavior to a novel odorant. We chose vanillin as the novel odorant because, unlike pinene, vanillin does not activate the trigeminal fibers of the nose (Cometto-Muñiz and Abraham, 2010; Doty et al., 1978; Hummel et al., 2009). Thus, we could test whether trigeminal chemosensation is necessary for performance in our task. We found no differences in performance between vanillin and pinene sessions for these mice (Figure 2—figure supplement 2A; Wilcoxon rank-sum test, p=0.827, n = 3). These data suggest that this search behavior generalizes across odors and does not rely on the trigeminal system.

Mice can use gradient cues in turbulent flow

We reasoned that mice would solve this task using odor gradient cues. To vary odor gradients between trials, we trained mice in sessions with interleaved concentration ratios (100:0, 80:20, 60:40) across the trials of a session. In addition to these concentration ratios, odor omission probe trials (0:0) were randomly interleaved into all experimental sessions. During these trials, airflow was identical to 80:20 trials, but air was directed through an empty vial rather than a vial containing odorant solution. These odor omission trials served a twofold purpose: they acted as controls to ensure behavior was indeed odor-guided, and they allowed us to observe how absence of odor impacts search behavior. On these probe trials, mice performed at chance (binomial test, p=0.9989), with longer trial durations (Wilcoxon rank-sum test, p<0.05) and more tortuous trajectories (Wilcoxon rank-sum test, p<0.05) than on non-probe trials (Figure 2C; n = 19, all data from 80:20 condition with probe trials). Performance drops with the concentration ratio (ΔC), consistent with our reasoning that mice would use odor gradient cues in this task (Figure 2D; pairwise Wilcoxon rank-sum tests, p<0.05, n = 15). Varying the concentration ratio from 80:20 to 60:40 did not affect trial duration or path tortuosity, defined as actual path length divided by direct path length (Figure 2D; pairwise Wilcoxon rank-sum tests, p>0.05). However, trial duration and path tortuosity were slightly, but statistically significantly, longer in the 100:0 condition (pairwise Wilcoxon rank-sum tests, p<0.05).

Given that these results were obtained using a single absolute concentration (|C|) across ratios, mice could be solving our task with two distinct categories of sensory computation. One possibility is that information about source location is extracted from the odor gradient. An alternative strategy would be to make an odor intensity judgment that gates a response to positional information from non-olfactory cues, such as wind direction, visual landmarks, or self-motion. This computation would be reminiscent of the odor-gated visual and mechanosensory behaviors observed in insects (Álvarez-Salvado et al., 2018; Kennedy and Marsh, 1974; van Breugel and Dickinson, 2014). To distinguish between these possible strategies, we tested mice in sessions interleaving the air dilution ratios 90:30 and 30:10. 30 is the correct answer in one condition and incorrect in the other, so that mice cannot use an intensity judgment strategy to perform well in both ratio conditions. In both conditions, mice performed equally well in the first session of training (Figure 2E; Wilcoxon rank-sum test, p=0.465, n = 5). This equal performance is true within the first 20 trials of the session (Figure 2—figure supplement 2; Wilcoxon rank-sum test, p=0.296). These results indicate that odor gradients guide olfactory search under these conditions.

We next asked how the mice are sensing the concentration gradient. Many mammals can use stereo olfaction: comparing odor concentration samples between the nares (Catania, 2013; Parthasarathy and Bhalla, 2013; Porter et al., 2007; Rabell et al., 2017; Rajan et al., 2006). To test the role of stereo comparisons in our olfactory search task, we performed naris occlusion experiments. Mice were tested in three conditions on alternating days: naris occlusion, sham occlusion, and no procedure. We found that naris occlusion did not significantly impact performance or path tortuosity (pairwise Wilcoxon rank-sum tests, p>0.05). When compared with the no-stitch condition, the naris stitch condition resulted in a slight, but statistically significant, increase in trial duration (pairwise Wilcoxon rank-sum test, p<0.05).

This is not true when the stitch condition is compared with the sham condition (pairwise Wilcoxon rank-sum test, p>0.05), indicating this may be a result of undergoing a surgical procedure. These overall results indicate that stereo comparison is not necessary in this task (Figure 2F; n = 13), and that temporal comparisons across sniffs (Catania, 2013; Parabucki et al., 2019) play a larger role under our task conditions.

Sniff rate and occupancy are consistent across trials and gradient conditions

To investigate active sampling over the time course of trials, we tracked the animals’ sniffing, position, and posture during behavioral sessions. The overall sniff pattern was consistent across trials, with an inhalation just before trial initiation followed by a long exhalation or pause at the beginning of the trial (Figure 3). Next, the mice performed a rapid burst of sniffs, then sniffed more slowly as they approached the target (Figure 3A). In this active behavioral state, inhalation and sniff durations were shorter during trials than during ITIs (p<<0.01 for all mice; Kolmogorov–Smirnov test; Figure 3B, C), and strikingly shorter than those observed in head-fixed rodents (Bolding and Franks, 2017; Shusterman et al., 2011; Wesson et al., 2009). After the decision, there is a second rapid burst of sniffing followed by a long exhalation or pause during reward anticipation and retrieval (Figure 3A). The overall sniff pattern was consistent across trials with an inhalation just before trial initiation followed by a long exhalation or pause at the beginning of the trial (Figure 3A). During this sniffing behavior, the mice moved their nose through tortuous trajectories that were not stereotyped from trial to trial (Figure 3D, E; Video 1). Although individual mice showed position biases (Figure 3—figure supplement 1), these biases were not systematic across mice, so that the across-mouse mean occupancy distribution was evenly distributed across the two sides of the arena (Figure 3F; n = 19). Consistent with this sniffing and movement pattern, the sniff rate was highest near the initiation port and slower on the approach to target (Figure 3G). These measures of active sampling were not statistically distinguishable across gradient or naris occlusion conditions, but changed significantly on odor omission probe trials, with more fast sniffing and head turns overall.

Figure 3. Distributions of sniffs and nose positions during search task.

(A) Above: sniff raster plot for three sessions. Each black point is an inhalation, each row is a trial aligned to trial initiation (dashed line). Rows are sorted by trial length. Blue region represents trial initiation to trial end. Below: mean instantaneous sniff rate across all trials for all mice aligned to time from trial initiation. Thin lines are individual mice, the thick line is the mean across mice, and shaded region is ±1 standard deviation. (B) Histogram of inhalation duration time across all mice (n = 11). Thick lines and shaded regions are mean and ±1 standard deviation, thin lines are individual mice. Green: within-trial sniffs; pink: inter-trial interval sniffs. (C) Histogram of sniff duration time across all mice (n = 11). (D) The nose traces of each trial across a single session, colored by chosen side. (E) Location of all inhalations across a single session, colored by chosen side. (F) Two-dimensional histogram of occupancy (fraction of frames spent in each 0.5 cm² bin). Colormap represents grand mean across mice (n = 19). (G) Grand mean sniff rate colormap across mice (n = 11).

Figure 3.

Figure 3—figure supplement 1. Idiosyncratic occupancy distributions across individual mice.

Figure 3—figure supplement 1.

Two-dimensional histogram of occupancy (fraction of frames spent in each 0.5 cm² bin).

Mice synchronize three-dimensional kinematic rhythms with sniffing during olfactory search

To test the hypothesis that nose movement locks to respiration during olfactory search, we aligned movement dynamics with the sniff signal. Using Deeplabcut (Mathis et al., 2018; Mathis and Mathis, 2020), we tracked the position of three points: tip of snout, back of head, and center of mass (Figure 4AVideo 3). From the dynamics of these three points, we extracted the kinematic parameters nose speed, head yaw velocity, and Z-velocity (Figure 4B–D). Synchrony between movement oscillations and sniffing is apparent on a sniff-by-sniff basis (Figure 5), Video consistent across mice, and selectively executed during olfactory search. On average, nose speed accelerates during exhalation, peaks at inhalation onset, and decelerates during inhalation (Figure 5Ai).

Figure 4. Quantifying kinematic parameters during olfactory search.

Figure 4.

(A) Schematic of kinematic parameters. Left: two example frames from one mouse, with the three tracked points marked: tip of snout, back of head, and center of mass. (B) Quantified kinematic parameters: ‘nose speed’: displacement of the tip of the snout per frame (12.5 ms inter-frame interval). ‘Yaw velocity’: change in angle between the line segment connecting snout and head and the line segment connecting head and center of mass. Centrifugal movement is positive, centripetal movement is negative. ‘Z-velocity’: change in distance between tip of snout and back of head. Note that this measure confounds pitch angle and Z-axis translational movements. (C) Segments of example trajectories. Left: the trajectory of the nose during 1 s of trial time. Green: path during inhalations. Black: path during the rest of the sniff. Right: same for an inter-trial interval trajectory. (D) Traces of sniff and kinematic parameters during the time windows shown in (C). Color scheme as in (C).

Figure 5. Kinematic rhythms synchronize with the sniff cycle selectively during olfactory search.

(i–iii) Nose speed, yaw velocity, and Z-velocity, respectively (see Figure 4 for definitions). (A) Top: color plot showing movement parameter aligned to inhalation onset for within-trial sniffs taken before crossing the decision line. Taken from one mouse, one behavioral session. Dotted line at time 0 shows inhalation onset, the second line demarcates the end of the sniff cycle, sorted by duration. Data are taken from one behavioral session. Middle: color plot showing each movement parameter aligned to inhalation onset for inter-trial interval sniffs taken before the first attempt at premature trial initiation. Bottom: sniff-aligned average of each movement parameter. Thin lines represent individual mice (n = 11), bolded lines and shaded regions represent the grand mean ± standard deviation. Green: within-trial sniffs; pink: inter-trial interval sniffs. (B) Normalized cross-correlation between movement parameter and sniff signal for the same sniffs as above. (C) Spectral coherence of movement parameter and sniff signal for the same sniffs as above.

Figure 5.

Figure 5—figure supplement 1. Sniff synchronization shuffle test.

Figure 5—figure supplement 1.

Sniff-aligned grand mean (n = 11 mice) of (A) nose speed, (B) yaw velocity, and (C) Z-velocity for within-trial (top) and inter-trial interval (bottom) sniffs, overlaid on 1000 iterations of trial-shuffled grand means. Thin black lines represent individual iterations, all of which are shown.
Figure 5—figure supplement 2. Kinematic rhythms for premature initiations during the inter-trial interval and between decision line and reward port during trials.

Figure 5—figure supplement 2.

Sniff-aligned average of (A) nose speed, (B) yaw velocity, and (C) Z-velocity. Thin lines represent individual mice (n = 11), bolded lines and shaded regions represent the grand mean ± standard deviation. Top: green: within-trial sniffs from the time between crossing the decision line and entering the reward port. Pink: inter-trial interval sniffs from the time between the first premature trial initiation attempt and the successful initiation of the next trial. Bottom: green: within-trial sniffs at nose speeds above the threshold 15 cm/s. Pink: inter-trial interval sniffs at nose speeds above the threshold 15 cm/s.

Video 3. Movement trajectories for individual sniffs.

Download video file (5.2MB, mp4)

Each video snippet corresponds to one sniff, where the frames are translated so that the back of the head is centered, and rotated so that the head angle is vertical, in the first frame of each sniff. Blue = inhalation, pink = exhalation. Video frame rate is slowed by 10×.

Head yaw velocity, which we define as toward or away (Figure 4; centripetal or centrifugal) from the body-head axis, reaches peak centrifugal velocity at inhalation, decelerates and moves centripetally over the course of inhalation (Figure 5Aii). Although our videos are in two dimensions, we can approximate movement in depth by analyzing the distance between the tip of the snout and the back of the head (Figure 4B). This measure confounds pitch angular motion and vertical translational motion, so we conservatively refer to this parameter as ‘Z-velocity’. Because mice point their head downward during task performance, shortening of the distance between the tip of the snout and the back of the head indicates downward movement, while increases in the distance correspond to upward movements. The Z-velocity reaches peak upward velocity at inhalation onset, decelerates and goes downward during inhalation, and rises again at exhalation (Figure 5Aiii). These modulations were absent from trial-shuffled data (Figure 5—figure supplement 1; permutation test, p<0.001). Cross-correlation and spectral coherence analysis further demonstrates the synchrony between nose movement and sniffing (Figure 5B, C). These results demonstrate that kinematic rhythms lock to sniffing with tens of milliseconds precision, consistent with a previous report demonstrating that rats make similar movements during novel odor-evoked investigative behavior (Kurnikova et al., 2017). Our findings show that precise cycle-by-cycle synchronization can also be a feature of goal-directed odor-guided behavior. Mice selectively deploy this pattern of sniff-synchronized three-dimensional nose movement. For nose speed, yaw velocity, and Z-velocity, sniff synchrony is significantly reduced during the ITI when the mouse is returning from the reward port to initiate the next trial, even when the mouse is sniffing rapidly. Modulations in nose speed were slightly different than trial-shuffled data, showing that sniff-synchronized movement is not totally absent during the ITI, whereas modulations in yaw velocity and Z-velocity were indistinguishable from trial-shuffled data (Figure 5—figure supplement 1). This difference between within-trial and between-trial sniff synchrony was not contingent on the mouse’s slower nose speed during the ITI (Figure 5A). Kinematic synchrony was the same when only periods of high-speed nose movement in the ITI are included in the analysis (Figure 5—figure supplement 2). This reduction of kinematic synchrony when the mouse is not performing the task suggests that sniff-synchronized movement is not an inevitable biomechanical accompaniment to fast sniffing, but rather reflects a strategic behavioral state. Further support for this idea comes from analyzing time intervals when the mouse attempts to initiate a trial before the end of the ITI.

After such premature attempts at trial initiation, the mice execute sniff-synchronized movement, despite the absence of the experimenter-applied odor stimulus (Figure 5—figure supplement 2). Lastly, sniff synchrony changes dramatically in the time interval between crossing the virtual decision line and entering the reward port, when odor is still present yet the animal has committed to a decision (Figure 5—figure supplement 2). Taken together, our observations indicate that sniff synchronous movement is a proactive, odor-seeking strategy rather than a reactive, odor-gated reflex.

State space modeling finds recurring motifs that are sequenced diversely across mice

In our olfactory search paradigm, the overall rhythm of nose movement synchronizes with sniffing (Figures 4 and 5), and yet the mice move through a different trajectory on every trial (Figure 3D). Given this heterogeneity, it was not obvious to us how to best quantify common features of movement trajectories across trials and subjects. Rather than guess at suitable features, we used an unsupervised machine learning tool, modeling the movement data with an auto-regressive hidden Markov model (AR-HMM) (Murphy, 2012; Poritz, 1982). This model parses continuous sequential data into a discrete set of simpler movement motif sequences, similarly to ‘Motion Sequencing’ (MoSeq) (Wiltschko et al., 2015). We fit AR-HMMs to the allocentric three-point coordinate data (front of snout, back of head, and center of mass Video 4) pooled across a subset of mice and trial conditions (see Materials and methods and Figure 2; e.g., 80:20, 90:30, nostril stitch). Models were then tested for their ability to explain a separate set of held-out trials (see Materials and methods). These models defined discrete movement patterns, or ‘motifs’, that recur throughout our dataset (e.g., Figure 6A). We fit different AR-HMMs each constrained to find a particular number of motifs (between 6 and 100) and found that the cross-validated log-likelihood of these fits continued to rise up to 100 motifs (Figure 6—figure supplement 1). For visualization, we will focus on a model with 16 states, which we narrow to 11, by excluding rare motifs that take up <5% of the assigned video frames (Figure 6B and Figure 6—figure supplement 1C, D). Models with more or fewer states gave equivalent results (Figure 6—figure supplements 24).

Figure 6. Recurring movement motifs are sequenced diversely across mice and consistently across stimuli.

(A) Eight example frames from one instance of a behavioral motif with tracking overlaid. (B) Average motif shapes. Dots and lines show the average time course of posture for eight frames of each of the 11 motifs (n = 9 mice). All instances of each motif are translated and rotated so that the head is centered and the head-body axis is oriented upward in the first frame. Subsequent frames of each instance are translated and rotated the same as the first frame. Time is indicated by color (dark to light). Background color in each panel shows the color assigned to each motif. (C) Across-trial motif sequences for two behavioral sessions for one mouse. Trials are separated into trials where the mouse chose left and those in which the mouse chose right. Trials are sorted by duration. Both correct and incorrect trials are included. Color scheme as in (B). (D) Linear classifier analysis shows that mice can be identified from motif sequences on a trial-by-trial basis. Grayscale represents the fraction of trials from a given mouse (rows) that are decoded as belonging the data of a given mouse (columns). The diagonal cells represent the accuracy with which the decoded label matched the true label, while off-diagonal cells represent trials that were mislabeled by the classifier. Probabilities along rows sum to 1. Cells marked with asterisks indicate above chance performance (label permutation test, p<0.01). (E) Linear classifier analysis identifies odor omission trials above chance, but does not discriminate across odor concentration ratios (n = 9 mice). (F) Cross-validated log-likelihood (evaluated on trials not used for model fitting) for fit auto-regressive hidden Markov model (AR-HMM) models with different numbers of motifs, S, shows that model log-likelihood does not peak or plateau up to S = 100.

Figure 6.

Figure 6—figure supplement 1. Motif statistics and examples and linear decoder results for 80:20 experiments.

Figure 6—figure supplement 1.

(A) Example nose trace across a single trial colored by motif identity. (B) Linear decoder (Figure 6; Materials and methods: linear decoding section) results for Variable |C| experiments (n = 5). (C) Fraction of motif usage across all mice (n = 8) for the model with S = 16. Black points are individual mice, black line is average across mice, and shaded region is ±1 standard deviation. Colors on x-axis represent motifs used in analysis (Figure 6) and y-axis are fractions of frames that motif occupies. (D) The average dwell time of each motif across all mice (n = 8) for the model with S = 16. Black points are individual mice, black line is average across mice, and shaded region is ±1 standard deviation. Colors on x-axis represent motifs used in analysis (Figure 6) and y-axis are fractions of frames that motif occupies.
Figure 6—figure supplement 2. Motif shapes, sequences, transition matrices, and sniff synchronization for an auto-regressive hidden Markov model capped at a maximum of six states.

Figure 6—figure supplement 2.

(A-E) As in Figure 6.
Figure 6—figure supplement 3. Motif shapes, sequences, transition matrices, and sniff synchronization for an auto-regressive hidden Markov model capped at a maximum of 10 states.

Figure 6—figure supplement 3.

(A-E) As in Figure 6.
Figure 6—figure supplement 4. Motif shapes, sequences, transition matrices, and sniff synchronization for an auto-regressive hidden Markov model capped at a maximum of 20 states.

Figure 6—figure supplement 4.

(A-E) As in Figure 6.
Figure 6—figure supplement 5. Motif shapes across individuals.

Figure 6—figure supplement 5.

Average of first eight frames of the 11 commonly used motifs across individuals. Dots and lines show the average time course of posture for eight frames of each of the 11 motifs. All instances of each motif are translated and rotated so that the head is centered and the head-body axis is oriented upward in the first frame. Subsequent frames of each instance are translated and rotated the same as the first frame. Time is indicated by color (dark to light). Each color/column represents a single motif and each row an individual mouse.

Video 4. Example trials with motif sequences.

Download video file (13.5MB, mp4)

Three dots on the mouse represent the coordinates of front of snout, back of head, and center of mass extracted using Deeplabcut. Dots and lines are colored according to the motif to which that frame was assigned by the auto-regressive hidden Markov model. Video frame rate is slowed by 8×.

The motifs extracted by this model have interpretable spatiotemporal trajectories on average (Figure 6B, Video 5), although averaging masks considerable across-instance variability (Video 6). Across trials for a given mouse, motifs occurred in consistent but non-stereotyped sequences (Figure 6C, Video 5). Across mice, the model identified consistent behavioral features as motifs (Figure 6—figure supplement 5), but most mice were uniquely identifiable from how they sequenced motifs across trials. A classifier trained to decode mouse identity from the motif sequences on a trial-by-trial basis was able to perform above chance for eight out of nine mice (Figure 6D; p<0.01). Across the different concentration ratios (Figure 2D), movement sequences were not statistically distinguishable (Figure 6E). The only condition that gave distinguishable motif patterns were the odor omission trials (0:0), in which the mice made longer, more tortuous trajectories (Figure 2C). Thus, although this model is sensitive enough to decode mouse identity (Figure 6D), it does not detect stimulus-dependent modifications of sampling behavior, suggesting that the mice do not modify their sampling behavior in a gradient-dependent manner, at least in the movement parameters we measured. This lack of modification ran counter to our expectations because we reasoned that making the task harder would make the mice adjust their strategy to maintain high performance. We speculate that this absence of an adaptive strategy is due to impulsivity (Miyazaki et al., 2012; Fonseca et al., 2015).

Video 5. Moving occupancy histograms for motifs show their average movement dynamics.

Download video file (988.5KB, mp4)

We aligned every instance of a given motif such that that instance’s frames were translated to position the center of mass in frame 1 at consistent location in the image and rotated so that the body axis points upward in frame 1. Colormap represents regions of high occupancy with brighter, warmer colors, and lower occupancies with darker, colder colors. Video frame rate is slowed by 8×.

Video 6. Moving wireframes for motifs show the variability of movement dynamics for a given motif.

Download video file (3.3MB, mp4)

Wireframes consist of two lines connecting coordinates of front of snout, back of head, and center of mass extracted using Deeplabcut. Each wireframe represents a single instance of every motif. We aligned frames as in Video 5. Lines are colored arbitrarily to facilitate visualization of individual wireframes. Video frame rate is slowed by 8×.

Movement motifs reveal two-state organization of olfactory search

Many behaviors have hierarchical structure that is organized at multiple temporal scales. Brief movements are grouped into progressively longer modules and are ultimately assembled into purposive behavioral programs (Berman et al., 2016; Gallistel, 1982; Tolman, 1932; Weiss, 1968).

Olfactory search programs in smaller organisms are often organized into two overarching states: move straight when concentration is increasing and reorient when concentration is decreasing (Bargmann, 2006; Berg, 2000; Gomez-Marin et al., 2011; Kennedy and Marsh, 1974; Lockery, 2011; van Breugel and Dickinson, 2014; Vickers and Baker, 1994). We hypothesized that olfactory search motifs in mice are organized similarly. To reveal higher-order structure in the temporal organization of these motifs, we applied a clustering algorithm that minimizes the Euclidean distance between rows of the Markov transition matrix (i.e., purely based on the conditional probabilities of motifs following them). This clustering separated motifs into two groups (Figure 7A), with several distinct properties. These properties were present in models with more or fewer states (Figure 6—figure supplements 24). Based on these differences (see below), we label these groups as putative ‘investigation’ and ‘approach’ states. First, investigation and approach motifs cluster their onset times in the trial, with investigation motifs tending to occur early in the trial, while approach motifs tend to begin later (Figure 7B). Grouping motifs into these higher-order states shows a consistent trial sequence, with trials beginning with investigation and ending with approach (Figure 7C, D). Importantly, entering the approach state is not a final, ballistic commitment to a given water port – switches from approach back to investigation were common (Figure 7C, D, Video 7). This pattern suggests that the mice are continuously integrating evidence about the odor gradient throughout their trajectory to the target. Second, these states correlated with distinct sniff rates and movement speeds. During investigation motifs, the mice moved more slowly and sniffed more rapidly, whereas the approach states were associated with faster movement and slower sniffing (Figure 7E) (Video 8). Third, the sniff-synchronized kinematic rhythms (Figures 4 and 5) were distinct in the two states (Figure 7F; Kolmogorov–Smirnov test, p<0.01). Specifically, nose speed and yaw velocity are more synchronized with sniffing during the investigation state (Figure 7F). Given the consistent sequence from investigation to approach and given that mice sniff faster during the early part of trial, these differences in kinematic parameters could reflect across-trial tendencies instead of within-trial synchrony. To test this possibility, we calculated the Kolmogorov–Smirnov statistic, which quantifies the difference between two cumulative distributions, for real and trial-shuffled data (Figure 8—figure supplement 1). This analysis showed that nose speed and yaw velocity modulation exceeded what would be expected from across-trial tendencies (1000 shuffles, p<0.001), while the Z-velocity modulation did not (p=0.31). Switches between the investigation and approach state mark behavioral inflection points that can be identified from trial to trial. We reason that these behavioral inflection points are a signature of key moments in the mouse’s evolving decision process. Thus, our analysis can provide a framework for temporal alignment of diverse movement trajectories with simultaneously recorded physiological data (Markowitz et al., 2018).

Figure 7. Behavioral motifs can be categorized into two distinct groups, which we putatively label as investigation (blue) and approach motifs (orange).

Figure 7.

Colors in panel A & B refer to motifs specified in Figure 6. (A) Transition probability matrix. Grayscale represents the log probability with which a given motif (rows) will be followed by another (columns). Clustering by minimizing Euclidean distance between rows reveals two distinct blocks of motifs. We label the top-left block as 'investigation' and the bottom-right block as 'approach'. (B) Distribution of onset times for each motif, normalized by trial duration. Investigation motifs tend to occur early in trials, while approach motifs tend to occur later (n = 9 mice). (C) Across-trial motif sequences for two behavioral sessions for one mouse, with motifs classified into investigation and approach. Trials are separated into correct trials (above) and incorrect trials (below). Motif sequences are sourced from the same data as Figure 6C. (D) Temporal details of investigation-approach transitions with overlaid sniff signal. Data come from a subset of trials shown in (C). In the sniff signal, green represents inhalations, black represents the rest of the sniff. (E) Investigation and approach motifs differ in nose speed and sniff rate. Individual markers represent one motif from one mouse. Marker shapes correspond to the individual mice (n = 4). Sniff rate and nose speed are normalized within mice. (F) Investigation and approach motifs differ in the kinematic rhythms (same parameters as in Figures 4 and 5). Thin lines represent individual mice (n = 4), thick lines and shaded regions represent the grand mean ± standard deviation. Blue: within-trial sniffs; orange: inter-trial interval sniffs. Top: nose speed modulation, defined by a modulation index maxspeed-minspeed/max+min calculated from the grand mean, is significantly greater for investigation motifs than approach motifs (Figure 8—figure supplement 1; p<0.001, permutation test). Middle: yaw velocity modulation is significantly greater for investigation motifs than approach motifs (Figure 8—figure supplement 1; p<0.001, permutation test). Bottom: Z-velocity modulation does not significantly differ between approach motifs and investigation motifs (p=0.31, permutation test).

Video 7. Example trials with investigation/approach overlaid.

Download video file (4MB, mp4)

Three dots on the mouse represent the coordinates of front of snout, back of head, and center of mass extracted using Deeplabcut. Dots and lines are colored according to whether that frame was assigned by the auto-regressive hidden Markov model to an investigation motif or an approach motif. Sniffing is indicated by sound (higher tone = inhalation, lower tone = exhalation). Video frame rate is slowed by 8×.

Video 8. Movement trajectories for individual sniffs separated into investigation and approach.

Download video file (2.4MB, mp4)

Each video snippet corresponds to one sniff, where the frames are translated so that the back of the head is centered and rotated so that the head angle is vertical, in the first frame of each sniff. Blue = inhalation, pink = exhalation. Video frame rate is slowed by 10×.

Investigation motif onsets are precisely locked to sniffing

If motif transitions correspond to relevant behavioral events, their temporal structure should correlate with the temporal structure of neural activity (Markowitz et al., 2018). During fast sniffing, respiration matches with the rhythms of head movement (Figures 4 and 5), whisking, and nose twitches (Kurnikova et al., 2017; Moore et al., 2013; Ranade et al., 2013). These motor rhythms correlate with activity in numerous brain regions, including brainstem, olfactory structures, hippocampus, amygdala, and numerous neocortical regions (Karalis and Sirota, 2018; Kay, 2005; Macrides et al., 1982; Vanderwolf, 1992; Yanovsky et al., 2014; Zelano et al., 2016). We hypothesized that movement motifs would lock with these behavioral and neural rhythms, so we aligned sniff signals with motif onset times. Importantly, the breath signal was not input to the model.

This alignment revealed a striking organization of motif sequences relative to the sniff rhythm. For example, the onset times of motif 6 (dark blue) occurred in a precise timing relationship with sniffing (Figure 8A). To visualize the timing relationship between onsets of all motifs and sniffing, we calculated the equivalent of a peristimulus time histogram for inhalation times relative to the onset time of each motif and took the grand mean across all mice (Figure 8B; n = 4). Further, to determine how motif onset times are organized relative to the sniff cycle, for each motif we calculated a histogram of motif onset in sniff phase coordinates (Figure 8C; relative position in the sniff cycle). Sharp peaks are apparent in both histograms for investigation motifs, and less so for approach motifs (quantified below; Figure 8B, C). Importantly, these timing relationships are consistent across mice, with some motifs tending to occur early in the sniff cycle during inhalation and others occurring later in the sniff cycle (Figure 8D). Thus, parsing diverse movement trajectories into sequences of recurring movement motifs reveals additional sniff-synchronized kinematic structure in a consistent manner across mice.

Figure 8. Motif onsets synchronize to the sniff cycle.

(A) Alignment of the sniff signal to an example motif. Top: color scheme shows sniff cycles aligned to the onsets of motif 6 (blue). Motif instances are in chronological order. Green: inhalation; black: rest of sniff. Bottom: peristimulus time histogram of inhalation times aligned to the onset of motif 6. (B) Alignment of sniff signal to onset times of all motifs across mice (n = 4). Motifs categorized into two types we call investigation (light blue) and approach (orange). Colormap represents the grand means for peristimulus time histograms of inhalation times aligned to the onset of motifs. (C) Alignment of motif onset times in sniff phase. Colormap represents peristimulus time histograms of motif onsets (bin width = 12.5 ms) times aligned to inhalation onset, with all sniff durations normalized to 1. Dotted line shows the mean phase of the end of inhalation. (D) Motif alignment to sniff phase is consistent across mice. Thin lines represent individual mice, black points are means, and whiskers are ±1 standard deviation (n = 4 mice). (E) Investigation motifs are more synchronized to the sniff cycle than approach motifs. Dots represent the modulation index in time on the x-coordinates and in phase on the y-coordinates. Filled dots represent motifs that are significantly modulated in both time and phase (p<0.01, permutation test). Half-filled dots represent motifs that are significantly modulated in time (left half filled) or phase (right half filled).

Figure 8.

Figure 8—figure supplement 1. Shuffle test for the difference in sniff synchronization between investigation and approach motifs for movement parameters.

Figure 8—figure supplement 1.

We quantified the difference by calculating the Kolmogorov–Smirnov statistic for the comparison between the sniff-triggered averages in the two states, first for real data, and then for 1000 iterations of trial-shuffled data. Red shows the value for the real data, while the black histogram plots the distribution of Kolmogorov–Smirnov statistic for the 1000 iterations. (A) Nose speed. (B) Yaw velocity. (C) Z-velocity. 
Figure 8—figure supplement 2. Shuffle test for sniff synchronization of motif onset for investigation and approach motifs.

Figure 8—figure supplement 2.

We calculated a modulation index (MI=(maxmin)/(max+min)) for each motif's across-mouse mean histogram (n = 4) and calculated the same for 1000 trial-shuffled across-mouse mean histograms. Blue and orange lines give the value from the real data, while the black histogram shows the distribution of MI across shuffle iterations.

Are motif onsets timed with respect to inhalation times, or do they coordinate with the entire sniff cycle? In other words, is motif onset probability more modulated in time or phase? To quantify the sniff synchronization of motif onset times, we calculated a modulation index (MI=max-min/max+min) for each motif’s across-mouse mean histogram (n = 4). To test whether these trial-by-trial modulation indices exceeded what would be expected from across-trial tendencies, we compared real and trial-shuffled data (Figure 8—figure supplement 2). All investigation motifs were significantly modulated for both time and phase coordinates (Figure 8E; filled symbols, permutation test, p<0.001), with some having higher MI in time, and others in phase. One approach motif was significantly modulated in time coordinates (Figure 8E; right-half filled symbol, p=0.003), while two approach motifs were significantly modulated in phase coordinates (Figure 8E; left-half filled symbols, p=0.015 and p<0.001). Comparing the modulation indices between time and phase coordinates does not reveal a consistent pattern of modulation in time vs. phase – some motifs had higher MI in phase, others in time. Thus, our data are inconclusive as to how motif onsets organize relative to the sniff cycle. Nevertheless, these analyses demonstrate that kinematic inflection points synchronize with breathing during olfactory search. Given that breathing synchronizes to other motor and brain rhythms, these motifs likewise correlate to the structure of activity of many neurons. Thus, our analysis will be a useful tool to pinpoint behaviorally relevant activity in widespread brain regions.

Investigation and approach occupancy maps suggest a serial-sniff comparison strategy

We propose that motif transition times indicate ‘decision points’ at which the animal chooses its next move (Markowitz et al., 2018). The transitions between investigation and approach motifs are particularly relevant since investigation motifs may correspond to an evidence-gathering state, while approach motifs may correspond to a reward-gathering state. What kind of sensory evidence guides transitions between investigation and approach? Although we cannot determine the precise odor inputs the mice acquire on a sniff-by-sniff basis, we reasoned that we could elucidate the search strategy by examining aggregate across-trial patterns in allocentric maps of investigation and approach occupancy.

As expected from the temporal structure of investigation and approach (Figure 7C, D), the mice primarily investigate near the initiation port (Figure 9A; n = 9 mice) and primarily approach close to the decision line (Figure 9A, orange). Along the longitudinal axis of the arena, the two occupancy maps overlap in a region between initiation port and decision line (Figure 9A, black) where overall occupancy also peaks (Figure 3F). Along the lateral axis of the arena, on average the overlap region is roughly centered on the lateral midline between left and right sides (Figure 9A). However, this centered position is not representative of the individual mice, which have their overlap region in different positions relative to the lateral midline, with some on the left, and others on the right (Figure 9—figure supplement 1A). However, if trials are oriented such that the chosen side is always up in the occupancy maps, the overlap region is displaced toward the chosen side of the arena in all individual mice (Figure 9—figure supplement 1B). Thus, the mice primarily switched states while located on the side they would ultimately choose. To quantify the overlap between states, we calculated a relative occupancy index, defined as the difference in investigation and approach occupancy divided by their sum (Figure 9C, I.A.I.). For this index, a bin where the mice primarily investigated has a positive value, while a bin primarily occupied during the approach state has a negative value. Along the longitudinal axis, most of the change in this index occurred between inflection points at 5 and 10 cm, which we define as a ‘transition zone’ for the analyses below (Figure 9D).

Figure 9. The allocentric spatial distribution of investigation and approach occupancy.

(A) Colormaps show two-dimensional histograms of the occupancy density (1 cm² bins, n = 9 mice) with investigation density in blue, approach density in orange, and overlap shown by darker coloring (key in top-left corner). Histograms around the colormaps show the state occupancy projected onto the longitudinal (top) and lateral (left) axes of the arena. (B) Occupancy distributions after the right-choice trials are flipped upward so that the chosen side is always facing up in the diagram. (C) Relative usage is quantified with an investigation approach index (I.A.I.), defined as the difference between investigation and approach occupancy divided by their sum. Blue and orange triangles are visual aids that represent the I.A.I. (D) Relative occupancy density of investigation and approach (I.A.I.), plotted along the longitudinal axis of the arena from the initiation port to the decision line. We define the region between 5 cm and 10 cm as a ‘transition zone’, in which most transitions between investigation and approach take place. Thin lines are individual mice (n = 9), thick line and shaded region are mean ± s.e.m. (E) I.A.I. plotted along the lateral axis in real space (i.e., left-right orientation) for all occupancy throughout the arena (left) and for the transition zone only (right). Thin lines are individual mice (n = 9), thick line and shaded region are mean ± s.e.m. (F) Same as (E), but after the lateral axis has been reoriented so that the chosen side is always up.

Figure 9.

Figure 9—figure supplement 1. The allocentric spatial distribution of investigation and approach occupancy for individual mice.

Figure 9—figure supplement 1.

(A) Colormaps show two-dimensional histograms of the occupancy density (1 cm² bins, n = 9 mice), with investigation density in blue, approach density in orange, and overlap shown by darker coloring (key in top-left corner). Each map corresponds to a single mouse. Trials are oriented with respect to real space, such that the left side of the arena faces up in the figure. (B) Same as (A), except that trials are reoriented so that the chosen side always faces up in the figure.

Along the lateral axis of the arena, I.A.I. was quite variably distributed across mice, both for the entire occupancy map and within the transition zone (Figure 9E), consistent with the individual mouse occupancy maps (Figure 9—figure supplement 1A). Orienting trials with respect to the chosen side demonstrates a clearer pattern, with primarily investigation on the unchosen side and primarily approach on the chosen side (Figure 9F and Figure 9—figure supplement 1B).

Occupancy maps allowed us to further evaluate hypotheses about the search strategy mice use in these conditions. One hypothetical strategy is that the mice memorize absolute concentrations across trials and compare each individual sniff to an internal threshold learned over previous trials (single-sniff hypothesis). Another possible strategy would be serial-sniff comparison, where the mouse senses changes between sequential samples within individual trials (serial-sniff hypothesis). These hypotheses make distinct predictions about where the mouse should sample. For the single-sniff hypothesis, the most informative location to sample is directly downwind of the odor ports, where concentration differences between left and right trials are maximal (Figure 1—figure supplement 2). For gradient sensing, the optimal location is instead across the lateral midline, where the gradients are sharpest (Figure 1—figure supplement 2; Yovel et al., 2010). We tested these predictions by comparing occupancy maps between correct and incorrect trials. For the single-sniff strategy, the mouse should get it correct more often when it investigates downwind of the odor ports, while a serial sniff hypothesis predicts that correct trials should show increased investigation at the midline.

Correct and incorrect trials yielded qualitatively similar occupancy maps (Figure 10A). To quantify their differences, we first compared their occupancy indices along the longitudinal axis of the arena (Figure 10B, C). Correct trials featured significantly higher I.A.I. (greater investigation) in the latter part of the transition zone, while past the decision zone the I.A.I. was higher for incorrect trials (Figure 10C; permutation test, p<0.001, n = 9 mice). Thus, increased investigation in the transition zone was associated with correct trials, while increased investigation near the decision line was associated with incorrect trials. This pattern suggests that investigation is not inherently advantageous to olfactory search irrespective of location. Instead, it matters where the mouse investigates, and some locations are less advantageous. Notably, absolute concentrations are most discriminable near the decision line (Figure 1—figure supplement 2C), suggesting that mice may not be able to capitalize on this cue under these conditions.

Figure 10. Occupancy maps indicate an advantage for investigation of both sides.

(A) Colormaps show two-dimensional histograms of the occupancy density (1 cm² bins, n = 9 mice) with investigation density in blue, approach density in orange, and overlap shown by darker coloring (key in top-left corner). Histograms around the colormaps show the state density projected onto the longitudinal (top) and lateral (left) axes of the arena. Left: correct trials. Right: incorrect trials. (B) Investigation approach index (I.A.I.) for correct (purple) and incorrect (green) trials. Thick lines and shaded region are mean ± s.e.m., thin lines are individual mice. (C) Difference in I.A.I. between correct and incorrect trials along the longitudinal axis (2.5 cm bins, n = 9). Thick line is the across-mouse mean difference, thin gray lines are 1000 permutations in which correct and incorrect trial labels were scrambled. (D) Investigation occupancy along the lateral axis, within the transition zone (5–10 cm longitudinal) for correct and incorrect trials. Thick lines and shaded region are mean ± s.e.m., thin lines are individual mice. (E) Approach occupancy along the lateral axis, within the transition zone (5–10 cm longitudinal) for correct and incorrect trials. Thick lines and shaded region are mean ± s.e.m., thin lines are individual mice. (F) I.A.I. along the lateral axis, within the transition zone (5–10 cm longitudinal) for correct and incorrect trials. Thick lines and shaded region are mean ± s.e.m., thin lines are individual mice. (G) Difference in investigation occupancy between correct and incorrect trials along the lateral axis, within the transition zone. Thick blue line is the across-mouse mean difference, thin blue lines are 1000 permutations in which correct and incorrect trial labels were scrambled. (H) Difference in approach occupancy between correct and incorrect trials. Thick orange line is the across-mouse mean difference, thin orange lines are 1000 permutations in which correct and incorrect trial labels were scrambled. (I) Difference in I.A.I. between correct and incorrect trials. Thick orange line is the across-mouse mean difference, thin orange lines are 1000 permutations in which correct and incorrect trial labels were scrambled.

Figure 10.

Figure 10—figure supplement 1. Occupancy maps indicate an advantage for investigation of both sides for both stay trials and switch trials.

Figure 10—figure supplement 1.

(A) Occupancy map analysis for ‘stay’ trials (trials where the mouse chooses the side it first turned to, analyses as in Figure 10). (B) Occupancy map analysis for ‘switch’ trials (trials where the mouse chooses the opposite side from its first turn).

We next quantified state occupancies along the lateral axis within the transition zone (Figure 10D–F). Correct trials featured significantly increased investigation at and on the unchosen side of the midline relative to incorrect trials (Figure 10G; permutation test, p<0.001, n = 9 mice). By definition, occupancy of the unchosen side precedes a crossing of the midline to get to the chosen side. This suggests an advantage to sampling both sides of the midline, consistent with a serial-sniff gradient sensing strategy. Further, investigation more laterally, downwind of the odor port, was increased on incorrect trials, suggesting that sampling this location was not advantageous for task performance, contrary to the single-sniff absolute concentration hypothesis. Approach occupancy showed a different pattern, with significantly higher approach at and around the midline on incorrect trials, and a significant increase in approach occupancy closer to the chosen water port (Figure 10H; permutation test, p<0.001). Consistent with these observations, on correct trials I.A.I. showed significant elevation at the midline and into the unchosen side of the arena, while increased I.A.I. of the chosen side was associated with incorrect trials (Figure 10I; permutation test, p<0.001). Altogether, these results suggest that it is advantageous to sample both sides of the midline in this task, consistent with the serial-sniff hypothesis.

An important consideration in interpreting these results pertains to the construction of our task. Before choosing a side, the mice have to turn out of the initiation port in one direction or the other on every trial. On some trials they stay and choose the side of the first turn, while on other trials they switch and choose the other side. A single-sniff hypothesis predicts that if the mouse happens to turn first toward the correct side, it will tend to encounter above threshold concentrations during the turn and should therefore tend to transition to approach without crossing the midline. However, if the mouse turns first to the incorrect side, threshold crossings will tend not to occur and the mouse can initiate approach before crossing the midline.

Thus, this hypothesis predicts that correct vs. incorrect occupancy differences should occur at different positions along the lateral axis for stay and switch trials. To test this prediction, we performed the same analyses separately for stay and switch trials. Although not identical, both stay and switch trials showed significantly increased investigation at and on the unchosen side of the midline for correct trials (Figure 10—figure supplement 1). This analysis demonstrates that the apparent advantage of sampling across the midline is not an artifact of the asymmetry between switch and stay trials. Taken together, investigation and approach occupancy mapping provides further evidence, suggesting that mice use a serial-sniff strategy to sense gradient cues in this task (Catania, 2013).

Discussion

This study elucidates sensory computations and movement strategies for olfactory search by freely moving mice. Mice learn our behavioral task in days, after which they perform approximately 150 trials daily, sometimes for months. Task performance worsens for shallower odor gradients at a fixed absolute concentration, but is unaffected by varying absolute concentrations at a fixed concentration gradient. Taken together, these results show that mice can navigate noisy gradients formed by turbulent odor plumes. This gradient-guided search is robust to perturbations including novel odorant introduction and naris occlusion. These results give insight into sensory computations for olfactory search and constrain the possible underlying neural mechanisms.

Mice perform this task with a strategic behavioral program. During search, mice synchronize rapid three-dimensional head movements with fast sniffing. This synchrony is not a default accompaniment of fast sniffing – synchrony is absent when the mice are not searching. Movement trajectories are not stereotyped, but vary considerably across trials. To manage this complexity, we took an unsupervised computational approach to parse heterogeneous trajectories into a small number of movement motifs that recur across trials and subjects. This analysis captures common movement features across mice, but individual mice can be identified by how they sequence these motifs. Our model was not constrained to find structure at a specific timescale, and consequently identified very brief, simple motifs. To find higher-order temporal structure in the data, we clustered motifs by their transition probabilities, which revealed two clear categories, putatively corresponding to investigation and approach. Investigation motifs tend to be executed early in the trial, and entail slower movement, faster sniffing, and more sniff synchrony than approach motifs. Even so, approach motifs are not ballistic commitments to an answer – switches from approach to investigation occurred on many trials. Lastly, the onset times of motifs were precisely locked to sniffing, with investigation motifs starting at characteristic phases of the sniff cycle.

The allocentric structure of investigation and approach suggests that the investigation state is not inherently advantageous. Rather, where the mouse investigates matters for performance. This dependence of performance on location indicates the spatial distribution of informative features in this olfactory scene. Notably, incorrect trials feature more investigation directly downwind of the odor source, along the axis of maximal odor concentration, which would be optimal if the mouse were using a single-sniff, absolute concentration strategy (Figure 1—figure supplement 2C). Thus, these analyses provide further evidence that the mice do not capitalize on absolute concentration information to guide performance in this task. Instead, correct trials feature more investigation at and across the axis of maximal odor gradient (Figure 1—figure supplement 2D), reminiscent of an object localization strategy observed in Egyptian fruit bats. When approaching an object, these bats do not center their sonar beams directly at the object, but rather point them off axis, so that the maximum slope of the acoustic profile intersects the object (Yovel et al., 2010). Likewise, in this task mice do not gain an advantage by centering their sniffing directly downwind of the odor sources, but rather perform best when they investigate the location of the steepest slope of the odor gradient, consistent with a serial-sniff gradient sensing strategy. Thus, our unsupervised computational analysis of airborne odor tracking supports the idea that sampling off axis can be an optimal strategy for localization across diverse sensory systems and species (Yovel et al., 2010).

Olfactory navigation can be either guided or gated by odor (Baker et al., 2018). Some organisms operate in a regime where diffusion forms smooth chemical gradients, in which classical chemotaxis strategies can be effective (Bargmann, 2006; Berg, 2000; Gomez-Marin and Louis, 2012; Lockery, 2011). In contrast, other organisms, such as flying insects, often operate in a highly turbulent regime where concentration gradients are not reliably informative (Crimaldi et al., 2002; Murlis et al., 1992; Riffell et al., 2008). By design, mice in our task operate in an intermediate regime, where turbulent odor plumes close to the ground form noisy gradients (Gire et al., 2016; Riffell et al., 2008). By varying the absolute concentration and the concentration difference between the two sides, we tested whether performance in this regime is guided or gated by odor. Because behavior varies with the gradient and not the absolute concentration (Figure 2C–E), we have shown that mice are guided by gradient cues in this regime. Further, performance is higher when the mice sample both sides of the midline, suggesting that they sense the gradient by comparing sniff sequences across time.

Our naris occlusion experiments demonstrate that performance is statistically indistinguishable with naris occlusion, suggesting that stereo olfaction does not play a major role in our task. This finding contrasts with previous studies of olfactory navigation in a different regime: following a depositional odor trail. In these studies, stereo manipulations had small but significant effects on performance, and led to changes in movement strategy (Jones and Urban, 2018; Khan et al., 2012). Importantly, a study of olfactory search in moles showed that stereo reversal did not affect navigation at a distance from the target, but reversed turning behavior in the target’s immediate vicinity (Catania, 2013). These results suggest that stereo cues may be informative near a source, where gradients are steep, but that stereo cues play less of a role at a greater distance from the source where gradients are more shallow. In this more distant condition, serial-sniff comparisons have been hypothesized as a potential sensory computation for odor gradient following Catania, 2013. We propose that our task design, in which mice must commit to a side at a distance from the source, forces mice out of the stereo regime and into the serial-sniff comparison regime. Neurons sensitive to sniff-to-sniff odor concentration changes have been observed in the olfactory bulb of head-fixed mice (Parabucki et al., 2019), providing a potential physiological mechanism for this sensory computation.

On the other hand, physiological mechanisms revealed in head-fixed mice may not generalize to the freely moving search condition. The external stimulus obtained by moving the nose through a noisy gradient differs dramatically from the square odor pulses delivered during head-fixed or odor-poke olfactory tasks. Further, the sniff statistics we observe in our mice are qualitatively faster than those reported in head-fixed mice under most conditions (Bolding and Franks, 2017; Shusterman et al., 2011; Wesson et al., 2009). One exception is that mice sniff fast in response to a novel odor (Wesson et al., 2009). Such fast stimulation impacts the responsiveness of olfactory sensory neurons (Esclassan et al., 2012; Ghatpande and Reisert, 2011; Verhagen et al., 2007). In addition to the temporal properties of odor transduction, short- and long-term synaptic and network plasticity mechanisms will influence the olfactory bulb’s responses during fast sniffing (Beshel et al., 2007; Díaz-Quesada et al., 2018; Gupta et al., 2015; Jordan et al., 2018; Mandairon and Linster, 2009; Patterson et al., 2013; Zhou et al., 2020). Without tapping into the fast sniffing regime, the understanding we can gain from head-fixed studies in olfaction will be incomplete at best. In the future, it will be necessary to complement well-controlled reductionist behavioral paradigms with less-controlled, more natural paradigms like ours.

Mice execute a strategic behavioral program when searching, synchronizing fast sniffing with three-dimensional head movements at a tens of milliseconds timescale. It has long been known that rodents investigate their environment with active sniffing and whisking behaviors (Kepecs et al., 2006; Wachowiak, 2011; Welker, 1964). More recent work has established that under some conditions sniffing locks with whisking, nose twitches, and head movement on a cycle-by-cycle basis (Kurnikova et al., 2017; Moore et al., 2013; Ranade et al., 2013). Sniffing also synchronizes with brain oscillations not only in olfactory regions, but also in hippocampus, amygdala, and neocortex (Karalis and Sirota, 2018; Kay, 2005; Macrides et al., 1982; Vanderwolf, 1992; Yanovsky et al., 2014; Zelano et al., 2016). Respiratory central pattern generators may coordinate sampling movements to synchronize sensory dynamics across modalities with internal brain rhythms (Kleinfeld et al., 2014). Further, locomotor and facial movement, which are often synchronized to respiration, drive activity in numerous brain regions, including primary sensory areas (McGinley et al., 2015; Musall et al., 2019; Niell and Stryker, 2010; Stringer et al., 2019). Why are respiration and other movements correlated with activity in seemingly unrelated sensory regions? In the real world, sensory receptors operate in closed loop with movement (Ahissar and Assa, 2016; Gibson, 1966). Consequently, sensory systems must disambiguate self-induced stimulus dynamics from changes in the environment. Further, active sampling movements can provide access to sensory information that is not otherwise available to a stationary observer (Gibson, 1962; Schroeder et al., 2010; Yarbus, 1967). Widespread movement-related signals may allow the brain to compensate for and capitalize on self-induced stimulus dynamics (Poulet and Hedwig, 2006; Sommer and Wurtz, 2008; Sperry, 1950; von Holst and Mittelstaedt, 1950; Webb, 2004). Our work advances understanding of how sensation and movement interact during active sensing.

Rigorously quantifying the behavior of freely moving animals is more feasible than ever, thanks to recent developments in machine vision, deep learning, and probabilistic generative modeling (Datta et al., 2019; Gomez-Marin et al., 2014; Mathis and Mathis, 2020), as our work shows. In particular, the motifs we have defined provide a compact description of the behavior, while still capturing the idiosyncrasies of individual mice. Importantly, these motifs can be grouped into two larger-scale behavioral states that we putatively call ‘investigation’ and ‘approach’. Two-state search strategies are common across phylogeny (Bargmann, 2006; Berg, 2000; Kennedy and Marsh, 1974; Lockery, 2011; van Breugel and Dickinson, 2014; Vickers and Baker, 1994). In smaller organisms, state switches have provided a useful behavioral readout for understanding the neural mechanisms of odor-guided behavior (Bi and Sourjik, 2018; Larsch et al., 2015; Baker et al., 2018). Here, we have shown that where switches between investigation and approach occur in allocentric space can reveal the location of informative features in an olfactory scene. The transition points between ‘investigation’ and ‘approach’ serve as a principled template against which to compare neural activity. Our work thus establishes a framework for studying neural mechanisms of active sensing in an unrestrained mammal.

Materials and methods

Key resources table.

Reagent type (species) or resource Designation Source or reference Identifiers Additional information
Software, algorithm Bonsai Open Ephys
Lopes et al., 2015
Visual reactive programming
Software, algorithm Deeplabcut The Mathis Lab of Adaptive Motor Control
Nath et al., 2019
Animal pose estimation
Software, algorithm Pyhsmm Matthew Johnson,Johnson et al., 2013a and Johnson et al., 2013b Bayesian inference in HSMMs and HMMs

Custom-written task control, analysis, and visualization code is available at https://github.com/SmearLab/Freely-moving-olfactory-search (Findley et al., 2021).

Animals: housing and care

All experimental procedures were approved by the Institutional Animal Care and Use Committee (IACUC) at the University of Oregon and are compliant with the National Institutes of Health Guide to the Care and Use of Laboratory Animals. C57BL/6J mice (2–14 months old) from the Terrestrial Animal Care Services (TeACS) at University of Oregon (19 males, 7 females) were used for behavioral experiments. Mice were housed individually in plastic cages with bedding and running wheels provided by TeACS. Mice were fed standard rodent chow ad libitum and were water-restricted, receiving a daily allotment (1–1.5 mL) of acidified or chlorinated water. Animal health was monitored daily, and mice were taken off water restriction if they met the ‘sick animal’ criteria of a custom IACUC-approved health assessment.

Behavioral assay design

Arena and task structure

Mice were trained to perform a two-choice behavioral task where they must locate an odor source for a water reward. This 15 × 25 cm behavioral arena was largely custom-designed in lab (all designs available upon request). The behavioral arena contains a custom-designed and 3D-printed honeycomb wall through which continuous clean air is delivered to the arena and a latticed wall opposite to the honeycomb allowing airflow to exit the arena. Two odor tubes (Cole-Parmer Instrument Company, #06605-27) are embedded inside the honeycomb wall and consistently deliver either clean or odorized air. There are three nose pokes in the arena: one trial initiation poke and two reward pokes. The initiation poke is embedded inside the latticed wall (where airflow exits) and is poked to initiate trials. The left and right reward pokes are embedded in the left and right arena walls against the honeycomb airflow delivery and are used for water reward delivery. Mice initiate odor release by entering the initiation poke. If the mouse locates the odor source successfully (by entering the quadrant of the arena containing the correct odor port), water (~6–8 µL) is available at the corresponding nose poke. An ITI of 4 s is then initiated. If the mouse goes to the incorrect side, water is not made available and they must wait an increased ITI of 10 s.

Odor delivery

Odor is delivered to the arena using two custom-designed and built olfactometers. For a single olfactometer, air and nitrogen are run through separate mass flow controllers (MFCs) (Alicat Scientific, #MC-100SCCM-RD) that can deliver 1000 mL/min and 100 mL/min at full capacity, respectively. We can use these MFCs to control the percentage of total nitrogen flow (100 mL/min) that runs through liquid odorant. Consequently, we can approximately control the amount of odor molecules in the resulting odorized air stream. Total flow is maintained at 1000 mL/min (e.g., if we are delivering 80 mL/min of nitrogen, we will deliver 920 mL/min of air). Nitrogen MFC output is directed through a manifold (NResearch Incorporated, #225T082) with embedded solenoids that direct flow to one of four possible vials. These vials contain odorant diluted in mineral oil or are empty. To odorize air, nitrogen is directed through a vial containing liquid odorant. The nitrogen aerosolizes the odorant and combines with airflow MFC output at the exit point of the manifold. If nitrogen is directed through an empty vial, unodorized nitrogen will combine with airflow at the exit point. The resulting combined flow of air and nitrogen is then directed to a final valve (NResearch Incorporated, #SH360T042). Odorized air continuously runs to exhaust until this final valve is switched on at which point clean air is directed to exhaust and odorized air to the behavioral assay. Therefore, we can control the percentage of odorized flow (using the MFCs), the presence or absence of odorized flow (using the vials and solenoids), and the flow of odorized air to the assay (using the final valve). There are two olfactometers (one for each odor port), which are calibrated weekly to match outputs using a PID.

Video-tracking

We use a Pointgrey Fly Capture Chameleon 3.0 camera (FLIR Integrated Imaging Solutions Inc, #CM3-U3-13Y3C) for video-tracking. We capture frames at 80 Hz at 1200 × 720 pixel resolution. All real-time tracking is executed using a custom Bonsai program. We isolate the mouse’s centroid by gray-scaling a black mouse on a white background and finding the center of the largest object. We track head position by applying red paint on the mouse’s implant between the ears and thresholding the real-time HSV image to identify the center of the largest red shape. We can then identify nose position by calculating the extremes of the long axis of the mouse shape and isolating the extreme in closer proximity to the head point. These three points are sent to Python at 80 Hz for real-time tracking in our assay. We use this real-time tracking to determine successful odor localization; if the mouse enters the quadrant of the arena that contains the correct odor port, it has answered correctly. Bonsai is an open-source computer vision software available online (Lopes et al., 2015), and our custom code is available upon request.

For more rigorous behavioral analysis, we increased our tracking accuracy by using the open-source tracking software Deeplabcut (Mathis et al., 2018; Mathis and Mathis, 2020). All Deeplabcut tracking occurred offline following experimentation.

Sniff recordings

We record sniffing using intranasally implanted thermistors (TE Sensor Solutions, #GAG22K7MCD419; see Materials and methods: Surgical Procedures). These thermistors are attached to pins (Assmann WSW Components, #A-MCK-80030) that can be connected to an overhead commutator (Adafruit, #736) and run through a custom-built amplifier (Texas Instruments, #TLV2460, amplifier circuit design available upon request).

Software

All behavioral experiments were run using custom code in Python, Bonsai, and Arduino. Behavioral boards designed at Janelia Research Farms that use Arduino software and hardware were used to control all hardware. Bonsai was used to execute real-time tracking of animals, and Python was used to run the assay, communicate with Arduino and Bonsai, and save data during experiments. All programs used are open source, and all custom code is available upon request.

Surgical procedures

For all surgical procedures, animals were anesthetized with 3% isoflurane; concentration of isoflurane was altered during surgery depending on response of the animal to anesthesia. Incision sites were numbed prior to incision with 20 mg/mL lidocaine.

Thermistor implantation

To measure respiration during behavior, thermistors were implanted between the nasal bone and inner nasal epithelium of mice. Following an incision along the midline, a small hole was drilled through the nasal bone to expose the underlying epithelium ~2 mm lateral of the midline in the nasal bone. The glass bead of the thermistor was then partially inserted into the cavity between the nasal bone and the underlying epithelium. Correct implantation resulted in minimal damage to the nasal epithelium. The connector pins were fixed upright against an ~3 cm headbar (custom-designed and 3D printed) placed directly behind the animals’ ears and the thermistor wire was fixed in place using cyanoacrylate. The headbar was secured against a small skull screw (Antrin Minature Specialties, #B002SG89OI) implanted above cerebellum. A second skull screw was placed at the juncture of the nasal bones to secure the anterior portion of the implant. All exposed skull and tissue were secured and sealed using cyanoacrylate. At the end of surgery, a small amount of fluorescent tempera red paint (Pro Art, #4435-2) was applied to the center of the headbar for tracking. Immediately following surgery, animals received 0.1 mg/kg buprenorphine followed by 3 days of 0.03 mg/kg ketoprofen. All but nine mice were implanted prior to training. Mice that were implanted post-training were taken off water restriction at least 2 days prior to surgery and were not placed back on water restriction for at least 1 week following all analgesic administration.

Naris occlusion

To test the necessity of stereo olfaction as a sampling strategy, we occluded the nostrils of C57BL/6J mice using 6-0 gauge surgical suture (SurgiPro, #MSUSP5698GMDL). Mice were given 0.03 mg/kg ketoprofen and topical lidocaine on the nostril prior to induction. Suture was either pulled through the upper lip of the nostril and maxillary region to fully occlude the desired nostril or looped at the upper lip of the nostril for a sham stitch. Commercially available VetBond was applied to protect the suture knot. To ensure full occlusion, a small water droplet was placed on the occluded nostril. The absence of bubbles or seepage indicated a successful occlusion. Occlusion was retested in the same manner directly before each experimental session. All stitches were removed within a week of application, and animals were stitched a total of three times per nostril.

Behavioral training

All mice were trained to locate an odor source from one of two possible sources in the olfactory arena. Mice were removed from training and future experiments if they lost sniff signal or did not exceed 50 trials/perform above 60% correct in 15 sessions. The training process was divided into four primary stages.

Water sampling

Mice were trained to alternate between the three pokes in the behavioral arena. Water (~5–8 µL) was made available at the nose pokes in the following order: initiation port, left reward port, initiation port, and right reward port (repeat). Mice were trained in this task for 30 min per session until the mouse completed 70 iterations. This took mice 2–9 sessions. Data are only shown for 19 mice because earlier iterations of the system did not save training data.

Odor association

Mice were trained in the same sequence as water sampling. However, in odor association, water availability was removed from the initiation poke, and odor was released from whichever side water was available. Therefore, the mouse must initiate water availability by poking the initiation poke and then is further guided to the correct reward port by odor release. This task taught mice to initiate trials using the initiation poke and to associate odor with reward. However, in this step, odor is not required for reward acquisition as the task alternates left and right trials. Mice were trained in this task for 30 min per session until the mouse completed 70 iterations. This took mice 1–5 sessions. Data are only shown for 19 mice because earlier iterations of the system did not save training data.

100:0

Mice were given the same task as odor association, but with odor now randomly being released from the left or right odor port following an initiation poke. 10% of these trials were randomly 0:0 condition trials. To correctly answer, animals had to enter the quadrant of the arena (as tracked by the overhead camera) where odor was being released. If they answered correctly, water was made available at the reward port on the corresponding side. If they answered incorrectly, water was not made available and the mouse received an increased ITI. Mice were trained in this task for 40 min per session until they exceeded 80% accuracy, which took 1–4 sessions (n = 26).

80:20

When trials were initiated in this task, odor was released from both odor ports, but at differing concentrations. The animal had to enter the quadrant containing the odor port releasing the higher concentration. In this case, 80 means that the nitrogen MFC was set to 80 mL/min on one olfactometer (see Materials and methods: behavioral assay). Therefore, one odor port would release roughly 80% of the total possible odorant concentration. If one olfactometer was set to 80, then the other olfactometer would be set to 20 in this condition. 10% of these trials were randomly 0:0 condition. Mice were trained in this task for 40 min per session, taking 1–9 sessions to exceed 60% performance (n = 24).

Behavioral experiments

Variable ΔC, Constant |C|

This experiment tested how performance and sampling strategy changes with task difficulty. In this experiment, mice performed a two-choice behavioral task where they located an odor source for a water reward at varying concentration differences between the two ports. This experiment interleaved several possible conditions: 100:0 (all odor released from one port or the other), 80:20 (odor is released from both ports at different concentrations: 80% of the total possible airborne concentration and 20% of the total possible airborne concentration), and 60:40 (60% and 40%). Additionally, there was a control condition where all system settings were the same as the 80:20 condition, but nitrogen flow was directed through a clean vial so that the final flow was not odorized. 10% of the total number of trials were the 0:0 condition. Mice ran 40 min experimental sessions and totaled 5–50 sessions (n = 19). These experiments were run with 1% liquid dilution of pinene.

Novel odorant

This experiment tested how mice generalized our olfactory search task. A subset of mice were run with 1% liquid dilution of vanillin, which, unlike pinene, does not activate the trigeminal system (n = 3).

Constant ΔC, Variable |C|

This experiment tested if the animals use a thresholding strategy based on a fixed concentration threshold to solve the localization task. We ran this experiment using air dilution delivering the concentration ratios 90:30 and 30:10 interleaved randomly (n = 5). Mice ran 40 min sessions, and we analyzed data from the first session.

Naris occlusion

This experiment tested the necessity of stereo olfaction in our localization task. Mice were run in the interleaved experiment (see above) initially. However, after observing no differences between concentration groups, we continued this experiment running mice in the 80:20 and 0:0 conditions only. Mice were run in one of five categories: left occlusion, left sham stitch, right occlusion, right sham stitch, and no stitch (see Materials and methods: surgical procedures). Mice ran 40 min experimental sessions and totaled 5–30 sessions (n = 13). Stitches were always removed after 4 days. These experiments were run using 1% pinene dilutions.

Mapping the olfactory environment

We used a PID (Aurora Scientific Inc, #201A) to capture real-time odor concentration at a grid of 7 × 5 sampling locations in the assay. Using vials of 50% liquid dilution of pinene, we captured ~15 two-second trials per sampling point. Odor maps were generated using the average concentration detected across all trials at each location. These maps were smoothed via interpolation across space. Discriminability maps in Figure 1—figure supplement 2C, D were calculated with ROC analysis on the PID data (Green and Swets, 1966). To generate the distributions, each 2 s trial was divided into 25 ms chunks (approximately the mean inhalation duration during the task). For each space bin, the mean value of each 25 ms chunk was compiled into a distribution of odor concentration values for right and left trials (the different gradient conditions were pooled for this analysis). To map concentration gradient discriminability, 25 ms samples from each bin were assembled into a pseudosample, such that each sampling position had a concentration value. The gradient angle in each bin of this pseudosample was then calculated (imgradient function in MATLAB) and compiled into a distribution of angles for right and left trials (the different gradient conditions were pooled for this analysis). For both absolute concentration and gradient maps, the area under the ROC curve was calculated for each bin, scaled to between −1 and 1, and absolute valued, and these were assembled into a map and smoothed. Values are thresholded and shown at low bit depth (eight grayscale values) to facilitate perception of where the auROC values are highest.

Data analysis

Analyses of odormaps, sniffing, DLC tracking, and motif sequences were performed in MATLAB. Inhalation and exhalation times were extracted by finding peaks and troughs in the temperature signal after smoothing with a 25 ms moving window. Sniffs with duration less than the 5th percentile and greater than the 95th percentile were excluded from analysis. For alignment of movement with sniffing, tracking and motif sequences were shifted forward in time by 25 ms (two frames), the temporal offset revealed by video calibration (Figure 1).

Figure 1

Odormaps were visualized by smoothing the PID sampling grid with a Gaussian and colored using Cubehelix (Green, 2011).

Figure 2

Sessions where mice performed less than 60% correct on 80:20 (90:30 for Constant ΔC, Variable |C|) were less than 80 trials or had any missing folders or files were excluded. Trials longer than 10 s were excluded. Percent correct was calculated by dividing the correct trials by total trials in a single session and was averaged across all sessions, all mice. Trial duration was measured between nose poke initiation and reward poke and was averaged across all trials, all sessions, all mice. Tortuosity was measured by dividing the total path length by the shortest possible path length and was averaged across all trials, all sessions, all mice.

Statistical tests were performed in Python using the scipy package (Peterson et al., 2001). A binomial test was used to test statistical significance of above-chance performance. Wilcoxon rank-sum tests were used for all group comparisons with pairwise comparisons for more than two groups. Two group comparisons were tested using all trials pooled together, and pairwise comparisons of three groups or more were tested across mice using individual mouse averages.

Figure 3

Occupancy and sniff rate colormaps were generated by down-sampling the tracking data to a 50 × 30 grid of bins (0.5 cm2). Occupancy colormaps are a 2D histogram of the nose position data. Sniff rate histograms were generated by dividing the sniff count in each position bin by the corresponding bin in the occupancy histogram. Both histograms were Gaussian-smoothed and colored using Cubehelix (Green, 2011). Grand means are shown in Figure 3F, G, while individual mouse occupancy heatmaps are shown in Figure 4. Maps were colored using Cubehelix (Green, 2011).

Figures 4 and 5

Nose speed, yaw velocity, and Z-velocity were calculated from the three-point position time series generated by Deeplabcut. For analysis, a 400 ms window centered on each inhalation time was extracted from the kinematic time series. Colormaps in Figure 4 show traces surrounding individual sniffs, while colormaps were generated using Bluewhitered (Childress, 2020). For within-trial sniffs, only those inhaled before the decision line were included. The ITI sniffs are taken from the time of reward port entry to the time of the first initiation port entry in the ITI. For cross-correlation and coherence analysis, we aligned the time series of sniffing and kinematic parameters from the entire trial or from the interval between reward and initiation port in the ITI. Tracking glitches were excluded by discarding trials or ITIs that contained frames with nose speed above a criterion value (100 pixels per frame).

Figure 6

Average motif shapes were generated from the mean positions of the nose, head, and body points from the first eight frames of every instance of a given motif as determined by the AR-HMM. Decoding analysis is described in the following section.

Figure 7

The transition probability matrix was clustered by minimizing Euclidean distance between rows. For analyses separating investigation and approach sniffs, sniffs were defined as investigation or approach sniffs based on the state at the inhalation time. Colors for investigation and approach were selected from the Josef Albers painting, Tautonym, (B) (Albers and Tautonym, 1944).

Figure 8

Figures are generated by motif-onset triggered averages of inhalation times determined as described above. Figure 8B, C are the grand mean of the motif onset-triggered average for each motif. Maps were colored using Cubehelix (Green, 2011). Sniff phase (relative time in sniff) was determined by dividing the motif onset latency from inhalation by the total duration (i.e., inhalation time to inhalation time) of each sniff. Modulation index was calculated as the difference between maximum and minimum instantaneous sniff rate, divided by the sum max-min/max+min.

Figure 9, Figure 9—figure supplement 1, Figure 10, Figure 10—figure supplement 1

Investigation and approach occupancy maps were generated by down-sampling the tracking data to a 25 × 15 grid of bins (1 cm2). Occupancy maps are a 2D histogram of the nose position data, compiled separately for investigation and approach frames (see below for details of ARHMM analysis). In plots where the data are reoriented with respect to the choice, the lateral axis of all right-choice trials has been flipped so that the trajectories always end on the left side (top side in the displayed occupancy maps). Both histograms were normalized to the total occupancy in a given bin (i.e., investigation + approach), Gaussian-smoothed, and merged and colored using a scheme adapted from fluorescence microscopy (Geissbuehler and Lasser, 2013). Grand means (n = 9) are shown in Figures 9A, B and 10A, and S16, while individual mouse mean occupancy maps are shown in Figure 9—figure supplement 1. I.A.I. is calculated as the difference between investigation and approach occupancies over their sum for a given bin. I.A.I. is taken from histograms that are the projection of the 2D maps onto the longitudinal or lateral axes. The ‘transition zone’ is defined as the region between 5 and 10 cm from the longitudinal axis origin (i.e., the initiation port), and lateral axis histograms are taken from within this region in Figure 10D–F and Figure 10—figure supplement 1. Correct-incorrect occupancy and index differences are grand mean of the individual mouse differences in Figure 10C, G–I and Figure 10—figure supplement 1. These differences are evaluated statistically against a null distribution generated by scrambling the correct and incorrect trial labels 1000 times and re-running this analysis. Importantly, these shuffles are performed within mice before taking the post-shuffle grand means, so that these null distributions incorporate both within-mouse and across-mouse variability.

Sniff synchronization

Sniff cycles were compared with kinematics to determine the extent of movement modulation at individual sampling points. Individual sniffs were cross-correlated with each kinematic signal (i.e., nose speed) at −200 ms from inhalation onset to +200 ms from inhalation onset. To further determine synchrony between the two signals, we measured the coherence of signal oscillation between sniff signals and individual kinematic measurements at −200 ms from inhalation onset to +200 ms from inhalation onset.

Auto-regressive hidden Markov model

Let xt denote the six-dimensional vector of nose-head-body coordinates at video frame t (sampled at 80 Hz), with components (xnose,ynose,xhead,yhead,xbody,ybody). We fit an AR-HMM to mouse trajectory data, {xti}, across trials (indexed by i) from 13 out of 15 mice (two mice were excluded a priori due to low task performance). These mice performed olfactory search under the following experimental conditions: Variable ΔC, Constant |C| (nine mice); naris occlusion (seven mice); and Constant ΔC, Variable |C| experiments (five mice).

The generative view

Viewed as a generative model (that generates simulated data), the AR-HMM has two 'layers': a layer of hidden discrete states (corresponding to discrete movement motifs) and an observed layer that is the continuous trajectory xt. We denote the temporal sequence of discrete states by zt. In each time step, zt{1,2,,S}, that is, it is one of an S number of states, or movement motifs. The discrete hidden states evolve in time according to a Markov chain: going from time step t to t + 1, the discrete state may change to another state according to a transition probability matrix πz1,z2, which denotes the conditional probability of switching to z2 having started in z1. The probability distribution over the initial state, zt=1, of the Markov chain at the start of each trial was taken to be the uniform distribution.

Now suppose for time steps t1 to t2 (inclusive) the discrete layer remained in state z. The continuous or auto-regressive (AR) part of the model dictates that, over this time interval, the continuous trajectory, xt, evolves according to a linear AR process. The parameters of this AR process can be different in different states or motifs, z. In other words, xt is governed by

xt=Azxt1+bz+εt.t1tt2 (1)

where Az is a 6 × 6 matrix and b is a 6 × 1 vector, and the noise vector εt is sampled from the multi-variate zero-mean Gaussian distribution N0,Qz, where Qz is a 6 × 6 noise covariance matrix. Moreover, the parameters Az, bz, and Qz depend on the discrete state z, and in general are different in different discrete states. The simple stochastic linear dynamics described by Equation (1) can describe simple motions of the mouse, such as turning left/right, dashing towards a certain direction, freezing (when Az is the identity matrix and bz is zero), etc. The switches between these simple behaviors allow the model to generate complex trajectories.

The AR-HMM is an example of a model with latent variables, which in this case are the discrete state sequence zti in each trial. The model, as a whole, is specified by the set of parameters (π,{Az},{bz},{Qz}), which we will denote by θ. For a d-dimensional trajectory (d = 6 here) and S states, comprises SS-1+Sd2+d+dd+1/2=SS-1+3dd+1/2 parameters.

Model fits

Models with latent variables are often fit using the expectation-maximization (EM) algorithm, which maximizes the likelihood of the model in terms of the parameters θπ,{Az},{bz},{Qz} for a given set of observed data {xti}. In this work, we did not use the EM algorithm, but adopted a fully Bayesian approach in which both the hidden variables and the model parameters were inferred by drawing samples from their posterior distribution (Wiltschko et al., 2015). The posterior distribution combines the model likelihood and Bayesian priors imposed on its parameters, according to Bayes' rule. If we denote the joint likelihood of observed trajectories, {xti}, and the latent variables, {zti}, by P{xti,zti}θ and the prior distribution over model parameters by Pθ, then up to normalization, the joint posterior distribution of latent variables and model parameters is given by

P{zti},θ{xti}P{xti,zti}θPθ. (2)

For the AR-HMM, the (logarithm of the) joint log-likelihood is given by

logP{xti,zti}θ=it=2Ti[logπzt-1i,zti+logNxtiAztixt-1i+bzti,Qzti]. (3)

where Ti is the length of trial i, and we use the notation Nxμ,Q=e-12x-μTQ-1x-μ/2πQ to denote the density at point x of a multivariate Gaussian with mean vector μ and covariance matrix Q.

We imposed loose conjugate priors on the model parameters, which were factorized over the parameters of the AR process, {Az},{bz},{Qz}, in different discrete states z, and the different rows of the Markov transition matrix, π. On the rows of π, we imposed Dirichlet distribution priors with uniform distribution means and concentration hyperparameter α, which was set to 4. We imposed matrix normal inverse Wishart priors on the AR parameters, independently for different discrete states. Under this prior, the noise covariance Qz has an inverse Wishart distribution with a 'scale matrix' hyperparameter, which was set to the d × d ( = 6 × 6) identity matrix, and a 'degrees-of-freedom' scalar hyperparameter set to d + 2 = 8. Conditional on Qz, the remaining AR parameters, Az,bz, have a joint multivariate normal distribution under the prior, which can be specified by the prior mean and joint prior covariance matrix of Az and bz. The prior means of Az and bz were set to the d × d identity matrix and the d-dimensional zero vector, respectively, while the prior covariance matrix of the concatenation Az,bz was given by the tensor product of Qz and the (d + 1) × (d + 1)( = 7 × 7) identity matrix (equivalently, under this prior, bz and different columns of Az are independent and uncorrelated, while each of these column vectors has a prior covariance equal to the [prior] AR noise covariance, Qz).

Bayesian model inference was carried out by sampling from (instead of maximizing) the joint posterior distribution of the model parameters and latent state variables conditioned on the observed trajectory data (Equation 2). We did this by Gibbs sampling (an example of Markov chain Monte Carlo; not to be confused with the Markov chain in the AR-HMM), which works in a manner conceptually similar to the EM algorithm: it switches between sampling zti in all trials, conditioned on previously sampled parameters, and then sampling the parameters θ given the previous sample of {zti}. To carry out this model inference procedure, we used the Python package developed by M.J. Johnson and colleagues, publicly available at https://github.com/mattjj/pyhsmm (Johnson et al., 2013a).

We ran the Gibbs sampler for 300 iterations and burned the first 200 samples, retaining 100. We used the remaining samples to obtain the posterior probabilities of hidden discrete states at each time step of each trial (by calculating the frequency of different state in that time step and trial, across the retained Gibbs samples), as well as posterior expectation of the model parameters (by calculating their averages over the retained Gibbs samples). We refer to the AR-HMM with parameters given by these latter posterior expectations as the ‘fit model’.

Model selection

We fit AR-HMM's with different numbers of states (motifs), S, to mouse trajectory data pooled across animals. To evaluate the statistical goodness of fit of these fit model and select the best S (the number of states or motifs), we evaluated the log-likelihoods of fit models on trajectory data from a held-out set of trials, not used for model fitting. The corresponding plot of log-likelihoods is shown in Figure 6F. As seen, the log-likelihood keeps increasing with S, up to S = 100. This shows that, up to at least S = 100, additional motifs do have utility in capturing more variability in mouse trajectories. These variabilities may include differences in movement across mice, as well as movement variations in the same mouse but across different trials or different instances of the same movement; for example, a clockwise head turn executed with different speeds in different instances or trials. In the AR-HMM, the AR observation distribution of a given Markov state corresponds to a very simple (linear) dynamical system that cannot capture many natural and continuous variations in movement, such as changes in movement speed. Nevertheless, AR-HMM models with higher S can capture such variations with more precision by specializing different discrete Markov states, with different AR distributions, to movement motifs of different mice, or, for example, to capture different speeds of the same qualitative movement motif.

The goal for this modeling was to give a compact description of recurring movement features across animals and conditions, suitable for visualization and alignment. For these purposes, the goodness of fit did not provide a suitable criterion because the log-likelihood plots did not peak or plateau even at very large numbers of states. Guided by visual inspection, we thus chose the model with S = 16 for the main figures (Figures 68). Although this was a somewhat arbitrary choice, we show that the findings in Figures 68 do not depend on the choice of S – models with S = 6, 10, or 20 gave equivalent results (Figure 6—figure supplements 24).

MAP sequences

The Gibbs sampling algorithm that we used for model inference yields (time-wise marginal) maximum a posteriori (MAP) estimates of the latent variables {zti}, as follows. Using the Gibbs samples for the latent variables, we can estimate the posterior probability of the mouse being in any of the S states in any given time step of a given trial. We made MAP sequences by picking, at any time step and trial, the state with the highest posterior probability. The inferred MAP motifs tended to have high posterior probability, which exceeded 0.8 in 66.2% of all time steps across the 17,195 trials in the modeled dataset.

Decoding analysis

We decoded experimental conditions and animal identities from single-trial MAP motif sequences inferred using the AR-HMM. Specifically, we trained multi-class decoders with linear decision boundaries (linear discriminant analysis) to decode the above categorical variables from the single-trial empirical state transition probability matrices derived from the MAP sequence of each trial. If zt(i)^ is the motif MAP sequence for trial i, the empirical transition probability, πa,b(i)^, from state a to state ba,b{1,,K}, for that trial was calculated by

πa,b(i)^na,b(i)c=1Kna,c(i). (4)
na,b(i)t=1T(i)1I(zt^=a)I(zt+1^=b). (5)

where Ti is the length of trial i, and I is an indicator function, returning 1 or 0 when its argument is true or false, respectively.

We used the decoder to either classify experimental condition or mouse identity, in different trials (Figure 6D, E). For decoders trained to classify the trials' experimental condition, we used pooled data across mice. For decoders trained to classify mouse identity, we only used data from the 80:20 odor condition. Data was split into training and test dataset in a stratified fivefold cross-validation manner, ensuring equal proportions of trials of different types in both datasets. The trial type was the combination of left vs. right decision, experimental condition, and mouse identity.

To calculate the statistical significance of decoding accuracies, we performed an iterative shuffle procedure on each fold of the cross-validation. In each shuffle, the training labels that the classifier was trained to decode were shuffled randomly across trials of the training set, and the classifier's accuracy was evaluated on the unshuffled test dataset. This shuffle was performed 100 times to create a shuffle distribution of decoding accuracies for each fold of the cross-validation. From these distributions, we calculated the z-score of decoding accuracy for each class in each cross-validation fold. These z-scores were then averaged across the folds of cross-validation and used to calculate the overall p-value of the decoding accuracy obtained on the original data.

Acknowledgements

We thank Z Mainen for initiating this area of research with MS and for advising on interpretation of behavioral results, B Datta for advising on AR-HMM analysis, L Mazzucato for advice on the decoding analysis, S Shoham for advising on allocentric analyses, and P Gupta for suggesting behavioral experiments. We thank A Singh Bala, C Niell, S Lockery, M Wehr, and B Datta for helpful comments on the manuscript. MS was supported by grants from the NIH (R56DC015584, R21NS104935, and R34NS116731), the Whitehall Foundation, and start-up funds from the University of Oregon. TF was supported by an NIH fellowship (F31DC016799). MB was supported by an NIH fellowship (F32MH118724). DW and YA were supported by start-up funds from the University of Oregon.

Funding Statement

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

Contributor Information

Yashar Ahmadian, Email: ya311@cam.ac.uk.

Matthew C Smear, Email: smear@uoregon.edu.

Upinder Singh Bhalla, Tata Institute of Fundamental Research, India.

Catherine Dulac, Harvard University, United States.

Funding Information

This paper was supported by the following grants:

  • Whitehall Foundation 2015-12-201 to Matthew C Smear.

  • National Institutes of Health R56DC015584 to Matthew C Smear.

  • National Institute of Neurological Disorders and Stroke R21NS104935 to Matthew C Smear.

  • National Institute of Neurological Disorders and Stroke R34NS116731 to Matthew C Smear.

  • National Institute on Deafness and Other Communication Disorders F31DC016799 to Teresa M Findley.

  • National Institute of Neurological Disorders and Stroke F32MH118724 to Morgan A Brown.

  • University of Oregon Start up funds to Morgan A Brown, Matthew C Smear.

Additional information

Competing interests

No competing interests declared.

Author contributions

Conceptualization, Data curation, Software, Formal analysis, Supervision, Investigation, Visualization, Methodology, Writing - original draft, Project administration, Writing - review and editing.

Conceptualization, Data curation, Software, Formal analysis, Validation, Investigation, Visualization, Methodology, Writing - original draft, Writing - review and editing.

Investigation, Methodology.

Resources, Software, Investigation, Methodology, Writing - review and editing.

Investigation, Methodology, Writing - original draft.

Software, Formal analysis, Investigation, Methodology.

Investigation.

Investigation.

Investigation.

Investigation.

Supervision, Investigation.

Supervision, Investigation.

Conceptualization, Data curation, Software, Formal analysis, Supervision, Investigation, Visualization, Methodology, Writing - original draft, Project administration, Writing - review and editing.

Conceptualization, Resources, Data curation, Software, Formal analysis, Supervision, Funding acquisition, Validation, Investigation, Visualization, Methodology, Writing - original draft, Project administration, Writing - review and editing.

Ethics

Animal experimentation: This study was performed in strict accordance with the recommendations in the Guide for the Care and Use of Laboratory Animals of the National Institutes of Health. All of the animals were handled according to approved institutional animal care and use committee (IACUC) protocols (AUP-17-23) of the University of Oregon. All surgery was performed under sodium isofluorane anesthesia, and every effort was made to minimize suffering.

Additional files

Transparent reporting form

Data availability

Source code is available on github at https://github.com/Smear-Lab/Olfactory_Search (copy archived at https://archive.softwareheritage.org/swh:1:rev:fcb2c2aa1a4438f22d622f29b01a0c64e8e4df85), and source data files are uploaded to Dryad.

The following dataset was generated:

Smear M, Findley T, Wyrick D, Ahmadian Y. 2021. Sniff-synchronized, gradient-guided olfactory search by freely-moving mice. Dryad Digital Repository.

References

  1. Ahissar E, Assa E. Perception as a closed-loop convergence process. eLife. 2016;5:e12830. doi: 10.7554/eLife.12830. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Albers J, Tautonym B. The Josef and Anni Albers Foundation. New York: Artists Rights Society (ARS); 1944. [Google Scholar]
  3. Álvarez-Salvado E, Licata AM, Connor EG, McHugh MK, King BMN, Stavropoulos N, Victor JD, Crimaldi JP, Nagel KI. Elementary sensory-motor transformations underlying olfactory navigation in walking fruit-flies. eLife. 2018;7:e04577. doi: 10.7554/eLife.37815. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Andersen RA, Mountcastle VB. The influence of the angle of gaze upon the excitability of the light-sensitive neurons of the posterior parietal cortex. The Journal of Neuroscience. 1983;3:532–548. doi: 10.1523/JNEUROSCI.03-03-00532.1983. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Baker KL, Dickinson M, Findley TM, Gire DH, Louis M, Suver MP, Verhagen JV, Nagel KI, Smear MC. Algorithms for olfactory search across species. The Journal of Neuroscience. 2018;38:9383–9389. doi: 10.1523/JNEUROSCI.1668-18.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Bargmann CI. Comparative chemosensation from receptors to ecology. Nature. 2006;444:295–301. doi: 10.1038/nature05402. [DOI] [PubMed] [Google Scholar]
  7. Berg HC. Motile behavior of bacteria. Physics Today. 2000;53:24–29. doi: 10.1063/1.882934. [DOI] [Google Scholar]
  8. Berman GJ, Bialek W, Shaevitz JW. Predictability and hierarchy in Drosophila behavior. PNAS. 2016;113:11943–11948. doi: 10.1073/pnas.1607601113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Beshel J, Kopell N, Kay LM. Olfactory bulb gamma oscillations are enhanced with task demands. Journal of Neuroscience. 2007;27:8358–8365. doi: 10.1523/JNEUROSCI.1199-07.2007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Bhattacharyya U, Bhalla US. Robust and rapid Air-Borne odor tracking without casting. Eneuro. 2015;2:ENEURO.0102-15.2015–.0102-15.2026. doi: 10.1523/ENEURO.0102-15.2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Bi S, Sourjik V. Stimulus sensing and signal processing in bacterial chemotaxis. Current Opinion in Microbiology. 2018;45:22–29. doi: 10.1016/j.mib.2018.02.002. [DOI] [PubMed] [Google Scholar]
  12. Bolding KA, Franks KM. Complementary codes for odor identity and intensity in olfactory cortex. eLife. 2017;6:e22630. doi: 10.7554/eLife.22630. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Catania KC. Stereo and serial sniffing guide navigation to an odour source in a mammal. Nature Communications. 2013;4:1441–1448. doi: 10.1038/ncomms2444. [DOI] [PubMed] [Google Scholar]
  14. Childress N. 2020. Bluewhitered. MATLAB Central File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/
  15. Cometto-Muñiz JE, Abraham MH. Odor detection by humans of lineal aliphatic aldehydes and helional as gauged by dose-response functions. Chemical Senses. 2010;35:289–299. doi: 10.1093/chemse/bjq018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Crimaldi JP, Wiley MB, Koseff JR. The relationship between mean and instantaneous structure in turbulent passive scalar plumes. Journal of Turbulence. 2002;3:N14. doi: 10.1088/1468-5248/3/1/014. [DOI] [Google Scholar]
  17. Datta SR, Anderson DJ, Branson K, Perona P, Leifer A. Computational neuroethology: a call to action. Neuron. 2019;104:11–24. doi: 10.1016/j.neuron.2019.09.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Díaz-Quesada M, Youngstrom IA, Tsuno Y, Hansen KR, Economo MN, Wachowiak M. Inhalation frequency controls reformatting of mitral/Tufted cell odor representations in the olfactory bulb. The Journal of Neuroscience. 2018;38:2189–2206. doi: 10.1523/JNEUROSCI.0714-17.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Doty RL, Brugger WE, Jurs PC, Orndorff MA, Snyder PJ, Lowry LD. Intranasal trigeminal stimulation from odorous volatiles: psychometric responses from anosmic and normal humans. Physiology & Behavior. 1978;20:175–185. doi: 10.1016/0031-9384(78)90070-7. [DOI] [PubMed] [Google Scholar]
  20. Duhamel JR, Colby CL, Goldberg ME. The updating of the representation of visual space in parietal cortex by intended eye movements. Science. 1992;255:90–92. doi: 10.1126/science.1553535. [DOI] [PubMed] [Google Scholar]
  21. Esclassan F, Courtiol E, Thévenet M, Garcia S, Buonviso N, Litaudon P. Faster, deeper, better: the impact of sniffing modulation on bulbar olfactory processing. PLOS ONE. 2012;7:e40927. doi: 10.1371/journal.pone.0040927. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Findley T, Wyrick D, Smear M. Freely Moving Olfactory Search. 2021 doi: 10.7554/eLife.58523. https://github.com/SmearLab/Freely-moving-olfactory-search [DOI] [PMC free article] [PubMed]
  23. Fonseca MS, Murakami M, Mainen ZF. Activation of dorsal raphe serotonergic neurons promotes waiting but is not reinforcing. Current Biology. 2015;25:306–315. doi: 10.1016/j.cub.2014.12.002. [DOI] [PubMed] [Google Scholar]
  24. Gallistel CR. The Organization of Action: A New Synthesis. Abingdon, United Kingdom: Taylor & francis group; 1982. [Google Scholar]
  25. Geissbuehler M, Lasser T. How to display data by color schemes compatible with red-green color perception deficiencies. Optics Express. 2013;21:9862–9874. doi: 10.1364/OE.21.009862. [DOI] [PubMed] [Google Scholar]
  26. Ghatpande AS, Reisert J. Olfactory receptor neuron responses coding for rapid odour sampling. The Journal of Physiology. 2011;589:2261–2273. doi: 10.1113/jphysiol.2010.203687. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Gibson JJ. Observations on active touch. Psychological Review. 1962;69:477–491. doi: 10.1037/h0046962. [DOI] [PubMed] [Google Scholar]
  28. Gibson JJ. The Senses Considered as Perceptual Systems. Massachusetts, United States: Houghton Mifflin; 1966. [Google Scholar]
  29. Gire DH, Kapoor V, Arrighi-Allisan A, Seminara A, Murthy VN. Mice develop efficient strategies for foraging and navigation using complex natural stimuli. Current Biology. 2016;26:1261–1273. doi: 10.1016/j.cub.2016.03.040. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Gomez-Marin A, Stephens GJ, Louis M. Active sampling and decision making in Drosophila chemotaxis. Nature Communications. 2011;2:441. doi: 10.1038/ncomms1455. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Gomez-Marin A, Paton JJ, Kampff AR, Costa RM, Mainen ZF. Big behavioral data: psychology, ethology and the foundations of neuroscience. Nature Neuroscience. 2014;17:1455–1462. doi: 10.1038/nn.3812. [DOI] [PubMed] [Google Scholar]
  32. Gomez-Marin A, Louis M. Active sensation during orientation behavior in the Drosophila larva: more sense than luck. Current Opinion in Neurobiology. 2012;22:208–215. doi: 10.1016/j.conb.2011.11.008. [DOI] [PubMed] [Google Scholar]
  33. Green DA. A colour scheme for the display of astronomical intensity images. Bulletin of the Astronomical Society of India. 2011;39:289–295. [Google Scholar]
  34. Green DM, Swets JA. Signal Detection Theory and Psychophysics. Amsterdam, Netherlands: Elsevier; 1966. [Google Scholar]
  35. Gupta P, Albeanu DF, Bhalla US. Olfactory bulb coding of odors, mixtures and sniffs is a linear sum of odor time profiles. Nature Neuroscience. 2015;18:272–281. doi: 10.1038/nn.3913. [DOI] [PubMed] [Google Scholar]
  36. Hummel T, Iannilli E, Frasnelli J, Boyle J, Gerber J. Central processing of trigeminal activation in humans. Annals of the New York Academy of Sciences. 2009;1170:190–195. doi: 10.1111/j.1749-6632.2009.03910.x. [DOI] [PubMed] [Google Scholar]
  37. Johnson M, Wiltschko A, Katz Y, Chia-Ying (Jackie) Lee, Linderman S, Squire K, Foti N. Pyhsmm. 2013a https://github.com/mattjj/pyhsmm
  38. Johnson MJ, Willsky AS, Alan S. Bayesian nonparametric hidden Semi-Markov models. Journal of Machine Learning Research. 2013b;14:673–701. [Google Scholar]
  39. Jones PW, Urban NN. Mice follow odor trails using stereo olfactory cues and rapid sniff to sniff comparisons. bioRxiv. 2018 doi: 10.1101/293746. [DOI]
  40. Jordan R, Kollo M, Schaefer AT. Sniffing fast: paradoxical effects on odor concentration discrimination at the levels of olfactory bulb output and behavior. Eneuro. 2018;5:ENEURO.0148-18.2018. doi: 10.1523/ENEURO.0148-18.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Karalis N, Sirota A. Breathing coordinates limbic network dynamics underlying memory consolidation. SSRN Electronic Journal. 2018;18:11. doi: 10.2139/ssrn.3283711. [DOI] [Google Scholar]
  42. Kay LM. Theta oscillations and sensorimotor performance. PNAS. 2005;102:3863–3868. doi: 10.1073/pnas.0407920102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Kennedy JS, Marsh D. Pheromone-regulated anemotaxis in flying moths. Science. 1974;184:999–1001. doi: 10.1126/science.184.4140.999. [DOI] [PubMed] [Google Scholar]
  44. Kepecs A, Uchida N, Mainen ZF. The sniff as a unit of olfactory processing. Chemical Senses. 2006;31:167–179. doi: 10.1093/chemse/bjj016. [DOI] [PubMed] [Google Scholar]
  45. Khan AG, Sarangi M, Bhalla US. Rats track odour trails accurately using a multi-layered strategy with near-optimal sampling. Nature Communications. 2012;3:703. doi: 10.1038/ncomms1712. [DOI] [PubMed] [Google Scholar]
  46. Kleinfeld D, Ahissar E, Diamond ME. Active sensation: insights from the rodent vibrissa sensorimotor system. Current Opinion in Neurobiology. 2006;16:435–444. doi: 10.1016/j.conb.2006.06.009. [DOI] [PubMed] [Google Scholar]
  47. Kleinfeld D, Deschênes M, Wang F, Moore JD. More than a rhythm of life: breathing as a binder of orofacial sensation. Nature Neuroscience. 2014;17:647–651. doi: 10.1038/nn.3693. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Kurnikova A, Moore JD, Liao SM, Deschênes M, Kleinfeld D. Coordination of orofacial motor actions into exploratory behavior by rat. Current Biology. 2017;27:688–696. doi: 10.1016/j.cub.2017.01.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Larsch J, Flavell SW, Liu Q, Gordus A, Albrecht DR, Bargmann CI. A circuit for gradient climbing in C. elegans chemotaxis. Cell Reports. 2015;12:1748–1760. doi: 10.1016/j.celrep.2015.08.032. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Liu A, Papale AE, Hengenius J, Patel K, Ermentrout B, Urban NN. Mouse navigation strategies for odor source localization. Frontiers in Neuroscience. 2020;14:1–16. doi: 10.3389/fnins.2020.00218. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Lockery SR. The computational worm: spatial orientation and its neuronal basis in C. elegans. Current Opinion in Neurobiology. 2011;21:782–790. doi: 10.1016/j.conb.2011.06.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Lopes G, Bonacchi N, Frazão J, Neto JP, Atallah BV, Soares S, Moreira L, Matias S, Itskov PM, Correia PA, Medina RE, Calcaterra L, Dreosti E, Paton JJ, Kampff AR. Bonsai: an event-based framework for processing and controlling data streams. Frontiers in Neuroinformatics. 2015;9:7. doi: 10.3389/fninf.2015.00007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Macrides F, Eichenbaum HB, Forbes WB. Temporal relationship between sniffing and the limbic theta rhythm during odor discrimination reversal learning. The Journal of Neuroscience. 1982;2:1705–1717. doi: 10.1523/JNEUROSCI.02-12-01705.1982. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Mandairon N, Linster C. Odor perception and olfactory bulb plasticity in adult mammals. Journal of Neurophysiology. 2009;101:2204–2209. doi: 10.1152/jn.00076.2009. [DOI] [PubMed] [Google Scholar]
  55. Markowitz JE, Gillis WF, Beron CC, Neufeld SQ, Robertson K, Bhagat ND, Peterson RE, Peterson E, Hyun M, Linderman SW, Sabatini BL, Datta SR. The striatum organizes 3D behavior via Moment-to-Moment action selection. Cell. 2018;174:44–58. doi: 10.1016/j.cell.2018.04.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Mathis A, Mamidanna P, Cury KM, Abe T, Murthy VN, Mathis MW, Bethge M. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nature Neuroscience. 2018;21:1281–1289. doi: 10.1038/s41593-018-0209-y. [DOI] [PubMed] [Google Scholar]
  57. Mathis MW, Mathis A. Deep learning tools for the measurement of animal behavior in neuroscience. Current Opinion in Neurobiology. 2020;60:1–11. doi: 10.1016/j.conb.2019.10.008. [DOI] [PubMed] [Google Scholar]
  58. McAfee SS, Ogg MC, Ross JM, Liu Y, Fletcher ML, Heck DH. Minimally invasive highly precise monitoring of respiratory rhythm in the mouse using an epithelial temperature probe. Journal of Neuroscience Methods. 2016;263:89–94. doi: 10.1016/j.jneumeth.2016.02.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. McGinley MJ, David SV, McCormick DA. Cortical membrane potential signature of optimal states for sensory signal detection. Neuron. 2015;87:179–192. doi: 10.1016/j.neuron.2015.05.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Miyazaki K, Miyazaki KW, Doya K. The role of serotonin in the regulation of patience and impulsivity. Molecular Neurobiology. 2012;45:213–224. doi: 10.1007/s12035-012-8232-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Moore JD, Deschênes M, Furuta T, Huber D, Smear MC, Demers M, Kleinfeld D. Hierarchy of orofacial rhythms revealed through whisking and breathing. Nature. 2013;497:205–210. doi: 10.1038/nature12076. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Murlis J, Elkinton JS, Cardé RT. Odor plumes and how insects use them. Annual Review of Entomology. 1992;37:505–532. doi: 10.1146/annurev.en.37.010192.002445. [DOI] [Google Scholar]
  63. Murphy KP. Machine Learning: A Probabilistic Perspective (Adaptive Computation and Machine Learning Series. Massachusetts: MIT Press; 2012. [Google Scholar]
  64. Musall S, Kaufman MT, Juavinett AL, Gluf S, Churchland AK. Single-trial neural dynamics are dominated by richly varied movements. Nature Neuroscience. 2019;22:1677–1686. doi: 10.1038/s41593-019-0502-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Nath T, Mathis A, Chen AC, Patel A, Bethge M, Mathis MW. Using DeepLabCut for 3D markerless pose estimation across species and behaviors. Nature Protocols. 2019;14:2152–2176. doi: 10.1038/s41596-019-0176-0. [DOI] [PubMed] [Google Scholar]
  66. Niell CM, Stryker MP. Modulation of visual responses by behavioral state in mouse visual cortex. Neuron. 2010;65:472–479. doi: 10.1016/j.neuron.2010.01.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Parabucki A, Bizer A, Morris G, Munoz AE, Bala ADS, Smear M, Shusterman R. Odor concentration change coding in the olfactory bulb. Eneuro. 2019;6:ENEURO.0396-18.2019–13. doi: 10.1523/ENEURO.0396-18.2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Parthasarathy K, Bhalla US. Laterality and symmetry in rat olfactory behavior and in physiology of olfactory input. Journal of Neuroscience. 2013;33:5750–5760. doi: 10.1523/JNEUROSCI.1781-12.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Patterson MA, Lagier S, Carleton A. Odor representations in the olfactory bulb evolve after the first breath and persist as an odor afterimage. PNAS. 2013;110:E3340–E3349. doi: 10.1073/pnas.1303873110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Peterson P, Jones E, Oliphant T. SciPy: Open Source Scientific Tools for Python. 2001 https://www.scienceopen.com/document?vid=ab12905a-8a5b-43d8-a2bb-defc771410b9
  71. Poritz AB. Linear predictive hidden markov models and the speech signal. ICASSP, IEEE International Conference on Acoustics, Speech and Signal Processing; 1982. [DOI] [Google Scholar]
  72. Porter J, Craven B, Khan RM, Chang SJ, Kang I, Judkewitz B, Judkewicz B, Volpe J, Settles G, Sobel N. Mechanisms of scent-tracking in humans. Nature Neuroscience. 2007;10:27–29. doi: 10.1038/nn1819. [DOI] [PubMed] [Google Scholar]
  73. Poulet JF, Hedwig B. The cellular basis of a corollary discharge. Science. 2006;311:518–522. doi: 10.1126/science.1120847. [DOI] [PubMed] [Google Scholar]
  74. Rabell JE, Mutlu K, Noutel J, del Olmo PM, Haesler S. Spontaneous rapid odor source localization behavior requires interhemispheric communication. Current Biology. 2017;27:1–12. doi: 10.1016/j.cub.2017.04.027. [DOI] [PubMed] [Google Scholar]
  75. Rajan R, Clement JP, Bhalla US. Rats smell in stereo. Science. 2006;311:666–670. doi: 10.1126/science.1122096. [DOI] [PubMed] [Google Scholar]
  76. Ranade S, Hangya B, Kepecs A. Multiple modes of phase locking between sniffing and whisking during active exploration. Journal of Neuroscience. 2013;33:8250–8256. doi: 10.1523/JNEUROSCI.3874-12.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  77. Riffell JA, Abrell L, Hildebrand JG. Physical processes and real-time chemical measurement of the insect olfactory environment. Journal of Chemical Ecology. 2008;34:837–853. doi: 10.1007/s10886-008-9490-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  78. Schroeder CE, Wilson DA, Radman T, Scharfman H, Lakatos P. Dynamics of active sensing and perceptual selection. Current Opinion in Neurobiology. 2010;20:172–176. doi: 10.1016/j.conb.2010.02.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Shusterman R, Smear MC, Koulakov AA, Rinberg D. Precise olfactory responses tile the sniff cycle. Nature Neuroscience. 2011;14:1039–1044. doi: 10.1038/nn.2877. [DOI] [PubMed] [Google Scholar]
  80. Sommer MA, Wurtz RH. A pathway in primate brain for internal monitoring of movements. Science. 2002;296:1480–1482. doi: 10.1126/science.1069590. [DOI] [PubMed] [Google Scholar]
  81. Sommer MA, Wurtz RH. Brain circuits for the internal monitoring of movements. Annual Review of Neuroscience. 2008;31:317–338. doi: 10.1146/annurev.neuro.31.060407.125627. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Sperry RW. Neural basis of the spontaneous optokinetic response produced by visual inversion. Journal of Comparative and Physiological Psychology. 1950;43:482–489. doi: 10.1037/h0055479. [DOI] [PubMed] [Google Scholar]
  83. Stringer C, Pachitariu M, Steinmetz N, Reddy CB, Carandini M, Harris KD. Spontaneous behaviors drive multidimensional, brainwide activity. Science. 2019;364:eaav7893. doi: 10.1126/science.aav7893. [DOI] [PMC free article] [PubMed] [Google Scholar]
  84. Tolman EC. Purposive Behavior in Animals and Men. New York, United States: Appleton-Century; 1932. [Google Scholar]
  85. van Breugel F, Dickinson MH. Plume-tracking behavior of flying Drosophila emerges from a set of distinct sensory-motor reflexes. Current Biology. 2014;24:274–286. doi: 10.1016/j.cub.2013.12.023. [DOI] [PubMed] [Google Scholar]
  86. Vanderwolf CH. Hippocampal activity, olfaction, and sniffing: an olfactory input to the dentate gyrus. Brain Research. 1992;593:197–208. doi: 10.1016/0006-8993(92)91308-2. [DOI] [PubMed] [Google Scholar]
  87. Verhagen JV, Wesson DW, Netoff TI, White JA, Wachowiak M. Sniffing controls an adaptive filter of sensory input to the olfactory bulb. Nature Neuroscience. 2007;10:631–639. doi: 10.1038/nn1892. [DOI] [PubMed] [Google Scholar]
  88. Vickers NJ, Baker TC. Reiterative responses to single strands of odor promote sustained upwind flight and odor source location by moths. PNAS. 1994;91:5756–5760. doi: 10.1073/pnas.91.13.5756. [DOI] [PMC free article] [PubMed] [Google Scholar]
  89. von Holst E, Mittelstaedt H. Das reafferenzprinzip. Naturwissenschaften. 1950;37:464–476. doi: 10.1007/BF00622503. [DOI] [Google Scholar]
  90. Wachowiak M. All in a sniff: olfaction as a model for active sensing. Neuron. 2011;71:962–973. doi: 10.1016/j.neuron.2011.08.030. [DOI] [PMC free article] [PubMed] [Google Scholar]
  91. Webb B. Neural mechanisms for prediction: do insects have forward models? Trends in Neurosciences. 2004;27:278–282. doi: 10.1016/j.tins.2004.03.004. [DOI] [PubMed] [Google Scholar]
  92. Weiss P. Dynamics of Development: Experiments and Inferences. Massachusetts, United States: Academic Press; 1968. Self-differentiation of the basic patterns of coordination; pp. 486–581. [DOI] [Google Scholar]
  93. Welker WI. Analysis of sniffing of the albino rat 1. Behaviour. 1964;22:223–244. doi: 10.1163/156853964X00030. [DOI] [Google Scholar]
  94. Wesson DW, Verhagen JV, Wachowiak M. Why sniff fast? the relationship between sniff frequency, odor discrimination, and receptor neuron activation in the rat. Journal of Neurophysiology. 2009;101:1089–1102. doi: 10.1152/jn.90981.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  95. Wiltschko AB, Johnson MJ, Iurilli G, Peterson RE, Katon JM, Pashkovski SL, Abraira VE, Adams RP, Datta SR. Mapping Sub-Second structure in mouse behavior. Neuron. 2015;88:1121–1135. doi: 10.1016/j.neuron.2015.11.031. [DOI] [PMC free article] [PubMed] [Google Scholar]
  96. Yanovsky Y, Ciatipis M, Draguhn A, Tort AB, Brankačk J. Slow oscillations in the mouse Hippocampus entrained by nasal respiration. Journal of Neuroscience. 2014;34:5949–5964. doi: 10.1523/JNEUROSCI.5287-13.2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  97. Yarbus AL. Eye Movements and Vision. Boston: Springer; 1967. [DOI] [Google Scholar]
  98. Yovel Y, Falk B, Moss CF, Ulanovsky N. Optimal localization by pointing off Axis. Science. 2010;327:701–704. doi: 10.1126/science.1183310. [DOI] [PubMed] [Google Scholar]
  99. Zelano C, Jiang H, Zhou G, Arora N, Schuele S, Rosenow J, Gottfried JA. Nasal respiration entrains human limbic oscillations and modulates cognitive function. The Journal of Neuroscience. 2016;36:12448–12467. doi: 10.1523/JNEUROSCI.2586-16.2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  100. Zhou FW, Shao ZY, Shipley MT, Puche AC. Short-term plasticity in glomerular inhibitory circuits shapes olfactory bulb output. Journal of Neurophysiology. 2020;123:1120–1132. doi: 10.1152/jn.00628.2019. [DOI] [PMC free article] [PubMed] [Google Scholar]

Decision letter

Editor: Upinder Singh Bhalla1

In the interests of transparency, eLife publishes the most substantive revision requests and the accompanying author responses.

Acceptance summary:

This paper is a clear account of an odor-guided behavior in which the authors use machine-learning movement analysis to work out how mice combine odor sampling with a set of sniff-locked movement motifs in their decision-making. The authors find that in this task, the mice use odor gradients, but do not use stereo olfaction. The careful characterization of movement motifs during the task will be useful to relate olfactory decision-making with neuronal activity.

Decision letter after peer review:

Thank you for submitting your article "Sniff-synchronized, gradient-guided olfactory search by freely-moving mice" for consideration by eLife. Your article has been reviewed by 3 peer reviewers, one of whom is a member of our Board of Reviewing Editors, and the evaluation has been overseen by Catherine Dulac as the Senior Editor. The reviewers have opted to remain anonymous.

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

As the editors have judged that your manuscript is of interest, but as described below that additional analysis is required before it is published, we would like to draw your attention to changes in our revision policy that we have made in response to COVID-19 (https://elifesciences.org/articles/57162). First, because many researchers have temporarily lost access to the labs, we will give authors as much time as they need to submit revised manuscripts. We are also offering, if you choose, to post the manuscript to bioRxiv (if it is not already there) along with this decision letter and a formal designation that the manuscript is "in revision at eLife". Please let us know if you would like to pursue this option. (If your work is more suitable for medRxiv, you will need to post the preprint yourself, as the mechanisms for us to do so are still in development.)

Summary:

This paper is a clear account of an odor-guided behavior in which the authors use machine-learning movement analysis to characterize the behavior in detail. The key findings are sniff-synchronized movement (already known), the ability to classify a number of movement motifs (but not strikingly distinct) and the further analysis of relationships between these movements and sniffing.

All reviewers felt that this detailed analysis of behavior in a non-invasive manner was exciting and has much promise for the field.

Essential revisions:

The reviewers felt that the interpretation of sampling and movement needed a better understanding of the strategy used by the mice.

They suggest that there are several possibilities:

– The animals could be memorizing absolute concentrations.

– The animals could use two samples during the turn, to ascertain gradients.

Further, they felt that the motif analysis might be useful to elucidate how the animal corrects an initial decision.

They feel that the authors need to provide the reader with a detailed and rigorous analysis of the decision strategy. As the discussion on this topic was extensive, I have provided excerpts below to help the authors.

In addition the authors need to do more with the analysis, clarifying:

– Animal differences and lack of stereotypy in movements;

– Nose speed during ITI;

- State transitions and error correction;

- Decision points.

Here I provide excerpts from the extensive discussions on this paper. The intention is to give the authors an understanding of the key points that the reviewers took from the paper, and where they felt that its analysis could be strengthened.

After watching the videos several times, here is my interpretation of the decision strategy: when the trial starts, the mouse faces away from the gradient. It must make a rotation of ~180 degrees to align its body with the direction of the gradient. This stereotyped movement forms an arc of the alpha shape of Figure 3D. While rotating, the mouse could already detect whether the concentration increases or not. Upon the detection of an increase, the mouse infers that the gradient points in that direction, and it initiates a walk toward the corresponding odor port. During that walk/approach, the mouse sniffs a couple of times. If a decrease in concentration is measured during these sniffs/samples, the mouse might still be able to stop and reorient before the decision boundary.

In addition, I don't think that a sequence of samples on the left and the right side must be taken for the mouse to infer the direction of the gradient. All it needs to do is compare the intensity when the head is aligned with the body (before ) with the intensity after a lateral sample (after). If an increase is detected, the head must be pointing toward the gradient. In the videos, I didn't see systematic left-right samples.

sampling a landscape with two longitudinal asymmetric gradients would be challenging. This situation would make the sensory experience associated with an alpha turn largely inconclusive. Without making multiple samples on the left and right sides of the midline, a mouse would not be able to obtain a coarse map of the landscape to inform its decision.

But the intensity landscapes reported in Figure S2 indicate that most gradients do not really have two real maxima (or two lobes). Even for the 60:40 condition, the landscape essentially looks like one smooth gradient with a maximum on one side. So the sensory experiences produced by an alpha turn toward the left and the right side might be different – a signal the mouse might learn?

That said, I was puzzled by the fact that the two landscapes corresponding to the 60:40 conditions are quite different when 60 is located on the left or the right side (top versus bottom panels in Figure S2B). So, one might expect that the 60:40 – right would be harder to scan than 60:40 – left. Since the performances of the left and the right conditions were lumped together, it's impossible to tell whether this prediction is correct.

And here is another possible strategy:

An alternative possibility is that animals are not actually making L-R comparisons and just memorizing 'expected' gradients or absolute concentrations (100, 80, 60 etc) – which is actually quite easy for mice to learn!

In that case, indeed the mouse actually already knows which side the reward will be. If during the alpha turn it smells concentrations 100 or 80 or 60, it sticks to that side, otherwise walk to the other side. Indeed in this scenario – there is no need for lateral comparisons – and the knowledge gathered during the alpha turn already tells the animals which side it should go towards.

But this in principle is a different task than the authors intended to set up!

The authors actually do try to rule out the possibility that animals learn absolute concentrations by doing what they refer to as variable |C| sessions (Figure S4 B). i.e. by present the same absolute concentration, but in opposing contexts – one where its the higher of the two concentrations (30:10) versus one where its the lower of the two concentrations (30:90).

But the data presented is not really conclusive –.…

performance in the first 10 trials is quite low – so its very likely that the animals just learn a new rule..

Reviewer #1:

This paper is a clear account of an odor-guided behavior in which the authors use machine-learning movement analysis to characterize the behavior in detail. The key findings are sniff-synchronized movement (already known), the ability to classify a number of movement motifs (but not strikingly distinct) and the further analysis of relationships between these movements and sniffing.

The basic behavioural checks and controls are thoroughly done. It is interesting that there is no stereo component to these decisions.

A key finding is sniff-synchronized movement. This has also been seen in other studies (Kurnikova et al. 2017, Moore et al. 2013, Ranade et al. 2013) as the authors point out. I was looking for a clear statement of how the current work advances this understanding.

Motif analysis.

The motifs don't appear to be particularly crisp, in that they continue to contribute up to 100 motifs. I was looking to see this enumerated, as in % of variance explained (or in this case cross-validated log-likelihood). It turns out it is done in Figure S8C. This should be in the main text.

There is nice but not much explored finding of there being distinct movement patterns between individual mice.

The motif correlation to stage of trial and to sniffing and nose speed is interesting but maybe not surprising. The subsequent analysis shows up a number of patterns here which are suggestive of general synchronization between breathing and other motor rhythms. I wonder if the authors could do a zero-order correlation, of something simple like leg movements which are much more directly quantifiable than these motifs. Or has such work been done?

The main accomplishment, to my reading, is the detailed characterization of sniffing and its relation to movement. The authors are candid about the being mostly a descriptive account of behavior and movement and make a case for this being a prerequisite for subsequent mechanistic and interventional studies.

On the one hand, I appreciate the value of a thorough descriptive account of freely moving behavior. However, it seems to me that the motifs are fuzzy and the core outcome of sniff-locked movement has been reported. I wonder if there is more to be gleaned from this rich dataset, such as an analysis of what differs between mice or whether there is something underlying the lack of stereotypy in the movements of the mice.

Reviewer #2:

In this study, Smear et al. aim to investigate how mice sample the noisy stimulus information from olfactory plumes such as to navigate towards their source. To this end, they developed a 2AFC task for freely moving mice where the same odor emanates from two lateral sources, at independently controllable concentrations. Mice are required to identify the more intense of the two sources and collect water from reward port located on the side with the higher odor concentration. The authors improve on previous attempts at studying this problem by requiring the mice to commit to their decision at a substantial distance from the odor ports. This forces the mice to assess odor concentration from distal cues rather than via serial sampling of the sources themselves. Interestingly, the authors find that stereo olfaction (comparing concentration across two nostrils) is not required to determine source location from distal cues. Using a series of stimulus conditions, the authors convincingly show that in their paradigm, mice rely on olfactory cues and specifically the relative, not absolute, concentration difference between the two sources.

The relevance of stereo olfaction for airborne odor cues has been long debated. In my opinion, the authors results in principle resolve this debate – stereo comparisons allow finer source localisation near the source, while serial sampling may play a larger role farther away from source. One concern however is that this lack of reliance on stereo sampling may result from the specific task design and the constraints it imposes on the behavior (see concerns).

Further, the authors characterise the sampling behaviors of mice during this task by monitoring respiration (thermistor) as well as nose, head and body positions (video tracking). The authors find a striking, active synchronisation of sniffing and nose (and body) movements that gets selectively recruited during putative investigatory phase of the task i.e. when mice are actively exploring the concentration gradient. The authors do exhaustive analysis to show that such synchronisation is not a default state and the coupling is much weaker during other phases within the same trial. While such coupling of movement and intrinsic rhythms has been proposed previously, to my knowledge this is the first careful characterisation of this phenomenon in freely moving mice. Importantly, the authors results not only confirm the existence of such coupling but also clarify that this synchronisation is an active feature of olfactory navigation. Interestingly however, the authors do not find any significant difference in sampling strategies across different stimulus difficulties (see concerns).

Lastly, the authors use machine learning to parse motion trajectories into identifiable behavioral motifs. With their approach, they find that a range of motifs that are stereotyped across mice and occur in non-random sequences during each trial. Further, a trained decoder can successfully decode mouse identity from the sequences in which these motifs in each animal. While these motif based analysis are well done, the data presented do not seem to make any clear predictions about how these motif sequences would change in different task conditions. The authors do not find any obvious relationship between trial types (difficult versus easy stimuli) and motif sequences and the presented analyses do not add much to the main message of the paper. I therefore lack the imagination to accurately assess the relevance of this portion of the study.

Overall, the study is well executed – the data presented are clear with numerous controls at each step. In my opinion, the evidence provided for lack of need for stereo olfaction for distal source assessment and active synchronisation of sniffing and sampling movements are important contributions to the field of olfaction that warrant publication in eLife. However, I have several conceptual concern about the task design and the interpretations of the results that the authors should clarify prior to publication.

1. My primary concern is about the task design. I commend the authors for the careful control of olfactory stimuli and substantial improvements over previously published odor localisation assays by separating the reward port from the odor source and forcing decisions at locations distant from the source. However, the task design chosen does not really require the mice to localize odor sources beyond just indicating whether there is more odor on the right versus left. This is different from natural conditions, where the necessary spatial resolution may be much higher. In fact, finer source localization confers no additional benefit for maximizing reward in this task. Therefore, the sampling strategies exhibited by the subjects here may be different from those employed during natural odor navigation where the motivation is to precisely locate the source of mate, food or predators.

2. Along the same lines, it is surprising that even for the easiest version of the task, the performance hovers around 80%, even though PID characterisations show very clear differences between the two halves of the arena. Furthermore, performance drops with increasing stimulus difficulty but mice do not appear to change their sampling strategies to compensate for the lower reward rate. I am trying to reconcile these two facts. At first pass, given known olfactory acuity of rodents, it seems that trained mice should have no trouble handling the easiest stimuli (reach almost 100% success). One possibility is that the mice are not fully motivated/engaged in the task. An alternate explanation is that mice are fully motivated to reach maximum reward rate, but the task is just too hard and the sampling strategies employed at 100:0 condition are their best, and therefore with increasing stimulus difficulty, they cannot perform any better. Yet, the latter possibility appears very unlikely. Can the authors comment on these two possibilities? The question remains whether mice when pushed to achieve higher performances would employ different sampling strategies.

3. Lastly, looking at Figure 5Ai it appears that overall nose speeds are significantly lower during ITI than during the investigatory bouts within the trial. While the authors rule out that sniffing-movement synchronisation is simply a feature of rapid sniffing, they do not rule out the dependence on running speeds. Perhaps the apparent lack of synchrony in ITI results from poorer ability to resolve decelerations, given lower speeds on average. This is also consistent with reduced, but significant synchrony during premature initiations in the ITI (Figure S7A) where speeds tend to be higher than those shown in Figure 5Ai. This should be easily addressable by repeating the analysis on speed matched datasets.

Reviewer #3:

In this manuscript, Findley and colleagues propose a novel assay to study the behavioral strategy freely moving mice adopt to navigate turbulent odor gradients. This assay is neat and well-thought. It sheds light into the control of active sampling through sniffing and search patterns involving head and body movements. The work is an admirable technical tour de force. The results are built on solid data analysis, which makes use of unsurprised machine learning to avoid subjective biases in the categorization of behavioral states. The manuscript offers a wealth of data that should be a wide interest to the field of olfaction. Finally, the conclusions are presented in a way that is balanced and supported by the well-controlled experimental data. This manuscript combines innovation with rigor to advance our understanding of olfaction in rodents (and beyond).

I have a few suggestions to improve the manuscript. These suggestions do not require any additional experiments.

1. An exciting finding of the manuscript is the description of two behavioral states underlying odor search: investigation and approach. The authors might want to push the analysis of the search strategy one step further by defining whether/how mice can switch from investigation to approach, back to investigation to perform error correction. This process would rule out that animals find the gradient through an initial guess that leads to a full commitment to one side during the approach phase. The data suggests that error correction takes place (Figure 7C and D), but those cases are not analyzed in detail. Can a statistical analysis of the state transitions reveal any principles in the organization of error correction? Does the animal's state indeed switch from approach to investigation during error correction?

2. The occupancy diagram of Figure 3F is fascinating. Together with panel 3D, it suggests that mice undergo fairly stereotyped searches: after poking their nose out of the initiation port, they appear to make a 180 degree rotation (sweep) to face the gradient. The density reaches a maximum at that point (opposite to the position of the initiation port). Is this position (crossing of the alpha shape) dominated by an "investigation" state? Can this position be viewed as a decision point? When/where does the animal tend switch to the "approach" state? More generally, could you map dominate trends in behavioral motifs of Figure 6B onto the stereotyped alpha shape of the occupancy diagram of Figure 3F?

3. Figure 2D: Could you speculate about the reason why trials tend to be longer for the 100:0 conditions compared to the more difficult 60:40? Do mice spend more time in the investigation phase when gradient is stronger? Although this result would be counter-intuitive, it might suggest that mice learn (?) to spend less time on the initial search when less information is available to them.

4. Figure 1D indicates that the average gradient's geometry is not the same when the odor is delivered on the left side (100:0) compared to the right side (0:100). This observation appears to be true for the other odor ratios reported in Figure S2. This asymmetry should affect the gradient that the animal experiences during the investigation phase, which should in turn influence the accuracy of the decisions. Do you expect a 50:50 condition to produce no preference (on average)?

5. Figure 7F: What are you concluding from this panel? Are you sure that the shaded areas represent the standard deviation and not the SEM? If the standard deviation is shown, how do you explain the existence of stereotypical wiggles on a timescale of 50 ms? It would be very useful to represent a variant of Figure 7C where the trials are sorted between correct and incorrect.

eLife. 2021 May 4;10:e58523. doi: 10.7554/eLife.58523.sa2

Author response


Summary

This paper is a clear account of an odor-guided behavior in which the authors use machine-learning movement analysis to characterize the behavior in detail. The key findings are sniff-synchronized movement (already known), the ability to classify a number of movement motifs (but not strikingly distinct) and the further analysis of relationships between these movements and sniffing. All reviewers felt that this detailed analysis of behavior in a non-invasive manner was exciting and has much promise for the field.

We are gratified by the overall positivity of the review and we are most grateful to the reviewers for thoughtful and thought-provoking comments. We recognize and appreciate the effort and time these reviews must have taken. Most importantly, we feel that we have substantially improved our manuscript by responding to these reviews.

We have organized our response into sections that address the major issues raised in Dr. Bhalla’s summary. To do so, we have organized the comments from individual reviewers into these sections. All comments about other issues are addressed after that.

Essential revisions

Decision points and sensory strategy. Where and when are the mice making decisions, and are these decisions based on absolute concentration or the gradient?

We thank the reviewers for encouraging us to delve deeper into the sensory strategy the mice are using to solve this task. In our revision, we now present data that support our contention that the mice are guided by serial sniffs across odor gradients. To further test this model, we visualized the allocentric structure of investigation and approach, as suggested by reviewer 3.

The occupancy diagram of Figure 3F is fascinating. Together with panel 3D, it suggests that mice undergo fairly stereotyped searches: after poking their nose out of the initiation port, they appear to make a 180 degree rotation (sweep) to face the gradient. The density reaches a maximum at that point (opposite to the position of the initiation port). Is this position (crossing of the alpha shape) dominated by an "investigation" state? Can this position be viewed as a decision point? When/where does the animal tend switch to the "approach" state? More generally, could you map dominate trends in behavioral motifs of Figure 6B onto the stereotyped alpha shape of the occupancy diagram of Figure 3F?

We thank reviewer 3 for these ideas. In a new section of the results with 4 new figures (2 main and 2 supplementary), we now show occupancy maps of investigation and approach states. By overlaying the occupancy histograms from the two states, we show that most of the overlap is restricted to the center of the region between initiation port and decision line. This is at the crossing of the alpha shape of occupancy maps (Figure 9A) where overall occupancy also peaks (Figure 3F). To better quantify this overlap, we show an index of the relative values of investigation and approach occupancy as a function of distance from the initiation port. These data show that the index switches from predominantly investigation to predominantly approach within the alpha shape crossing region, between 5 and 10 cm from initiation. Based on this observation, we now refer to this region (between 5 and 10 cm), as a "transition zone" for the purposes of further analysis. We do not view this region as a "decision point", because we think that term only applies to an instantaneous event, not an across-trial pattern. Investigation-approach transitions are our best guess at the decision points in each individual trial. What we are calling the "transition zone" is the region where most of these transitions occur.

We next use these occupancy maps to evaluate alternative models of the sensory strategy – do the mice use absolute concentration or gradients? As argued by Dr. Bhalla:

The animals could be memorizing absolute concentrations… just memorizing 'expected' gradients or absolute concentrations (100, 80, 60 etc) – which is actually quite easy for mice to learn! In that case, indeed the mouse actually already knows which side the reward will be. If during the alpha turn it smells concentrations 100 or 80 or 60, it sticks to that side, otherwise walk to the other side. Indeed in this scenario – there is no need for lateral comparisons – and the knowledge gathered during the alpha turn already tells the animals which side it should go towards.

We agree that this possibility is logically consistent with the evidence provided in the original submission. We thank Dr. Bhalla for articulating such a clear prediction of the absolute concentration model. Indeed, an absolute concentration-sensing mouse would not need lateral comparisons. If they first turn toward higher concentration, they should stick to that side, and proceed straight to the water port, rather than waste time and sniffs at the midline. They would only need to cross the midline if they sense low concentration while turning out of the initiation port. To depict this intuitive prediction, we have now added auROC maps based on our PID recordings as panel C and D in Figure 1—figure supplement 2. This map (Figure 1—figure supplement 2C) shows absolute concentration differences between left and right trials can best be discriminated if the animal samples directly downwind of the odor ports, along the axes of maximal odor concentration.

On the other hand, if the mouse is using a gradient sensing strategy, it would seem that the best strategy is to sample both sides. As stated by Dr. Bhalla:

I don't think that a sequence of samples on the left and the right side must be taken for the mouse to infer the direction of the gradient… In the videos, I didn't see systematic left-right samples.

We agree that sampling both sides is not necessary for performing the task. However, because the airflow in the arena is turbulent, odor released on one side spreads some distance into the other. Nevertheless, while sampling both sides is not a must, we agree that the gradient sensing model predicts that the animal would achieve the highest performance by sampling across the midline. To depict this intuition, in (Figure 1—figure supplement 2D) we show an auROC map based on gradients derived from the same PID recordings. This map shows that for gradient-sensing, the most informative place to sample is indeed across the midline.

In Figure 10, we use investigation and approach occupancy maps to test these predictions. We show that correct trials are associated with more investigation at and around the midline, particularly on the unchosen side of the arena. By definition, sampling the unchosen side precedes crossing the midline to the chosen side, showing that correct trials feature more sampling on both sides. Incorrect trials have more investigation downwind of the odor ports, particularly near the decision line, where Figure 1—figure supplement 2D shows is the most informative location for absolute concentration discrimination. Thus, these data are inconsistent with the absolute concentration model, and consistent with the gradient model.

One concern with our task is that it forces mice to turn in one direction or the other out of the initiation port. Sometimes the mouse stays on the side it started towards, sometimes it switches to the other side. Could this asymmetry explain why correct trials seem to feature more investigation at the midline? In Figure 10—figure supplement 1, we analyzed stay and switch trials separately. The performance correlations shown in Figure 10 are essentially the same. In both conditions, correct trials are associated with more investigating at the midline and on the unchosen side. Although there are intriguing differences between the patterns, we feel that these are beyond the scope of the present manuscript.

Our analysis of the allocentric structure of state usage supports a serial-sniff gradient sensing model and is inconsistent with an absolute concentration sensing model. On that same topic:

The authors actually do try to rule out the possibility that animals learn absolute concentrations by doing what they refer to as variable |C| sessions… But the data presented is not really conclusive – performance in the first 10 trials is quite low – so its very likely that the animals just learn a new rule.”

We respectfully disagree. Figure 2—figure supplement 2 shows the across-mouse average performance over trials. In the first 10 trials of the first session in which the mice have encountered the 90:30/30:10 version of the task, the mice perform at 75% correct. Therefore, on average, the mice make only 2 or 3 errors in these trials. Even for an ideal observer mouse, we think it would take at least two errors to ascertain that they should learn a new rule. Slotnick and Katz (1974) showed that rats can show learning-set performance for new odor-pair discriminations in a nearly-errorless way, but only after they have already experienced 16 previous odor-pair switches, and thousands of trials. So, while it may be mathematically possible for a mouse to immediately change sensory strategies from C to delta-C, the possibility does not seem very likely given our data.

State transitions and error correction

The authors might want to push the analysis of the search strategy one step further by defining whether/how mice can switch from investigation to approach, back to investigation to perform error correction. This process would rule out that animals find the gradient through an initial guess that leads to a full commitment to one side during the approach phase. The data suggests that error correction takes place (Figure 7C and D), but those cases are not analyzed in detail. Can a statistical analysis of the state transitions reveal any principles in the organization of error correction? Does the animal's state indeed switch from approach to investigation during error correction?

Our new analysis shows that transitions from investigation to approach in the region just before the decision line are more common on error trials (Figure 10C and supplement 1). This pattern shows that the investigation state is not inherently beneficial to performance. Instead, it matters where the mouse investigates, which gives us indication of where informative stimulus features are in the arena. The auROC map (Figure 1—figure supplement 2) shows that absolute concentration features are most informative in this position near the decision line, where investigation is associated with incorrect trials. Thus we interpret this result as further evidence against the absolute concentration model.

What are individual animal differences and how do you explain the lack of stereotypy in movement?

We have shown that a classifier can uniquely identify individual animals based on our ARHMM. Is this because the motifs themselves differ across mice, or does it reflect diversity in how different mice sequence and deploy the motifs? To test the former possibility, in Figure 6—figure supplement 5 we present average shapes of each motif (as in Figure 6B) for each individual mouse. The shapes match across mice, suggesting that the algorithm is identifying consistent behavioral features. Instead, the differences have more to do with where and when the mice deploy different motifs. To accompany Figures 9 and 10, we provide investigation and approach occupancy maps for individual mice in Figure 9—figure supplement 1, showing that mice are diverse in where they transition from investigation and approach. For example, some mice are biased to one side, other mice to the other. We think these are the idiosyncrasies that the classifier is picking up on. Interestingly, we show in Figure 9—figure supplement 1 that if trials are re-oriented with respect to the chosen side (i.e., right-choice trials are flipped so that the trajectory always ends on the upward side of the diagram), all the mice tend to transition from investigation to approach on the chosen side. In this sense, the mice are quite consistent.

We think it is most likely that the lack of stereotypy in individual trial trajectories is attributable to the variable and turbulent nature of our odor stimuli.

Additional comments

1. Poor performance and lack of adaptive strategy:

We too were surprised that the mice did not perform better in the 100:0 condition. Additionally, Reviewer #2 points out mice do not adapt their strategy as the task is made presumably more difficult (i.e. from 80:20 to 60:40). We can only speculate as to why.

First, we don’t know that this is necessarily an easy task for rodents. In previous studies by the Bhalla and Murthy groups, the rodents were able to improve performance by using a memory-guided strategy, and to some degree avoid the problem of tracking the odor source from a distance. Maybe the animals in these studies used memory-guided strategies because odor-guided navigation is harder for them than our intuition and our PID maps would suggest. We know frustratingly little about the statistics of natural olfactory scenes, so perhaps the mice are evolutionarily optimized to operate in different stimulus conditions than we have contrived for this paradigm.

Alternatively, another likely explanation which we have added to the manuscript (lines 460-464) is that mice are strong delay-discounters – they are in a hurry to collect as much reward as possible in as little time as possible. Perhaps if we could more exhaustively search the task parameter space (e.g., ITI durations, reward sizes), we could find a way to slow them down and improve performance, but this has exceeded our experimental bandwidth so far.

2. Nose speed during ITI versus trial:

Reviewer #2 raised the concern that our analysis of sniff-locked movement with regards to nose speed is biased, because of differing nose speeds during the inter-trial interval and the trial. In Figure 5—figure supplement 2, we now separately analyze ITI sniffs in which the mice were moving at or above the average nose speed during the trials. Even in these sniffs, we see very little modulation of nose speed, and none for yaw or z-velocity, consistent with our assertion that sniff-synchronized movement is a pro-active search strategy, and not a default accompaniment of fast locomotion.

3. Asymmetrical odor distribution:

Reviewers and Dr. Bhalla pointed out that there is asymmetry in the right versus left odor delivery, particularly apparent in our 60:40 PID maps. This asymmetry is due to a difference in airflow distribution across the arena. If this asymmetry were relevant to performance, we would see systematic patterns in the position biases across mice. However, our data show no such patterns in the left-right distribution of occupancy as far as we can tell (see Figures 3-supplement 1, 9-supplement 1).

4. Sniff-synchronization novelty:

We have been asked to provide a statement on how our sniff-synchronization finding expands upon what is already known, particularly from the work of Kleinfeld’s group. Most importantly, our task design, which includes trial and ITI periods, allows us to show that kinematic rhythms do not always lock to the sniff cycle. Instead, we show that sniff-synchronized movement is specific to periods when the mouse is searching. From this we can infer that sniff synchronization is a pro-active sampling behavior rather than an odor-gated orientation reflex or a default accompaniment to fast sniffing. This could only be speculated upon in the previous work.

5. Ethological gap between task design and natural conditions:

Reviewer #2 points out that our binary choice-based task design may not require the fine spatial resolution likely needed for olfactory search in natural conditions where the number of possible target locations is quite a bit larger than 2. We agree and acknowledge this limitation of our study. We also have no doubt that there are many features of olfactory search that we cannot capture with a paradigm like this. Despite these limitations, we feel confident that the primary findings of the study – gradient guidance, sniff synchronization, and two-state organization of search behavior – will hold true under more naturalistic conditions of airborne scent tracking. We hope we and others can improve upon this experimental design to better recapitulate the relevant olfactory features and motor affordances of the real world.

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Citations

    1. Smear M, Findley T, Wyrick D, Ahmadian Y. 2021. Sniff-synchronized, gradient-guided olfactory search by freely-moving mice. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]
    2. Childress N. 2020. Bluewhitered. MATLAB Central File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/

    Supplementary Materials

    Transparent reporting form

    Data Availability Statement

    Source code is available on github at https://github.com/Smear-Lab/Olfactory_Search (copy archived at https://archive.softwareheritage.org/swh:1:rev:fcb2c2aa1a4438f22d622f29b01a0c64e8e4df85), and source data files are uploaded to Dryad.

    The following dataset was generated:

    Smear M, Findley T, Wyrick D, Ahmadian Y. 2021. Sniff-synchronized, gradient-guided olfactory search by freely-moving mice. Dryad Digital Repository.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES