Data from: Neural circuits encode prior knowledge of temporal statistics
Data files
Sep 11, 2026 version files 48.90 GB
-
behavior.zip
64.01 MB
-
ephys.zip
48.83 GB
-
README.md
6.60 KB
Abstract
The brain must infer the state of the external world despite the inherent uncertainty of its sensory inputs and internal processes. Under conditions of heightened uncertainty, it increasingly relies on prior knowledge, derived from accumulated experience with the regularities and statistical structures of the environment. This principle has been formalized by Bayesian Inference theories, which are supported by substantial evidence from both behavioral and neuroscience studies. However, direct evidence for the existence of prior knowledge in the brain, and for the encoding of environmental statistics by neural circuits, remains limited. Here we show that cerebellar circuits learn the prior probability distribution of temporal variables during eyeblink conditioning and encode these representations in Purkinje cell simple and complex spike signaling. We further demonstrate that Purkinje cells are involved in eliciting predictive motor behaviors such as the conditioned eyeblink response, which also reflect the statistics of the experimentally imposed prior distribution of the stimulus. Computational modeling of these results indicates the juxtaposition of counteracting long-term plasticity mechanisms by which cerebellar Purkinje cells could acquire prior knowledge that is shaped by the statistics of different probability distributions. Our results suggest that the cerebellar circuitry may be uniquely poised to learn the probability of events in the world and internalize these as prior knowledge. These findings advance our understanding of how neural computations could implement Bayesian inference.
Dataset DOI: 10.5061/dryad.q573n5tz1
This is the data released with Koppen et al. 2026, Nature Neuroscience, accompanying the manuscript: Neural circuits encode prior knowledge of temporal statistics.
This repository contains behavioral and electrophysiological data used in the paper. If you use this data, please cite the associated manuscript.
Description of data and file layout
Files
The data repository contains two data files in zip archive format:
behavior.zip-- This file contains data about "pure behavior" sessions (as opposed to those including ephys).ephys.zip-- This file contains data about "ephys" sessions and combines the data structures as found in pure behavior sessions with ephys recordings from cerebellar cortex.
Behavior files layout
The behavior data (behavior.zip) contains behavior recordings of our Trace eyeblink conditioning paradigm in the conditions Single, Narrow, and Wide. The data for each context include sessions from two separate mice. Session data is saved per file in a MATLAB .mat file.
The file tree follows the following pattern:
- behavior/
- [condition]/
- [mouse]/
- Session_<em>[mouse]</em>_<em>[session_id]</em>.mat
- [mouse]/
- [condition]/
Ephys files layout
Organization of the ephys data (ephys.zip) is similar to the behavior data, the main difference being that each session is saved in a separate subfolder. Within this folder, there is a Data folder containing the session's ephys recording in Open-Ephys format. Furthermore, each session folder contains a MATLAB .mat file with the behavior recordings and experimental control data.
The resulting file tree follows the following pattern:
- ephys/
- [condition]/
- [mouse]/
- <em>[mouse]</em>_<em>[session_id]</em>/
- EphysSession_<em>[mouse]</em>_<em>[session_id]</em>.mat
- Data/
- ... {Ephys recording in Open-Ephys format}
- <em>[mouse]</em>_<em>[session_id]</em>/
- [mouse]/
- [condition]/
Behavior data structure
Each behavior session file contains three structs: sess, flag, and param. Of these, sess holds the recording data resulting from the session, whereas the other two represent the operational state of the acquisition setup. Those fields required to interface with the results are discussed below; remaining fields may be safely ignored.
sess-- (1xN struct): A struct array of size 1-by-number-of-trialsmousename-- (1xN char) : The mouse corresponding to this recordingdatevector-- (1x6 double) : The session timestamp as [Year Month Day Hour Minute Second]sessionStartTimeStamp-- (1x1 double) : The session timestamp as MATLAB serial date numberfilename-- (1xN char) : The original name of the file this data was saved intotTime-- (1x1 double) : The full duration of a trial in secondstotTrPerSession-- (1x1 double) : The number of trials in the sessionpriorparams-- (1xN double) : The possible inter-stimulus intervals in millisecondscsDuration-- (1x1 double) : The duration of the CS stimulus in millisecondsusDuration-- (1x1 double) : The duration of the US stimulus in millisecondsnumber-- (1x1 double) : The trial index within its session (NB: the first trial has index 1)type-- (1x1 double) : The trial type, can be used as an index intopriorparams, except that0indicates omission of the US.ISI-- (1x1 double) : The interstimulus-interval of this trial in secondstrace_raw-- (1xN double) : The eyelid position of the mouse for each camera frame in the trialzeroframe-- (1x1 double) : The camera frame corresponding to the presentation of the CSusframe-- (1x1 double) : The camera frame corresponding to the presentation of the US
paramstimcamera_frper_ms-- (1x1 double) : The frame duration of camera acquisition in milliseconds
exptrialsPerSession-- (1x1 double) : The number of trials in the session.itiparam-- (1x2 double) : The range from which the inter-trial interval is sampled in secondsitiDist-- (1xN double) : Name of the sample distribution parameterized byitiparamto sample each inter-trial interval from (e.g. 'Uniform' for the uniform distribution).
Ephys data structure
As detailed above, data for each ephys session resides in its own subfolder. Within this folder, there is .mat file that contains the behavioral recordings, as well as the data representing the operational state of the acquisition setup. Additionally, there is a Data subfolder for the electrophysiological recording data.
The electrophysiological recordings are unaltered with respect to the default "Open Ephys" data format, and we refer to the excellent documentation by the Open-Ephys team. Recordings were performed using 32-electrode Cambridge Neurotech ASSY-37 probes and, hence, there will be 32-channel files in each Open-Ephys data folder. Additionally, ADC ("analog-to-digital") channel 1 or 2 contains a synchronization input to identify the temporal windows in the recordings corresponding with behavioral trials.
Like the "pure" behavior data, each session's .mat file contains three structs, sess, flag, andparam, where sess holds the recording data. The fields in these structs correspond with those described in the section "Behavior data structure".
Code/software
To access the open-ephys data, free software libraries are distributed, e.g., open-ephys-python-tools or open-ephys-matlab-tools.
To access the behavioral recordings, any solution able to load .mat files will suffice. Some options include MATLAB, Python with SciPy, or Julia with MAT.jl.
The code released accompanying the manuscript can be found in the Zenodo archive ‘NarainNeuro/Koppenetal2026: code for Koppen et al. 2026’.
