Behavior

Platform

The Behavior team at the Allen Institute for Neural Dynamics develops standardized, modular behavioral platforms for head-fixed mice, enabling large-scale studies of brain function during learning and adaptive behavior. We focus on behaviors that reveal how interacting neural systems in the brain allow individuals to learn and adapt across contexts and timescales. Our paradigms combine sensory stimuli—auditory, visual, and olfactory—with natural movements such as licking, locomotion, and forelimb reaching. These tasks are designed to integrate with neural recording and perturbation methods, allowing systematic, targeted measurements across multiple brain regions.

Dynamic foraging

Animals make decisions in constantly changing environments. In this head-fixed, two-choice task, mice forage for water by licking left or right in response to a go-cue. The key challenge: reward probabilities shift dynamically between the two options over time. Mice must track these changes and adapt their choices accordingly, relying on reward prediction errors to update their decision variables. This task provides a simple yet powerful framework for studying how the brain learns and adapts to evolving reward landscapes.

Patch foraging in virtual reality

In natural environments, resources cluster in patches that deplete overtime. Efficient foraging requires animals to infer hidden environmentalstructures from experience and adapt their strategy based on sensory cues,prior knowledge, and internal state. We developed an olfactory patch foragingtask in a closed-loop, multi-sensory virtual reality environment where mice interactwith a procedurally generated linear track to make decisions about when to stayor leave depleting resource patches. Virtual reality's flexibility allows us toprecisely control sensory and reward statistics, isolating the neuralmechanisms underlying learning and decision-making.

Dynamic routing of sensory information

Using this behavioral paradigm, we investigate how the brain dynamically routes sensory information to guide behavior depending on context. Mice perform a cross-modal switching task in which they alternate between responding to visual versus auditory stimuli across blocks of trials. Importantly, the rewarded modality is not explicitly cued on each trial; mice must instead maintain this information in working memory and use trial outcomes to infer when contingencies have changed. This paradigm allows us to examine how visual and auditory sensory networks are selectively coupled or uncoupled from motor response networks as task demands shift.

Visual change detection

Detecting changes in the visual world is a fundamental behavior, and the visual cortex plays a key role in this process. In this go/no-go task, mice view a continuous series of flashed stimuli (e.g., gratings, natural images) and earn water rewards by licking when the identity of the stimulus changes. This flexible paradigm allows us to probe multiple cognitive functions: perception of visual features (orientation, contrast, color, natural scenes), sensory learning, generalization of learned rules to novel stimuli, prediction of temporal sequences, and short-term memory during inter-stimulus delays.

Behavior at scale

Next-generation neurotechnology enables large-scale neural recordings, and realizing its potential for discoveries in brain function requires equally scalable, reproducible behavioral experiments. Our approach balances standardization with flexibility: uniform hardware rigs, automated training curricula, and streamlined workflows provide structure and coherence, while preserving the adaptability essential for discovery science. This infrastructure support straining of many mice on complex behavioral tasks with consistent data quality across animals, experimenters, and time—enabling systematic, large-scale behavioral neuroscience.

Modular design

Rapid experimental design is essential for hypothesis-driven discovery. We have developed a modular ecosystem of instrumentation and software architecture built on structured data and configuration formats. These tools are benchmarked for reproducibility and data quality, enabling experimenters to efficiently pilot new tasks and scale successful paradigms. This modular approach facilitates resource sharing, interoperability across experimental and analysis pipelines, and reproducibility—supporting both innovation and rigor at scale.

Virtual reality environment simulating mice traveling along a linear corridor. The headfixed mouse is placed in front of 3 screens, on awheel that has a variable friction brake and a torque sensor. The environment also contains cameras, speakers, and ports to deliver water, measure licks, and deliver odors.

Open-source hardware and software

We are active contributors to open science initiatives that are reshaping how behavioral neuroscience is conducted and shared. Our team helps develop and advance two key ecosystems: Harp, an open-source platform forreal-time data acquisition and experimental control, features a lightweight binary protocol, precise hardware synchronization, reusable hardware templates, and streamlined data loading. Bonsai, a reactive visual programming language, interfaces seamlessly with Harp devices. Together, Harp and Bonsai enable rapid prototyping of multi-modal, closed-loop experiments with precise temporal control and efficient parallel data logging. By contributing to these shared tools, we help build a collaborative culture where experimental methods and data are openly accessible to the broader neuroscience community.

Our projects

Explore open projects

Brain-Wide Circuit Dynamics

We are using large-scale electrophysiology to study how distributed brain regions coordinate their spiking activity to guide behavior in changing environments.

OpenScope

OpenScope provides access to cutting-edge neurophysiological methods to scientists across the world. Similar to astronomical observatories, scientists propose experiments that are then executed at the Allen Institute.

Dynamic Routing

We are studying task-switching behaviors in mice to determine how the brain controls the flow of its own activity and how neuronal circuits are reconfigured to dynamically route information for different tasks.

Platforms accelerate our work

Surgery

The Surgery team offers a variety of aseptic rodent surgical procedures ranging from stereotaxic injections to headpost implantation and cranial windowing.

Neuropixels Electrophysiology

The Neuropixels platform uses pioneering technology for highly reproducible, targeted, brain-wide, cell-type-specific electrophysiology to record neural activity from defined neuron types across the brain.

Brain-Wide Anatomy at Cellular Resolution

The Molecular Anatomy platform combines innovative histology, imaging, and analysis techniques to map the morphology and molecular identity of neuron types across the whole brain.

Fiber Photometry

The Fiber Photometry platform enables optical measurement of neural activity in live animals to study neural circuits' function and dynamics in behaving animals.

Behavior

The Behavior platform uses advanced technology to implement a standardized, modular, multi-task virtual reality gymnasium for mice, with the goal to study brain function across different behaviors at scale.