# HTM School 14: Grid Cells

**URL:** <https://discourse.numenta.org/t/htm-school-14-grid-cells/3646>\
**Category:** YouTube\
**Created:** [March 16, 2018, 2:06pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646 "2018-03-16T14:06:21Z")\
**Posts on this page:** 12\
**Page:** 4

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 24, 2018, 2:23am UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/61 "2018-08-24T02:23:46Z")

</div>

> [@dillon.bender](#):
>
> From an actual implementation perspective, do the grid cell modules have a fixed size on their input space once they are initialized? How would they handle being ported to a larger environment with new locations? Do they have a mechanism for dynamically adjusting to different sized environments? For example, what exactly would happen if the room that your mouse cursor moves within suddenly became larger or smaller? How would the grid cells react?

**I think this does well as an answer to your questions!**

> **[Hippocampal Remapping and Its Entorhinal Origin](https://www.frontiersin.org/articles/10.3389/fnbeh.2017.00253/full)**
>
> The activity of hippocampal cell ensembles is an accurate predictor of the position of an animal in its surrounding space. One key property of hippocampal cell ensembles is their ability to change in response to alterations in the surrounding...

---

<div class="post-metadata">

**Author:** ![dillon.bender](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dillon.bender](https://discourse.numenta.org/u/dillon.bender)\
**Post date:** [August 27, 2018, 11:31pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/62 "2018-08-27T23:31:33Z")

</div>

> [@Bitking](#):
>
> > [@dillon.bender](#):
> >
> > From an actual implementation perspective, do the grid cell modules have a fixed size on their input space once they are initialized? How would they handle being ported to a larger environment with new locations? Do they have a mechanism for dynamically adjusting to different sized environments? For example, what exactly would happen if the room that your mouse cursor moves within suddenly became larger or smaller? How would the grid cells react?
> 
> **I think this does well as an answer to your questions!**

Thanks for that! This was a very interesting read! I learned very much about how the hippocampus and entorhinal cortex work together to represent location.

However, even after trying to pay close attention to the most interesting and salient information, I’m still unsure how to answer my own questions. The paper was mostly about hippocampal place field locations and place cell remapping, so I still don’t know much about grid cell dynamics or their relationship with sensory input.

---

<div class="post-metadata">

**Author:** ![dillon.bender](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dillon.bender](https://discourse.numenta.org/u/dillon.bender)\
**Post date:** [August 27, 2018, 11:36pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/63 "2018-08-27T23:36:51Z")

</div>

One thing I noticed was the huge emphasis on firing rate remapping and rate encoding. Such as this snippet

“the hippocampus can simultaneously convey information related to the position of an animal and to the cues present in the environment. During rate remapping, the integrity of the spatial code is preserved because place fields are stable, but the precise firing rate of neurons varies to encode information not related to the current position of an animal.”

This sounds like an important feature of the brain.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 27, 2018, 11:40pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/64 "2018-08-27T23:40:16Z")

</div>

Did you get anything out of figure 3?

Section 3 does call out related papers - I have not looked at them but it may be a good point to dig deeper.

That said - I picked up on that you are looking to see how the senses end up forming these patterns in the EC.

Let me make it clear that nobody knows this.

My twitter feed is full of ads for post-doc positions to research this very question. Whoever does figure this out will prolly score on a Nobel prize for it.

---

<div class="post-metadata">

**Author:** ![dillon.bender](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dillon.bender](https://discourse.numenta.org/u/dillon.bender)\
**Post date:** [August 28, 2018, 2:30am UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/65 "2018-08-28T02:30:00Z")

</div>

> [@Bitking](#):
>
> That said - I picked up on that you are looking to see how the senses end up forming these patterns in the EC.

Right I think. I just had these questions after watching Matt’s demo where you can see the grid cells firing when the mouse’s location enters their firing fields. I started to think about how those modules can create the hexagonal grid pattern to encode an environment as large and diverse as the world. I guess I would just need more info about the input to EC.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 29, 2018, 1:01pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/66 "2018-08-29T13:01:40Z")

</div>

I just saw this paper today in my twitter feed. It does not directly answer the question of how the senses are encoded in the hippocampus but it does offer more insight into the general topic of coding and retrieval in the medial temporal area:

_Reactivated spatial context guides episodic recall - Nora A. Herweg, Ashwini D, Sharan, Michael R.Sperling, Armin Brandt, Andreas Schulze-Bonhage, Michael J. Kahana_

> **[399972.full.pdf](https://www.biorxiv.org/content/biorxiv/early/2018/08/27/399972.full.pdf)**

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 30, 2018, 1:30am UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/67 "2018-08-30T01:30:35Z")

</div>

And here is another on time representation in lateral EC: [https://neurosciencenews.com/time-perception-9771/](https://neurosciencenews.com/time-perception-9771/)

---

<div class="post-metadata">

**Author:** ![dillon.bender](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dillon.bender](https://discourse.numenta.org/u/dillon.bender)\
**Post date:** [August 30, 2018, 2:20pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/68 "2018-08-30T14:20:57Z")

</div>

I think I can better articulate my inquiry after thinking this over for a few days.

So, the goal of these grid cells is to uniquely represent each location in an environment by having the hexagonal lattice “cover over” all possible locations of that environment with equally spaced place fields.

Assuming that is an accurate premise, then the question is: how would I initialize these place fields for a given set of grid cells (in modules), assuming this is the very first environment to be learned, so no previous place fields exist? And then how would they grow to represent the environment as it is explored?

AFAICT, you can’t create the grid before you know the extent of the environment, so it has to start from nothing and then be learned through movement, right?

I don’t expect the answer to this to be biologically accurate really, since I highly doubt this is known. Who knows.

I figured I might as well pose this questioning here while I try to hack up my own (probably dumb) solution.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [September 9, 2018, 4:30pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/69 "2018-09-09T16:30:49Z")

</div>

We have been talking about the spatial component of memory and how that may play out in the hippocampus.  
This paper adds some interesting fuel to that fire:

> **[How is experience transformed into memory?](https://www.biorxiv.org/content/early/2018/09/06/409987)**
>
> How our experiences unfold over time define unique trajectories through the relevant representational spaces. Within this geometric framework, one can compare the shape of the trajectory formed by an experience to that defined by our later...

With code:

> **[ContextLab/sherlock-topic-model-paper](https://github.com/ContextLab/sherlock-topic-model-paper)**
>
> Contribute to ContextLab/sherlock-topic-model-paper development by creating an account on GitHub.

and the dataset to feed into the process:  
[https://dataspace.princeton.edu/jspui/handle/88435/dsp01nz8062179](https://dataspace.princeton.edu/jspui/handle/88435/dsp01nz8062179)

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [September 30, 2018, 10:47pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/70 "2018-09-30T22:47:54Z")

</div>

We talk about place, direction, edge cells as normal spatial functions of the hippocampus/entorhinal cortex.

For a while now I have been saying that the entire personal experience is coded in this system - not just spatial dimensions. Here is how another major chunk of your experience shows up in this coding:

> **[Interaction of taste and place coding in the hippocampus](https://www.biorxiv.org/content/early/2018/09/30/431353)**
>
> An animal's survival depends on finding food, and the memory of food and contexts are often linked. Given that the hippocampus is required for spatial and contextual memory, it is reasonable to expect related coding of space and food stimuli in...

---

<div class="post-metadata">

**Author:** ![keaton](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/keaton/32/3534_2.png) [@keaton](https://discourse.numenta.org/u/keaton)\
**Post date:** [January 30, 2019, 9:09pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/71 "2019-01-30T21:09:15Z")

</div>

Hello, I am currently trying to do research on Grid cells and am attempting to train a model with grid cell data. I was wondering if anyone knows of any grid cell data sets, specifically images of grid cells (brain scans). If so this would we really helpful as I can’t seem to find any

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [January 30, 2019, 9:23pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/72 "2019-01-30T21:23:33Z")

</div>

_You might find what you need here:_

**We have started the process of uploading raw data from studies of entorhinal cortex and related regions for open access. So far key data from Sargolini et al (2006) and Hafting et al (2008) have been uploaded but more will come. Our intention is to make all raw data from all published studies available. The data contain a lot more interesting information than what has been published and we encourage users to dig further. Please do not hesitate to contact us for updates and information ([edvard.moser@ntnu.no](mailto:edvard.moser@ntnu.no)).**

[https://www.ntnu.edu/kavli/research/grid-cell-data](https://www.ntnu.edu/kavli/research/grid-cell-data)

_And some background:_  
[https://www.ntnu.edu/kavli/discovering-grid-cells](https://www.ntnu.edu/kavli/discovering-grid-cells)

[Previous page](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646.md?page=3)
