This is your brain when you change your mind.

“the “change-of-mind” behavior offers a neat window into the mix of now, past, and the future.”

Oct 19, 2025

Have you ever morphed your handwritten choice of A into a B when you were in school doing multiple-choice questions? Have you ever picked up a grocery, then put it back right after? My first grad school paper is on this topic - a change of mind. What happens in your brain when you have such a change of mind? Is switching your choice from A to B actually helpful in your next exam? Let me give you some answers in this blog!

The dataset

Between 2022 and 2024, I “raised” 5 rats in a maze where milk from various ports is always delivered in a specific order across 5 milk spouts. 4 of these spouts are located at the end of 4 long maze arms (1 meter each), extending from the center platform, leading to the home spout, the 5th milk spout. I wanted to see if they can figure this milk delivery pattern out. If so, what is the neural mechanism behind it?

The experimental arena looks like this. There are 4 outer arms and a home arm each leading to a milk port. There is a camera in the room to capture animal location.

The way I “raised” them is such that initially, a rat just needs to alternate between going back to home and outer arm milk locations. Once they developed the idea of home vs outer arms, I upgraded the milk delivery pattern to be: Home - Well3 - Home - Well4 - Home - Well2 - Home - Well1 - Home - Well3 and the loop continues. Of course they don’t know this pattern, after 2 weeks of hanging out in this maze, they all figured it out. Their motivation to find this pattern could be to maximize the milk they get. The initial plan of my PhD study is to use this dataset to study how the brain extracts patterns from memories. See more in this blog post.

Rats show “change-of-mind” behavior

Here’s something unexpected: rats often change their mind half way through an arm when they forage for milk.

Two example paths, one with a change mind at arm 2 before heading to arm 4.

It’s something other projects in the lab also observe but the frequency in this task is way higher – up to 20% of attempts have change of mind insinuation in some rats. There are multiple reasons why my rats do this more than others: my rats are good students who take things seriously; I use a very large maze scale where the outer arms are 1m rather than the shorter 50cm ones used in the lab W maze. This large maze set up creates a large cost of a bad choice, potentially facilitating rats think hard about each choice.

“change-of-mind” behavior is corrective

This project is like an indie/alternative part of my PhD, as it started as a small data exploration during a holiday break with no expectations. One of the first things I was curious about are whether the rats were better off keeping their initial choice or changing their mind. It turns out across all rats and all sessions, the choice after a change of mind has on average better outcome. (each day I let them run in the maze for 4-6 sessions of 30-60 min each, with naps in a separate area in between.)

Each dot in this plot represents a session's data. In each rat, a dot in the left column is the average correct rate for initial choice on change-of-mind trials; a dot on the right column is the average correct rate for final choice on change-of-mind trials.

From the plot we see that the final choice is on average better. All these efforts to change their mind are worth it! There is more to the story. We analyzed rats’ long-term behavior changes in this maze and found that this increase of correct rate has something to do with the animal overcoming their foraging bias. Please see the final paper for this detail.

“change-of-mind” behavior is not preceded by predictive coding in the hippocampus

The hippocampus is a brain structure that is very important for memory formation and retrieval; it is also a brain structure critical for maintaining a so-called “GPS” signal — where you are physically in a space. As a step beyond recalling memory and encoding GPS signal, recently, there have been a few findings linking the hippocampus to the flip side of the past and the current: the future (see here, and here).

In neuroscience terms, the hippocampus has been linked to predictive coding and mental simulation. In simple terms, the “predictive coding” part says that before an animal does something, you can read out (to some extent) from the hippocampus neural activities what the animal is about to do next; the “mental simulation” part is a mellower version that says before an animal makes a choice, you can read out the few options the animal considered rather than just the specific choice the animal picked. In summary, the field is grappling with how the hippocampus decides to encode where you are now, what you are about to do next, or your past, and how it serves you altogether.

This is the point where I realized this project is not indie neuroscience after all — the “change-of-mind” behavior offers a neat window into the mix of now, past, and the future. At the tip of a change of mind, does the hippocampus forgo being a GPS and present another option or other options, prompting the rats to change their mind? What is going on in the hippocampus when the rat is actively leaving the initial choice before committing to another one? In the exam analogy, what is going on in the hippocampus while I morph A to B? Does the hippocampus encode the initial choice once the final choice is made?

To study this, we assume that the hippocampus encodes the GPS signal when the animal is running and create a map that eats in animal body location and returns the average hippocampus signal. We then apply this map in reverse. This reversed function eats in specific moments of hippocampus signal and returns an estimate of the animal body location. If that the moment the hippocampus signal deviates a lot from the usual GPS signal, the estimated body location will not track the actual animal location. It is a mouthful to explain, and it might make more sense to see the plot directly:

In the top panel, magenta denotes animal body location and black ink denotes estimates of the animal location from the hippocampus data. In the bottom panel, we plot animal's speed as a reference. The moment when the speed dips to 0 is defined to be the moment the animal changes its mind.

Here is a video version of the static plot. Magenta denotes where the rat is and the little line on top shows its head direction. The blue/green/yellow shades show the estimate of the animal location from its hippocampus signal, with brighter color denoting regions of higher confidence of the inference.

To our surprise, there is little loss of GPS signal before a change of mind, defined by animal abruptly stopping on an arm before backing off or turning around to go to another arm. Instead, the hippocampus actively simulates going towards the end of the arm while actively leaving the arm — a mental simulation of what could have been if the choice is not changed.

There is more to the story. It turns out there are some specific temporal pattern in which this counterfactual trajectory is packed with the GPS signal. In addition, sometimes the hippocampus encodes other arm options. Please stay tuned for the final paper!

Updated: