arXiv:2611.08887cs.CVNov 2026

Manuscript Offprint

arXiv:2611.08887

Decoding spatial and semantic information from large-scale visual cortical activity for natural-movie reconstruction

Yukai Huang, Haoyu Albert Wang, Jiawei Zhang, Jialun Ma, Jiayao Ding, Yiran Lin, Xingyu Chen, Ziqi Gao, Yuguo Yu

Abstract

Reconstructing natural visual experience from cortical population activity is a central challenge in neural decoding, particularly for calcium imaging, where signals are noisy, temporally filtered, and paired neural-video data are limited. Here we present Ca2REAL (Calcium Activity to Reconstruct Events,

Appearance, and Layout), a neural-to-video framework that conditions a pretrained video diffusion model through separate layout and semantic controls derived from calcium activity. Using measured responses from 7,863 V1 neurons in one mouse, Ca2REAL reconstructed held-out natural-movie clips with 81.4% all-pairs stimulus-identification accuracy, with its clearest gains over deterministic baselines in perceptual and semantic measures. We further evaluated the framework in a stimulus-aligned virtual population of 116,705 neurons assembled from encoding-model-predicted responses across 11 independently recorded datasets. Perturbation and ablation analyses showed that reconstruction depends on distributed, stimulus-specific population structure, with layout and semantic pathways providing complementary spatial and identity information. Temporal analyses further showed improved preservation of semantic dynamics across reconstructed clips. These results show that large-scale cortical population activity constrains the spatial, semantic, and temporal structure of natural visual experience, providing a generative framework for high-fidelity neural reconstruction of dynamic visual scenes.

Introduction

The central goal of neural decoding is to infer information about external stimuli from the neural population responses they evoke, providing a quantitative approach for probing how sensory information is represented in the brain and an important foundation for brain-computer interfaces [1-3]. Vision has become a major testbed for neural decoding because natural scenes jointly contain rich spatial structure, visual identity, and temporal dynamics, making natural-movie reconstruction a stringent benchmark for recovering complex sensory information from brain activity. With advances in large-scale optical imaging, calcium imaging now enables cellular-resolution measurements from thousands of identified neurons during naturalistic visual stimulation [4-6], creating new opportunities to study visual decoding at the scale of large neuronal populations.

Conventional deep-learning approaches reconstruct visual stimuli by learning mappings from neural activity to pixels or visual features. For functional magnetic resonance imaging (fMRI), responses can be mapped to hierarchical convolutional features, followed by feature inversion or learned image reconstruction to recover static images and individual movie frames [7-9]. At cellular resolution, the spike-image decoder (SID) combines a neural-to-image mapping with convolutional refinement [10]. Other retinal and cortical methods use brain-inspired network designs and temporal representations, including wavelet-based spike features [11-13]. Calcium-based studies have likewise reconstructed image features or movie frames using population readouts and learned neural representations [14-16]. However, when direct regression is trained with pixel-wise error objectives, uncertainty about the stimulus can favor averaged, blurred predictions, as illustrated by studies of video prediction and the perception-distortion tradeoff [17, 18]. These limitations are compounded in calcium imaging: indicator kinetics temporally filter neural activity, measurement noise reduces response reliability, and fluorescence signals provide only an indirect readout of underlying spiking activity [19–22]. With limited paired neural–video data, conventional supervised decoders must therefore learn a high-dimensional inverse mapping from noisy, temporally blurred inputs, making simultaneous recovery of fine visual detail and temporal structure particularly difficult.

Recent advances in diffusion models offer new opportunities for neural reconstruction. These models learn an iterative denoising process that captures natural-image and video statistics and supports generation conditioned on external representations [23, 24]. In fMRI decoding, conditioning pretrained diffusion models on neural-derived visual and semantic features has enabled high-resolution natural-image reconstruction [25–27], while related approaches have combined semantic information with temporal constraints for video reconstruction [28–31]. Such models can supply visual detail from a learned prior, reducing the need to infer every pixel directly from paired neural data. Diffusion-based reconstruction from calcium activity has also been demonstrated for static images [32, 33]. Extending these advances to natural-movie reconstruction from calcium population activity remains particularly challenging because the decoder must recover coherent visual content and its temporal evolution from noisy, temporally filtered, and incomplete neural signals. Pretrained generative models provide a powerful prior, but they also introduce an attribution problem: realistic content may be generated by the prior rather than constrained by the recorded calcium activity. The key challenge is therefore to combine generative priors with reliable, stimulus-specific constraints derived from cortical calcium responses.

Here, we present Ca2REAL (Calcium Activity to Reconstruct Events, Appearance, and Layout), a generative neural-to-video framework that conditions a pretrained video diffusion model on complementary layout and semantic constraints derived from calcium activity. We first evaluated Ca2REAL using measured responses from 7,863 V1 neurons recorded in a single mouse. On 178 held-out two-second natural-movie clips, Ca2REAL achieved 81.4% all-pairs stimulus-identification accuracy, with its clearest advantages over deterministic decoders in perceptual and semantic correspondence. We then examined decoding with a stimulus-aligned virtual population of 116,705 neurons assembled from encoding-model-predicted responses across 11 independently recorded datasets spanning V1, LM, RL, and AL, where Ca2REAL reached 92.8% all-pairs stimulus-identification accuracy. Measured-response substitution further tested the functional compatibility of experimentally recorded responses with the virtual-population decoder. Population perturbations showed that reconstruction depends on distributed, structured, and stimulus-specific neural information, while pathway ablations revealed complementary contributions of layout and semantic conditioning to spatial organization and visual identity. Temporal analyses further showed improved preservation of visual-semantic dynamics across reconstructed clips. Together, Ca2REAL establishes a scalable and interpretable approach for reconstructing natural movies from cellular-resolution calcium activity and for systematically testing how population-level spatial and semantic information shapes generative visual reconstruction.

Figure

Fig. 1 Overview of the data pipeline and Ca2REAL architecture. a, Dynamic Sensorium data acquisition for the primary measured experiment. Awake, head-fixed mice viewed natural movies presented at 30 Hz while locomoting on a cylindrical treadmill, and V1 calcium activity was recorded with two-photon imaging. b, Neural-response synthesis with digital-twin encoding models. A spatiotemporal neural encoder maps each movie to the corresponding population response through a shared visual feature extractor, temporal processing, and population-specific readout. c, Neural and visual preprocessing. Movie frames were centrally cropped and resized to the generator resolution, while calcium responses were normalized neuron-wise using training-set statistics before decoding. d, Ca2REAL architecture. A multiscale temporal front end provides features to two neural-control pathways. The layout pathway predicts a low-resolution movie for spatial control of Wan2.1-VACE, whereas the semantic pathway predicts global and temporally ordered visual tokens that are adapted to the generator conditioning space.

References (55)