Abstract
A key function of the brain is to move the body through a rich, complex environment. When rodents engage with their environment, they move their whiskers as they extract tactile information. Even though the study of whisking has a long history, the details of individual whisker movements bilaterally, of nose movement, of stereotypy and variability in an active whisking to touch behavior are unknown. Here we trained five head-fixed male and 11 female mice in a go-cue task to move a whisker to touch a sensor. Our analysis of orofacial movements shows that mice specifically control movement of the whisker they use to touch and that as they move their whiskers, they move their nose and apply forces on the head post in a manner that reflects the behavioral epoch, i.e., whether go-cue triggered movement had begun or a whisker was touching the sensor. Importantly, mice control the setpoint, amplitude, and frequency of movement of whiskers bilaterally and individually. Additionally, even though mice achieved the goal of the task—to touch the sensor within 2 s—how they coordinated movement of the nose and forces on head post with movement of individual whiskers was stereotyped and related to the distance they needed to move a whisker to touch the sensor. Our work shows how stereotyped mouse behavior can be, and it emphasizes both the level of fine motor control mice can exert over individual whiskers and the extent of facial movements in a goal-directed whisking-to-touch task.
Keywords: vibrissae
Significance Statement
Recent work shows that facial movements are reflected in the activity of a surprisingly large number of brain areas. But what aspects of the face do mice move when they move a whisker to actively touch an object? Our work shows that while mice control the movement of a whisker they use to touch, they also move their nose, apply forces on the head post, and move adjacent whiskers and whiskers on the other side of the face. Additionally, our analysis shows that from day-to-day, this behavior can be surprisingly stereotyped and that small changes in how far mice move a whisker during tactile behavior fundamentally changes the relationship between the movement of a single whisker and other facial movements.
Introduction
Over the course of evolution, and over the course of the lifetime of an animal, the motor sequences used to achieve a particular goal are refined and movement of many parts of the body are linked together into a whole that is optimal for achieving a particular goal. While we know that most natural behavior is multimodal (Krakauer et al., 2017), involving many sensory and motor modalities, how various parts of the body move to generate a particular behavior, how variability in the movement of any part of the body affects movement of other parts of the body, and generates activity in a variety of sensory systems is only now beginning to be studied (Churchland et al., 2006; Ghazanfar and Schroeder, 2006; Kelso, 2009; Murakami and Mainen, 2015; Krakauer et al., 2017; McElvain et al., 2018; Waschke et al., 2021).
Even in a model system like the rodent whisker system, where the goal of whisking is first and foremost to simply palpate surfaces and use tactile input to guide the animal around its environment, we are only on the cusp of understanding how rodents coordinate their facial movements (Vincent, 1912; Carvell and Simons, 1990; Sachdev et al., 2002; Berg and Kleinfeld, 2003; Knutsen et al., 2006; Grant et al., 2009; Haidarliu et al., 2010, 2012, 2015; Hartmann, 2011, 2001; Deschênes et al., 2012; McElvain et al., 2018; Adibi, 2019). For example, recent work has revealed that facial expressions in mice can convey emotions like pain, disgust, or joy (Langford et al., 2010; Finlayson et al., 2016; Dolensek et al., 2020) and that facial movements can explain variance in single unit activity in surprisingly widespread areas of the brain (Musall et al., 2019; Steinmetz et al., 2019; Stringer et al., 2019; Avitan and Stringer, 2022; Zagha et al., 2022).
Traditionally, work in the whisker system focused on simple organizational features. Firstly, input from each whisker forms a labeled line from the trigeminal brainstem to cortex (van der Loos and Woolsey, 1973). Secondly, while whiskers are associated with the whiskerpad that can be moved by facial muscles, each whisker has a single muscle slung around it (Dörfl, 1982; Wineski, 1983, 1985; Haidarliu et al., 2010); thirdly, whisking is associated with active behavior that can be directional, reflecting direction of movement of the animal (Knutsen et al., 2005; Towal and Hartmann, 2006; Grant et al., 2012a,b; Arkley et al., 2014; Saraf-Sinik et al., 2015; Schroeder and Ritt, 2016; Dominiak et al., 2019; Bergmann et al., 2022); fourth, whisking and breathing are linked together, by a central pattern generator in the brainstem (Welker, 1964; Cao et al., 2012; Moore et al., 2013, 2014; McElvain et al., 2018; Tantirigama et al., 2020); and finally, while whisking is central for navigation, mice also move their eyes as they navigate and they coordinate their movement with the movement of their whiskers, nose, and eyes (Dominiak et al., 2019; Bergmann et al., 2022). Despite the relative sensory “isolation” of each whisker (but see Severson et al., 2017, 2019) and the potential for independent control of movement of each whisker (Sachdev et al., 2002; Grant et al., 2009; Haidarliu et al., 2010), the ability of rodents to control the movement of individual whiskers and to coordinate this motion, with movement of other aspects of the face, remains largely unexplored.
Here in a go-cue triggered whisking to touch task, we measured coordination, variability, and individuality that defines mouse whisking behavior. Our work shows that in this task, mice move individual whiskers distinctly on the two sides of the face and they coordinate motion of the nose and forces on the head post in a specific manner. This work also shows that from day to day, the individual movement patterns of each mouse can be measurably stereotyped in a goal-directed manner.
Materials and Methods
Animals and surgery
We performed all procedures in accordance with protocols for the care and use of laboratory animal approved by the Charité–Universitätsmedizin Berlin and the Berlin Landesamt für Gesundheit und Soziales (LaGeSo). Adult mice on a C57bl6 background (n = 16, 5 male and 11 female), weighing 25–32 g were anesthetized with ketamine/xylazine (90 mg/kg/10 mg/kg). Lightweight aluminum head posts were affixed to the skull using Rely X and Jet Acrylic (Ortho-Jet) black cement (Dominiak et al., 2019; Ebner et al., 2019). In the 2 d after surgery, analgesia was provided by buprenorphine and carprofen injections.
Behavioral task
We trained head-fixed mice to use their whiskers to touch a piezo film-based contact sensor. An auditory cue (piezo buzzer) initiated trial and the cue stayed for 2 s or until whisker contact with sensor. The contact sensor was placed in front of the C2 whisker of the mouse, with the animal’s whiskers rostral to the C2 being trimmed back to 2 mm. The signal from the contact sensor was fed through a custom-built amplifier, and the analog waveform was thresholded to emit a transistor-transistor logic (TTL) signal. If whisker contact evoked waveform exceeded a threshold, auditory cue was turned off, and reward was delivered. The duration of each trial varied and depended on reaction and movement time after cue onset.
Behavioral training
One week after surgery, mice were habituated to being handled and habituated to the behavioral apparatus. In the first days of habituation, mice were acclimated to having their head post handled by the experimenter and to short (up to several minutes) head fixation. In the course of the first week of habituation, the duration of head fixation was gradually increased from 5 to 40 min. In the course of habituation to head fixation, mice were also habituated to having their whiskers painted. On each day of habituation and training, a thin coat of paint was dabbed on the whiskers with a paint brush. If painting noticeably weighed down the whisker, excess paint was removed. During whisker painting, mice were rewarded with sweetened condensed milk.
After a week of habituation, mice were water deprived and were trained to respond to an auditory cue and lick the lick tube. Over the course of 2–3 weeks, mice were introduced to the piezo sensor positioned in front of the painted whiskers on the right side of the face. Initially, the sensor was positioned close to the C2 whisker on the right side, with the whiskers rostral to the C2 trimmed back to 2 mm. During the next training days, the sensor was positioned further way from the mouse. To achieve a consistent success rate for each mouse, the position of the sensor varied by a few millimeters from day to day.
Behavioral tracking
To track whisker and nose positions, behavioral data was recorded at 200 Hz with a Basler acA1920-155uc USB 3.0-camera and a f = 25 mm/F1.4 objective, being set above the animal. The C1 and C2 whiskers on both sides, as well as the tip of the nose, were painted (UV glow; https://www.uvglow.co.uk/) and illuminated by UV torches. Videos of 200 Hz frame rate were acquired in the proprietary format from Matrox Imaging (https://www.matrox.com/) and later converted into the H.264 format. The acquisition and conversion were accomplished using ZR-view, a custom software (Robert Zoellner). Camera triggers were generated either with the reward trigger or at the offset of the auditory cue. A 5 s ring buffer was used to record frames of ±2.5 s around the camera triggers.
Whisker and nose positions were estimated from the videos using the custom Python script (videobatch; https://doi.org/10.5281/zenodo.3407666). The top-view videos first underwent a maximum intensity projection using the videobatch script. Regions of interest (ROIs) for tracking were selected manually and separately for the whiskers on both sides of the face and the nose positions, using Fiji’s freehand selection tool (Dominiak et al., 2019; Sehara et al., 2019). Using the Python script, pixels that belonged to a particular hue value were collected and the luma-weighted average position was computed. For frames where the algorithm failed for any reason, values were dropped and were filled in later by linear interpolation.
Licking was monitored with a piezo sensor attached to the lick tube. The signal from the sensor was amplified using a custom-built amplifier, and licking waveform was exported to a CED-1401 interface. Head strain was monitored with a strain gauge built into the head post holding-rod. Its signal was amplified using a custom amplifier before being fed into the data acquisition interface.
Behavioral sessions were monitored and recorded using Spike2 (Cambridge Electronic Design) equipped with a Power1401 data acquisition interface. During each session, the duration of the auditory cues, reward triggers, camera triggers, and lick event data were acquired, along with analog waveforms of the output of the contact sensor, piezo-based lick sensor, and strain gauge. The acquired data was saved as compressed Spike2 files and exported as tab-separated value (TSV) files for analysis.
General analytical procedures
Analytical procedures were performed using Python (https://www.python.org/, version 3.7.6), along with several standard modules for scientific data analysis (NumPy, https://www.numpy.org/, version 1.18.1; SciPy, https://www.scipy.org/, version 1.4.1; matplotlib, https://matplotlib.org/, 3.1.3; pandas, https://pandas.pydata.org/, 1.0.1; scikit-learn, https://scikit-learn.org/stable/, version 0.22.1; Bottleneck, https://pypi.org/project/Bottleneck/, 1.3.2; Statsmodels, https://www.statsmodels.org/, version 0.13.0; h5py, https://www.h5py.org/, version 3.6.0) and nonstandard packages (sliding1d, https://github.com/gwappa/python-sliding1d, 1.0; fitting2d, https://doi.org/10.5281/zenodo.3782790, 1.0.0a2). Kruskal–Wallis test and Dunn’s post hoc test was performed using a custom python script based on the one found at https://gist.github.com/alimuldal/fbb19b73fa25423f02e8. Data was sorted based on trial duration. Trials on which mice failed to contact the sensor in 2 s were not analyzed.
Behavioral data preprocessing
The whisker positions tracked during each behavioral session were converted to whisking angles. Using the fitting2d Python library, a circle was fit to the set of two-dimensional positions for each whisker, and the position at each timepoint was converted into the polar coordinates around the fitted circle. Whisking setpoint and amplitude were then estimated based on these whisking angles. Upper and lower envelopes of whisker positions were estimated by smoothing the whisker positions using sliding window mean of a 100 ms time window. The lower envelope was defined as the setpoint; the difference between the upper and lower bounds of the envelope was defined as the whisking amplitude. The mode of whisking setpoints was estimated from the histogram of whisking offsets during each behavioral session. The lower half (up to 50 percentile) of the histogram was fitted using a cubic spline, and the mode was defined as the whisker position giving the maximal density of setpoint positions.
Unless otherwise indicated, this mode of whisking setpoints was considered as the resting position of the whisker and was used as the zero-position of the whisking angles. In the particular cases when the resting positions of individual whiskers were compared, whisking angles were calculated relative to the position of the eyes. The inner corners of the left and right eyes were annotated manually on a video frame of each behavioral session. A line connecting the corners of the two eyes was drawn. When considering the deviation from the level of the eye, differences in whisker lengths also needed to be considered. We used the radius of whisking as an estimate of the length of the whisker and used the longer of the contacting and the noncontacting sides as the standard whisker length of the front (or back) whisker. The whisking angles were converted back to the two-dimensional coordinates using this standard whisker length. The crossing point between this standardized whisker trajectories and the line connecting the two eye corners was defined as the eye-level point. Finally, this two-dimensional coordinates were further turned into the polar coordinates of the whisker again, using the standardized whisker length, and used as the eye level in terms of the whisking angle.
The position of the contact sensor relative to the mouse could change slightly from day to day, as each animal was positioned anew in the behavioral rig. The sensor position for each day/each session was measured post hoc using the maximal density of whisker positions evident in the video data. Nose position data were projected on a 1D axis of the first principal component.
Analysis of behavioral epochs
Data from each trial was first parsed into behavioral epochs: a precue phase where mice wait for cue onset, an auditory cue phase which initiated whisker movement, a trigger epoch where whisker contact with the sensor crossed threshold including 500 ms before touch and 250 ms after touch, a lick/reward epoch, and a post-reward epoch (Table 1).
Table 1.
Definitions of the behavioral epochs
| Behavioral phase | Start of the phase | End of the phase |
|---|---|---|
| Precue | 750 ms before the cue onset | Cue onset |
| Cued | Cue onset | 750 ms after the cue onset |
| Trigger | 500 ms before the contact trigger | 250 ms after the contact trigger |
| Licking | 250 ms after the contact trigger | 1,000 ms after the contact trigger |
| End of trial | 1,750 ms after the contact trigger | 2,500 ms after the contact trigger |
Each trial was divided into 750 ms epochs defined on the basis of the timing of the auditory cue onset or on the basis of the contact sensor trigger. Note that there were some trials without precue or cued periods. Because the recorded videos contained only 2.5 s before the contact trigger, trials were considered not to have the precue period if the auditory cue duration was >1.75 s. Similarly, the trial was considered not to have the cued period if the cue duration was <750 ms.
To examine nose–whisker and head–whisker coordination, linear regression models were used to predict the nose position and the head strain based on whisker dynamics. In doing so, time points belonging to a single behavioral phase of all the trials during a single behavioral session were pooled. The values of whisker setpoints and whisking amplitude were used to predict the nose position and the head strain on the same time point. The models were fit using the least-square approach. Fourfold cross-validation scheme was used—the linear model was trained based on 75% of the data, and prediction accuracy was tested on the remaining 25% based on the coefficient of determination (cross-validated R2, or cvR2)—and the mean of the four cvR2 scores was used as the cvR2 value of the given session.
To estimate trial-to-trial variability, we used nine features of behavior tracked in three behavioral epochs (trigger/lick/end-of-phase) to generate a 27-dimensional vector. The nine features consisted of the following: (1) the median whisking offsets of the four tracked whiskers, (2) the median whisking amplitudes of the four tracked whiskers, and (3) the median nose position.
Trial-to-trial variability was mapped using two types of methods. The t-SNE method was used to visualize distribution of individual trials in a two-dimensional space (van der Maaten and Hinton, 2008), whereas the Euclidean method was used to compute trial-to-trial distances. Before applying the Euclidean method, all of the 27 features were subjected to two steps of standardizations. The whisking setpoint and amplitude in single sessions were first Z-scored individually, i.e., subtracting their means and then dividing it by their standard deviations, before the epoch-by-epoch median values were computed. After pooling all the trial-based features, the second Z-scoring was conducted to standardize values across sessions. The Euclidean distance in the 27-dimensional space of Z-scores was used as the distance metric between trials.
Euclidean trial-to-trial distances were used to estimate the diameters of groups (single animals and single sessions) and intergroup distances. The diameter of the group of trials belonging to a single animal or a session was determined as the mean distance between two randomly chosen trials from the group. The intergroup distance was determined as the mean distance between two randomly chosen pair of trials, each of which from one of the pair of groups. Because it was computationally demanding to compute distances across all the >6,000 trials, we randomly sampled 150,000 pairs of trials and computed their intertrial distances.
To examine the state of clustering in accordance with groups of trials, we devised the aggregation index (AI), as the ratio of the mean intergroup distance (i.e., mean trial-to-trial distance between different groups) to the mean group diameter (i.e., mean trial-to-trial distance within a single group). The chance level for the AI was assessed by preparing 500 iterations of datasets where all the input features were shuffled (i.e., null datasets). The difference between the AI values based on the null datasets and on the original datasets was divided by the total number of features, to estimate the expected mean contribution of one input feature (ΔAImean). Contribution of individual behavioral features was assessed by computing the reduction in the AI by shuffling only one of the features in-place. The resulting amount of reduction (ΔAI) was normalized by dividing the original value by ΔAImean to obtain ΔAInorm, such that ΔAInorm = ΔAI/ΔAImean. The ΔAInorm being more than one indicates that the corresponding feature uniquely contributes to the AI more than it is expected to and the value of zero means that there is no unique contribution for the feature to the AI. Note that, based on our datasets, all the computed ΔAInorm values turned out to be larger than one, presumably related to inherent interactions between features.
To relate trial-to-trial variability in the t-SNE embedding space to individual features, we computed 2D coordinates of each behavioral session in the t-SNE space as the mean of all the trials belonging to the session. A linear regression model was trained using the least-squares approach, to predict the target feature during each session based on the 2D coordinates of the session.
Sample size and statistics
For the analysis of whisker and nose movements, we developed scripts for automated tracking of orofacial—whiskers, nose—movement (Dominiak et al., 2019; Bergmann et al., 2022). Two criteria were used to select sessions: there had to be >10 trials in a session and success rate in each session had to be >50%. As a result, we had data for 85 sessions from 16 animals in total. Analysis-to-analysis additional criteria (described below) were applied to further exclude sessions that do not conform to the nature of the given analysis.
For the analysis of whisker resting positions, manual annotation of eye position was needed, and we completed annotation for 48 behavioral sessions in seven animals. By excluding the sessions where resting-position estimation failed for any of the animal’s whiskers, we used 20 sessions from five animals for analysis and performed Wilcoxon’s signed-rank test. All the 85 sessions from 16 animals were used for frequency–domain analysis, and Wilcoxon’s signed-rank test was performed.
When comparing whisking setpoints and amplitudes between whiskers and across behavioral epochs, deviations from the resting positions were required. For each whisker, sessions with failed resting-position estimation were excluded from the analysis. As a result, we used the following: 71 sessions from 16 animals (contacting side, front whisker), 82 sessions from 15 animals (contacting side, back whisker), 84 sessions from 16 animals (noncontacting side, front whisker), and 82 sessions from 16 animals (noncontacting side, back whisker). Note that some sessions did not have any trials containing enough duration (750 ms) of the cued epoch; the numbers of sessions for cued epoch were as follows: 68 sessions from 16 animals (contacting side, front whisker), 79 sessions from 15 animals (contacting side, back whisker), 81 sessions from 16 animals (noncontacting side, front whisker), and 79 sessions from 16 animals (noncontacting side, back whisker). Comparisons were made using Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction.
For the analysis of correlation between whisker movement and head/nose motion, we only used the sessions that contained all the five behavioral epochs (precue, cued, trigger, lick, end-of-trial epochs, 750 ms per trial). After excluding sessions without nose or head tracking, there were in total of 74 sessions from 15 animals (nose motion) and 67 sessions from 14 animals (head strain). Wilcoxon’s signed-rank test was used to compare values with precue epoch data.
The analysis of trial-to-trial variability was based on three epochs: trigger onset, licking, and end-of-trial phases. We only used sessions where the resting positions of all the four tracked whiskers were successfully estimated and the nose positions were tracked. There were in total of 4,786 trials, of 64 sessions from 15 animals, that satisfied the criteria.
To statistically compare whether the given aggregation index was significantly higher than the chance level, we prepared 500 different datasets where annotation of each trial to the group (animal or session) was shuffled. All the resulting aggregation indices were represented as the deviation from the median value of the shuffled data, and the p value was computed based on where the index of the true data resides relative to the other shuffled data.
To examine statistical significance in the correlation between trial-to-trial variability and individual input features, the R2 value of the linear regression model was used. Apart from generating a model based on the actual dataset (contact sensor position, N = 64 sessions; behavioral input features, N = 4,786 trials), 3,000 models based on random datasets were prepared, and the correspondence between the shuffled 2D session coordinates and the feature was examined. Statistical testing was based on comparison of the R2 value of the model of the actual data and those of the 3,000 shuffled models; the R2 values were sorted based on the distance from the median value of the shuffled models, and the p value for the R2 of the true dataset was computed by assessing what percentile the value was located.
Results
Whisking, nose motion, and forces on head post
Sixteen mice were trained to use the right side C2 whisker to contact a sensor within 2 s of an auditory cue (Fig. 1). In the course of 5,964 correct trials over 84 sessions, the movement of the nose, and the painted C1 and C2 whiskers bilaterally were tracked as mice whisked to touch the sensor, waited for the reward, and licked (Fig. 1A). The maximum intensity projection for a single session (n = 40 trials) from one mouse shows the extent of movement of two whiskers on each side of the face, and the nose on all successful trials (Fig. 1B). Additionally, a strain gauge was used to measure the up and down forces mice applied on the head post (Fig. 1C). The movement/position of whiskers and nose, and the forces mice applied on the head post, on each trial, were converted into raster displays reflecting the position and movement of whiskers and side to side motion of the nose and the extent of the forces applied on the head post in each trial (Fig. 1D). This display shows the timing and extent of whisker and nose motion and the dynamics of the coordination between movements and the forces on the head post on every trial. The median position for the 40 trials in a session is plotted below each raster plot. This representative session reveals that, even though mice are highly trained to move the C2 whisker on the right side into contact with the sensor, and they reliably contact the sensor with just this one whisker, the mouse invariably moves all the tracked whiskers bilaterally on every trial. Even though mice move their whiskers bilaterally on every trial, the movement of the whiskers on the two sides of the face—the contacting side and the noncontacting side—were not identical. On the noncontacting side, the C1 and C2 whiskers move together and show similar movement patterns: fast protractions and large movements. On the contacting side, the C1 whisker moves much less than the C2, and both whiskers show a different pattern of movement than on the noncontacting side. Part of the differences in motion on the two sides of the face simply reflect the presence of the contact sensor that blocks large movements of the front, C2 whisker, but part of the movement especially of the C1 whisker in the back reflects the independent control of this whisker. These analyses also show the trial-by-trial and session-long stereotypy of the side-to-side nose motion and the head strain, as the mice touch the contact sensor and lick reward.
Figure 1.
Bilateral whisker and nose motion and strain on a head post during whisking to touch. A, Schematic of the task. Mice were head-fixed, and their C2 (magenta) and C1 (green) whiskers were dabbed with UV paint. In response to the auditory cue (up to 2 s), mice moved the C2 whisker on the right side of the face to contact the piezo sensor in front of their face (middle) to obtain water reward (right). B, Top-view maximal intensity projection of a representative session. Whisker trajectories for the entire session are visible as magenta and green arcs around the animal. The arrowhead on the right side indicates the position of the contact sensor. C, Tracking whiskers and nose position and head post forces in a single trial. Top four traces show the whisker positions in the course of a trial on the contacting side and the noncontacting side. The traces in magenta represent positions of the two C2 whiskers (the front whisker) whereas those in green represent positions of the C1 whisker (the whisker in back). Mediolateral side to side positions of the nose in the course of the same set of trials and the values of the up and down head strain sensor are shown at bottom. The scale bar indicates 500 ms. The vertical calibration, 60° for whiskers and 1 Z-value for nose position and head strain. D, Raster plots of tracked behavior of a single representative session. The protraction angles of individual whiskers, and the Z-score values of the nose position and the head strain signal, from individual trials are color-coded at the top of each panel. Thick lines at the bottom represent session medians, and the shaded areas represent 25–75 percentile ranges during the session.
Side-to-side differences in multiwhisker behavior
To elucidate the behavioral strategies mice used in this task, we first examined the movement of individual whiskers during the task in more detail (Figs. 2, 3). The positions of whiskers were converted into an animal-centric coordinate system, by using the tip of the nose and the inner corners of the eyes as the reference points (Fig. 2A). Whisker movement was converted into angular motion and separated into whisking setpoint and amplitude by examining the envelope of the whisking motion (Fig. 2B). The maximal intensity projections of tracked whiskers (Fig. 2A) indicated that the resting position of the tracked whiskers on the two sides of the face were different. Examination of individuals of mice engaged in the task supported this possibility (Movies 1, 2). To quantify this difference, the mode of the setpoint for each whisker during a given behavioral session was calculated and considered to be the resting position (Fig. 2C). The inner corners of the eyes were defined as the “level of the eye,” and they were used as the reference point against which the position of the whiskers was tracked. Using this metric, our analysis shows that the resting position of the whiskers on the contacting side was more retracted than the resting position of the whiskers on the noncontacting side (Fig. 2C). Comparison across multiple sessions confirmed that the resting whisker position on the contacting side was significantly more retracted than on the noncontacting side (Fig. 2D; front whiskers, p = 0.0017**; back whiskers, p = 0.0003***; Wilcoxon signed-rank test, N = 20 sessions of 5 animals).
Figure 2.
Control of single whisker movement. A, Comparison of resting whisker positions relative to the level of the eyes. The position of the eyes was manually annotated (yellow)—and the white horizontal dotted line denoting the position of the eyes—was used as coordinate system for setting the angles for the whiskers. Eye position was set as zero degrees. Scale bar, 10 mm. B, Schematic for estimation of setpoints and amplitude from raw whisker traces (black). A single representative trial is shown as an example where the lower envelope (cyan) was defined as the setpoint, and the difference between the lower and the upper envelope (gray) was defined as the amplitude of whisking. C, Distribution of setpoints positions for whiskers on the contacting and the noncontacting sides. The mode in the histogram of setpoints (cyan) during each session was defined as the resting position of the whisker during the session; the gray shaded areas show the distribution of whisker positions in the whole the session. Black arrowheads mark the eye position, cyan arrowheads mark the resting whisker position, and gray arrowhead (top left panel) marks the location of the contact sensor (gray). D, Statistical comparison of resting positions on the two sides of the face. The C2 and C1 whiskers on the contact side have significantly different resting positions than the C2 and C1 whiskers on the noncontact side. C, contacting side; N, noncontacting side; **p < 0.01, ***p < 0.001, Wilcoxon signed-rank test. N = 20 sessions from 5 animals. E, Power spectra of whisker speeds. The results of a single representative session show the distribution of whisking frequencies in the course of whisking to touch. Note that whiskers on the contacting side, both the front and the back, show much higher frequency components—at ∼25 Hz—than the whiskers on the noncontacting side. Thick lines represent median of the trials of the session, and the shaded areas correspond to 25–75 percentiles. F, Comparison of the whisking power of low (3–10 Hz, left) and high (10–30 Hz, right) frequency bands of whisking speed. The values are normalized relative to the power of the 1–3 Hz band. ***p < 0.001; NS, p > 0.05, Wilcoxon signed-rank test. N = 85 sessions from 16 animals.
Figure 3.
Behavioral phase-dependent multiwhisker dynamics. A, Whisker-to-whisker variability of setpoint changes in a single representative session. Raster plots represent estimated setpoints of front (top panels) and back (middle panels) whiskers on the contacting side (left panels) and on the noncontacting side (right panels) for individual trials. The bottom panels show session median traces for the whiskers. Setpoint protraction tended to be larger for the front whiskers than the back whiskers, and the tendency was more visible on the contacting side. B, Comparison of setpoints of adjacent whiskers on contacting and noncontacting side. All the whiskers protracted significantly during the cued, triggering, and licking period compared with during the precue period, but the front whisker only on the contacting side was significantly more protracted than the adjacent whisker; the deviations in setpoint between the front and the back whiskers increased during the cued and triggering periods (top panel). There were no significant differences between adjacent whiskers on the noncontacting side. Session median setpoints during each of the five behavioral time windows are shown as a Tukey's box plot. Results from both contacting (blue) and noncontacting sides (red) are shown. N = 85 sessions from 16 animals. C, Comparison between setpoints of whiskers of contacting and noncontacting side. D, Whisker-to-whisker changes in amplitude of whisking in a single representative session, in the same manner as in A. E, Statistics for amplitude shown in the same way as in C. Mice made larger whisking movements after the cue onset on both sides of the face. The difference in amplitude of whisking of the contacting front whisker and adjacent back whisker was only significant during some of the behavioral epochs. There were no significant differences in amplitude of whisking of adjacent whisker on the noncontacting side (bottom panel). *p < 0.05, ***p < 0.001, NS, p > 0.05, Kruskal–Wallis test followed by Dunn's post hoc pairwise tests with Bonferroni’s correction. N = 85 sessions from 16 animals. F, Comparison of amplitude of whisking on the contacting and the noncontacting sides. Same analysis as for setpoint in C.
Movie 1.
Contact sensor on right, positioned near C2 whisker. [View online]
Movie 2.
Contact sensor on right, C2 whisker retracted. [View online]
Next, we examined the frequency components of whisking on the two sides of the face (Fig. 2E,F). The power spectra of whisking traces for a single session on the contacting side for the front and back whiskers showed a bimodal/skewed distribution, with a peak at ∼15–18 Hz. Note that the peak at ∼15 Hz does not result from contact. The C1 whisker (back) adjacent to the contacting whisker does not contact the sensor at all (Fig. 2E, light blue traces). The histogram of positions for the C1/back whisker was not affected by the contact sensor (Fig. 2C, top right, gray area). This high-frequency whisking band was prominent on the contacting side (Fig. 2E).
To compare the frequency components detected across all sessions from all animals, we normalized the power of the low (3–10 Hz) and the high (10–30 Hz) frequency bands relative to the baseline (1–3 Hz) power. This analysis indicates that there was significantly more power at higher frequencies of whisking on the contacting side than on the noncontacting side (Fig. 2F, right; 3–10 Hz, p = 0.0623, NS; 10–30 Hz, p < 0.0001***; Wilcoxon signed-rank test, N = 85 sessions of 16 animals). There were no significant differences in side-to-side power at lower frequencies of whisking (Fig. 2F, left). Together, these results highlight the side-to-side asymmetry in whisking. Compared with the whiskers on the noncontacting side, the contacting side whiskers tended to be retracted during the task and tended to move with more vigor at higher frequencies.
Behavioral phase-dependent single-whisker movement dynamics
Next, we examined how changes in setpoints and whisking amplitudes characterize the whisking behavior of the mice during the task (Fig. 3). Single session data illustrate the distinct setpoint of individual whiskers (Fig. 3A). Note that the setpoint data shown here was defined as a deviation of the whisker position from the resting whisker position during the session. This definition avoids the bias introduced by day-to-day or whisker-to-whisker (C2, C1 positions) differences in resting positions. We see that on average on single sessions, the setpoint of the whisker used to touch the sensor can be more protracted than the setpoint of the adjacent whisker (Fig. 3A, left). By comparison, whiskers on the noncontacting side moved almost identically, with their setpoints being similar to each other (Fig. 3A, right).
To examine the behavioral state-dependent changes in whisking in more detail, each trial was divided into distinct 750 ms epochs (Table 1). At cue onset, mice adjusted the setpoint of whiskers bilaterally; they protracted their whiskers and kept them protracted until the licking phase of the trial (Fig. 3B; Tables 2, 3; p < 0.001, Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction). On the contacting side, during the cued, trigger, and the licking phase of the trial, adjacent whiskers were positioned distinctly, with the front whisker (C2) being kept significantly more protracted than the back whisker (C1; Fig. 3B, top; Table 2, front vs back; p < 0.001, Dunn’s post hoc pairwise tests with Bonferroni’s correction). On the noncontacting side, mice protract their whiskers but there were no significant differences in the positioning of the front and the back whiskers, for any of the behavioral phases examined (Fig. 3B, bottom; Table 3, front vs back; p > 0.05, Dunn’s post hoc pairwise tests with Bonferroni’s correction).
Table 2.
Pairwise statistics on contacting side whisking setpoints
| Category | Comparison | p value |
|---|---|---|
| Contacting side setpoint, front | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | 1.0000, NS | |
| Contacting side setpoint, back | Precue vs cued | 0.0007*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | 1.0000, NS | |
| Contacting side setpoint, front vs back | Precue | 0.4603, NS |
| Cued | <0.0001*** | |
| Trigger | <0.0001*** | |
| Lick | <0.0001*** | |
| End-of-trial | 0.2638, NS |
Pairwise comparisons of whisker setpoints in the different behavioral epochs showing the change in setpoint in the active epochs when compared with the precue epoch. Both the contacting whisker “front” and the “back” adjacent whisker were positioned at distinct setpoints during behaviors: cue, trigger, and licking. There were significant differences in setpoints, for contacting (front) and adjacent whisker (back) during the cue and lick epochs. Analysis was performed using a Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction. For each session, the median values of whisking setpoint, in each behavioral phase, for each whisker were computed and the position of the whisker in each behavioral epoch were compared with position in the precue epoch. The omnibus p value was p < 0.0001. Each row on the table corresponds to a post hoc pairwise testing. ***p < 0.001; NS, p > 0.05. N = 85 sessions of 16 animals.
Table 3.
Pairwise statistics on noncontacting side whisking setpoints
| Category | Comparison | p value |
|---|---|---|
| Noncontacting side setpoint, front | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | 1.0000, NS | |
| Noncontacting side setpoint, back | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | 1.0000, NS | |
| Noncontacting side setpoint, front vs back | Precue | 1.0000, NS |
| Cued | 1.0000, NS | |
| Trigger | 1.0000, NS | |
| Lick | 1.0000, NS | |
| End-of-trial | 1.0000, NS |
Pairwise comparisons of whisker setpoints showing the change in starting position/setpoint in the active epochs when compared with the precue epoch. Mice actively moved, positioned whiskers on the noncontact side in the course of the task, but adjacent whiskers on this side of the face moved and were positioned similarly, there were no significant differences in the front and back whiskers position in the different behavioral epochs. Analysis was performed using a Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction. For each session, the median values of whisking setpoint, in each behavioral phase, for each whisker were computed, and the position of the whisker in each behavioral epoch was compared with position in the precue epoch. The omnibus p value was p < 0.0001. Each row on the table corresponds to a post hoc pairwise testing. ***p < 0.001; NS, p > 0.05. N = 85 sessions of 16 animals.
Note that during the cued epoch, the difference in the whisking setpoint of the adjacent (front–back) whiskers was not likely to arise from side-to-side differences in whisking. In this epoch on average, there were no significant differences between the whisking setpoints for the contacting and noncontacting side whiskers (Fig. 3C; precue, p = 0.0298*; cued, p = 0.9725, NS; trigger, p = 0.0235*; lick, p = 0.0003*; end-of-trial, p = 0.0257*; Mann–Whitney U test, N = 85 sessions from 16 animals). Taken together, these results indicate that, when mice are engaged in the task, they protract their whiskers differentially on the two sides of the face and specifically control the spread between whiskers.
Next, we examined whisking amplitude. Analysis of average whisking amplitude across sessions demonstrated that when compared with the precue period, it increased significantly on both sides of the face from the onset of the auditory cue until the end of trial (Fig. 3D,E; Tables 4, 5; p < 0.001, Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction). We did not find any significant differences in the amplitude of movement between the “front” whisker and the adjacent, “back” whisker on either side of the face during any of the trial phases (Fig. 3E; Tables 4, 5; front vs back; p > 0.05, Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction).
Table 4.
Pairwise statistics on contacting side whisking amplitude
| Category | Comparison | p value |
|---|---|---|
| Contacting side amplitude, front | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | <0.0001*** | |
| Contacting side amplitude, back | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | <0.0001*** | |
| Contacting side amplitude, front vs back | Precue | 0.4677, NS |
| Cued | 1.0000, NS | |
| Trigger | 1.0000, NS | |
| Lick | 1.0000, NS | |
| End-of-trial | 0.0688, NS |
Pairwise comparisons of whisking amplitude in the different behavioral epochs show that amplitude of movement of both whiskers were significantly different from the resting “precue epoch” whisking amplitude. There were some significant differences in whisking amplitude for the two adjacent whiskers; primarily statistical analysis was performed using a Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction. For each session, the median values of whisking amplitude, in each behavioral phase, for each whisker were computed and the amplitude of whisker movement in each behavioral epoch was compared with amplitude in the precue epoch. The omnibus p value was p < 0.0001. Each row on the table corresponds to a post hoc pairwise testing. ***p < 0.001; NS, p > 0.05. N = 85 sessions of 16 animals.
Table 5.
Pairwise statistics on noncontacting side whisking amplitude
| Category | Comparison | p value |
|---|---|---|
| Noncontacting side amplitude, front | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | <0.0001*** | |
| Noncontacting side amplitude, back | Precue vs cued | <0.0001*** |
| Precue vs trigger | <0.0001*** | |
| Precue vs lick | <0.0001*** | |
| Precue vs end-of-trial | <0.0001*** | |
| Noncontacting side amplitude, front vs back | Precue | 1.0000, NS |
| Cued | 1.0000, NS | |
| Trigger | 1.0000, NS | |
| Lick | 1.0000, NS | |
| End-of-trial | 1.0000, NS |
Pairwise comparisons of whisking amplitude in the different behavioral epochs show that amplitude of movement of both whiskers were significantly different from the resting “precue epoch” whisking amplitude. Statistical analysis uses a Kruskal–Wallis test, followed by Dunn’s post hoc pairwise tests with Bonferroni’s correction. For each session, the median values of whisking amplitude, in each behavioral phase, for each whisker were computed and the amplitude of whisker movement in each behavioral epoch was compared with amplitude in the precue epoch. The omnibus p value was p < 0.0001. Each row on the table corresponds to a post hoc pairwise testing. ***p < 0.001; NS, p > 0.05. N = 85 sessions of 16 animals.
Whisking amplitudes on the two sides of the face did not differ significantly between the contacting and noncontacting sides, except in the precue and contact trigger phases (Fig. 3F) (precue, p = 0.0325*; cued, p = 0.6488, NS; trigger, p = 0.0006***; lick, p = 0.2879, NS; end-of-trial, p = 0.1792, NS; Mann–Whitney U test, N = 85 sessions of 16 animals). The difference during the contact trigger phase is likely to be related to the presence of the contact sensor which blocks motion of the front whisker on the contacting side.
Taken together, our analysis indicates that mice exert control over the movement of individual adjacent whiskers on each side of the face and they display distinct movement patterns on the two sides of the face. These differences in individual whisker positions primarily reflect the effect on the setpoint. When mice use a whisker to touch the sensor, the spread of whiskers—the distance between adjacent whiskers—changes, and the whiskers spread apart, but only on the side actively used in this tactile behavior.
Nose movement and forces on the head post during whisking
Head movement, and independently nasal movement, and sniffing have previously been linked to whisking (Towal and Hartmann, 2006; Cao et al., 2012; Deschênes et al., 2012; Moore et al., 2013; Kurnikova et al., 2017; Dominiak et al., 2019). Here we examined the relationship between whisker motion and nose movement and forces mice apply on the head post when whisking to touch in our goal-directed task. Linear regression models were fit to estimate median nose positions, or median head strain, in each behavioral phase based on the median positions of the four whiskers (Fig. 4A). Interestingly, whisker positions were most closely and significantly linked to the nose position immediately after the cue onset—in the cued-phase (compared with the precue phase; cued, p < 0.0001***; trigger, p = 0.0335*; lick, p = 1.0000, NS; end-of-trial, p = 1.0000; Wilcoxon signed-rank test with Bonferroni’s correction, N = 74 sessions from 15 animals; Fig. 4B).
Figure 4.
Behavioral phase-dependent nose–whisker and head–whisker couplings. A, Model description. The median values during each behavioral time window were computed for the setpoint and amplitude of all the four tracked whiskers. Linear models were fitted to predict the nose position or the head strain during the same behavioral time window based on the eight whisker position related features. Fourfold cross-validation was used to estimate the fitness of the models (cvR2). B, Whiskers–nose coupling. The cvR2 values are shown in Tukey’s box plots. Without distinction of behavioral time windows (“All”), the linear models explained around the half of the trial-to-trial variability in nose positions. The cvR2 values were significantly larger than when the trial-to-trial nose positions were shuffled (“Shuffle”). The linear models restricted to the cued period had significantly larger predictive powers compared with the nonrestricted “All” models. On the other hand, the linear models for licking period had significantly smaller predictive powers. *p < 0.05, **p < 0.01, ***p < 0.001, NS, p > 0.05, Wilcoxon signed-rank test with Bonferroni’s correction. N = 74 sessions of 15 animals. C, Whiskers–head coupling. The cvR2 values are shown in Tukey's box plots. Overall predictive power tended to be small but significantly larger than those based on the shuffled data, explaining ∼20–30% of the total trial-to-trial variability in head strain values. The linear models based on the triggering time window had significantly smaller predictive power than the nonrestricted “All” models. *p < 0.05, ***p < 0.001, NS, p > 0.05, Wilcoxon signed-rank test with Bonferroni’s correction. N = 67 sessions of 14 animals.
Similarly, whisker position and head post strain were also best linked together when the animals attempt to trigger the contact sensor (compared with the precue phase; cued, p = 0.2472, NS; trigger, p = 0.0019**; lick, p = 1.0000, NS; end-of-trial, p = 1.0000, NS; Wilcoxon signed-rank test with Bonferroni’s correction, N = 67 sessions from 14 animals; Fig. 4C). These results imply that the mice recruit nose and head movement to their motor plan when they attempt to move their whiskers to actively touch the contact sensor. The results of this analysis are consistent with the previous studies linking left–right differences in whisking with nose movement (Dominiak et al., 2019).
Trial-to-trial stereotypy and animal-to-animal and day-to-day variability
While we found a few common patterns of whisker/nose movement across behavioral sessions of different animals, we also found a lot of variability across animals, sessions, and trials. To examine the source of the variability, and whether this trial-to-trial variability could be attributed to the differences in the strategies that individual mice used to achieve the goal of the task, we used a principal component approach to examine the data. Each trial was represented as a set of features: the median whisking setpoint, median amplitude values, and median nose positions during three behavioral phases (the contact trigger, lick, and end-of-trial phase). Each trial was visualized using t-SNE to nonlinearly project the high-dimensional feature space into a two-dimensional one while retaining difference information about all the used features. The t-SNE-based visualization revealed that from session to session and animal to animal, these features could form small clusters (Fig. 5A, right). The clusters corresponded to trials belonging to a single behavioral session from an animal or to multiple sessions from a single animal (Fig. 5A).
Figure 5.
Session-wise stereotypy of the goal-directed behavior of the mice. A, t-SNE plots of trial-to-trial variability. The left two panels show representative sessions, and the colors represent the interval in days from the earliest session. The rightmost panel shows all the trials from all sessions of all animals recorded. Here, the colors represent individual animals. B, Analysis of feature-based Euclidian distances. The Euclidean distances were computed based on the Z-scores of individual trials in the high-dimensional feature space. The mean trial-to-trial distance between given two animals (left) or sessions (right) is shown as distance matrices on the top panels. The bottom panels show statistical examination of aggregation of trial features around individual sessions and animals. The aggregation index (AI) was defined as the ratio of the mean within-cluster trial-to-trial distance to the mean intercluster distance. The actual values (magenta) of animal-based (top) and session-based (bottom) AI were significantly larger than the distribution of values based on the shuffled datasets (gray). **p < 0.01, based on the comparison of AI values with N = 500 shuffled datasets. C, Contribution of individual behavioral features of the trial to session-wise aggregation. Each behavioral feature was shuffled one by one, and the corresponding per-feature decreases in session-based AI values from the original dataset were normalized and plotted in terms of mean ± sd. The bars are color-coded according to the behavioral epoch during the trial (trigger, lick, or end of trial). The open bars represent the contribution of the whisking setpoint, and the filled bars indicate the contribution of the whisking amplitude of the animal during the indicated behavioral epoch. The contribution of nose movement is represented as hashed bars. Note that the features related to the trigger phase in general had smaller contribution to session-wise aggregation, whereas those related to the licking phase tended to have larger contribution, regardless of whether they are of whiskers or of nose. D, E, Distribution of session-to-session stereotypy and its correlation (R2 values) with specific behavioral features i.e., amplitude of movement during each behavioral epoch—end of trial, licking, or at trigger onset. The features that resulted in the top 3 (D) and the bottom 3 (E) R2 values are shown. F, Distribution of session-to-session stereotype and its correlation to distance to sensor. Top, The t-SNE plot same as in A is color-coded by the sensor position for the session. The sensor position was related to the whisking angles of the contacting side front whisker. The session-mean t-SNE coordinates have significant predictive power of the sensor position (***p < 0.001, based on the comparison of R2 values with N = 3,000 shuffled datasets). Bottom, The R2 value based on the contact sensor position (magenta) is overlaid on the histogram of R2 values based on individual behavioral features (gray). N = 15 animals, 64 sessions, 4,786 trials.
To examine the state of clustering in detail, we introduced a metric of distance between trials. The extent of the cluster in a behavioral session, within the trial space, was defined as the mean distance between any pair of trials belonging to the session. The distance between a pair of behavioral sessions was defined as the mean distance between any pair of trials out of these two sessions. The metric of this type is distinct from the abovementioned t-SNE-based visualization in the way it retains the distance information of the original high-dimensional feature space. Animal- or session-based distance matrices revealed a set of bright pixels along the diagonal, indicating measurable similarities between trials belonging to an individual animal or to sessions from a single animal. This tendency appeared clearer for the session-based distance matrix than for the animal-based one (Fig. 5B). The aggregation index, i.e., the ratio of intercluster distances to the size of clusters (see Materials and Methods for details), was larger for the actual dataset compared with the shuffled datasets, suggesting that clustering arose from the details of movement in trials belonging to single animals or to sessions from individual animals (Fig. 5C; p < 0.01, based on comparison with 500 shuffled datasets).
Factors mediating behavioral stereotypy and variability
What factors contribute to behavioral variability across animals and sessions? Our definition of trial-to-trial distance included three behavioral features: whisking setpoints, whisking amplitudes, and nose positions, in the distinct behavioral phases. We estimated the contribution of individual behavioral features to trial-to-trial variability by shuffling each feature, one after another, and then computed the change in the aggregation index (Fig. 5D). The contributions of each feature were normalized based on the per-feature reduction in the aggregation index when all the features were shuffled altogether. Our analysis revealed that the animal's behavior during the licking phase contributed most to the aggregation index compared with the other behavioral phases (p < 0.01**, Kruskal–Wallis test and Dunn’s post hoc pairwise tests with Bonferroni’s correction). Furthermore, nose motion had larger per-feature contribution to the aggregation index than the whisker-related features (p < 0.01**, Kruskal–Wallis test and Dunn’s post hoc pairwise tests with Bonferroni’s correction).
Together, these results imply that behavioral variability is reflected by movement of individual body parts, during each behavioral phase, and that the movement is linked to “uninstructed” behavior—nose motion—not to the goal of the task per se, i.e., whisking to touch. Trial-to-trial variability was related to epochs where mice were not engaged in the actual task, i.e., when they were licking.
To examine the contribution of individual behavioral features to the state of clustering in detail, we assessed the extent to which the spatial spread of the t-SNE embedding was in accordance with the variability of each behavioral feature (Fig. 5E,F). We fitted a linear regression model based on the two t-SNE coordinates to predict the value of each behavioral feature separately and estimated the level of linear correlation between them by computing the coefficient of determination (R2). The statistical significance of correlation was assessed by comparison of the dataset to the 3,000 shuffled datasets, where the correspondence between the feature and the t-SNE coordinates was randomized. The state of correlation was also visually examined by color-coding each trial-point based on the value of the behavioral feature (Fig. 5E,F). Consistent with the examination based on the aggregation index (Fig. 5D), the resulting R2 values varied from ∼0.5–0.6 (Fig. 5E) down to <0.1 (Fig. 5F), depending on the behavioral feature. The order of correlation did not necessarily match the one based on the contribution to the aggregation index, presumably because t-SNE takes the inherent interfeature correlation into account, whereas the contribution analysis focuses more on the unique information represented by individual features. The set of most correlating features (Fig. 5E), nevertheless, were consistent with the aggregation index-based analysis, in the sense that “uninstructed” behavior reflected the trial-to-trial and session-to-session variability of the animals’ goal-directed behavior. In particular, behavioral parameters like the amplitude of movement of some whiskers, or nose positions, after triggering the contact sensor explained a large portion of the variance in the clusters (Fig. 5E).
One possibility was that animals use different motor strategies depending on difficulty of the task i.e., on the spatial configuration of the contact sensor and whiskers. To assess this, we tested whether the intersession distance covaried with the distance of the contact sensor from the whiskers (Movies 1, 2). From session to session, mice could position their whiskers closer (Movie 1) or farther from the contact sensor (Movie 2). By performing the same correlation analysis as used for behavioral features, we found that the t-SNE coordinates of individual sessions correlated with the distance of the contact sensor from the resting position of the contacting whisker––a variable that is not explicitly incorporated when computing the t-SNE embedding (R2 = 0.4520, linear regression, p < 0.0001***; Fig. 5F). This result supports the idea that during cue-triggered whisking, mice take into account the variability in position of their bodies relative to elements in the environment that they touch. The spatial environment around the face could be one of the most important sources of session-to-session behavioral variability in this task.
Discussion
Our work shows that mice can control how they move and position individual whiskers. They can control the extent of movement and can even independently control the vigor of whisking on two sides of the face. They can effectively control and coordinate in a behavioral state-dependent manner the spread between whiskers. These results suggest an impressive level of fine spatial-temporal control over single facial muscles. In the course of a trial, mice do not just move a single whisker—a whisker that they have learned to use in a tactile behavior—but they invariably move whiskers bilaterally and they move their nose side to side and apply up and down forces on the head post. Finally, in a single session mice exhibit an extraordinary level of coordination and stereotypy in moving their whiskers and nose to achieve the goal of touching a sensor. A priori, it was possible that from trial to trial and day to day, that mice adjusted how they coordinated their movements, but our work shows the remarkable consistency in what mice move, how they move, and how they adapt their movements to small changes in the external environment.
From an anatomic perspective, these results are not surprising. The two sides of the face have independent muscles with independent points of attachment on the skull, and each mystacial whisker is associated with a sling muscle (Dörfl, 1982; Wineski, 1983; Haidarliu et al., 2010). It should therefore be possible for rodents to exert control over movement of each mystacial vibrissae independently. Despite the anatomical organization, basic questions have lingered: when do rodents control whiskers on just one side of the face? How and when do rodents control single whiskers, and how is this control reflected? Do side to side differences in whisking just reflect direction of head or body movement (Towal and Hartmann, 2006; Dominiak et al., 2019; Bergmann et al., 2022)?
Our work here highlights how anatomy is transformed into function. First, even in highly trained mice, when mice are trained to move a whisker on one side of the face into contact with a sensor, mice invariably move whiskers bilaterally on every trial. This result suggests that facial movements in rodents often have a bilateral component. Second, even though whiskers move bilaterally, movement on the two sides of the face is not identical: whiskers spread apart more on the contacting side, and whiskers are positioned distinctly on the two sides and move with specific vigor at high frequencies on the two sides of the face. Third, mice control the movement of the whisker they used to touch distinctly from the movement of the adjacent whisker. Note that earlier work in head-fixed rats using a very similar paradigm came to the conclusion that rats could move their whiskers independently and that this was mostly evident in the spread between whiskers (Sachdev et al., 2002). In another study of freely moving rats (Grant et al., 2009), the authors also concluded that rats control movement of individual whiskers and that this was evident in the spread of whiskers. But in their study, whisker spread decreased before contact, before touch. In our hands, mice do something very different—they increase the spread of whiskers on contacting side. The different results of the two studies are likely to be related to the context. The goal of whisking in our study was for mice to hit a sensor with enough force to get a reward. In the earlier work, rats were not water deprived, there was no task, and rats were simply exploring their environment (Grant et al., 2009). Additionally, in our earlier work, in the course of navigating a plus maze, side-to-side differences in setpoint of whisking and movement of the nose were evident on every trial as mice planned and executed turns. Whisking direction predicted movement direction and was coordinated with direction of eye movement (Dominiak et al., 2019; Bergmann et al., 2022). In a different set of studies, in head-fixed mice, we have shown that the spread between whiskers could be potentially used as a real-time parameter to trigger rewards (Sehara et al., 2021). Taken together these studies highlight varieties of neural-behavioral strategies that rodents use to control movement of individual whiskers bilaterally.
The present work emphasizes that a number of facial movements are coordinated together in the course of mouse actively using a single whisker in a tactile behavior. On the one hand, it seems that there is complexity and multiple variables to account for—individual whiskers, nose, head post, i.e., neck muscles. On the other hand, the stereotypy is remarkable: multiple aspects of behavior are coordinated from trial to trial, in some animals even from day to day. A significant portion of the variance in coordination can be explained by small changes in how far mice move a whisker.
The coordination and stereotypy in this behavior point to several fundamental issues for systems neuroscientists. First point being emphasized in recent papers by many labs is that variance in neural activity can arise from unexpected sources, like uninstructed movements (Musall et al., 2019; Steinmetz et al., 2019; Stringer et al., 2019). A second point that our work makes is that behavior is fundamentally multimodal involving multiple dimensions that are coordinated together and that activity of a particular neuron or in a particular circuit can be related to any component of the overall behavior. Dissecting this, understanding what a spike or spikes in a circuit relate to, what triggers the activity or what the activity causes, require additional analytical approaches.
In course of a simple action, the brain or the animal actively controls and coordinates the movement of a number of parts of the body. In the present work, the whisker used to touch is the only instructed movement, all other behaviors—the movement of adjacent whiskers, the movement of whiskers on the other side of the face, the movement of the nose, and the forces mice apply on the head post—are uninstructed. Even though it is likely that we have undersampled the actual number of uninstructed behaviors that occur when mice move a whisker to touch (e.g., the posture and limbs probably also change position in a coordinated fashion), it is clear that they move more than just the whisker.
What are the neural mechanisms underlying behavioral variability? One explanation is that variability arises from variability in circuit activity. Activity in subcortical circuits that generate rhythmic behaviors including breathing, sniffing, chewing, and whisking (Cao et al., 2012; Moore et al., 2013; Deschênes et al., 2016; Kaku et al., 2025) could vary or could be variably modulated by cortical (Rodgers et al., 2021), cerebellar (Becker and Person, 2019), or other inputs, with individual inputs controlling setpoint of whisker position and contributing to the stereotyped behaviors observed here. The interaction between these circuits in generating whisking and other behaviors requires additional investigation.
While it is likely that variability in cortical/subcortical activity contributes to behavior, it is highly unlikely that individual cortical or subcortical neurons modulate or coordinate the spectrum of facial movements. What is more likely is that variability in neural activity arises from the interaction between multiple coordinated action sequences—the behavior—and the neural circuits that control and respond to the movement. The timing and kinematics of a particular action—a whisk—varies because of variability in the other aspects of behavior that modulate activity in the brain.
One of fundamental limitations of our study and of all studies that use head fixation is that fixing the head is obviously not natural and can increase an animal’s stress and potentially change the behavior (Nasr et al., 2025). The main reason for using head-fixed preparations is that in the head-fixed condition, it is easier to control and monitor mouse behavior in many dimensions simultaneously. Additionally, head fixation makes it possible to “easily” track many more parameters of body movement: the eyes, whiskers, nose, and limbs (Bergmann et al., 2022) on every trial. In the freely moving, more natural condition, tracking the position of the eyes and whiskers becomes harder because head movement changes the position of the whiskers, nose, and eyes relative to the position of a camera. Furthermore, head movement introduces more variables that are difficult to monitor but could be correlated with interesting neural activity. So, while freely moving animals are ostensibly more natural in their behavior, the unconstrained trial-to-trial complexity in freely moving behavior makes it harder to assess the neural correlates of each pose or each behavior.
Understanding how the brain controls active behavior requires an understanding of the actual details of behavior, the moment-by-moment actions taken to achieve a goal. Our expectation is that knowing what moves when mice move a single whisker to touch will help to better understand both variance in cortical activity and variance in the sensory motor actions mice take in performing tactile behaviors.
References
- Adibi M (2019) Whisker-mediated touch system in rodents: from neuron to behavior. Front Syst Neurosci 13:40. 10.3389/FNSYS.2019.00040 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Arkley K, Grant RA, Mitchinson B, Prescott TJ (2014) Strategy change in vibrissal active sensing during rat locomotion. Curr Biol 24:1507–1512. 10.1016/J.CUB.2014.05.036 [DOI] [PubMed] [Google Scholar]
- Avitan L, Stringer C (2022) Not so spontaneous: multi-dimensional representations of behaviors and context in sensory areas. Neuron 110:3064–3075. 10.1016/j.neuron.2022.06.019 [DOI] [PubMed] [Google Scholar]
- Becker MI, Person AL (2019) Cerebellar control of reach kinematics for endpoint precision. Neuron 103:335–348.e5. 10.1016/j.neuron.2019.05.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Berg RW, Kleinfeld D (2003) Rhythmic whisking by rat: retraction as well as protraction of the vibrissae is under active muscular control. J Neurophysiol 89:104–117. 10.1152/JN.00600.2002 [DOI] [PubMed] [Google Scholar]
- Bergmann R, Sehara K, Dominiak SE, Kremkow J, Larkum ME, Sachdev RNS (2022) Coordination between eye movement and whisking in head-fixed mice navigating a plus maze. eNeuro 9:ENEURO.0089-22.2022. 10.1523/ENEURO.0089-22.2022 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cao Y, Roy S, Sachdev RNS, Heck DH (2012) Dynamic correlation between whisking and breathing rhythms in mice. J Neurosci 32:1653–1659. 10.1523/JNEUROSCI.4395-11.2012 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Carvell GE, Simons DJ (1990) Biometric analyses of vibrissal tactile discrimination in the rat. J Neurosci 10:2638–2648. 10.1523/JNEUROSCI.10-08-02638.1990 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Churchland MM, Afshar A, Shenoy KV (2006) A central source of movement variability. Neuron 52:1085–1096. 10.1016/J.NEURON.2006.10.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Deschênes M, Moore J, Kleinfeld D (2012) Sniffing and whisking in rodents. Curr Opin Neurobiol 22:243–250. 10.1016/J.CONB.2011.11.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Deschênes M, Takatoh J, Kurnikova A, Moore JD, Demers M, Elbaz M, Furuta T, Wang F, Kleinfeld D (2016) Inhibition, not excitation, drives rhythmic whisking. Neuron 90:374–387. 10.1016/j.neuron.2016.03.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dolensek N, Gehrlach DA, Klein AS, Gogolla N (2020) Facial expressions of emotion states and their neuronal correlates in mice. Science 368:89–94. 10.1126/SCIENCE.AAZ9468 [DOI] [PubMed] [Google Scholar]
- Dominiak SE, Nashaat MA, Sehara K, Oraby H, Larkum ME, Sachdev RNS (2019) Whisking asymmetry signals motor preparation and the behavioral state of mice. J Neurosci 39:9818–9830. 10.1523/JNEUROSCI.1809-19.2019 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dörfl J (1982) The musculature of the mystacial vibrissae of the white mouse. J Anat 135:147–154. [PMC free article] [PubMed] [Google Scholar]
- Ebner C, et al. (2019) Optically induced calcium-dependent gene activation and labeling of active neurons using CaMPARI and Cal-Light. Front Synaptic Neurosci 11:16. 10.3389/FNSYN.2019.00016 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Finlayson K, Lampe JF, Hintze S, Würbel H, Melotti L (2016) Facial indicators of positive emotions in rats. PLoS One 11:e0166446. 10.1371/JOURNAL.PONE.0166446 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ghazanfar AA, Schroeder CE (2006) Is neocortex essentially multisensory? Trends Cogn Sci 10:278–285. 10.1016/J.TICS.2006.04.008 [DOI] [PubMed] [Google Scholar]
- Grant RA, Mitchinson B, Fox CW, Prescott TJ (2009) Active touch sensing in the rat: anticipatory and regulatory control of whisker movements during surface exploration. J Neurophysiol 101:862–874. 10.1152/JN.90783.2008 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Grant RA, Mitchinson B, Prescott TJ (2012a) The development of whisker control in rats in relation to locomotion. Dev Psychobiol 54:151–168. 10.1002/DEV.20591 [DOI] [PubMed] [Google Scholar]
- Grant RA, Sperber AL, Prescott TJ (2012b) The role of orienting in vibrissal touch sensing. Front Behav Neurosci 6:39. 10.3389/FNBEH.2012.00039 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Haidarliu S, Simony E, Golomb D, Ahissar E (2010) Muscle architecture in the mystacial pad of the rat. Anat Rec (Hoboken) 293:1192–1206. 10.1002/ar.21156 [DOI] [PubMed] [Google Scholar]
- Haidarliu S, Golomb D, Kleinfeld D, Ahissar E (2012) Dorsorostral snout muscles in the rat subserve coordinated movement for whisking and sniffing. Anat Rec (Hoboken) 295:1181–1191. 10.1002/AR.22501 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Haidarliu S, Kleinfeld D, Deschênes M, Ahissar E (2015) The musculature that drives active touch by vibrissae and nose in mice. Anat Rec (Hoboken) 298:1347–1358. 10.1002/AR.23102 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hartmann MJ (2001) Active sensing capabilities of the rat whisker system. Auton Robots 11:249–254. 10.1023/A:1012439023425 [DOI] [Google Scholar]
- Hartmann MJZ (2011) A night in the life of a rat: vibrissal mechanics and tactile exploration. Ann N Y Acad Sci 1225:110–118. 10.1111/J.1749-6632.2011.06007.X [DOI] [PubMed] [Google Scholar]
- Kaku H, et al. (2025) A brainstem map of orofacial rhythms. bioRxiv (preprint). 10.1101/2025.01.27.635041 [DOI] [Google Scholar]
- Kelso JAS (2009) Synergies: atoms of brain and behavior. In: Progress in motor control. Advances in experimental medicine and biology (Sternad D, ed.), pp 83–91. Boston, MA: Springer. 10.1007/978-0-387-77064-2_5 [DOI] [PubMed] [Google Scholar]
- Knutsen PM, Derdikman D, Ahissar E (2005) Tracking whisker and head movements in unrestrained behaving rodents. J Neurophysiol 93:2294–2301. 10.1152/JN.00718.2004 [DOI] [PubMed] [Google Scholar]
- Knutsen PM, Pietr M, Ahissar E (2006) Haptic object localization in the vibrissal system: behavior and performance. J Neurosci 26:8451–8454. 10.1523/JNEUROSCI.1516-06.2006 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Krakauer JW, Ghazanfar AA, Gomez-Marin A, MacIver MA, Poeppel D (2017) Neuroscience needs behavior: correcting a reductionist bias. Neuron 93:480–490. 10.1016/J.NEURON.2016.12.041 [DOI] [PubMed] [Google Scholar]
- Kurnikova A, Moore JD, Liao SM, Deschênes M, Kleinfeld D (2017) Coordination of orofacial motor actions into exploratory behavior by rat. Curr Biol 27:688–696. 10.1016/J.CUB.2017.01.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Langford DJ, et al. (2010) Coding of facial expressions of pain in the laboratory mouse. Nat Methods 7:447–449. 10.1038/NMETH.1455 [DOI] [PubMed] [Google Scholar]
- McElvain LE, Friedman B, Karten HJ, Svoboda K, Wang F, Deschênes M, Kleinfeld D (2018) Circuits in the rodent brainstem that control whisking in concert with other orofacial motor actions. Neuroscience 368:152–170. 10.1016/J.NEUROSCIENCE.2017.08.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Moore JD, Deschênes M, Furuta T, Huber D, Smear MC, Demers M, Kleinfeld D (2013) Hierarchy of orofacial rhythms revealed through whisking and breathing. Nature 497:205–210. 10.1038/NATURE12076 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Moore JD, Kleinfeld D, Wang F (2014) How the brainstem controls orofacial behaviors comprised of rhythmic actions. Trends Neurosci 37:370–380. 10.1016/J.TINS.2014.05.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Murakami M, Mainen ZF (2015) Preparing and selecting actions with neural populations: toward cortical circuit mechanisms. Curr Opin Neurobiol 33:40–46. 10.1016/J.CONB.2015.01.005 [DOI] [PubMed] [Google Scholar]
- Musall S, Kaufman MT, Juavinett AL, Gluf S, Churchland AK (2019) Single-trial neural dynamics are dominated by richly varied movements. Nat Neurosci 22:1677–1686. 10.1038/S41593-019-0502-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nasr A, Rettinger G, Mansvelder HD, Sachdev RNS, Larkum ME (2025) Automated facial feature evaluation system to prevent stress of head fixed mice. PLoS One 20:e0322530. 10.1371/journal.pone.0322530 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rodgers CC, Nogueira R, Pil BC, Greeman EA, Park JM, Hong YK, Fusi S, Bruno RM (2021) Sensorimotor strategies and neuronal representations for shape discrimination. Neuron 109:2308–2325.e10. 10.1016/j.neuron.2021.05.019 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sachdev RNS, Sato T, Ebner FF (2002) Divergent movement of adjacent whiskers. J Neurophysiol 87:1440–1448. 10.1152/JN.00539.2001 [DOI] [PubMed] [Google Scholar]
- Saraf-Sinik I, Assa E, Ahissar E (2015) Motion makes sense: an adaptive motor-sensory strategy underlies the perception of object location in rats. J Neurosci 35:8777–8789. 10.1523/JNEUROSCI.4149-14.2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schroeder JB, Ritt JT (2016) Selection of head and whisker coordination strategies during goal-oriented active touch. J Neurophysiol 115:1797–1809. 10.1152/JN.00465.2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sehara K, Bahr V, Mitchinson B, Pearson's MJ, Larkum ME, Sachdev RNS (2019) Fast, flexible closed-loop feedback: tracking movement in “real-millisecond-time”. eNeuro 6:6. 10.1523/ENEURO.0147-19.2019 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sehara K, Zimmer-Harwood P, Larkum ME, Sachdev RNS (2021) Real-time closed-loop feedback in behavioral time scales using DeepLabCut. eNeuro 8:2. 10.1523/ENEURO.0415-20.2021 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Severson KS, Xu D, van de Loo M, Bai L, Ginty DD, O’Connor DH (2017) Active touch and self-motion encoding by Merkel cell-associated afferents. Neuron 94:666–676.e9. 10.1016/J.NEURON.2017.03.045 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Severson KS, Xu D, Yang H, O’Connor DH (2019) Coding of whisker motion across the mouse face. eLife 8:e41535. 10.7554/ELIFE.41535 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Steinmetz NA, Zatka-Haas P, Carandini M, Harris KD (2019) Distributed coding of choice, action and engagement across the mouse brain. Nature 576:266–273. 10.1038/S41586-019-1787-X [DOI] [PMC free article] [PubMed] [Google Scholar]
- Stringer C, Pachitariu M, Steinmetz N, Reddy CB, Carandini M, Harris KD (2019) Spontaneous behaviors drive multidimensional, brainwide activity. Science 364:255. 10.1126/SCIENCE.AAV7893 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tantirigama MLS, Zolnik T, Judkewitz B, Larkum ME, Sachdev RNS (2020) Perspective on the multiple pathways to changing brain states. Front Syst Neurosci 14:23. 10.3389/FNSYS.2020.00023 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Towal RB, Hartmann MJ (2006) Right-left asymmetries in the whisking behavior of rats anticipate head movements. J Neurosci 26:8838–8846. 10.1523/JNEUROSCI.0581-06.2006 [DOI] [PMC free article] [PubMed] [Google Scholar]
- van der Loos H, Woolsey TA (1973) Somatosensory cortex: structural alterations following early injury to sense organs. Science 179:395–398. 10.1126/SCIENCE.179.4071.395 [DOI] [PubMed] [Google Scholar]
- van der Maaten L, Hinton G (2008) Visualizing data using t-SNE. J Mach Learn Res 9:2579–2605. [Google Scholar]
- Vincent SB (1912) The functions of the vibrissae in the behavior of the white rat. Chicago, IL: University of Chicago. [Google Scholar]
- Waschke L, Kloosterman NA, Obleser J, Garrett DD (2021) Behavior needs neural variability. Neuron 109:751–766. 10.1016/J.NEURON.2021.01.023 [DOI] [PubMed] [Google Scholar]
- Welker WI (1964) Analysis of sniffing of the albino rat. Behaviour 22:223–244. 10.1163/156853964X00030 [DOI] [Google Scholar]
- Wineski LE (1983) Movements of the cranial vibrissae in the golden hamster (Mesocricetus auratus). J Zool 200:261–280. 10.1111/j.1469-7998.1983.tb05788.x [DOI] [Google Scholar]
- Wineski LE (1985) Facial morphology and vibrissal movement in the golden hamster. J Morphol 183:199–217. 10.1002/jmor.1051830208 [DOI] [PubMed] [Google Scholar]
- Zagha E, Erlich JC, Lee S, Lur G, O’Connor DH, Steinmetz NA, Stringer C, Yang H (2022) The importance of accounting for movement when relating neuronal activity to sensory and cognitive processes. J Neurosci 42:1375–1382. 10.1523/JNEUROSCI.1919-21.2021 [DOI] [PMC free article] [PubMed] [Google Scholar]





