With the help of mice scampering through a virtual maze, scientists have taken recordings from inside individual brain cells, or neurons.
The researchers report in the journal Nature how they recorded from cells in the brain's memory centre.
These neurons fired in a rhythmic pattern that could be related to the animal's location.
They hope their technique will help discover how neuronal activity forms new memories and affects behaviour.
In the virtual reality system, the mice were able to run around while their heads were kept relatively still. This enabled the scientists to measure continuously from one neuron.
The team, led by David Tank from Princeton University in New Jersey, US, took their recordings from "place cells".
These are neurons in the brain's hippocampus, which is considered to be the centre of memory formation.
Place cells "fire" when an animal is in a particular position within its environment, so neuroscientists hope to fathom their role in navigation, learning and memory.
Previously, scientists have studied the cells using extracellular electrodes - tiny wires placed next to the neurons.
"That tells you about their activity, but not about how that activity is generated," explained Professor Tank.
He and his colleagues used a technique that allowed them to clamp on to a single neuron and record the activity inside it.
Floating in space
The scientists took recordings from inside the mouse's brain as it scuttled through the maze.
In reality, the mouse remained almost stationary as it walked on the surface of a floating ball suspended on a cushion of air.
"This is easy for the mouse to walk and run on - [it's] just like an activity wheel," said Professor Tank.
In moving the ball, by walking and running around, the mouse controlled its own movement through the maze.
"[It] got treats at each end of the maze," said Professor Tank.
"The mouse ran down a corridor and when it got to the end it would get a treat. If it wanted another one, it had to turn around and run to the other end."
This free movement was crucial, because the place cells fired, or became active, at certain points along the corridor.
The points at which they fire are known as the "place fields".
"The bursts of firing [of groups of place cells] have a particular rhythm - like a clock," said Professor Tank.
The study revealed that this rhythm changed "in a systematic way" as the mouse moved through the place field.
"So by looking at this timing, you can tell where the mouse is," Professor Tank explained.
This timing can be thought of a a type of code based on timing that is somehow translated into a memory.
Describing the wider significance of the work Professor Tank said: "There is still debate about what place cells are.
"Are they a fundamental part of brain circuitry for navigation? Or are they involved in something more general like... the ability to remember a sequence of events."
Professor Tank described how the virtual reality system could give neuroscientists the tools they needed to address these questions.
"One of the things about virtual reality," he said, "is that you can make manipulations that you can't in the real world. You could alter an environment as the mouse is walking through it [and see how the cells respond]."
Dr Rosamund Langston, a neuroscientist from the Norwegian University of Science and Technology in Trondheim described the work as "a huge technical achievement."
Dr Langston, whose work is focused on learning and memory, was not involved in this study.
She added: "This is an impressive leap forward for neuroscientists at both the cellular and systems level."