Introduction

Accurate perception of your directional heading is essential for successful navigation. Numerous studies have identified populations of cells within various brain areas that discharge as a function of the animal’s directional heading, independent of its location and on-going behavior. These cells, referred to as head direction (HD) cells were originally identified in the postsubiculum of rats1, but have since been identified in many limbic system and cortical areas, as well as across many different species—from insects2, to fish3, to non-human primates4. How the HD signal is generated has been a subject of investigation for several decades now. Studies using a variety of approaches have demonstrated that an intact vestibular labyrinth is critical for the generation of the HD signal5,6,7 — particularly in the anterodorsal thalamus (ADN), where HD cells are abundant8. To date, lesions of the ADN have led to the loss of direction-specific firing in all cortical, striatal, and other limbic areas where HD cells are present9. Further, lesions of subcortical structures (supragenual nucleus, DTN, LMN) that connect the vestibular nuclei, either directly or indirectly, to the ADN impair direction-specific firing in the ADN10,11,12 and suggest that there is an overall serial structure to processing the HD signal. It is generated in subcortical areas, transmitted to the ADN, which is used as a key node, and then conveyed broadly to many cortical areas13,14 (Fig. 1A).

Fig. 1: Generation of the HD signal.
figure 1

A Circuit diagram showing the major brain areas and pathways involved in generating the head direction (HD) signal and conveying it to cortical areas in rodents. Vestibular and motor information originates from the vestibular nucleus and is projected rostrally to the supragenual nucleus and then to dorsal tegmental nuclei (DTN) and lateral mammillary nuclei (LMN). Landmark spatial information is processed in the cortex and is projected caudally from the postsubiculum to the LMN. All connections are excitatory except the pathway denoted in red. B Ring attractor network model of how the head direction signal is generated. This model contains three cell rings. The head direction ring contains head direction cells representing different preferred firing directions and are not sensitive to angular head velocity (AHV). HD cells project to nearby HD cells that represent adjacent HDs and are excitatory. They also project to rotation cells that represent similar HDs. Two additional rings contain rotation cells — one for clockwise (CW) turns and one for counter-clockwise (CCW) turns. Each rotation cell is conjunctively sensitive to HD and AHV and receives inputs from both the HD cell ring and from vestibular inputs conveying AHV information. Rotation cells in turn project back to HD cells in the HD ring that are either CW or CCW shifted from the HD cell representing the current HD. Landmark cells, which connect directly to the HD ring convey spatial information about landmarks that are typically from visual sources, but can be from other types of sensory cues. Modified from Skaggs et al. 1995. C Histological images showing electrode tracks through the LMN (top) and DTN (bottom) from representative animals from LMN (n = 27) and DTN (n = 10). Dashed circles encircle LMN and DTN on the side opposite where the electrode track can be seen (LMN: white arrow; DTN black arrow). For the LMN section, a Prussian blue reaction is evident where the electrode tips ended. The white dashed line indicates the midline in each section. The tissue to the left of the midline in the DTN section is a little deformed due to passage of the electrode array.

Studies that have investigated the generation of the HD signal have conceptually focused on models where a network of neurons is inter-connected in a ring-attractor structure15,16,17,18. The animal’s current HD is represented by a ‘hill of activity’ on the ring that moves to a new orientation when the animal makes a head turn. If an attractor type network underlies the formation of the HD signal, the next question is where this network resides in the brain. In rodents there are several lines of evidence that support the view that the signal arises from reciprocal connections across the dorsal tegmental nucleus (DTN) and lateral mammillary nuclei (LMN)9,14 (Fig. 1A). First, most attractor models contain both excitatory and inhibitory sets of connections, and previous anatomical studies in rats have shown that there are excitatory projections from LMN → DTN and inhibitory projections from DTN → LMN19,20,21. These sets of connections make it an attractive candidate for a site where an attractor network might reside (for a discussion of this issue, see refs. 7,22). Second, studies that interfere with the HD signal in brain areas upstream from the DTN/LMN have shown that cells in the ADN become bursty, although the burst activity is not tied to a particular direction. In contrast, interfering with brain areas either in DTN/LMN or in areas downstream from them do not lead to bursty behavior in ADN neurons or in neurons in other efferent brain areas7. Researchers have interpreted these findings to suggest that impairing brain areas afferent to the zone where the HD signal is generated leave the attractor network intact, but unstable, causing the activity hill to drift unpredictably across different directions.

One key component of a HD attractor network are cells that are referred to as rotation cells. These cells are simultaneously sensitive to both HD and angular head velocity (AHV) and were first postulated by Skaggs et al.15 (also see ref. 23) (Fig. 1B). Rotation cells are critical for shifting the activity hill to a new orientation during a head turn as they control which HD cells on the ring receive input to determine the new orientation. Currently, rotation cells have not been reported in rodents in areas where the HD signal is generated. While AHV-only cells (i.e., cells only sensitive to AHV and not HD) have been identified in several brainstem areas afferent to the attractor network site, including the supragenual nucleus and nucleus prepositus, few, if any, display concurrent direction-specific firing24. AHV cells alone, though, are not sufficient to shift the activity hill properly because they are connected to all the HD cells on the ring and would be unable to differentiate which HD cells need to receive the AHV information in order to accurately shift the activity hill to a new orientation. Downstream from LMN, HD cell firing in the ADN is mildly correlated with AHV8,25; however, plots of firing rate vs. AHV for these cells showed little AHV tuning26. Within the DTN – LMN network, AHV-only cells (i.e., cells that are not conjunctive with HD) have been reported in both LMN and DTN, but for the most part did not display any directional selectivity27,28,29. Further, similar to ADN HD cells, LMN HD cells were positively correlated with AHV, but AHV tuning curves were not constructed for these cells27,30. In the DTN, only a few HD cells have been reported, and except for one cell, they did not display any AHV sensitivity28,29. Taken together, the leading hypothesis for how and where the HD signal is generated is that a ring attractor network composed of HD-only cells that are not sensitive to AHV exists across the DTN and LMN. Within these nuclei there are rotation cells that are sensitive to both HD and AHV and these cells receive direct inputs from AHV-only cells in the SGN. Rotation cells make synaptic contacts onto the HD-only cell ring in DTN/LMN and determine which HD cells in the attractor ring shift the activity hill to a new orientation following a head turn (Fig. 1B).

In sum, both HD-only cells (classic HD cells)1 and AHV-only cells have been identified in several brain areas. While an attractor network remains the leading explanation for the generation of the HD signal in mammals, a key component of this model, the rotation cell, with strong tuning to both parameters (HD + AHV), has yet to be identified in mammals in areas where the HD signal is generated. Here we report the identification of such cells in both LMN and DTN. We show that there are two distinct types of HD cells in each of these brain areas – with one type displaying no AHV sensitivity and the second type exhibiting robust AHV tuning. We also demonstrate that a significant proportion of these conjunctive HD + AHV cells, as well as AHV-independent HD cells, are also sensitive to the animal’s linear head speed (velocity)(LHS).

Results

Lateral mammillary nuclei (LMN)

A total of 667 cells were recorded from the LMN (Fig. 1C, top) while rats (n = 27) foraged for small food pellets in a cylindrical enclosure (76 cm diameter) that were dispersed randomly around the apparatus. A single prominent visual cue attached to the inside wall of the cylinder served as the only intentional cue that the rats could use as a reference point. Recording sessions were 8-16 min in duration and were always conducted under lit conditions.

Of the 667 cells recorded, 113 cells (16.9%) were classified as HD cells, 74 of which were sufficiently stable to include in the following analyses. This HD cell population included a wide range of directionally tuned cells. Some cells displayed ‘classic’ tuning curves (e.g., Column 1: Figs. 2A, 3B, C, 4C and 5C), while others are best described as HD-modulated cells and contained broader directional firing ranges, higher background firing rates, and lower Rayleigh values (e.g., Column 1: Figs. 2C, 3E, 4B, D and 5A, D) (see Supplementary Fig. 1). In general, the LMN tuning curves, including those classified as classic, were not as sharp as those observed in the ADN8, with broader directional firing ranges. Nonetheless, all cells had significant Raleigh values (p < 0.01) and each cell passed a shuffle test (falling within the top 1st percentile, see Methods). The inclusion of HD-modulated cells in the data set resulted in a lower mean Rayleigh value across this population, 0.516 ± 0.023 (range: 0.131–0.943, median: 0.512) compared to values from previous studies (ADN: 0.710 ± 0.018, median: 0.757, range: 0.330–0.954; postsubiculum: 0.628 ± 0.020, median: 0.636, range: 0.305–0.973)26. Similarly, the mean directional firing range was larger than that reported in earlier studies, mean: 184.3 ± 5.5° (range: 70.9–291.1°, median: 190.6°). All recorded cells demonstrated stability throughout the recording session; the mean correlation between the first and second halves of a session were >0.5 for 73 out 74 cells (mean: 0.872 ± 0.014, median: 0.915), with the remaining cell having a half session correlation of 0.399. As with previous studies, peak firing rates varied considerably among LMN HD cells, ranging from 4.9 to 239.3 spikes/s (mean: 56.6 ± 5.6 spikes/s; median: 40.6 spikes/s). Supplementary Table 1 summarizes HD cell properties among LMN cells classified as HD cells.

Fig. 2: LMN AHV-independent cells.
figure 2

AF Six LMN HD cells are depicted that were not angular head velocity (AHV) sensitive. Each row is one cell. Starting at the left, the first column shows the HD x firing rate tuning curve with Rayleigh value (R). The second column depicts the HD tuning curve for the same cell but is divided into two functions based on whether the animal was turning CW (red) or CCW (blue). The third column shows the AHV tuning curve. The fourth column displays the linear head speed (LHS) tuning curve. All axes are labelled as shown in the top row. The hemisphere the cell was recorded from is indicated on the left in each AHV plot. Abbreviations are as shown in legend for Fig. 1. Source data are provided as a Source Data file.

Fig. 3: LMN asymmetric-unresponsive HD + AHV cells.
figure 3

AE Five LMN HD cells are shown that were AHV sensitive and classified as Asymmetric-unresponsive cells. Each row is one cell. The cells in A, C, and E were recorded from the right hemisphere, while the cells in B and D were recorded from the left hemisphere. Note that the direction of AHV sensitivity (CW or CCW) is towards the hemispheric side where the electrode was implanted. Formatted columns are the same as Fig. 2. All axes are labelled as shown in the top row. R corresponds to the cell’s Rayleigh value. The hemisphere the cell was recorded from is indicated on the left in each AHV plot. Abbreviations are as shown in legends for Figs. 1 and 2. Source data are provided as a Source Data file.

Fig. 4: LMN symmetric HD + AHV cells.
figure 4

AE Five LMN HD cells are shown that were AHV sensitive and classified as Symmetric cells. Each row is one cell. Formatted columns are the same as Fig. 2. All axes are labelled as shown in the top row. R corresponds to the cell’s Rayleigh value. The hemisphere the cell was recorded from is indicated on the left in each AHV plot. Abbreviations are as shown in legends for Figs. 1 and 2. Source data are provided as a Source Data file.

Fig. 5: LMN inverted HD + AHV cells.
figure 5

AD Four LMN HD cells are shown that were AHV sensitive and classified as Inverted cells. Each row is one cell. Formatted columns are the same as Fig. 2. All axes are labelled as shown in the top row. R corresponds to the cell’s Rayleigh value. The hemisphere the cell was recorded from is indicated on the left in each AHV plot. Abbreviations are as shown in legends for Figs. 1 and 2. Source data are provided as a Source Data file.

We next determined whether these HD cells were also sensitive to the animal’s AHV. 27 of the 74 LMN HD cells (36.5%) passed our AHV criteria test (see Methods) and were classified as AHV-dependent. The remaining 47 cells (63.5%) showed no significant AHV sensitivity in their tuning curves and were considered AHV-independent (Table 1). Column 3 of Figs. 25 show AHV tuning plots for 6 cells that were not tuned to AHV (Fig. 2) and for 14 cells that were classified as AHV dependent (Figs. 35). Across the AHV-dependent cells there was a wide range of AHV sensitivity from mild (e.g., Figs. 4A and 5C) to strong (e.g., Figs. 3C, E, 4B, D and 5B).

Table 1 Summary of HD, AHV, and LHS properties for all LMN, DTN, and ADN HD cells

To measure the strength of AHV sensitivity we calculated an AHV score for each cell (see Methods). AHV-independent HD cells had lower AHV scores with 38 out of 47 cells having scores <4.0. In general, AHV-independent HD cells that had higher AHV scores >4.0 had poor looking AHV tuning curves and either did not pass the shuffle test or had a poor correlation between the first and second halves of the session and were therefore not classified as AHV-dependent (e.g., Fig. 2F). The mean AHV scores for AHV-dependent and AHV-independent HD cells were 12.48 ± 1.31 and 2.91 ± 0.51, respectively, and were significantly different from one another (one-way ANOVA, F1,72 = 64.34, p < 0.00001).

AHV tuning plots were also constructed for each cell using only samples that fell within the cell’s directional firing range ( ± 60° of the cell’s preferred firing direction). In general, the HD-independent and HD-dependent AHV plots were similar to one another (19 out of 27 cells), although the overall firing rates were higher for the HD-dependent plots because of the increased firing rate that occurred around the cell’s preferred firing direction compared to outside of it. Supplementary Fig. 2 shows representative examples of the similarity between HD-independent and HD-dependent AHV tuning curves (Supplementary Fig. 2A, B) along with two examples when they were different (Supplementary Fig. 2C, D).

The AHV-dependent cells were further classified based on the shape of their AHV tuning curve. Previous studies on AHV cells have categorized them based on four subtypes (see refs. 24,28):

1) Symmetric: cells that were AHV sensitive for both clockwise (CW) and counterclockwise (CCW) head turns.

2) Asymmetric: cells that were sensitive for both CW and CCW head turns, but firing increased for one direction (e.g., CW) and decreased for the other direction (e.g., CCW).

3) Asymmetric-unresponsive: cells displayed increased firing for one turn direction, but were unresponsive in the opposite turn direction (flat tuning curve).

4) Inverted: cells that displayed decreasing firing rates for both CW and CCW head turns, with occasional cells showing a decreased firing rate in one turn direction and non-responsive in the other direction.

Using the HD-independent AHV plots from the 27 AHV-dependent cells, none of the cells were classified as Asymmetric, 14 cells were classified as Asymmetric-unresponsive (Fig. 3), 8 cells were classified as Symmetric (Fig. 4), and 5 cells were classified as Inverted (Fig. 5) including one cell that was asymmetric (decreased firing in one direction and unresponsive in the opposite direction, Fig. 5D). Figure 6D left shows a pie chart summarizing the percentages of AHV cell types for HD cells that displayed AHV sensitivity in LMN.

Fig. 6: LMN and DTN properties.
figure 6

Comparison of peak firing rate (A), AHV score (B) and LHS score (C) between AHV-dependent and AHV-independent HD cells in LMN and DTN (LMN: AHV-dependent n = 27, AHV-independent n = 47; DTN: AHV-dependent n = 22, AHV-independent n = 15). The legend for AC is shown at the top of (B). Overall, HD cells that were AHV-dependent had significantly higher peak firing rates, AHV scores, and LHS scores than AHV-independent cells for LMN, but only for peak firing rate for DTN (A). There were also significant differences for all three parameters for AHV-dependent HD cells between LMN and DTN. Within brain area comparisons between AHV-dependent and AHV-independent cells used one-way ANOVAs, while comparisons across brain areas (LMN vs. DTN) used two-way ANOVAs. See text for statistical values. *p < 0.05, **p < 0.01, ***p < 0.001, ****p < 0.0001. D Pie charts showing the proportion of cell types in LMN (left; n = 74), DTN (center; n = 37), and ADN (right; n = 242). Note, only HD cells are shown. The proportion of AHV-dependent HD cells and those with LHS sensitivity were higher in DTN than in LMN, and both were considerably higher than in ADN (Chi-square tests). E Pie charts showing the proportion of AHV cell types in LMN (left) and DTN (right). Note: only HD + AHV and HD + AHV + LHS cells are shown. F Relationship between a cell’s peak firing rate and its AHV score for all LMN AHV-dependent HD cells. Cells with higher peak firing rates generally had larger AHV scores. Dashed line shows the best-fit line for the data. G Same as F except for DTN AHV-dependent HD cells. H Plots displaying the relationship between AHV vs. LHS scores across all AHV dependent HD cells (HD + AHV) for LMN (n = 27). Dashed line indicates the best-fit line for the data. I Same as H except for DTN AHV-dependent HD cells (n = 22). Abbreviations are as shown in legends for Figs. 1 and 2. Source data are provided as a Source Data file.

It is noteworthy that Asymmetric-unresponsive HD cells had unequal peak firing rate amplitudes in their CW vs. CCW HD tuning curves. This pattern is evident for all cells shown in column 2 of Fig. 3 where the side that was more sensitive to AHV had a higher firing rate in the CW-CCW HD plot. In contrast, this observation was not evident for Symmetric or Inverted cells (compare the CW-CCW plots across Figs. 35, column 2).

We next examined whether the AHV sensitivity of Asymmetric-unresponsive cells was related to the hemisphere from which the cells were recorded. In the majority of cases (11 out of 15, 73.3%) the responsive portion of the AHV tuning curve corresponded to head turns toward the same side as the implanted electrode array (Fig. 3A–D). However, there were four cells (26.7%), all recorded from one rat, that showed the opposite response pattern (Supplementary Fig. 3). Indeed, all Asymmetric cells recorded from this rat were AHV sensitive for head turns opposite the implant side, differing from the response patterns observed in other rats (n = 8). The reason for this difference is not clear.

We next analyzed whether the conjunctive HD-AHV cells correlated with any particular HD cell properties compared to HD cells that were not AHV sensitive. We found that conjunctive HD + AHV cells were more likely to have higher peak firing rates compared to AHV-independent HD cells (Fig. 6A left; one-way ANOVA, F1,72 = 17.02, p = 0.00098). Furthermore, within the AHV-dependent HD cell population, a strong correlation was observed between a cell’s peak firing rate and its AHV score (r25 = 0.794, p < 0.01) (Fig. 6F). However, there were no significant differences between AHV-dependent and AHV-independent HD cells in measures of Rayleigh values, directional firing range, directional information content, or half-session correlation (a measure of spatial stability across the session); all p’s n.s. Table 2 summarizes these comparisons for LMN cells. Further, there was no propensity for higher AHV scores to be associated with a particular AHV cell type (i.e., symmetric vs. asymmetric-unresponsive vs. inverted).

Table 2 Comparison of HD, AHV, and LV properties between AHV-independent and AHV-dependent HD cells within and across brain areas

In summary, two distinct types of HD cells were identified in the LMN, with one type sensitive to the animal’s AHV, while the second type was not sensitive to the animal’s AHV.

Sensitivity to linear head-speed (velocity)

We next assessed whether the HD cells were sensitive to linear head speed by analyzing their firing rate vs. LHS tuning plots (see Methods). These plots were constructed using data that excluded samples when the rat was turning its head at speeds > 10 °/sec as this would confound the analysis for LHS. All HD cells depicted in Figs. 25 show their LHS tuning curve in column 4. While some cells display LHS sensitivity throughout their tuning curve (i.e., 0-30 cm/s) (Figs. 3C, 4A, C and 5A), some cells only contained LHS sensitivity in the range of 0-10 cm/s (Figs. 3B, E and 4B, D). For purposes of describing how many cells contained LHS sensitivity at the population level, we grouped both the 0-30 cm/s and the 0-10 cm/s groups together. Of the 74 HD cells, 21 cells (28.4%) were classified as sensitive to LHS, including 6 cells that were only LHS sensitive in the 0-10 cm/sec range. Of these 21 LHS sensitive HD cells, 15 of them (71.4%) were also sensitive to AHV. Further, of the 27 AHV-dependent HD cells discussed above, 15 of them (55.6%) were sensitive to LHS. Figure 6D left is a pie chart summarizing the percentage of HD cells in each category. Figure 6C left plots all HD cells based on their LHS score and whether they were classified as AHV-dependent or AHV-independent. Overall, AHV-dependent cells had higher LHS scores than AHV-independent cells (means: 36.33 ± 7.55 vs. 13.49 ± 5.08) (one-way ANOVA, F1,72 = 6.72, p = 0.0116).

Cells that were sensitive to LHS could either have positive slopes (increased firing with increasing LHS), n = 19 (Figs. 3B, C, E and 4A–D), or negative slopes (deceased firing with increasing LHS), n = 2 (Fig. 5A). LHS sensitive cells were found across all three AHV-dependent cell types: Symmetric (n = 7), Asymmetric-unresponsive (n = 7), and Inverted (n = 1). Thus, there was no apparent trend linking specific AHV cell subtypes with LHS sensitivity among cells that were tuned to both AHV and LHS. Next, we examined the AHV-independent population of HD cells (n = 47). Among this group, only 6 cells (12.8%) were sensitive to LHS (e.g., Fig. 2F). Finally, we examined the relationship between AHV and LHS scores across all HD cells. Figure 6H plots a cell’s AHV score versus its LHS score for HD AHV-dependent cells; there was only a weak correlation between these two parameters (r25 = 0.282, n.s.).

Dorsal tegmental nuclei (DTN)

In a different set of animals (n = 10), we recorded 536 cells from the DTN (Fig. 1C, bottom) of which 41 cells (7.6%) were classified as HD cells and 37 of these cells were sufficiently stable to include in the following analyses. The lower number of HD cells recorded in DTN compared to LMN reflects the much smaller percentage of HD cells present in the DTN compared to AHV-only cells28,29. Many of the HD cells recorded in the DTN were better described as HD-modulated cells, as the cells had broad directional firing ranges and lacked sharp tuning curves (see Fig. 7A, D, F, H, column 1). Supplementary Table 1 summarizes the mean values for different HD cell properties. Compared to LMN HD cells, DTN cells had significantly lower mean peak firing rates, Rayleigh values, and information content scores, while their directional firing ranges were significantly broader.

Fig. 7: DTN HD cells.
figure 7

Eight DTN HD cells are shown with each row representing one cell. AC Three HD cells that were not sensitive to AHV. The cell in A was not sensitive to LHS, while the cell in B was sensitive to LHS. The non-AHV HD cell in C is notable because it has a negative sloped tuning curve for linear head speed. DF Three HD + AHV cells that were sensitive to AHV and classified as Asymmetric. The cells in D and E were recorded from the same animal. Note that the cell in D is sensitive for CW directions, while the cell in E is sensitive for CCW directions. Thus, cells sensitive to different turn directions can be found within the same DTN nucleus. While the cell in D appears mildly sensitive to LHS (LHS score: 35.4), it was not classified as such because the half session analysis indicated the LHS sensitivity was not present in the second half of the session. The cell in E was also not classified as sensitive to LHS (LHS score: 1.8). The cell in F was symmetric at low AHVs (0–70°/s), but asymmetric at high AHVs ( > 70°/s). G, H Two HD + AHV cells that were sensitive to AHV and classified as Symmetric. The cells in G and H were both sensitive to LHS. Formatted columns are the same as Fig. 2. All axes are labelled as shown in the top row. R corresponds to the cell’s Rayleigh value. The hemisphere the cell was recorded from is indicated on the left in each AHV plot. Abbreviations are as shown in legends for Figs. 1 and 2. Source data are provided as a Source Data file.

Using the same criteria to classify cells as AHV sensitive, 22 of the 37 DTN HD cells (59.4%) were classified as sensitive to AHV, with 9 cells classified as asymmetric-unresponsive (Fig. 7D–F, column 3), 13 cells classified as symmetric (Fig. 7G, H, column 3), and no cells classified as inverted (Fig. 6E right). This proportion of AHV-dependent cells was higher and significantly different from the percentage in LMN (Χ2 = 5.28, p = 0.0216). The remaining 15 cells (40.6%) showed no AHV sensitivity in their tuning curves and were classified as AHV-independent (Fig. 7A–C, column 3). Figure 6D middle shows a pie chart summarizing the percentages of AHV cell types for HD cells that displayed AHV sensitivity in DTN. In contrast to LMN, there was no significant difference in the peak firing rates between AHV-dependent and AHV-independent cells in DTN (one-way ANOVA, F1,35 = 0.479, p = 0.494; Fig. 6A, right). However, as with LMN, AHV scores for DTN AHV-dependent HD cells correlated strongly with peak firing rate (r20 = 0.707, p < 0.01; Fig. 6G). The mean AHV score for AHV-dependent DTN cells was 9.18 ± 1.28 and was significantly different from AHV-independent DTN cells (mean AHV score: 2.31 ± 0.542; one-way ANOVA, F1,35 = 18.00, p = 0.000154), but not significantly different from LMN AHV-dependent HD cells (two-way ANOVA, F(1,107) = 3.71, p = 0.057; Fig. 6B).

We next tested whether there were differences in HD cell properties for AHV-dependent cells between DTN and LMN (Table 2). Two-way ANOVAs with Tukey post-hoc tests revealed that AHV-dependent LMN HD cells had higher peak firing rates (F(1,107) = 20.52, p < 0.001), Rayleigh values (F(1,107) = 5.48, p = 0.021), directional firing ranges (F(1,107) = 4.75, p = 0.032), and directional information content values (F(1,107) = 6.99, p = 0.009) than AHV-dependent DTN HD cells.

When examining the HD + AHV asymmetric population in DTN, we found that cells sensitive to different turn directions (CW vs. CCW) could be found within the same DTN nucleus. For example, the two cells depicted in Fig. 7D, E were recorded from the same animal in the same hemisphere. The cell in D was sensitive for CW directions, while the cell in E was sensitive for CCW directions.

In terms of sensitivity to LHS, 20 of 37 DTN HD cells (54.1%) were also sensitive to LHS. Among the 22 AHV-dependent cells, 15 of them (68.2%) were also sensitive to LHS. Thus, the percentage of LHS sensitive cells in DTN was greater than in LMN (54.1 vs. 28.4%, Χ2 = 6.98, p = 0.0082), but the percentage of LHS sensitivity amongst AHV-dependent cells was similar (68.2 vs. 55.6%, Χ2 = 0.815, p = 0.367) between the two areas. Like LMN cells, for some DTN cells (n = 6) the LHS sensitivity was only present in the 0-10 cm/sec range (Fig. 7D, E). All DTN sensitive LHS cells had positive correlations between LHS and firing rate except for one cell that had a negative correlation (Fig. 7C); this cell was not sensitive to AHV. For DTN HD cells, LHS scores were not significantly different between AHV-dependent and AHV-independent groups (one-way ANOVA, F1,35 = 1.19, p = 0.283; Fig. 6C, right), as well as between LHS scores for AHV-dependent cells in DTN and LMN (two-way ANOVA, F(1,107) = 1.50, p = 0.223). We then examined the AHV-independent population of HD cells (n = 15). Within this group, only 5 cells (33.3%) were sensitive to LHS (Fig. 7B, C). Figure 6D center summarizes the proportion of different HD cell types for DTN and demonstrates the larger percentage of cells sensitive to AHV in DTN compared to LMN (Fig. 6D left).

Finally, we investigated the relationship between AHV and LHS scores across AHV-dependent cells (n = 22; Fig. 6I). We found a weak positive correlation between these two parameters, but it was not significant (r20 = 0.416, n.s.). Tables 1 and 2 summarize the differences between AHV-independent and AHV-dependent HD cells for DTN, as well as comparing them to LMN HD cells.

Comparison to HD cells in the ADN thalamus

Previous studies have shown that the ADN thalamus contains a substantial population of HD cells, with a high percentage of them classified as classical ones8. Further, the ADN thalamus is thought to function as a key node in broadcasting the HD signal to several cortical structures. To assess the extent of conjunctive tuning between direction-specific firing, AHV, and LHS in the ADN, we analyzed a population of ADN HD cells recorded in previous studies (n = 242 cells). Using the same AHV criteria as described above for LMN HD cells, we found that only a small number of ADN HD cells, n = 12 (4.96%), were conjunctively tuned to AHV (Fig. 6D, right). Among this group, 9 cells were classified as symmetric, 1 cell was classified as asymmetric-unresponsive, and 2 cells were classified as inverted (examples of a Symmetric cell and an Inverted cell are depicted in Fig. 7 of Clark et al., 2024). This proportion of AHV-dependent HD cells in the ADN is much less than in the LMN and DTN. Further, even among the cells that were classified as AHV-dependent in ADN, the sensitivity to AHV in this population was weaker compared to LMN and DTN, as indicated by the lower mean AHV score for this group (7.08 ± 0.60) compared to 12.48 ± 1.31 and 9.18 ± 1.28 for LMN and DTN AHV-dependent cells, respectively. In terms of LHS sensitivity, we found that only 6 out of 242 cells (2.5%) were classified as sensitive to LHS, which is lower than the percentage that was sensitive to AHV (4.9%), and much lower than the proportions for LMN (44.6%) and DTN (48.6%). Of the 12 AHV-dependent ADN HD cells, 3 of them (25.0%) were also sensitive to LHS. Tables 1 and 2 summarize the properties of ADN cells and compares them to LMN and DTN.

Discussion

Our results demonstrate that there are two distinct types of HD cells in the LMN – one that is conjunctively dependent with AHV and one that is AHV-independent. About one third of the HD cells in LMN were sensitive to AHV and exhibited one of three different types of AHV tuning - Symmetric, Asymmetric-unresponsive, and Inverted. These AHV-dependent HD cells form a distinct population of cells that are different from the AHV-only cells, which are not sensitive to HD, and have previously been reported in the LMN27. The presence of AHV-dependent and AHV-independent HD cells was also observed in the DTN, where an even larger proportion of HD cells were AHV-dependent ( ~ 60%). As with the LMN, this HD AHV-dependent population is different from the AHV-only, non-HD population of cells previously reported in DTN28,29. In addition, both symmetric and asymmetric-unresponsive AHV-dependent cell types were observed in DTN with proportions comparable to LMN, but we did not observe inverted cell types in the DTN. Further, we did not find any differences in HD cell properties between AHV-dependent and AHV-independent HD cells, although LMN HD cells that were AHV-dependent were more likely to contain higher peak firing rates. In contrast, the ADN thalamus, an area that contains a high percentage of HD cells8, contained very few AHV-dependent HD cells ( < 5%), and even the ones that were identified as conjunctive, their AHV sensitivity was notably weaker than in LMN (Table 2). Earlier studies on ADN HD cells found a significant correlation with between cell firing and AHV8,25. However, those analyses were based on correlating the spike time series with the AHV time series for all samples rather than AHV tuning curves. As reported here, when such tuning curves were constructed, very few ADN HD cells displayed AHV sensitivity that met our criteria.

The ADN receives a major input from LMN and is critical for transmitting the HD cell signal to various cortical areas including the postsubiculum, medial entorhinal, postrhinal, and medial precentral cortices31,32,33,34. Interestingly, HD cell recordings from most of these areas displayed little AHV sensitivity based on the construction of AHV tuning curves26. In contrast, a recent study in mouse retrosplenial cortex identified both HD-only and conjunctive HD + AHV cells, with 71% being of the conjunctive type35. They also identified AHV-only cells that were HD independent and included all three types of AHV tuning (symmetric, asymmetric, and inverted). Although yet to be demonstrated experimentally, it is likely that the retrosplenial cortex receives its HD information from the ADN directly, or indirectly from ADN → postsubiculum → retrosplenial cortex. In contrast, the AHV information encoded in retrosplenial cortex cells is unlikely to be derived from ADN, since so few ADN HD cells ( < 5%) encode a significant amount of AHV information. Nonetheless, we cannot exclude the possibility that the small number of HD + AHV cells present within the ADN are sufficient to provide AHV information to retrosplenial cortex. Similarly, other studies have reported cells in the medial entorhinal cortex (MEC) that are sensitive to the direction of rotational movement in a virtual-reality task36. Although the AHV information in retrosplenial cortex and MEC could be self-generated, it is more likely that they both receive AHV information from other cortical (or subcortical) areas as Hennestad et al.37 found that a vestibular-dependent AHV signal is widespread across many cortical areas. Consistent with this view, when lesions are made to ADN thalamus, HD cells in the striatum and medial precentral cortex lose their direction-specific firing, but AHV cells in the same locale are unaffected and maintain their AHV sensitivity33 - demonstrating that the ADN is not the primary source of AHV information to these areas, but instead receives it from more direct projections arising from brainstem structures containing AHV signals. Taken together, our findings highlight the distinctions between HD signaling in subcortical regions (DTN and LMN) and the ADN, emphasizing the importance of the DTN-LMN network in generating the conjunctive HD + AHV signals and the more specialized role of ADN in conveying HD information to cortical structures.

Our results also showed that a significant number of HD cells, in both LMN and DTN, were also sensitive to LHS – especially among those cells that were also sensitive to AHV. This finding was somewhat unexpected, but it does not appear to be an artifact of our methodology in calculating LHS, since applying an alternative method for calculating LHS that used longer sampling intervals (250 msec episodes rather than 16.6 msec intervals) returned similar results (data not shown). Given that LHS was encoded by some HD cells, but not others, suggests that HD cell types can be further classified into different categories beyond just AHV-independent or AHV-dependent. In addition, given that angular velocity and linear speed encode different parameters of movement, the functional significance of these conjunctive HD + AHV + LHS cells is not clear, although it is possible that these cells signal the extent of movement in a particular HD. Because our animals were moving in an open-field environment, we were limited in the number of samples collected when the rat was moving forward linearly, even when we restricted samples to data points where the AHV component was <10°/sec. Recording these cells when an animal is performing a task on a linear track, which would limit the extent of head turns, would aid in addressing the extent of sensitivity to LHS.

A major goal of this study was to determine whether ‘Rotation cells’ exist within the brain areas believed to generate the HD signal. McNaughton and colleagues15,23 originally proposed that cells sensitive to both HD and AHV were necessary for an attractor network to effectively update the HD signal following a head turn. AHV-only cell firing most likely originates from vestibular nuclei input and provides AHV information to the HD network24. However, this signal does not appear to be sufficient by itself, to update the HD signal because it does not represent the animal’s head direction. Accordingly, AHV cell activity would be unable to differentiate which HD cells need to be activated at any moment and therefore could not move the activity hill correctly. Therefore, there must be a mechanism whereby only the cells currently active in the attractor ring are to be excited by AHV in the appropriate direction (CW or CCW) in order to update the perceived directional heading following a head turn. By their nature, the conjunctive HD + AHV cells therefore provide a unique firing pattern that ensures the proper set of HD cells receives the necessary information to shift the activity hill toward the next HD state. For this event to occur, in addition to the HD cell ring, Skaggs et al.15 postulated the existence of two additional rings of so-called rotation cells – one ring responsive to CW turns and the other ring responsive to CCW turns. The rotation cells in each ring received inputs from both HD-only cells in the HD ring and from AHV-only cells tuned to either CW or CCW directions (Fig. 1B). The rotation cells, in turn, will selectively activate the HD ring, to move the activity hill in the appropriate CW or CCW direction. This mechanism ensures accurate rotation of the HD activity hill during head turns (see Fig. 1). Thus, rotation cells are critical components of a properly functioning HD attractor network.

Previous studies have reported rotation-like cells, but only in cortical areas35,38, and not in regions where the HD signal is believed to be generated. Further, currently almost all identified cells in LMN and DTN have either been HD-only or AHV-only cells27,28,29,30. Only a single conjunctive HD + AHV cell has been reported (e.g., see Fig. 3 in30). Here, we show that significant proportions of rotation cells (HD + AHV) are present in both LMN and DTN. Clearly, not all HD cells are conjunctively sensitive to AHV, as both LMN and DTN also contain significant proportions of HD-only cells that are not AHV sensitive. Thus, the HD + AHV cells represent a distinct subset. Importantly, in the attractor network(s) proposed by Skaggs et al.15, there was only one type of rotation cell – one that was tuned across a wide range for both CW and CCW turns. These rotation cells were hypothesized to receive inputs from vestibular-sensitive AHV cells, which (in monkeys) were known to fire in an asymmetric manner throughout the CW-CCW range39,40. We found, however, that there was an absence of this asymmetric cell type, and instead, we identified three other distinct types of HD + AHV cells: symmetric, asymmetric-unresponsive, and inverted. Although similar to a ‘pure’ asymmetric cell type (i.e., a cell with increasing firing rate with increasing AHV in one turn direction, with decreasing firing rate with increasing AHV in the opposite turn direction), the asymmetric-unresponsive cell was only AHV sensitive in one turn direction - usually ipsilateral to the recording site (i.e., CW AHV sensitivity corresponded to right hemisphere recordings and vice versa). This pattern, however, was reversed in one rat, indicating potential variability across individuals.

While both brain areas contained the same types of conjunctive HD + AHV cells, the proportions of different cell types differed slightly between LMN and DTN. For instance, DTN had a slightly higher proportion of symmetric cells than LMN, while LMN had more asymmetric-unresponsive cells. Notably, inverted HD + AHV cells were absent from the DTN. Nonetheless, the sizeable proportion of symmetric type HD + AHV cells highlights the importance of this cell type and raises the issue of what function they might serve. While the function of the asymmetric type presumably serves to push the activity hill of the attractor network in the direction of the head turn, the function(s) of both the symmetric and inverted types are less clear. One possibility is that the asymmetric type cell is not sufficient to overcome the stability of the network to move the activity hill to a new state in the face of a head turn and that a further boost of excitation is required. This boost could be accomplished by the symmetric type cells, which would serve to aid in moving the activity hill in either direction away from a stable state, while the asymmetric cells would serve in controlling the direction the activity hill needs to move. Alternatively, the symmetric AHV cells may be used to calibrate or fine-tune the HD system for preventing drift of the HD activity hill, as the initial connections following development are unlikely to be balanced perfectly41. In terms of the inverted conjunctive cells, they may serve to suppress any possible excitation in the network for HDs that are distant to the current HD or they could provide a brake on the system to keep the activity hill from moving continually.

Our findings support the hypothesis that a set of attractor rings, originally proposed by Skaggs et al.15, form the basis for the generation of the HD signal. However, their model (Fig. 1B) only contained one type of Rotation cell – one that would be classified as asymmetric throughout head turns in both directions. The only AHV cell type we observed with this firing pattern was the asymmetric-unresponsive type, which was sensitive to AHV in one diection, but not in the opposite direction. Further, as discussed above, the attractor model will also require the addition of other HD + AHV cell types that include both symmetric and inverted firing patterns.

Recent work in the Drosophila central complex have identified circuits involved in encoding directional heading2,42 and some of these studies have found HD + AHV conjunctive type cells – similar to the rotation cells postulated by Skaggs and McNaughton. Such cells, referred to as P-EN cells have been identified in the ellipsoid body of Drosophila43,44. Most of the data reported have focused on asymmetric type cells, and it is not clear if there is a substantial proportion of symmetric type cells similar to the ones reported here in rodents. Moreover, to our knowledge, no inverted type rotation cells have been identified. Thus, while parallels between HD systems in insects and mammals are emerging, it remains to be determined whether the underlying neural mechanisms contributing to the HD signal in Drosophila are ultimately going to be similar to those in a mammalian rodent system. Further, very few studies have been conducted on HD cells in humans45,46 and non-human primates4,47, and what studies have been conducted in these species, have not addressed the issue of how and where the HD signal is generated.

We have demonstrated that there are two fundamentally distinct types of HD cells in LMN and DTN – brainstem areas where the HD signal is believed to be generated. One type is AHV-dependent (referred to as rotation cells), while the second type is not sensitive to AHV. In addition, both cell types were often found to be sensitive to the animal’s linear head speed, further expanding their functional profile. This added sensitivity to LHS occurred more frequently in HD AHV-dependent cells than in AHV-independent cells and more frequently in DTN than in LMN. Ring attractor networks, hypothesized to generate and update the HD signal, require AHV-dependent HD cells to properly shift the activity hill in response to head turns. Our identification of this requisite cell type in LMN and DTN, along with the presence of HD-only and AHV-only cells in these same brain areas, strongly supports the existence of an attractor-style network in these brainstem regions. Collectively, our results provide crucial evidence for the neural mechanisms underlying the generation and dynamic updating of the HD signal within the LMN and DTN circuit.

Methods

Subjects and apparatus

Experiments were conducted using three separate groups of Long-Evans rats. The first group had electrodes implanted targeting the LMN, the second group had electrodes implanted to target the DTN, and the third group consisted of previously recorded rats with electrodes implanted into the ADN thalamus. Animals from all three groups were recorded in the same shaped apparatus—a gray cylinder that contained a single prominent landmark cue and was located in a 10’ x 10’ room. All procedures were conducted in accordance with an institutionally approved animal care protocol and in compliance with guidelines described in the National Institutes of Health Guide for the Care and Use of Laboratory Animals.

The LMN group included 27 female rats, weighing 250–300 g at the start of the experiment, 13 of which came from previous studies (encompassing 37 out of the 74 HD cells analyzed here; refs. 28,48). The DTN group consisted of 10 female rats of similar weight. The cells in the ADN group came from several previous studies and included 242 cells from 81 female rats weighing 250-300 g. All rats were 3-6 months old at the time of recording and were maintained on a food-restricted diet of ~15 g/day. Water was available ad libitum. The rats were housed individually in transparent plastic cages and kept on a 12:12-h light-dark cycle. Training and HD cell screening occurred during sessions in which the rats foraged for food pellets in a gray-colored cylinder (71 cm high, 76-cm diameter). A white sheet of cardboard attached to the inside wall of the cylinder covering ~100° of arc served as the only intentional visual cue that could be used for orientation. The cylinder was placed on a sheet of gray photographic backdrop paper, which was replaced after each recording session to remove olfactory cues from the previous session. A black curtain (2.5 m in diameter) surrounded the cylinder and hung from the ceiling to the floor. Eight overhead DC lamps spaced uniformly in a circle provided room illumination. A color video camera (Sony XC-711, Tokyo, Japan) was attached to the ceiling directly above the cylinder. A sound machine was attached to the ceiling adjacent to the video camera and played white noise to help mask any external auditory cues. A ceiling-mounted food dispenser that was also positioned adjacent to the video camera automatically ejected sucrose pellets (20 mg; Dustless Precision Pellets, Bio-Serv, Flemington, NJ, USA) on a 30 sec random interval schedule.

Training procedures

Rats were first trained to forage for food pellets in the cylinder. They were removed from their cages and placed in the cylinder for 10 min. During training the rats were encouraged to forage for small food pellets dropped randomly into the cylinder from the automatic food pellet dispenser. The procedure was repeated daily for 5–7 days. Upon completion of training, rats engaged in nearly continuous pellet search behavior.

Electrodes

Electrodes consisted of either a bundle of 10 single wires (n = 16 for LMN; n = 5 for DTN), an array of 8 stereotrodes (n = 11 for LMN; n = 3 for DTN), or an array of 4 tetrodes (n = 2 for DTN). The single-wire electrodes were built as previously described49 and consisted of a bundle of ten 25 µm nichrome wires (California Fine Wire, Grover City, CA, USA) insulated except at the tips. The wires were threaded through a 26 gauge stainless steel cannula and connected to a modified Augat plug. Stereotrodes and tetrodes were made by spinning 17 µm nichrome wires into a compact bundle composed of either two (stereotrodes) or four wires (tetrodes32). These wires were threaded through a smaller 32 gauge cannula that was connected to a modified Mill-Max connector. Before surgical implantation, the electrode bundle was sterilized and coated (except for the tips) with polyethylene glycol (Carbo wax) to provide stability to the electrode wires as they were positioned in the brain.

Surgical procedures

After training, each rat was anesthetized with either Nembutal (1.0 ml/kg, i.p.), a ketamine-xylazine mixture (2 ml/kg, i.m.), or isoflurane gas and placed into a stereotaxic frame (David Kopf Instruments, Tujunga, CA, USA). An electrode array was then implanted just above the targeted site. Electrode coordinates varied slightly between different animals but were within ±0.1 mm of the following parameters with respect to bregma: LMN: anterior/posterior −4.6 mm, medial/lateral ±1.0 mm right or left, and ventral 8.1 mm from the cortical surface50; DTN: anterior/posterior −9.1 mm, medial/lateral ±0.3 mm right or left, and ventral 5.4 mm from the cortical surface50. Four to eight stainless steel screws were placed in the skull plates, and dental cement securely anchored the electrode assembly in place. This assembly could be manipulated in the dorsal/ventral plane by turning three drive screws that were part of the electrode assembly. Rats were given the analgesic ketoprofen (3–5 mg/kg, i.m.) after the operation for two consecutive days and were given 1 week of recovery before commencing recording for HD cells.

Recording & video tracking

One of two different recording systems was used for the experiments. For cells recorded with single wires, we used an analogue based system using window discriminators to isolate cell waveforms (LMN: 16 rats; DTN: 5 rats; see ref. 8 for a description of data acquisition). For cells recorded with stereotrodes or tetrodes, we used a NeuraLynx Digital system (Bozeman, MT, USA) (LMN: 11 rats; DTN: 5 rats; see ref. 24 for a description of data acquisition).

For both methods of recording, each rat’s microelectrodes were monitored for cellular activity while the rat foraged for food pellets in the cylinder. The rats were transported from the animal colony room into the screening room, and no attempt was made to disorient the rats before each session. For cells recorded from single wires, each of the 10 microelectrodes was monitored on an oscilloscope, and the rat’s directional heading was observed on a video screen via the overhead video camera. The electrode wires were advanced gradually over several weeks while screening for HD cells, in which their electrical waveform was of sufficient amplitude for isolation from background noise. For recordings from single wires, we monitored neural activity by passing the signals through a field-effect transistor (FET) that was in a source-follower configuration and then through an overhead commutator (Biela Idea Development, Anaheim, CA, USA) to an amplifier (Grass Instruments P5 Series, West Warwick, RI, USA). Signals were referenced to electrical activity recorded on a nearby wire and then differentially amplified (20,000), band-pass filtered (300 –10,000 Hz, 3 dB/octave; Peavey Electronics PME8, Meridian, MS, USA), and sent through a series of window discriminators (BAK Electronics model DDIS-1, Germantown, MD, USA). The final signal was then displayed on an oscilloscope (Tektronix model 2214, Beaverton, OR, USA). When the waveform of a HD cell could be isolated successfully, two light-emitting diodes (LEDs) were activated via the recording cable to monitor the animal’s HD via the overhead video camera. The headstage included a red LED positioned ~1 cm anterior to the headstage above the rat's snout and a green LED positioned ~6-10 cm further away over the rat’s back. For single wire recordings, the x,y-coordinates of the LEDs were monitored at 60 Hz by an automated video-tracking system (Ebtronics, Brooklyn, NY, USA). During recording sessions the LED coordinates and the neural activity were acquired by a data acquisition interface board (National Instruments DIO-96, Austin, TX, USA) in a Macintosh computer.

Signals originating from the stereotrodes or tetrodes were preamplified by unity-gain operational amplifiers on an HS-27 headstage, then further amplified (NeuraLynx Digital Lynx SX) and then bandpass filtered (600–6000 Hz) using an ERP-27 system (NeuraLynx). When the neural signals crossed a preset amplitude threshold (30–60 mV), they were time stamped and digitized at 32 kHz for 1 msec. The waveform characteristics were then analyzed off-line using SpikeSort 3D (NeuraLynx). The location and directional heading of the rat were also tracked in a similar manner as above using red and green LEDs.

For both recording systems, the cell’s firing rate relative to the animal’s HD was computed off-line with programs written with LabVIEW software (National Instruments, Austin, TX, USA). A cell’s activity was usually recorded for 16 min (some sessions were only 8 min long) while the rat foraged for food pellets inside the cylinder. If no HD cell activity was detected, the entire electrode array was advanced 25–50 µm ventrally and electrical activity was screened again 24 h later. Screening for HD cells generally occurred over the course of 2–3 months.

Data analysis

For each recording session, a firing rate vs. HD tuning curve was plotted to determine the cell’s directional tuning. HDs were sorted into one of sixty 6° bins. On the basis of the cell’s firing rate vs. HD tuning curve, we monitored the cell’s 1) preferred firing direction (the HD at which the cell fired maximally), 2) peak firing rate (the bin with the maximal firing rate), 3) background firing rate (the mean firing rate from all bins that were ±18° away from the cell’s directional firing range), 4) directional firing range (the range of head directions in which the firing rate was elevated above background level (based on a triangular model1), and 5) directional information content (IC), which was calculated as:

$${{{\rm{IC}}}}=\sum {{{{\rm{p}}}}}_{{{{\rm{i}}}}}({\lambda }_{{{{\rm{i}}}}}/\lambda ){\log }_{2}({\lambda }_{{{{\rm{i}}}}}/\lambda )$$
(1)

where pi is the time spent with the head pointing in the ith bin divided by the total time (probability that the head pointed in the ith bin); λ is the mean firing rate of the cell in the ith bin; and λi is the overall firing rate of the cell for the entire recording session.

We also computed the mean vector R using circular statistics; this value varies between 0 and 1, with 0 indicating no directional variation and 1 indicating perfect directional variation51. To determine whether cell firing was significantly modulated by the animal’s directional heading, we performed both a Rayleigh test based on the computed mean vector length R51 and a shuffle test. For the Rayleigh test, the critical significance level of R is determined by the number of observations (which was defined as the sum of all firing rates from the 60 directional bins), and if the R value meets this significance level the distribution is considered to be non-random. Cells that exhibited significantly non-random distributions were considered directionally tuned. HD cells typically have Rayleigh R values ≥ 0.5, although many cells in this study had lower R values because the cells appeared more HD-modulated rather than ‘classical’ HD cells.

To aid in determining whether a cell was directionally modulated we also performed a shuffle test on its HD tuning curve. For the shuffle test we shuffled the time series of spikes relative to the HD series and recomputed the mean vector length R. We shuffled the time series 500 times and computed the R value for each shift. We then ranked all the R values and if the R value from the non-shifted time series fell above the 99th percentile, the cell was considered directionally modulated.

We also constructed HD tuning curves based on whether the animal was turning CW or CCW. These tuning curves were constructed using the same method as described above, but was confined to samples based on either the CW or CCW turn directions and when the animal was turning its head ≥45°/sec.

Angular head velocity

Angular head velocity (AHV) was calculated by taking the first derivative of the HD time series, which was first smoothed by calculating a five-point running average. After smoothing, instantaneous AHV was calculated for each time point as the slope of the best-fit least-squares line fitted to the current time point, the two preceding time points, and the two subsequent time points. The slope of this best-fit line was defined as the AHV for the center point sample of the five sample window. Positive angular velocities corresponded to CCW head turns while negative angular velocities corresponded to CW head turns. The resulting AHV time series was then matched with the spike time series to construct AHV tuning plots (firing rate vs. AHV). Samples were sorted into 6°/sec bins within the range of 0-204°/sec for both CW and CCW head turns. Only bins with at least 30 samples (0.5 sec) were included in the plot.

AHV tuning curve parameters. From the firing rate vs. AHV function, the following parameters were calculated:

  1. 1)

    Baseline firing rate: defined as the mean firing rate when the rat’s AHV was near zero (the mean value averaged across the 0 to ±6°/sec bins);

  2. 2)

    Correlation (Pearson’s r): the correlation coefficient for the best-fit lines of the CW and CCW portions of the AHV tuning curve; CCW turns were assigned positive values and CW values assigned negative values;

  3. 3)

    Slope: the slope of the best-fit line for the CW and CCW portions of the tuning curve, using absolute values for the CW slopes.

The AHV tuning curve was divided into four ranges based on AHV: (CW, 0–90°/sec and CW, 90–204°/sec; CCW, 0–90°/sec and CCW, 90–204°/sec). A best-fit line and corresponding Pearson’s r value were calculated for each range. Because most head turns occurred at velocities <90°/sec, this portion of the AHV tuning curve provided the most reliable sampling. Therefore, both 0-90°/s ranges and the 0–204°/s ranges, were used for classifying cells as AHV sensitive (see below).

Cell classification for AHV

Two methods were used for classifying cells as sensitive to AHV: 1) meeting a certain threshold for correlation and slope values from the firing rate vs. AHV plot; 2) passing a shuffled test for these same criteria. For each cell we plotted two types of firing rate vs. AHV tuning curves:

1) HD-independent: Tuning curves that included all AHV samples regardless of the animal’s HD,

2) HD-dependent: Tuning curves that used AHV samples restricted to within ±60° of the cell’s preferred firing direction.

Cells were classified as tuned to AHV if they met the following three criteria for either the HD-independent or HD-dependent AHV tuning curves:

1) Pearson’s r correlation ≥0.5 for either the CW or CCW portion of the tuning curve,

2) Slope ≥ 0.05 spikes/deg for this same best-fit line,

3) Correlation and slope values for the best-fit line passed a 500 sample shuffle test, where both values had to exceed the 99th percentile of the shuffled distribution.

Cells were classified as AHV-sensitive if they met these criteria for either the 0-90°/sec or 0-204°/sec ranges. Further, the cell had to pass this set of criteria for both the first and second halves of the recording session to ensure stability.

AHV score

To measure the strength of AHV sensitivity we devised an AHV score for each cell by fitting a best-fit line through each of the CW and CCW portions of the AHV tuning curve. We then multiplied the correlation value of these best-fit lines by its corresponding slope. The absolute value for each measure (CW and CCW) was compared with one another and the maximum value was multiplied by 100. This procedure was conducted for both the 0–90 and 0–204°/sec ranges and the highest value across these two ranges was defined as the cell’s AHV score. AHV scores for all HD cells ranged from 0 to 30, with AHV-dependent cells having scores ≥3.0.

Linear head speed (velocity)

Linear head speed was calculated by first computing the instantaneous speed of the animal for each 1/60th sec sample. This method was accomplished by fitting a best-fit line over a five-sample window for both the x and y dimensions10. The slopes of these lines were represented by the changes in the x and y dimensions, respectively, and the instantaneous speed at the center time point of the window was defined as the square root of x2 + y2. We then constructed a LHS tuning curve by sorting all samples into 1 cm/sec bins and applied an AHV filter to exclude all samples where the rat was turning its head >10 °/sec. This approach enabled us to filter out samples that could be a confound to analyzing samples for LHS. The spikes associated with each sample were similarly sorted, summed for each LHS bin, and divided by the total time in that bin to yield the average firing rate. A firing rate versus LHS plot was then created, and a best-fit linear line was computed for the range of 0–30 cm/s.

From this best-fit line we calculated the correlation value (Pearson’s r) and slope. An LHS score was computed for each cell by multiplying the absolute value of the correlation and slope values by 100 (similar to the AHV score calculation described above). For a cell to be classified as sensitive to LHS it had to meet the following criteria:

1) LHS score ≥10,

2) Correlation value (Pearson’s r) of the best-fit line for its tuning curve ≥0.7 and slope ≥0.1 spike/cm,

3) The correlation value had to pass a 500 sample shuffle test at the 95th percentile,

4) The correlation value between the first and second halves of the session exceeded 0.5.

We note that defining the LHS score in this manner inherently favors cells with high peak firing rates due to slope values, but normalizing values would exclude many cells that were clearly sensitive to LHS.

In performing the LHS analyses, we found that a large proportion of AHV-dependent cells were also classified as LHS-sensitive. This finding raised concern that this result might be due to an artifact of tracking the rat’s movement via a two-spot tracker. We therefore performed an additional analytical method, where the rat’s location was averaged over 250 msec intervals instead of 1/60th s samples, and thereby reducing the impact of small positional changes. This method yielded results that were consistent with the original method (data not shown), suggesting that the large proportion of cells that were also classified as LHS sensitive is unlikely to be due to an artifact of the tracking approach.

Statistics

All mean values reported include the SEM. One-way ANOVA tests were used to compare HD cell properties between AHV-dependent and AHV-independent cells within a brain region (LMN and DTN), while a two-way ANOVA (brain area x cell type) was used to compare properties across different brain areas (LMN, DTN). A Tukey’s HSD post-hoc test was conducted to explore significant main effects for the two-way ANOVA. A chi-square test was used to test whether the proportion of AHV or LHS cell type differed significantly across brain regions—LMN and DTN. A Yates correction was not applied because the sample sizes were sufficiently large to make the correction unnecessary. All tests used an α level of 0.05.

Histology

Upon completion of the experiments, all animals were anesthetized deeply with sodium pentobarbital (100 mg/ml, i.p.) and a small anodal current (20 µA, 10 s) was passed through one of the electrodes to later conduct a Prussian blue reaction in the tissue. The animals were then perfused transcardially with 0.9% saline (2 min) followed by 10% formalin in 0,9% saline (15 min). The brains were placed in 10% formalin for at least 48 h. Two days prior to brain sectioning, potassium ferrocyanide was added to the 10% formalin mix for 24 h, and then the brain was placed in 20% sucrose for another 24 h. The brains were frozen and sectioned (30 µm) in the coronal plane. The sections were placed on gelatin-coated microscopic slides and after allowing 1-2 days for drying were stained with thionin and then cover slipped and allowed to dry again. All brains were then examined through a light microscope to determine the location of the marking lesion and electrode tracks. Histological analyses confirmed that 27 animals had electrodes that passed through the LMN and 10 animals had electrodes that were localized to the DTN.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.