How the brain adapts its 2D compass for a 3D world

The brain’s neural compass seems 2D, detecting only left and right head-turns. However, if the head is tilted in 3D, its rotation around the vertical axis also covertly changes its horizontal facing direction. We find that the compass neurons can detect these covert changes and thus avoid errors.
Like

Share this post

Choose a social network to share with, or copy the URL to share elsewhere

This is a representation of how your post may appear on social media. The actual post will vary between social networks

Animals navigating in a three-dimensional (3D) world (Fig. 1a) keep track of direction using a neural compass called the head direction (HD) system. This compass  has seemed, in past experiments, to be two-dimensional (2D), detecting only left-right head-turns around the head’s vertical axis. However,  this should not work well in natural 3D environments, with hills and valleys etc., as a purely 2D compass would acquire errors. This is because if the head is tilted, rotating it around the gravity axis (as opposed to its own axis) also covertly changes its horizontal pointing direction (Fig. 1b).

Fig. 1 (a) Animals (including humans) move in a 3D world, and are often tilted away from upright as they do so. (b) This poses a challenge for an internal compass, because rotations  like the one made by this rat on a sphere, in which the tilted head rotates around the gravity axis (green),  change the horizontal pointing direction of the head (colored lines) without involving a direct left-right head-turns. Such covert directional changes could lead to errors if the neural compass is insensitive to them. Squirrel photo from Ref. 1; mouse model from Ref. 2.

The HD system could correct these errors if it does in fact detect these rotations and add them to its signal (Fig. 2). This transformation is called the dual-axis rule, and in the present study (Ref. 3) we looked for evidence of its operation.

Fig. 2. The dual-axis hypothesis proposes that the brain detects both head rotations around the head axis and rotations of the head axis around the gravity axis, adding them together to update the internal compass signal. Mouse model from Ref. 2.

The neural compass is formed by HD neurons, each of which activates strongly (“fires”) when the head faces in the cell’s "preferred firing direction" (PFD). The cells use environmental landmarks to anchor their PFDs to the outside world. The cell in Fig. 3 has a PFD anchored to a direction we have arbitrarily labeled "East" (to make the point that these are world-referenced directions, although in reality not determined by magnetic cues).

We can depict the activity of a HD neuron by means of a tuning curve - a plot of firing rate vs. head direction. Fig. 3b and c show the same tuning curve expressed in world coordinates or internal coordinates. 

Fig. 3 Two reference frames for the internal compass. (a) The facing direction of an animal (blue line) can be described in two ways — relative to the outside world, or relative to the cell itself. Here the "world" is the testing room, with directions labelled North, South, East and West by the experimenter (these are room-based labels, not Earth's magnetic field). The cell's own reference frame is anchored to its preferred firing direction (PFD) — the heading at which it fires most strongly. In this example the rat is facing South-East in the room frame, and 45° away from the PFD in the cell's internal frame. (b) A tuning curve for the cell in (a) plotted in room coordinates (blue bar = firing rate from (a)). (c) The same tuning curve plotted in the cell's internal frame, with head direction expressed as deviation from the PFD (called alpha). For this neural compass to be useful for navigation, the brain has to align its internal frame to the world. Mouse model from Ref. 2.

If HD cells use a dual-axis updating rule, then we should see two things (Fig. 4). First, the PFDs of a given cell should everywhere be approximately parallel, thus correcting for errors even in 3D. Second, they shouldn’t be completely parallel: there should be a systematic distortion, varying with the direction of tilt of the animal’s head.

Fig. 4 According to the dual axis rule, the PFD of a given cell measured over the surface of a sphere should be more or less parallel everywhere, indicating correction of the covert errors. However, it should not be completely parallel : if the compass was purely responding to horizontal head direction, then in some places  there should be deviation away from the direction predicted (as illustrated by the colored lines). 

To find evidence for this distortion, we recorded HD cells in rats exploring the upper surface of a sphere. However, the exploring rats tended not to face in all directions at each location on the surface, especially on the steep sides of the sphere. This meant that we could not use the traditional method of plotting tuning curves to determine where the cell’s PFD is. We decided instead to try a different approach. We capitalized on the fact that we could make an educated guess as to where the PFDs ought to be if the dual-axis rule is indeed operating. We could make such a guess because we had measured the global PFD, and had a mathematical description of the dual-axis rule, which could adjust the values to get the local estimates. We could then look to see whether the cells' firing rates were more consistent with these internal, dual-axis-corrected PFDs than with the globally measured ones. For this comparison it wouldn’t be necessary to have data for every direction at every location: any firing at all would still be at least somewhat informative. 

We tried this, and to our delight it worked beautifully. Tuning curves when re-plotted in the local reference frames, taking the dual-axis rule into account, became consistently sharper – taller and narrower (Fig. 5), indicating that the dual-axis rule better explained the firing rate of the recorded neurons. This was true for almost every cell, across both of the brain areas we recorded from.

Fig. 5 Sharpening of tuning curve of an HD cell when the data are plotted in a local reference frame, adjusted by the predictions of the dual-axis rule. (a) Tuning curves of a single cell before and after correction for use of a dual-axis rule. (b) A measure of tuning curves - the peak rate - improved for almost every cell across two brain areas we looked at (dorsal anterior thalamus - ADN - and postsubiculum - POS). 

We were pleased that this had worked, but we added one further analysis. There are two possible variants of the dual-axis rule: one based on  how the animal turns its head around the head's own axis, as described above, and an alternative based on how the head turns in the plane of the tilted “floor.” These might diverge if, for example, the animal rears its head. Either is plausible, because other neurons in the brain’s spatial mapping system do use the local environment as their reference frame. We thus compared the two reference frames. Both adjustments improved tuning curve sharpness, but the head reference frame was better. Thus, the compass is anchored to the head and not the environment.

Two conclusions emerge from these findings. First, our reverse-logic approach, using what is known as a "generative model" (a mathematical prediction about what the data should look like according to a given hypothesis)  offers an effective alternative to computing multiple tuning curves, when directional sampling is incomplete but a strong prediction exists.  Second, and more importantly: the neural compass is not completely flat. Instead, it is what engineers call tilt-compensated – flat, but dynamically adjusted by the tilt of the head. This is, in fact, what our smartphone compasses do (try it). A flat compass is efficient for the brain, and the tilt compensation makes it effective for navigation. It is a clever evolutionary hack.

Two questions then follow. First: how does information about rotations around the second (gravity) axis find its way through the brain to the HD cells? And second, what happens if the head turns upside down? If you try this with a smartphone compass, you will see that the answer promises to be interesting.

References

1. Squirrel photo from https://commons.wikimedia.org/wiki/File:Squirrel_climbing_a_tree_%2817087101358%29.jpg

2. Mouse model by walidemad, https://cults3d.com/en/3d-model/game/real-mouse, licensed under a CultsPU public use license.

3. Williams, M., Street, J.S., Burgess, N. et al. Head direction cells use a head-referenced dual-axis updating rule in 3D space. Commun Biol (2026). https://doi.org/10.1038/s42003-026-10086-2

Please sign in or register for FREE

If you are a registered user on Research Communities by Springer Nature, please sign in

Follow the Topic

Systems Neuroscience
Life Sciences > Biological Sciences > Neuroscience > Systems Neuroscience
Navigation
Life Sciences > Biological Sciences > Neuroscience > Sensorimotor Processing > Navigation
Neural Encoding
Life Sciences > Biological Sciences > Neuroscience > Computational Neuroscience > Neural Encoding
Sensory Processing
Life Sciences > Biological Sciences > Neuroscience > Neuroanatomy > Sensory Systems > Sensory Processing
Sensory Psychology
Humanities and Social Sciences > Behavioral Sciences and Psychology > Biological Psychology > Physiological Psychology > Sensory Psychology
Computational Neuroscience
Life Sciences > Biological Sciences > Neuroscience > Computational Neuroscience

Related Collections

With Collections, you can get published faster and increase your visibility.

Mechanistic insights into human host and microbiome interactions

This collection welcomes research and reviews on the mechanistic interactions via molecules or cellular connections between microbes and the human host.

Publishing Model: Open Access

Deadline: May 31, 2026

Advances in neurodegenerative diseases

This Collection aims to bring together research from various domains related to neurodegenerative conditions, encompassing novel insights into disease pathophysiology, diagnostics, therapeutic developments, and care strategies. We welcome the submission of all papers relevant to advances in neurodegenerative disease.

Publishing Model: Hybrid

Deadline: Jun 30, 2026