Sie sind auf Seite 1von 18

Contextual encoding by ensembles of medial

prefrontal cortex neurons


James M. Hymana,1, Liya Maa, Emili Balaguer-Ballesterb, Daniel Durstewitzb,2, and Jeremy K. Seamansa,2
a
Brain Research Centre, Psychiatry, Faculty of Medicine, University of British Columbia, Vancouver, BC, Canada V6T 2B5; and bBernstein Center for
Computational Neuroscience, Central Institute of Mental Health, Psychiatry, Medical Faculty Mannheim of Heidelberg University, 68159 Mannheim, Germany

Edited by Charles F. Stevens, The Salk Institute for Biological Studies, La Jolla, CA, and approved February 17, 2012 (received for review September 1, 2011)

Contextual representations serve to guide many aspects of behav- quite complex spatial environments, like mazes (35). However,
ior and influence the way stimuli or actions are encoded and mPFC lesions do make hippocampal unit place fields less stable
interpreted. The medial prefrontal cortex (mPFC), including the over time and more reactive to changes in the local environment
anterior cingulate subregion, has been implicated in contextual (36, 37). This result is consistent with the idea that the PFC might
encoding, yet the nature of contextual representations formed by provide a more global representation of the spatial context (1,
the mPFC is unclear. Using multiple single-unit tetrode recordings in 38–40) that is independent of the subject’s exact perspective.
rats, we found that different activity patterns emerged in mPFC The present study focused on how mPFC might encode whole
ensembles when animals moved between different environmental contextual settings and how these types of representations may
contexts. These differences in activity patterns were significantly differ from those of the hippocampus. Toward these ends, we
larger than those observed for hippocampal ensembles. Whereas recorded multiple single units using 16 tetrodes implanted into
≈11% of mPFC cells consistently preferred one environment over the mPFC or hippocampus while animals were switched between
the other across multiple exposures to the same environments, op- two distinct environments. Several potential factors were con-
timal decoding (prediction) of the environmental setting occurred

NEUROSCIENCE
sidered that could contribute to differences in activity state
when the activity of up to ≈50% of all mPFC neurons was taken into patterns across contexts, including differences in sensory cues,
account. On the other hand, population activity patterns were not differences in movement patterns, and the passage of time. Fi-
identical upon repeated exposures to the very same environment. nally, given the important role of the mPFC in action monitoring
This was partly because the state of mPFC ensembles seemed to and encoding (29, 32, 41, 42), we investigated whether context
systematically shift with time, such that we could sometimes predict affected the way specific actions were represented.
the change in ensemble state upon later reentry into one environ-
ment according to linear extrapolation from the time-dependent Results
shifts observed during the first exposure. We also observed that Different Environments Are Associated with Different Ensemble
many strongly action-selective mPFC neurons exhibited a significant
Activity Patterns in mPFC. We first investigated how mPFC net-
degree of context-dependent modulation. These results highlight
works represented environmental context by recording the ac-
potential differences in contextual encoding schemes by the mPFC
tivity of 26–109 neurons per animal (total of five animals) in the
and hippocampus and suggest that the mPFC forms rich contextual
anterior cingulate cortex subregion as animals were simply
representations that take into account not only sensory cues but
placed in two different novel environments (“A” and “B,” Fig.
also actions and time.
S1A) and allowed to freely explore. The instantaneous firing
rates (iFR) of all recorded neurons at each 500-ms time bin were
electrophysiological recordings | population analysis | temporal encoding collected in a population vector, and the space populated by all
these vectors is termed the multiple single-unit activity (MSUA)
M any aspects of behavior are contextually dependent. Con-
texts can be abstract, as in the case of human language, or can
be more concrete and be defined by the constellation of spatial and
space (Methods). A 3D projection of the MSUA space, obtained
by multidimensional scaling (MDS), in which each point repre-
sents the state of the entire recorded ensemble within one 500-
sensory stimuli surrounding an individual. Contextual representa- ms bin, is shown in Fig. 1A. All points corresponding to different
tions can form quickly and tend to remain stable despite local 500-ms bins within the same environment are shown in the same
variations in perspective (1). Context can also help to inform the color. MDS was used purely for visualization, and all statistical
subject about potential changes in the meaning of stimuli and analyses were performed in the full space of all recorded units
actions. The medial prefrontal cortex (mPFC) is involved in various (43). The MSUA space representation shown in Fig. 1A depicts
forms of cognition that depend on spatial and contextual infor- the state of an mPFC ensemble for a 6 min, 40-s period when
mation, including context-based cognitive tasks (2–4), contextual a rat was switched from one environment to another. The black
fear conditioning (5), and context-induced drug relapse (6–8), and dots represent the final 3 min and 20 s in environment A, and the
is believed to be an important node in the “context” network (1, 9– green dots represent the first 3 min and 20 s in environment B.
12). These functions likely depend on reciprocal interactions with The differently colored dots corresponding to the times spent in
the hippocampus (13, 14), an area that has a well-established role each unique environment tightly clustered within distinct regions
in spatial and contextual processing (15–20). Through the con- of MSUA space, indicating that different environments were
nection from the CA1 region, the hippocampus has multiple
profound effects on mPFC neurons (21–28), and it has been
proposed that during spatial navigation the mPFC may work in Author contributions: J.M.H. and J.K.S. designed research; J.M.H. and L.M. performed
concert with the hippocampus to encode goal locations and aid in research; J.M.H. and D.D. contributed new reagents/analytic tools; J.M.H., L.M., E.B.-B.,
route planning (29, 30). However, the spatial representations and D.D. analyzed data; and J.M.H., D.D., and J.K.S. wrote the paper.
formed by the mPFC are different from those formed by the The authors declare no conflict of interest.
hippocampus: mPFC neurons do not seem to have clear place This article is a PNAS Direct Submission.
fields and presumably do not form the same sort of spatial map 1
To whom correspondence should be addressed. E-mail: hyman.jm@gmail.com.
that would inform the animal precisely where it is within an en- 2
D.D. and J.K.S. contributed equally to this work.
vironmental context (31–34). Accordingly, lesions of the mPFC This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10.
do not prevent rats from being able to navigate through even 1073/pnas.1114415109/-/DCSupplemental.

www.pnas.org/cgi/doi/10.1073/pnas.1114415109 PNAS Early Edition | 1 of 6


These results were not due to a general, nonspecific damp-
ening or enhancement of the overall population activity (SI
Results). Nevertheless, movement paths were different (Fig. S2C)
and could contribute to the ensemble separation, consistent with
past studies (44, 45). However, we still observed a significant
separation between the clouds of iFR points in the 3D projection
of the MSUA space associated with two environments, even
when movement effects were controlled by either restricting
movement altogether (Fig. S3 A and B) or by enforcing similar
movement patterns in the two environments (Fig. S3 C and D).
Fig. 1. Representation of environmental context during free exploration.
Finally a significant differentiation between ensemble states was
(A) 3D projection of MSUA spaces for free exploration sessions using novel also observed if the contexts were familiar rather than novel (Fig.
environments. Dots (population vectors) are colored according to whether S4 A–C) or if the rats moved between environments by them-
they were taken from environment A (black) or B (green). The axes of these selves rather than being carried over by hand (Fig. S4 D and E).
3D projections correspond to different combinations of the single-unit firing
rates, as derived by MDS. (B) Mean Mahalanobis distances comparing groups Contrasting mPFC with Hippocampal Representations. Because hip-
of points within one environment vs. between two environments for mPFC pocampal neurons are strongly involved in the representation of
ensembles. Mean values are from all subjects and sessions (paired t tests and spatial context (8–13), we decided to contrast the results de-
Wilcoxon signed rank tests; **P < 10−5; error bars = SEM; n = 7 sessions from
five animals).
scribed above for mPFC ensembles with the results of similar
experiments performed in rats with tetrode arrays implanted into
the CA1 region of the hippocampus (n = 85 neurons from two
associated with different patterns of activity across the pop- rats during three sessions). For the mPFC ensemble shown in
ulation of recorded units. To confirm these visual observations Fig. 2A (Lower), there was some separation between the clouds
statistically, the Mahalanobis distances between the two clusters of iFR points in the 3D projection of the MSUA space corre-
of iFR vectors in the full MSUA space, corresponding to the sponding to the two different spatial locations within one envi-
times in each environment, were calculated. When Mahalanobis ronment demarcated in Fig. 2A (Upper) (black vs. gray and dark
green vs. light green). Fig. 2A also shows that both location
distances were computed between sets of iFR vectors from dif-
representations seemed to shift in the MSUA space from one
ferent environments, the differentiation between neural ensem- exposure to the next. Accordingly in the group data, a two-way
ble states was approximately two to three times larger compared ANOVA found significant main effects for both recording lo-
with ensemble states taken from the same environment but cation [mPFC or HPC; F(1,23) = 114.38; P < 10−9] and exposure
separated by the same amount of time as for the between-envi- [between first and second exposure vs. within a single exposure;
ronment comparison [t(9) = 4.98; P < 10−5; Wilcoxon signed F(1,23) = 86.57; P < 10−7], as well as a significant interaction
rank = 0; P < 10−4; Fig. 1B; Fig. S1C is an illustration of the effect [F(1,23) = 221.81; P < 10−15]. Tukey’s post hoc tests
analysis]. The single-cell basis for these population effects will be revealed that for mPFC ensembles the Mahalanobis distance
investigated in greater detail below. between the clusters of points representing the same location on

Fig. 2. Comparison of mPFC and hippocampal ensemble representations and temporal context effects. (A) mPFC ensemble encoding of locations within
a single environment on two different exposures. Upper: Animals were exposed to one environment on two occasions. Dots denote the location of the rat in
the environment in 500-ms time bins. Black dots correspond to the time bins when the rat was in the NE corner during first exposure, and dark green dots
correspond to the time bins when the rat was in the same corner of the same environment on the second exposure. Gray dots correspond to the time bins
when the rat was in the SW corner during first exposure, and light green dots to those when the rat was in the same corner of the same environment on the
second exposure. Red dots correspond to all other time bins for all other locations that were not considered in the present analysis. Lower: MSUA space
representation for the ensemble of mPFC neurons recorded during the same session. Dots correspond to the state of the network in MSUA space in 500-ms
bins and are colored according to the time bins in the location map above. (B) Hippocampal ensemble encoding of locations within a single environment on
two different exposures. Upper: Dots denote the location of the rat in the environment in 500-ms time bins, based on the same color scheme as used in A.
Lower: MSUA space for the ensemble of hippocampal neurons recorded during the same session. Dots correspond to the state of the network in MSUA space
in 500-ms bins and are colored according to the time bins in the location map above, as in A. (C) Mean Mahalanobis distances in MSUA space comparing time
bins when subjects were in the same location in the same environment on two different exposures (black bars) vs. different locations in the same environment
on a single exposure (striped bars). Data for mPFC ensembles are shown at left, and data for hippocampal (HPC) ensembles at right (**P < 0.0001; error bars =
SEM; n = 24 data points from 6 sessions from five animals). Note that mPFC population vectors differentiated more between the two exposures for the same
location, whereas hippocampal ensembles differentiated more strongly between different locations during a single exposure.

2 of 6 | www.pnas.org/cgi/doi/10.1073/pnas.1114415109 Hyman et al.


two subsequent exposures (black bars, Fig. 2C) was much larger a potential confound). To formally address the impact of time vs.
than the distance between the clusters of points representing two environment, we fitted a simple linear model to the sets of
locations during one exposure (striped bars, Fig. 2C). In stark MSUA space distances Dmah = β0 + β1Envt + β2Δt, where Δt is
contrast, post hoc tests indicated that for hippocampal ensem- the amount of temporal separation between MSUA vector sets,
bles (Fig. 2B) the Mahalanobis distance between the clusters of and the dummy variable Envt ∈ {−1, +1} encodes whether en-
points representing two locations during one exposure (striped vironment A or B was presented. For the mPFC data sets we
bars, Fig. 2C) was significantly larger than the distance between checked (via F ratios; SI Methods) whether each of the two
the clusters of points representing the same location on two factors (environment, time) on its own (with the other factor not
subsequent exposures (black bars, Fig. 2C). When directly included) explains a significant amount of variation in the
compared, mPFC ensembles exhibited significantly greater sep- MSUA space distances and whether it significantly adds to the
aration in their representation of a single location between two amount of explained variance when the respective other factor
exposures to the same environment relative to hippocampal was already in the model. A factor was considered significant
ensembles (black bars, Fig. 2C). In contrast, post hoc tests also only if it survived both of these statistical comparisons. In three
confirmed that hippocampal ensembles exhibited significantly of six data sets, both environment and time significantly con-
larger separation in their representation of two distinct locations tributed on their own and in conjunction with the respective
within an environment on a single exposure relative to mPFC other factor to the amount of Dmah variation (all P < 10−3). In
ensembles (striped bars, Fig. 2C). Thus, although hippocampal one other data set only the environment factor reached signifi-
ensembles differentiated much more strongly between two spa- cance, whereas in the remaining two only the time factor was
tial locations within a given environment than between two dif- significant (all P < 10−6).
ferent exposures to the same environment, mPFC ensembles in We next used the model-based approach to determine
contrast strongly differentiated between two successive expo- whether the gradual time-dependent shifts could explain the shift
sures but much less between two spatial locations within the in mPFC representations upon multiple repetitions of the same
same exposure and setting (further analyses of mPFC–hippo- environment (Fig. 2A). To this end, the linear model above was
fitted to the mean within-repetition distances and then applied to

NEUROSCIENCE
campal differences in SI Results).
the mean between-repetition distances. That is, if A, B denote
Time-on-Task Affects mPFC Ensemble Activity. The lack of consis- the two environments and A′, B′ their repetitions, the model was
tency in the representation of spatial locations in mPFC activity first fit to distances between vector sets taken from A only, B
across repeated exposures to the same environmental setting only, A′ only, or B′ only (within-environment), and from A-B or
suggests that other factors, such as time, may underlie the strong A′-B′ (between-environment). The parameters were then fixed,
environmental context effects. To examine the impact of time, and it was determined how well this model predicted distances for
we analyzed Mahalanobis distances between sets of iFR pop- comparisons A-A′, B-B′ (between-repetition but within-envi-
ulation vectors as a function of both temporal separation and ronment; Fig. 3B) and from A-B′, A′-B (between-repetition and
according to whether these iFR vector sets were drawn from the between-environment). For three of the six data sets with re-
same or different environments (Fig. 3A). As Fig. 3A shows, the peated exposures, approximately 50–75% of the variance of the
MSUA space separation between any two sets of population mean between-repetition distances (with transients removed)
vectors indeed increases as the temporal spacing between these could be accounted for by the model obtained from the mean
two sets becomes larger. However, at the same time, along the within-repetition distances (all P < 10−5). This confirms that for
whole time-axis in Fig. 3A there is a clear substantial increase in at least half of the data sets a considerable proportion of the iFR
the MSUA space distances when comparing population vectors activity shifts across repetitions were due to timing effects.
from the same vs. different environments even for the very same
amount of temporal separation (i.e., when time is removed as Consistency of Single-Unit Responses upon Repeat Visits to the Same
Environmental Context. All of the analyses above involved pop-
ulation activity patterns. We next analyzed the environmental
selectivity (Methods) of single mPFC neurons over multiple
exposures to two different environments (A and B). To limit
differences in movement across environments as much as pos-
sible, animals were placed in a small plastic chamber (Fig. S1B
shows experimental details) that was transferred back and forth
between the environments five times. When we examined the
environmental selectivity across the five different A-B exposures
we found that a small but significant number of neurons [11%,
binomial P < 0.03; χ2(5) = 15.57, P < 0.007; Fig. S6F] consis-
tently preferred one environment vs. the other across all five A-B
switches. However, this approach of determining selectivity may
be quite conservative because it uses only binary information
(A > B or B > A) from each cell and exposure, with firing rates
Fig. 3. Impact of temporal context on mPFC ensemble activity. (A) Mean averaged across whole exposure periods. Thus, as a more sen-
Mahalanobis distance, from an example session, between sets of population sitive approach that takes into account firing rate variations on
vectors drawn from within the same (A-A, A′-A′, B-B, B′-B′; green line) or a time-bin by time-bin basis within each environment, a decoding
from between different (A-B, A′-B′; red line) environments (hyphen indicates analysis based on linear classifiers was carried out. To these ends,
repetition), and for different amounts of temporal separation (Δt). MSUA for each data set a linear discriminant function was fitted to the
space distances increase with both temporal and environmental difference. first three environment A-B repetitions (the “training set”) to
Shaded areas indicate SEM. Transients at the start or end of environmental
determine a hyperplane in MSUA space that optimally separated
exposures were removed (SI Methods). (B) Example session illustrating the
impact of time and environment on Mahalanobis distances between iFR sets
the two environments (Fig. S6G). Prediction performance of this
taken from within the same (green) or between different (blue) repetitions classifier was then tested on population vectors from the two
of the same environment (see main text for explanation). Shaded areas = remaining (fourth and fifth) A-B repetitions (the “test set”), that
SEM. The green regression line indicates the predictions from the time/en- is on trials that had not been used for fitting the classifier (see ref.
vironment-model fit to the within-repetition distances (i.e., to the data in A). 46). iFR population vectors from the test set falling onto the

Hyman et al. PNAS Early Edition | 3 of 6


wrong side of the separating hyperplane obtained from the significantly correlated overall (r = 0.44, P < 0.001; Fig. S7A), yet
training set predict environmental setting incorrectly and thus the strength of the correlation was not too high, suggesting that
contribute to the (predicted) separation error. Using this clas- some degree of contextual modulation may be present. Lever
sification approach, neuronal samples were built starting with the press-responsive neurons were defined as those that had an ab-
most responsive units and then progressively adding neurons solute selectivity score of at least |d′| > 0.5 for the lever press
until all units were incorporated in the (sub)population used for period (on either the right or left levers) vs. the intertrial in-
prediction. Fig. S6H shows that decoding performance improved terval. Of the 107 total neurons in this sample, 36 were deemed
as more neurons were added, up to the point where approxi- “lever-press responsive” using these criteria. In total, 33% (12 of
mately 50% of all units were included in the classifier, after 36) of lever press-selective neurons fired consistently more to
which prediction performance started to degrade again (owing to lever presses in one environment vs. the other (SI Results).
the increase in noise as the sample is further expanded). At the Responses to a given lever press could differ both in terms of
point of optimal prediction performance, ≈84% of iFR vectors magnitude (Fig. 4B and Fig. S7B) or timing (Fig. 4C and Fig.
from the test trials were correctly assigned, and the largest S7B) if performed in environment A vs. B. These analyses show
Mahalanobis distances between context groups were observed. that environmental context affects the profile of the lever press
For this optimally predictive sample of size of ≈50%, the sepa- responses and that a significant proportion of neurons re-
ration error was significantly lower than the one in non- sponsive to lever presses were also selective for one of the
parametric bootstraps (P < 0.01; constructed by randomly two environments.
shuffling blocks of iFR vectors of length 10 s from different
environments or exposures; details in SI Methods), and it was Discussion
also significantly smaller than in samples consisting of ≈10% of The present study showed that the activity of ensembles of
the maximally responsive units [that is, about the relative pro- mPFC neurons contains information about entire environmental
portion of units that was found to express consistent environ- contexts or changes in context, whereas hippocampal ensembles
mental selectivity in the binomial analysis above; t(4) = 5.13; P = tended to provide more consistent and specific representations
0.007, Bonferroni-corrected P < 0.027]. Thus, although many of locations within a given context. Contextual differentiation by
units may not consistently prefer one environment over the other mPFC ensembles was based on a number of factors, including
according to firing rates averaged across whole exposures, many differences in the sensory attributes that define an environment,
neurons may still contribute to environmental coding at specific time, and as we explain below, movement patterns. Context in
time points during the exposures. turn affected the way in which lever press actions were encoded
at the ensemble and single-neuron level.
Context Affects the Way in Which Actions Are Encoded by mPFC Given the role of the PFC in spatially based cognition and the
Neurons and Networks. Finally we examined how contextual in- strong input the mPFC receives from the hippocampus (both
formation affected action encoding by mPFC neurons. For this directly and indirectly via the mediodorsal thalamus) (13, 14), it
analysis we had rats perform an operant-based continuous al- seemed logical to expect that mPFC neuronal responses would
ternation task in two environments (Fig. S1A). In this case, we be at least in part affected by information about the rat’s spatial
found that there was a larger Mahalanobis distance between context. In addition, the mPFC plays a key role in context-based
presses made on the same lever across the two environments cognitive tasks (2, 3) and context-induced drug relapse (6–8),
than between left and right lever presses performed within the and is believed to be an important node in the “context” network
same environment [t(9) = 4.98, P < 0.01; Wilcoxon signed rank (1, 9–12). However, despite numerous attempts, studies have
test, P < 0.01; Fig. 4A]. This result suggests that environmental consistently failed to find any clear location-specific mPFC firing
context may have a strong impact on how lever press actions are patterns that are independent of behavior (i.e., place cells) (31–
encoded at the ensemble level. 34). The present data were largely consistent with these studies
At the single-neuron level, the selectivities of individual neu- in that mPFC activity was more affected by changes in environ-
rons for left vs. right lever presses in environment A vs. B were mental context on a large scale rather than by the rat’s precise
spatial location. In contrast, the activity of hippocampal en-
sembles depended more on the unique constellation of place
cells that provided location-specific information rather than on
overall environmental context, although significant discrimina-
tion between whole contexts was also present at the hippocampal
level (compare Fig. S5).
Various factors impacted the manner in which mPFC neurons
and ensembles responded to context. First, ≈11% of individual
mPFC neurons maintained a stable preference for a given en-
vironment across all five exposures in the restricted-movement
sessions, indicating that they may be consistently responding to
certain sensory features of a given environment. However, more
sensitive decoding analysis revealed that in fact up to ≈50% of
neurons may contribute to the encoding of environmental con-
text. Second, although separations in MSUA space were still
detectable in the restricted movement condition, the separations
Fig. 4. Environmental context encoding by “lever press-responsive” neu- were smaller than those observed for the free exploration ses-
rons. (A) Mahalanobis distances between lever presses made on the same sions (Fig. S3 A and B). Likewise, the enforced similarity in
lever in two environments (black) vs. lever presses made on two different movement patterns created by the continuous alternation task
levers in one environment (striped) (n = 3 sessions from three animals). (B
reduced the separation in MSUA space (Fig. S3 C and D).
and C) Contextual modulation of lever press-related neuronal activity. Up-
per: Lever presses on the preferred lever are plotted for both environment
Therefore, consistent with the conclusions of past studies (44,
A (black) and B (green). Lower: Nonpreferred lever responses in the two 45), different movement patterns associated with exploration of
environments (A, gray and B, light green). Solid lines show mean iFR and different environments also impacted mPFC activity. Finally, the
dotted lines SEM. Inset numbers indicate cell number (corresponding to Fig. activity state patterns were not static in a given environment but
S7B) and |d′| values for these neurons. seemed to systematically drift over time, suggesting that mPFC

4 of 6 | www.pnas.org/cgi/doi/10.1073/pnas.1114415109 Hyman et al.


ensembles may also encode “time-on-task” as part of their con- Data Analysis. The present study used methods described previously by Lapish
textual representation (Fig. 3). In fact, by linearly extrapolating et al. (43) and Durstewitz et al. (50). To obtain an estimate of the neural
from the changes in MSUA space distances produced by changes firing rate for each isolated cell i as a function of time bin t, ri(t), all spike
in temporal separation, it was possible in some data sets to trains were convolved with Gaussian kernels (SD = 500/4 ms) and binned at
500 ms (approximately the inverse of the average firing rate of ≈2.4 Hz).
predict how far the network state would have moved when the
Neurons with average firing rates below 0.1 Hz were excluded from further
animal returned to the same environment at a later point in time.
analysis. For population analysis, population vectors r(t) = [r1(t) . . . rN(t)] were
This constant temporal movement of the network state could formed (called iFR vectors), with N the number of single units isolated from
therefore explain to some degree why different exposures to the a given recording session. The term MSUA space refers to the N-dimensional
very same environment were associated with quite different space spanned by all recorded units and populated by these vectors r(t).
population activity states. Several recent reports have shown To quantify environmental effects on network activity, we computed the
similar time-related encoding by hippocampal cells and ensem- Mahalanobis distances (e.g., ref. 52) between the sets of N-dimensional
bles (47–49). Although we could also confirm significant tem- vectors associated with the different environment epochs, with covariance
poral movement in our hippocampal ensembles within a given matrices pooled for the two conditions compared. The (squared) Mahala-
environment (compare Fig. S5 A and B) that was not significantly nobis distance between two sets of points can be thought of as the Eu-
different from the one seen in mPFC (compare Fig. S5C), in clidean distance between the group means normalized by the covariances of
contrast to the mPFC there seemed to be little or no temporal the data along all MSUA dimensions (i.e., it quantifies the separation be-
shift in network state across repetitions of the same environment tween two clouds of points in relation to the data scatter). Because the
(compare Fig. 2), and hence population representations tended number of dimensions (neurons) could sometimes approach the number of
data points (time bins), a regularized version of the covariance matrix was
to be more similar on repeated exposures in hippocampus.
used (e.g., ref. 53) to avoid singularity and statistical reliability issues.
Collectively these data suggest that for the mPFC “context” may
There was no selection of units, and all units were included in all analyses
depend not only on sensory features of the environment but also
unless otherwise stated. In the present data set, ensembles ranging from 26 to
the animal’s actions and the passage of time. 109 units per rat were recorded simultaneously, yielding MSUA spaces of
Action representations were in turn influenced by the context in dimensionality 26–109. To control for potential confounds in Mahalanobis
which they were performed. Of all of the neurons that responded

NEUROSCIENCE
distance comparisons, like differences in MSUA space dimensionality or in
to lever presses during the continuous alternation task, we found the sample size, we selected the same number of units and vector points for
that ≈33% had a consistent preference for one environment over each distance calculation. We limited the number of dimensions to the
another. In the present study, these actions had the same meaning smallest recorded ensemble size by randomly selecting only this number of
in both environmental contexts because the animals were per- neurons from the larger ensembles 1,000 times, and taking the averages
forming the same continuous alternation task. Recently we found across these 1,000 random drawings to still make full use of all units
that a change in the task rule in the same physical environment recorded. For all between- and within-environment context analyses sample
induces a sudden and profound change in network activity state sizes of the same number of vector points (200 time bins) were used for each
within the mPFC (50). Perhaps if the task context changed along set of vectors compared in all sessions.
with the environmental context (e.g., the same actions took on a To assess whether environmental switches affected ensemble activity
different meaning in a different environment), a larger shift in the states, we compared Mahalanobis distances between equivalent time periods
from either one (within) or two (between) environments. For within-envi-
representations of actions might have been observed. In this case,
ronment comparisons, we used two periods of 200 time bins from the last
the context information could have been exploited to trigger the
section within one environment, which were separated by the same amount
appropriate actions, similar to many ecological situations in which of time that it took to transfer animals between the two environments. For
the meaning of stimuli and actions depends on the surrounding between-environment comparisons we selected the final 200 time bins from
context in which they are embedded. the first environment and the first 200 time bins from the second environ-
Collectively, the present results suggest that mPFC may track ment (Fig. S1C). Thus, for these comparisons time was eliminated as a con-
contexts or contextual boundaries as well as alter the inter- founding factor. Paired t tests and nonparametric Wilcoxon signed rank
pretation or meaning of stimuli and actions so they are consis- tests were performed on within- and between-environment distances for
tent with the present context. A dysfunction in this or a related each behavioral condition.
form of contextual processing at the level of the PFC may be an
important factor in the cognitive deficits observed in patients ACKNOWLEDGMENTS. We thank Dr. Chris Lapish for helpful discussions on
with schizophrenia, as previously proposed (51). the manuscript. This work was funded by grants from the Canadian Institutes
for Health Research and National Alliance for Research on Schizophrenia and
Depression (to J.K.S.) and by Bundesministerium fuer Bildung und Forschung
Methods Grant 01GQ1003B and Deutsche Forschungsgemeinschaft Grant Du 354/6-
Subjects, Surgery, and Behavior. Details in SI Methods. 1,7-2 (to D.D.).

1. Bar M (2004) Visual objects in context. Nat Rev Neurosci 5:617–629. 10. Burgess N, Becker S, King JA, O’Keefe J (2001) Memory for events and their spatial
2. Shidara M, Richmond BJ (2002) Anterior cingulate: Single neuronal signals related to context: Models and experiments. Philos Trans R Soc Lond B Biol Sci 356:1493–1503.
degree of reward expectancy. Science 296:1709–1711. 11. Kalisch R, et al. (2006) Context-dependent human extinction memory is mediated by
3. Kennerley SW, Walton ME, Behrens TE, Buckley MJ, Rushworth MF (2006) Optimal a ventromedial prefrontal and hippocampal network. J Neurosci 26:9503–9511.
decision making and the anterior cingulate cortex. Nat Neurosci 9:940–947. 12. Peters J, Daum I, Gizewski E, Forsting M, Suchan B (2009) Associations evoked during
4. Lee I, Solivan F (2008) The roles of the medial prefrontal cortex and hippocampus in memory encoding recruit the context-network. Hippocampus 19:141–151.
a spatial paired-association task. Learn Mem 15:357–367. 13. Laroche S, Jay TM, Thierry AM (1990) Long-term potentiation in the prefrontal cortex
5. Corcoran KA, Quirk GJ (2007) Activity in prelimbic cortex is necessary for the ex- following stimulation of the hippocampal CA1/subicular region. Neurosci Lett 114:184–190.
pression of learned, but not innate, fears. J Neurosci 27:840–844. 14. Vertes RP (2006) Interactions among the medial prefrontal cortex, hippocampus and
6. Di Pietro NC, Black YD, Kantak KM (2006) Context-dependent prefrontal cortex midline thalamus in emotional and cognitive processing in the rat. Neuroscience 142:
regulation of cocaine self-administration and reinstatement behaviors in rats. Eur J 1–20.
Neurosci 24:3285–3298. 15. O’Keefe J, Dostrovsky J (1971) The hippocampus as a spatial map. Preliminary evi-
7. Hearing MC, See RE, McGinty JF (2008) Relapse to cocaine-seeking increases activity- dence from unit activity in the freely-moving rat. Brain Res 34:171–175.
regulated gene expression differentially in the striatum and cerebral cortex of rats 16. Olton DS, Branch M, Best PJ (1978) Spatial correlates of hippocampal unit activity. Exp
following short or long periods of abstinence. Brain Struct Funct 213:215–227. Neurol 58:387–409.
8. Bossert JM, et al. (2011) Ventral medial prefrontal cortex neuronal ensembles mediate 17. Watanabe T, Niki H (1985) Hippocampal unit activity and delayed response in the
context-induced relapse to heroin. Nat Neurosci 14:420–422. monkey. Brain Res 325:241–254.
9. Jantzen KJ, Oullier O, Marshall M, Steinberg FL, Kelso JA (2007) A parametric fMRI 18. Eichenbaum H, Kuperstein M, Fagan A, Nagode J (1987) Cue-sampling and goal-ap-
investigation of context effects in sensorimotor timing and coordination. Neuro- proach correlates of hippocampal unit activity in rats performing an odor-discrimi-
psychologia 45:673–684. nation task. J Neurosci 7:716–732.

Hyman et al. PNAS Early Edition | 5 of 6


19. Rolls ET, et al. (1989) Hippocampal neurons in the monkey with activity related to the 37. Kyd RJ, Bilkey DK (2005) Hippocampal place cells show increased sensitivity to
place in which a stimulus is shown. J Neurosci 9:1835–1845. changes in the local environment following prefrontal cortex lesions. Cereb Cortex
20. Suzuki WA, Miller EK, Desimone R (1997) Object and place memory in the macaque 15:720–731.
entorhinal cortex. J Neurophysiol 78:1062–1081. 38. Mair RG, Burk JA, Porter MC (1998) Lesions of the frontal cortex, hippocampus, and
21. Hyman JM, Zilli EA, Paley AM, Hasselmo ME (2005) Medial prefrontal cortex cells show intralaminar thalamic nuclei have distinct effects on remembering in rats. Behav
dynamic modulation with the hippocampal theta rhythm dependent on behavior. Neurosci 112:772–792.
Hippocampus 15:739–749. 39. Bar M (2007) The proactive brain: Using analogies and associations to generate
22. Jones MW, Wilson MA (2005) Theta rhythms coordinate hippocampal-prefrontal in-
predictions. Trends Cogn Sci 11:280–289.
teractions in a spatial memory task. PLoS Biol 3:e402.
40. Ciaramelli E, Leo F, Del Viva MM, Burr DC, Ladavas E (2007) The contribution of
23. Siapas AG, Lubenov EV, Wilson MA (2005) Prefrontal phase locking to hippocampal
prefrontal cortex to global perception. Exp Brain Res 181:427–434.
theta oscillations. Neuron 46:141–151.
41. Shima K, Tanji J (1998) Role for cingulate motor area cells in voluntary movement
24. Euston DR, Tatsuno M, McNaughton BL (2007) Fast-forward playback of recent
selection based on reward. Science 282:1335–1338.
memory sequences in prefrontal cortex during sleep. Science 318:1147–1150.
42. Matsumoto K, Suzuki W, Tanaka K (2003) Neuronal correlates of goal-based motor
25. Sirota A, et al. (2008) Entrainment of neocortical neurons and gamma oscillations by
the hippocampal theta rhythm. Neuron 60:683–697. selection in the prefrontal cortex. Science 301:229–232.
26. Adhikari A, Topiwala MA, Gordon JA (2010) Synchronized activity between the 43. Lapish CC, Durstewitz D, Chandler LJ, Seamans JK (2008) Successful choice behavior is
ventral hippocampus and the medial prefrontal cortex during anxiety. Neuron 65: associated with distinct and coherent network states in anterior cingulate cortex. Proc
257–269. Natl Acad Sci USA 105:11963–11968.
27. Benchenane K, et al. (2010) Coherent theta oscillations and reorganization of spike 44. Euston DR, McNaughton BL (2006) Apparent encoding of sequential context in rat
timing in the hippocampal- prefrontal network upon learning. Neuron 66:921–936. medial prefrontal cortex is accounted for by behavioral variability. J Neurosci 26:
28. Hyman JM, Zilli EA, Paley AM, Hasselmo ME (2010) Working memory performance 13143–13155.
correlates with prefrontal-hippocampal theta interactions but not with prefrontal 45. Cowen SL, McNaughton BL (2007) Selective delay activity in the medial prefrontal
neuron firing rates. Front Integr Neurosci 4:2. cortex of the rat: Contribution of sensorimotor information and contingency. J
29. Pratt WE, Mizumori SJ (2001) Neurons in rat medial prefrontal cortex show antici- Neurophysiol 98:303–316.
patory rate changes to predictable differential rewards in a spatial memory task. 46. Balaguer-Ballester E, Lapish CC, Seamans JK, Durstewitz D (2011) Attracting dynamics
Behav Brain Res 123:165–183. of frontal cortex ensembles during memory-guided decision-making. PLOS Comput
30. Poucet B, et al. (2004) Spatial navigation and hippocampal place cell firing: The Biol 7:e1002057.
problem of goal encoding. Rev Neurosci 15:89–107. 47. Manns JR, Howard MW, Eichenbaum H (2007) Gradual changes in hippocampal ac-
31. Poucet B (1997) Searching for spatial unit firing in the prelimbic area of the rat medial
tivity support remembering the order of events. Neuron 56:530–540.
prefrontal cortex. Behav Brain Res 84:151–159.
48. MacDonald CJ, Lepage KQ, Eden UT, Eichenbaum H (2011) Hippocampal “time cells”
32. Isomura Y, Takada M (2004) Neural mechanisms of versatile functions in primate
bridge the gap in memory for discontiguous events. Neuron 71:737–749.
anterior cingulate cortex. Rev Neurosci 15:279–291.
49. Naya Y, Suzuki WA (2011) Integrating what and when across the primate medial
33. Hok V, Save E, Lenck-Santini PP, Poucet B (2005) Coding for spatial goals in the
temporal lobe. Science 333:773–776.
prelimbic/infralimbic area of the rat frontal cortex. Proc Natl Acad Sci USA 102:
50. Durstewitz D, Vittoz NM, Floresco SB, Seamans JK (2010) Abrupt transitions between
4602–4607.
34. Hoshi E, Sawamura H, Tanji J (2005) Neurons in the rostral cingulate motor area prefrontal neural ensemble states accompany behavioral transitions during rule
monitor multiple phases of visuomotor behavior with modest parametric selectivity. J learning. Neuron 66:438–448.
Neurophysiol 94:640–656. 51. Cohen JD, Servan-Schreiber D (1992) Context, cortex, and dopamine: A connectionist
35. Seamans JK, Floresco SB, Phillips AG (1995) Functional differences between the pre- approach to behavior and biology in schizophrenia. Psychol Rev 99:45–77.
limbic and anterior cingulate regions of the rat prefrontal cortex. Behav Neurosci 109: 52. Krzanowski WJ (2000) Principles of Multivariate Analysis: A User’s Perspective New
1063–1073. York (Oxford Univ Press, New York).
36. Kyd RJ, Bilkey DK (2003) Prefrontal cortex lesions modify the spatial properties of 53. Hastie T, Tibshirani R, Friedman J (2009) The Elements of Statistical Learning: Data
hippocampal place cells. Cereb Cortex 13:444–451. Mining, Inference, and Prediction (Springer Science, New York).

6 of 6 | www.pnas.org/cgi/doi/10.1073/pnas.1114415109 Hyman et al.


Supporting Information
Hyman et al. 10.1073/pnas.1114415109
SI Methods next was termed “pick & place.” This process was repeated
Subjects. A total of 16 adult male Long-Evans rats (Charles River) a second time with periods on the plugging-in stool separating
were used in 31 total recording sessions. Animals were housed each environment switch. For “novel” environment sessions
individually and maintained on a 12-h on/off light–dark cycle. animals had no previous experience with both environments,
Animals used in continuous alternation sessions were trained on whereas “familiar” environment sessions used two environments
these tasks before implant surgery (3 of 16 animals). the animals had two to three past exposures to on previous re-
cording days.
Surgery and Electrophysiology. Animals were deeply anesthetized It is possible that the process of picking the animal up from one
under isoflurane gas and implanted with 16 moveable tetrodes in environment, transferring it to the plugging-in stool for a brief
a hyperdrive. Tetrodes were made of 15-μm coated tungsten steel period, and then placing it into the new environment could have
wire (California Fine Wire) and were initially lowered ≈680 μm influenced ensemble activity and thus confounded environmentally
into cortex during surgery. The hyperdrives were mounted to driven effects. Therefore, to examine the possible impact of the
skull screws using dental acrylic (two grounding screws were method of environmental transfer, we ran a series of sessions on an
placed posterior to lambda, above the cerebellum) and shielded apparatus with two distinct environments connected by a walkway.
in plastic sheeting. After 1–2 wk of postsurgical recovery, animals Each animal performed two environment exposure sessions using
were attached to the tether, and tetrodes were slowly advanced either “walk-through” or pick & place transfer methods (session
ventrally into the medial prefrontal cortex (mPFC) over a 5- to order was counter-balanced across animals). For the walk-through
10-d period. Once all tetrodes were placed into anterior cingulate sessions, animals were initially placed into the first environment,
cortex (anteroposterior: +2.2 mm; mediolateral: ±0.5 mm; dor- and after 10 min a door to the ramp was opened. After the animal
soventral: ≈2.5 mm from cortical surface) according to lowering walked into the ramp area, the door to the first environment was
records and atlas coordinates (1), small adjustments were made closed. After being sequestered on the ramp for ≈1–2 min, the
to maximize the number of neurons recorded. For hippocampal door at the other end of the ramp was opened, granting access to
(HPC) recordings tetrodes were advanced ventrally until sharp the second environment. Upon entering this environment the
waves were detected, and then small adjustments were made ramp door was closed for a 10-min exposure period.
until tetrodes entered the pyramidal cell layer of CA1 (2). Restricted exposure. Restricted exposure sessions were performed
Electrodes were connected to an EIB-36TT (Neuralynx), in a different set of animals from the free-exposure sessions. After
which was plugged into two HS-36 headstages and tether cables the animals were plugged into the tether recording cable, they
(Neuralynx). Signals were sent to a Digital Lynx 64-channel were placed into a small, clear plastic enclosure, and a piece of
system (Neuralynx), converted from analog to digital, and sent to cellophane was used to cover the top (all animals had been
a PC workstation. Electrophysiological, positional, and behav- previously habituated to the vessel beforehand to lessen any
ioral data were read into Cheetah 5.0 software (Neuralynx) and stress-related effects). The enclosure was 5 × 3.5 × 11 inches and
recorded for later analysis. Files were then read into Offline had four 5-inch-long thin vertical slits cut into the two wider
Sorter (Plexon Inc.) for spike sorting. Only spikes with amplitudes sides. Each animal was given two 30-min habituation sessions in
more than 1.5 times the background noise were used for spike the enclosure. During recording sessions the enclosure was then
sorting. Spikes were initially sorted using visually dissociable placed into the center of one of the same environments used for
clusters in 3D projections along multiple different axes for each freely moving exposure sessions for 5 min. Then the enclosure
individual electrode of a tetrode (peak amplitude, valley ampli- was moved into a second environment for 5 min, and this process
tude, peak-to-valley ratio, principal components, and area). was repeated until animals were exposed to each environment
Sorting was confirmed by examining autocorrelations, cross- five times.
correlations, and ANOVAs conducted from 2D and 3D projec- Lever press alternation. The same environments were used for these
tions of the different axes used for visual cluster sorting in Offline experiments as those for the free exposure sessions; however, in
Sorter (Plexon Inc.). Spike timestamps were then read into this case two behavioral panels were inserted. One panel had two
MATLAB (Mathworks) for all further analysis. For all analyses retractable levers (6 inches apart) with a reinforcement spout in
fast spiking units, with mean firing rates >10 Hz (putative in- between, and a second panel, on the opposite side of the envi-
terneurons), were removed to ensure that no biases due to cell ronment, featured a nose-poke port and a stimulus light 2 inches
type skewed the results (in total 65 of 1657 recorded units met above the port (Fig. S1A). For the first trial of each session both
these criteria). levers were extended, and depressing either lever resulted in
reinforcement delivery. After the lever press both levers re-
Behavior. Freely moving exposure. Six distinct environments were tracted, and the stimulus light above the nose-poke port was
used for these sessions. All environments had high walls (>24 illuminated, indicating that the nose-poke port was active. Ani-
inches) to limit the influence of distal room cues. Environments mals then needed to nose-poke, which resulted in the stimulus
differed in size and shape (square, rectangular, or round), ma- light turning off and both levers extending. The animal then
terial (corrugated plastic, Plexiglas, wood, or cardboard), color, needed to depress the lever opposite from the one depressed on
and/or visual stimuli (bare walls or with various visual stimuli, e. the previous trial to receive a reinforcement pellet (if the right
g., magazine cutouts; example environments shown in Fig. S1). lever was depressed on trial 1, then the left lever was the correct
During these sessions animals were placed into the first envi- lever for trial 2, and so on). Trials continued in this alternating
ronment and left there undisturbed for 10 min. They were then fashion until the animal completed at least 20 correct trials, at
removed from the first environment and placed onto the same which point the animal and the response panels were moved to
stool used previously for plugging-in animal’s implants into the a different environment for 20 more trials.
tether recording cable for ≈1.5 min. Next, animals were placed
into a different environment and left to explore for 10 min. This Data Analysis. Statistical controls for ensemble analysis. Potential
method of transferring animals from one environment to the confounds to the observed segregation effects were systematic

Hyman et al. www.pnas.org/cgi/content/short/1114415109 1 of 12


changes in overall mean firing rates across a session. To determine The proportions of explained variance reported in the main text
whether the grand-mean population instantaneous firing rates were for predictions on the mean distances (for given Δt and
(iFRs) were the same for different environments, these were environmental context) and with transients removed from the
simply compared by t tests as reported in the main text (ignoring curves by requiring a minimum of 10 data points for each mean
the dependent nature of the iFR data). Furthermore, a straight (to stabilize mean estimates), but the same pattern of sig-
line was fitted by linear regression to the cumulated mean pop- nificances is obtained when all distances (i.e., without averaging
ulation iFRs in 500-ms bins (Fig. S2A). Stability of the mean or removal of data points) are considered, only that in this case
population iFR throughout the experiment implies a linear slope naturally the proportions of total variation explained dropped to
of the cumulated iFR series, and hence the residuals from a approximatley 18–28% for the three data sets reported in the
linear fit give some indication of the degree to which this as- main text.
sumption may have been violated. Vice versa, the squared linear Spatial location vs. context encoding by ensembles. To examine how
(Pearson) correlation coefficient gives the proportion of data spatial locations within an environment were encoded by mPFC
variance explained by the fit. and HPC ensembles, we first isolated all time bins when the
To control for gross differences in general locomotor activity as animal was in each of the two locations during the first two
a potential confound, the distance traveled (in physical space) was exposures to environments A and B according to position tracking
calculated for each 500-ms bin using position tracking data from data. Two corner locations where the animals spent similar
light-emitting diodes over the animal’s head, and the means were amounts of time were selected for each environment and session,
statistically compared between the two environment periods (as and they were all of similar size (although there was some small
reported in the main text). Furthermore, as for the mean pop- variation between sessions due to differences in the shape and size
ulation iFRs, the proportion of variance explained by a linear fit of the environments; the same coordinates for locations were used
to the cumulated motor activity series was taken as a measure of for all exposures during one session). We then equalized the
the relative constancy of movement activity. Distance traveled
number of neurons and time bins for both locations and exposures
was normalized for all bins to the overall session mean, and
by randomly selecting the minimum number of neurons and bins
cumulative totals over time were plotted (Fig. S2B).
from both locations on both exposures 1,000 times, and then
Analysis of temporal vs. environmental factors. For the analysis of
averaging the Mahalanobis distances across these 1,000 draws.
temporal vs. environmental factors in MSUA representations,
Mahalanobis distances (with strongly regularized, nearly diagonal We calculated distances between iFR vector sets associated with
covariance matrices) were computed for sets of 50 temporally the times spent in the two different locations within one exposure,
consecutive iFR population vectors, taken from either the same or and between the same locations on multiple exposures.
from different environments, and separated by different amounts Ensemble encoding of behavior. To investigate whether different
of time (taken at multiples of 50 bins = 25 s). As indicated in the environmental contexts affected ensemble activity related to
main text, for statistical testing a linear model with environmental behavioral actions, we compared lever presses in two different
and time factors was fitted to these data. For checking significance, environments during continuous lever press-alternation sessions.
for both factors (i) the amount of Dmah variation accounted for by Activity during a 2-s time window around lever presses was used
that factor in isolation [i.e., with only β1 (environment) or β2 for comparisons of action-related activity within or between
(time) present in the model, compared to the “intercept-only- environments. If the two environments are denoted by A and B,
model”] and (ii) the amount of variation additionally explained and the lever presses to the left and right by L and R, respectively,
with the respective other factor already included was examined. Mahalanobis distances were then computed between sets of iFR
Statistical testing was performed via the F-ratio F1;N − p ¼ vectors associated with correct lever presses from the four pairs
ðN − pÞðRSS1 − RSS0 Þ=RSS0 with RSS0 the residual sum of AL-AR, BL-BR, AR-BR, and AL-BL. Thus, four Mahalanobis
squares of the larger model (with the larger number of free distances were calculated for each session, two for left vs. right
parameters p), and RSS1 the same for the smaller model. lever presses within each environment, and two for left and right
For the between-repetition tests, the model was first fit to the responses between environments. Mahalanobis distances from
within-repetition distances only and then fixed. This yielded a the first two pairs (AL-AR and BL-BR) were then averaged to
prediction for the between-repetition distances for which the give a separation index between L and R independent of envi-
goodness of fit could be assessed by the residual variation around ronment, and distances between the other two pairs (AR-BR and
this prediction (Fig. 3B). A proper formal parametric test does AL-BL) were averaged to yield a separation index between
not exist for this situation, to our knowledge. In one approach we environments A and B independent of lever press side. Thus,
used F-like ratios FN − 1;N ¼ N=ðN − 1ÞRSSmean =RSSpred with exactly the same sets if iFR vectors went into each of these two
RSSmean the (total) variation around the grand mean and RSSpred comparisons, only that they were grouped differently, either
the residuals from the model prediction. Although empirically according to environment or according to lever press side. To
the denominator and numerator of this F-ratio appeared largely evaluate group differences we then used paired t tests and
uncorrelated in our sample (jrj < 0.25, p > 0.5), it should be nonparametric Wilcoxon signed rank tests.
noted that, strictly, this is not quite a proper statistical test (due Single-unit analysis of environmental and behavioral preferences. To
to violation of independence). We therefore also checked the examine whether individual units displayed a consistent prefer-
results by a permutation procedure in which the assignments of ence for one of the two environments throughout multiple
Mahalanobis distances to rows of the design matrix were ran- exposures, a selectivity index for each unit i with respect to each
domized in the test (between-repetition) sample, the full model environment period (environment A-first time vs. B-first time,
refitted, and the residuals determined, yielding a bootstrapped environment A-second time vs. B-second time, etc.) was ob-
H0 distribution against which the residuals from the predicted tained by grouping the firing rates into two classes (A and B)
model could be checked (for the bootstraps one has corresponding to the examined environmental periods, and
E½^β0  ¼ hDmah i; E½^β1  ¼ E½^β2  ¼ 0 for a fixed design matrix). The computing:
results of this bootstrap procedure largely agreed, in terms of
significances, with the “nonconventional” parametric approach hfri ðtÞj t ∈ Agi − hfri ðtÞj t ∈ Bgi
above, with only one exception: the HPC dataset shown in Fig. d′i ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ;
S3B, which the bootstrap procedure indicated as significant (P < σ2i;t∈A þ σ2i;t∈B
0.005), while the F-style test gave a much more conservative
answer (P < 0.13). where 〈·〉 denotes the mean.

Hyman et al. www.pnas.org/cgi/content/short/1114415109 2 of 12


To assess whether a significant number of cells out of the whole been used for fitting the classifier (see ref. 4 for details). The
population formed lasting preferences for one of the two envi- classifier works by determining how many of the iFR vectors r(t)
ronments, for each of five repetitions of exposure to the two from the test set fall onto the wrong side of the separating hy-
environments the d′ value was converted into a binary number perplane obtained from the training set, and thus would be at-
based on whether d′ > 0 (selective for environment A) or d′ < 0 tributed to the wrong environmental setting, or in other words
(selective for environment B). Note that for a single cell, the would fail to predict the correct environment. The total number
two extreme cases (0,0,0,0,0) or (1,1,1,1,1) for these 5-valued of incorrectly predicted assignments constitutes the predicted
binary vectors (i.e., consistent preference for environment A or separation error (Fig. S6H).
B across all five repetitions) each have a chance likelihood of For determining the ensemble size needed for optimal pre-
occurrence of Pr = 0.55 = 0.03125. Next, we created a histogram diction, all neurons from three repeated-exposure data sets used
from the single-unit data across all of the six possible outcomes in this analysis were first ordered by their overall mean firing rate.
k = 0 preferences for environment B to k = 5 preferences for From the total pool of all these neurons (n = 31, 31, and 78 for
environment B (or, equivalently, environment A) and compared the three data sets used), subpools were then created by col-
this empirical distribution with what would be expected from the lecting from 1 to n neurons according to their average firing rate.
binomial distribution with Pr = 0.5 using a χ2 goodness of fit test. For each of these subpools of increasing size, the optimally
If most cells would not have a consistent environmental prefer- separating hyperplane was first determined from the training set,
ence, the empirical distribution should be close to this “null” and on the basis of this the predicted separation error was cal-
binomial with Pr = 0.5, whereas it should significantly deviate culated for the test set. Optimal predictions were further eval-
from this “null binomial” in the tails (i.e., k < 2 and k > 3) if uated using bootstrap analyses with 200 block-permutation
there were a lot of cells with consistent environmental selectivity. bootstraps [preserving autocorrelations (4, 5); prediction accu-
The analysis of environmental selectivity when the same racy of the bootstraps was less than 58.6%]. Bootstraps were
behaviors were performed in two environments was focused on constructed by randomly shuffling blocks of vectors r(t) (with
the lever press-responsive cells (see main text). So correct trial block length 10 s as determined from the first minimum of the
left and right lever presses were combined to form groups of autocorrelation function) corresponding to different environ-
trials depending on the environment in which they were per- ments and trials but preserving the order of units at each time
formed. In total there were four groups (each consisting of two bin (see schema in Fig. S6F) (4).
right and two left lever press trials) from environment A and four
such groups from environment B. These groups in A and B were SI Results
paired, and environmental selectivity was determined for each Comparing mPFC and HPC Ensemble Environmental Context and
lever press-responsive unit for each of these four A-B pairs. If “Time-on-Task” Effects. Just as was done for mPFC ensembles,
these neurons were not responding to environmental aspects but we assessed Mahalanobis distances between sets of HPC iFR
only to lever presses, these four A-B selectivity indices would population vectors as a function of both temporal separation and
show random preferences, and similar to the environmental whether they were from the same or from different environments.
selectivity analysis described above the pattern of preferences As the example session in Fig. S5A shows, for HPC ensembles,
could be compared with the expectations from the binomial just as observed for mPFC, MSUA space separation increases as
distribution with Pr = 0.5. the amount of temporal separation between two iFR vector sets
Two approaches were taken to assess how environmental gets larger. Significant environmental effects are also present in
context influences single-neuron responses to lever presses. First, HPC ensembles when comparing Mahalanobis distances be-
we determined each neuron’s selectivity for left vs. right lever tween population vectors from the same vs. different environ-
presses in each environment independently and then assessed ments for the exact same amount of temporal separation. To
how stable selectivity was across environments by correlating formally examine these effects in HPC ensembles, we used the
these two measures. Second, to examine neurons that were ac- same linear model-based F ratio style analysis used to disasso-
tivated during lever presses, we calculated separate response ciate the effects of environment and time for mPFC ensembles
indices for left and right lever presses in the two environments. (SI Methods and Results). In two of the three HPC data sets
For these indices we compared iFRs from 2 s of activity around recorded, both the environment and time factor reached signif-
the lever press with 2 s of activity 5 s before the response during icance, whereas in one only the environmental effect was sig-
the intertrial interval. These response indices were calculated the nificant (all P < 0.002). We also checked whether the time-
same way as the selectivity indices described above, only that dependent shifts in HPC ensemble activity could account for
they did not compare two different conditions of the same type differences among multiple repetitions of the same environment,
(like the two environments or two lever press sides) but activity using the same analysis as described for mPFC ensembles in the
during one lever press with activity in a baseline period, and main text and SI Methods. However, this was not the case in any
hence were termed response rather than selectivity indices. In of the three HPC ensembles (all P > 0.12). With a total of ≈21%
total there were four such d′ values for each neuron, and a of explained mean variation for the best HPC ensemble (the one
neuron was considered responsive to lever presses if any of its depicted in Fig. S5B) the temporal prediction from within- to
jd′j > 0.5. between-repetition distances was also much worse than for the
Decoding analyses. We performed a decoding analysis based on three significant mPFC ensembles (where 50–75% of the vari-
linear discriminant functions. Linear discriminant analysis finds ance in means was accounted for by the temporal extrapolation).
a (hyper-)plane optimally separating two clouds of data points by This suggests that both gross-environmental and temporal con-
maximizing the difference between the class means while mini- text can also significantly influence HPC representations but that
mizing within-class covariances (3). The decoding procedure was HPC representations are much more stable across repetitions of
carried out in two stages (see schema in Fig. S6F): first, for the the same environments than mPFC representations, as already
first three environment A-B exposures (termed the “reference” demonstrated in Fig. 2.
or “training set”), we computed the optimally discriminating To further analyze whether PFC and HPC differed in their
direction in MSUA space along which the overlap between the representations of environment and time, we compared mPFC
two distributions associated with the two environments is mini- vs. HPC mean between-environment (i.e., A-B and A′-B′)
mized. Second, out-of-sample prediction performance of this Mahalanobis distances, normalized to the mean within-envi-
classifier was then evaluated on iFR vectors from the fourth and ronment (i.e., A-A, B-B, A′-A′, and B′-B′) distances (Fig. S5C,
fifth A-B exposures (the “test set”), that is on trials that had not Left; the normalization was done to account for general scale

Hyman et al. www.pnas.org/cgi/content/short/1114415109 3 of 12


differences in Mahalanobis distances from HPC and mPFC, session shown in Fig. 1A [t(202) = 1.3; P > 0.17; mean iFR:
partly potentially indicating differences in the spiking patterns environment A = 0.82 ± 0.2 Hz; B = 0.79 ± 0.25 Hz], and the
of mPFC and HPC units). These normalized between-environ- average population rate stayed relatively stable throughout the
ment distances were significantly larger for the mPFC compared recording session as confirmed by a linear fit to the cumulative
with HPC [t(7.51) = 2.73, one-sided P < 0.02], indicating that mean iFRs, which captured approximately 78–99% of the vari-
overall the mPFC differentiates more strongly between contexts ation (P < 0.001; Fig. S2A). Likewise, the absolute distance
than the HPC. However, this overall comparison did not dif- traveled was similar across environments [t(199) = 0.9; P > 0.5;
ferentiate between potential contributions from environmental Fig. S2B], and motor activity was relatively stable throughout
context and from temporal shifts. In an additional test we (76–99% of variance explained by a linear fit to the cumulated
therefore roughly (to not lose too many time points) equated motor activity series; P < 0.001; Fig. S2B).
the time basis for mPFC and HPC (average overlap ≈90%), that
is the range of temporal differences for which between-envi- PFC Ensemble Activity Separates Environmental Contexts During
ronment Mahalanobis distances were computed, and also nor- Restricted-Movement and Lever Press-Alternation Tasks. The anal-
malized each between-environment distance only to the mean yses presented in Fig. 3 and above showed that both changes in the
within-environment distance for the exact same temporal lag. In sensory environment and temporal factors impact mPFC activity
this case (Fig. S5C, Center) again a significant difference be- patterns. Another factor possibly contributing to the differences
tween normalized mPFC and HPC distances was obtained across environments was the movement patterns of the animals.
[t(7.89) = 2.36, one-sided P < 0.03]. Finally, the time effect on Although the differences in mPFC representations of two envi-
its own was assessed by performing a robust linear regression fit ronments could not be explained by gross differences in the total
to the within-environment Mahalanobis distances only (thus distance traveled (Fig. S2B), slight variations in movement pat-
eliminating environmental context as a confounding factor). terns and paths traveled (Fig. S2C) have been shown to affect
The slope of this fit quantifies the time-dependence and is given mPFC neuronal activity (6, 7) and thus could account for some
in Fig. S5C (Right) for all mPFC and HPC data sets. In this case of the separation in ensemble activity states. Rather than try and
there was no significant difference between mPFC and HPC find identical movement trajectories from the two environments
ensembles [t(8) = 0.37, P > 0.7; regardless of whether Maha- (of which there would be few in a free exploration session), we
lanobis distances were normalized by their respective group attempted to limit movement altogether by having animals
means]. For all these comparisons, Mahalanobis distance cal- confined within a small clear plastic enclosure that was moved
culations were based on exactly the same number of units and back and forth between two environments (single-unit analysis
time points for mPFC and HPC (and unequal variances were for these same sessions is presented in the main text). Despite
assumed in the tests whenever these differed by more than only being able to rear up and down and otherwise not move,
fivefold). The same pattern of significances was obtained by explore, or physically interact with the environment in any way,
bootstrap procedures (drawing two groups of mean distances differences in the dot clusters corresponding to the times they
randomly from the empirical values), or when the analyses were in environment A vs. environment B were still observed.
were performed in terms of the proportions of variance ex- For the session shown in Fig. S3A, vector points from periods
plained by the linear model given in the main text (i.e. the time within the same environment were tightly clustered relative to
and environment factors combined or the environment factor points from periods in different environments. Across all re-
on its own became significant, while the time-alone effect was stricted exposure sessions there was significantly more separation
nonsignificant). between environments than within [t(7) = 7.1; P < 0.001; Wil-
We conclude that overall context separation is significantly coxon signed rank = 0; P < 0.01; Fig. S3B].
larger in mPFC, mainly owing to the stronger separation between To further compare how differences in sensory cues vs. dif-
whole environmental contexts, whereas there is no significant ferences in movements affected mPFC ensemble activity, we
difference in the magnitude of within-repetition temporal shift analyzed mPFC activity as animals spent equivalent periods inside
between mPFC and HPC. There was, however, a difference if the restricted-movement container in the environments vs. freely
the temporal shifts within one environmental exposure were to exploring the same environments. This allowed us to address the
be used to predict the network state on a second exposure to that role of movement differences in contextual representations by
same environment: this worked fine for three of the mPFC data
comparing the impact of environmental changes when movement
sets but for none of the HPC ones. In general, however, the
patterns were identical (restricted movement in both environ-
results presented here have to be interpreted with some caution
ments) and when they were very distinct (restricted movement in
owing to the low HPC sample size (n = 3).
A and freely moving in B). Time was removed as a potential
Additional Analysis Separating Temporal from Environmental Context confound from this analysis by equating it for all comparisons
Effects. As an additional means for demonstrating that environ- made as explained in the main text and above. A two-way
mental context has a strong effect on its own, irrespective of the ANOVA found significant main effects for similarity of move-
observed temporal shifts, we performed another analysis in which ment patterns [similar vs. distinct; F(1,19) = 6.14; P < 0.025]
we compared iFR vectors that were recorded 200 s apart in and for change in environmental context [within vs. between;
a single environment with sets of iFR vectors recorded in two F(1,19) = 59.32; P < 10−6]. The interaction between these fac-
environments yet separated by only 100 s (Fig. S1C shows ex- tors was also significant [F(1,19) = 7.89; P < 0.01; Fig. S3B],
perimental details). In this case we found significantly more indicating that differences in movement patterns affected iFR
separation between the latter (100 s apart but from different activity patterns more strongly when they occurred across envi-
environments) than the former (200 s apart in a single envi- ronments rather than within the same environment (Fig. S3B).
ronment) [t(15) = 4.27; P < 0.001; Wilcoxon signed rank = 0; Tukey-type post hoc tests further confirmed that there was sig-
P < 0.001; Fig. S5D]. nificantly greater separation in MSUA space for the context
change that also involved different movement patterns than for
Controlling for Other Potential Confounds in mPFC Environment the context-only changes (Fig. S3B). These results therefore
Context Separation. It is possible that wholesale changes in fir- suggest that ensemble states are influenced both by changes in
ing activity or movement patterns may have impacted ensemble sensory cues across contexts (when movement patterns were
environmental context representations. The actual mean iFRs forced to be similar) and by the movement patterns associated
were not different across the two environments for the example with behavioral exploration of contexts.

Hyman et al. www.pnas.org/cgi/content/short/1114415109 4 of 12


To further investigate this issue, rather than restricting Controlling for Environment Transfer Methods. In the sessions de-
movement altogether, we sought to equate the movements scribed above for both novel and familiar environmental expo-
produced in two environments. The continuous alternation task sures, the animals were physically moved between the two
performed in an operant chamber tends to produce rather ste- environments (“pick & place”). This handling could conceivably
reotyped movement sequences in well-trained rats. For the be responsible for the observed changes in activity patterns. To
present experiments, animals spent the first half of the session in address this concern, we connected the environments by a simple
environment A performing a continuous lever press-alternation gangway that allowed the rat to move by itself between the en-
task and the second half performing the same task on the same vironments (four sessions from three animals were obtained this
manipulanda but in environment B (analysis of single-unit way). An example of such a “walk-through” session is shown in
responses during these continuous alternation sessions can be Fig. S4D. Times in each environmental enclosure were denoted
found in the main text). Fig. S3C shows an example vector space using the same colored dots, whereas the dashed circle around
from one of these sessions. Clear separation can be seen between a dot denotes the last time bin when the rat was on the ramp
the points corresponding to times in the two different environ- leaving environment A, and the solid circle denotes the time bin
ments, despite overall movement patterns being in general very when the rat entered environment B. The walk-through sessions
similar in both environments (Fig. S3C, Lower). Even though the displayed the same pattern of clustering in the MSUA space as
rats were performing the same alternation behavior in both en- pick & place sessions, with large shifts coinciding with movement
vironments, Mahalanobis distances were significantly larger be- between environments and relative stability during periods
tween environments than within [t(5) = 5.1; P < 0.001; Wilcoxon within an environment. There was significantly more MSUA
signed rank = 0; P < 0.05; Fig. S3D]. Thus, even in situations in separation between environments than within for both transfer
which movement patterns were very similar, context had signif- methods: pick & place [t(5) = 7.8; P < 0.001; Wilcoxon signed
icant effects on mPFC ensemble activity states. rank = 0; P < 0.03; Fig. S4E] and walk-through [t(7) = 4.8; P <
0.001; Wilcoxon signed rank = 0; P < 0.01; Fig. S4E]. Further-
Similarity Between Movement Patterns in Two Different Envi- more, we found that between environment distances from the
ronments. Fig. S3C (Lower) shows that the rat moved in a ste- two transfer methods were not significantly different [t(14) = 1.3;
reotypical pattern between the lever and nose-poke panels while P > 0.22; Wilcoxon rank sum = 56; P > 0.18; Fig. S4E]. Col-
performing the task, regardless of the environment in which it lectively, these results suggest that exposure to different envi-
was confined. To quantify this, histograms were computed for ronments, whether by pick & place or by walk-through, evoke
the x- and y-coordinates for the two paths in the different envi- unique patterns of activity in mPFC ensembles and that these
ronments, demonstrating a tight overlap in the x- and y-positions shifts occur without a significant change in overall firing rate and
visited in the two environments (Fig. S3 E and F). A canonical are independent of the distance traveled by the rat.
correlation analysis was then performed across these two paired
Environmental Consistency in mPFC Single-Unit Activity. To assess
sets of x- and y-histogram frequencies (giving the linear combi-
whether mPFC neurons consistently preferred one of the two
nation of x- and y-histograms along which the between-set cor- environments over multiple exposures, we used a selectivity-based
relation is maximized; see ref. 8). This analysis confirmed the analysis (Results and SI Methods). Robust regression fits of the
tight correspondence between the sets of spatial locations visited selectivities of all 139 neurons across the five different A-B ex-
in the two different environments (Fig. S3G), that is, the simi- posures revealed that although many neurons did not show
larity in the frequency distribution across locations traversed by consistent preference for one environment over another across
the two different paths. multiple exposures, there was a small group of cells that did (Fig.
S6 A–D). To statistically quantify the consistency of environ-
Novelty Effects on mPFC Environmental Context Representations.
mental selectivity, for each neuron we counted how often it
Additional sessions were run with two of the animals from the
preferred environment B over environment A across all five A vs.
sessions described in the first section of the main text, but this time
B environmental exposures, yielding a count from k = 0 to k = 5
using familiar instead of novel environments (2 to 3 previous days
for each neuron. The closer k is to one of the extremes (0 or 5),
of exposure; activity plot shown in Fig. S4A). Fig. S4B shows the the more evidence this constitutes for consistent environmental
MSUA space plot from a representative session in which the rat selectivity. In our data set, 7 of 139 neurons (5%) maintained
was exposed to two familiar environments. Like novel environ- their preference for environment A over B across all 5 repeti-
ments, the vector points formed two clusters corresponding to tions (k = 0), and 8 of 139 (5.7%) did so for environment B over
the periods when the animal was in one of the two familiar en- A (k = 5). The differences in normalized iFRs between the two
vironments. The activity state patterns in the MSUA spaces were environments for these 15 consistent environmentally selective
similar while the animal remained in one environment yet were neurons across the five exposures are shown in Fig. S6F. If envi-
different when the rat was moved to the second environment. ronmental preferences were assigned simply by chance (pr = 0.5
Group statistics confirmed that groups of population vectors for getting an A or B), the likelihood a neuron would maintain its
from the periods spent in two familiar environments were sep- preference (for either A or B) across all five exposures would be
arated by significantly greater Mahalanobis distance than two Pr(k = 0 OR k =5) = 2 × 0.55 = 0.0625. Under the null hy-
temporally equally spaced periods of the same length within one pothesis of no environmental selectivity, the observed proportion
familiar environment (Wilcoxon signed rank = 0; P < 0.05; Fig. of 15/139 (≈11%) would thus occur with P < 0.03 (according to
S4C). In fact, there was no significant difference in the amount the binomial distribution with Pr = 0.0625), suggesting that there
of environment separation between novel and familiar environ- are indeed more neurons with consistent environmental selec-
ment sessions [t(14) = 1.5; P > 0.16; Wilcoxon rank sum = 38; tivity than one would expect by chance. This result is further
P > 0.18]. The effects of familiar environments were also not supported by comparing the whole empirical distribution across
merely due to changes in overall firing levels, because the mean the six possible outcomes k = 0 to k = 5 with the null hypothesis
iFRs from all units in both environments were not significantly given by the binomial distribution with Pr = 0.5 (Fig. S6E). Using
different (mean iFR: environment: A = 2.1 ± 0.8 Hz; B = 2.24 ± a χ2 test we found that these two distributions were significantly
0.92 Hz). In addition, there were similar distances traveled in the different [χ2(5) = 15.57; P < 0.007]. Thus, there was a substantial
two familiar environments (mean environment A = 0.95 ± 0.07 and significant population of neurons (≈11%) that consistently
cm/s; environment B = 0.97 ± 0.08 cm/s). maintained selectivity across multiple exposures. The remaining

Hyman et al. www.pnas.org/cgi/content/short/1114415109 5 of 12


neurons may have either been too noisy for this type of statistical rectionality of the d′ values, yielding a count of k = 0 to k = 4. If
analysis or may not have any environmental preference. neurons were selective for environments just by chance, one
would expect neurons with the same d′ value directionality for all
Environmental Context Effects in “Lever Press-Responsive” mPFC four environment comparisons, that is an extreme count of k =
Neurons. We next examined whether the group of “lever press- 0 or k = 4, with a likelihood of 12.5% [Pr(k = 0 OR k = 4) = 2 ×
responsive” neurons, as defined above, also consistently preferred 0.54 = 0.1225]. It was found that 33.3% of the subgroup of 36
one environment over another. To assess this, the first 16 correct “lever press-selective” neurons (i.e., ≈11% of the total population
lever presses in each environment were divided into paired groups
of 107 neurons) maintained their preference for one environment
of four (e.g., the first group of four responses in A with the first
four in B, and so on). Thus, there were four groups of trials, each over the other across the four blocks. According to the binomial
of which contained two left and two right lever presses in envi- distribution, this observed proportion of environmentally selec-
ronment A and two left and two right lever presses in B. Then, d′ tive units would be expected with P < 10−3. A comparison of the
values as indices of single-unit environmental selectivity were observed and expected counts additionally confirmed that the
calculated for each group, creating four environment compar- empirical distribution strongly deviated from the one that would
isons for left and right lever presses for each neuron similar to the be expected if environmental preference were just by chance
single-unit analysis of environmental preference in the restricted- [χ2(4) = 25.6; P < 3.9 × 10−5 (Fig. S7C); additional analyses
movement sessions described above. We then counted how often suggested that this does not merely reflect a change in preference
a neuron preferred environment A over B according to the di- across time or trials (Fig. S7D)].

1. Paxinos G, Watson C (2003) The Rat Brain in Stereotaxic Coordinates (Academic Press, 6. Euston DR, McNaughton BL (2006) Apparent encoding of sequential context in rat
New York). medial prefrontal cortex is accounted for by behavioral variability. J Neurosci 26:
2. Buzsáki G (1986) Hippocampal sharp waves: Their origin and significance. Brain Res 13143–13155.
398:242–252. 7. Cowen SL, McNaughton BL (2007) Selective delay activity in the medial prefrontal
3. Hastie T, Tibshirani R, Friedman J (2009) The Elements of Statistical Learning: Data cortex of the rat: Contribution of sensorimotor information and contingency. J
Mining, Inference, and Prediction (Springer Science, New York). Neurophysiol 98:303–316.
4. Balaguer-Ballester E, Lapish CC, Seamans JK, Durstewitz D (2011) Attracting dynamics 8. Krzanowski WJ (2000) Principles of Multivariate Analysis: A User’s Perspective New
of frontal cortex ensembles during memory-guided decision-making. PLOS Comput York (Oxford Univ Press, New York).
Biol 7:e1002057.
5. Lapish CC, Durstewitz D, Chandler LJ, Seamans JK (2008) Successful choice behavior is
associated with distinct and coherent network states in anterior cingulate cortex. Proc
Natl Acad Sci USA 105:11963–11968.

Fig. S1. Examples of environments and temporal analysis schematic. (A) The square white corrugated plastic box was used as environment A for free and
restricted movement exposure and alternation sessions. Although it is shown here with the two alternation task panels, these were inserted only for ex-
periments involving the operant continuous alternation task. The clear plastic panel housed two response levers with a reinforcement spout between them.
The black plastic nose-poke panel featured a response port with a stimulus light above. (B) The rectangular cardboard box was used as environment B for all
conditions. The small clear plastic enclosure in which the animal was confined for restricted movement exposure sessions is also shown. (C) Temporal structure
of environmental context analyses.

Hyman et al. www.pnas.org/cgi/content/short/1114415109 6 of 12


Fig. S2. Ruling out potential confounds in environmental MSUA space separation. (A) Cumulative mean population iFR as a function of time (bin) for all types
of sessions. (B) Cumulative percentage of session mean distance traveled as a function of time (bin) for all types of sessions. Note in all cases the cumulative
plots exhibit a largely linear increase in total distance traveled, indicative of temporally consistent and stable movement activity. (C) Locomotor paths from the
session depicted in Fig. 1A.

Hyman et al. www.pnas.org/cgi/content/short/1114415109 7 of 12


Fig. S3. Distinct environmental context representations emerge in mPFC ensembles even when movement is restricted. (A) Example of the MSUA space for
a restricted-movement exposure session (time bins while the rat was in environment A are in green, and black while in environment B). (B) Group mean
Mahalanobis distances for all restricted-movement sessions and all subjects (**P < 0.01; error bars = SEM; n = 5 sessions from three animals). Between-envi-
ronment distances are shown in solid bars, and within-environment distances are in stripes. For the data on the left movement was restricted in both envi-
ronments. The data on the right side of the graph comes from sessions in which animals were in the restricted-movement container in one environment and
then allowed to freely walk in the second environment. (C) Example of the MSUA space from a multienvironment alternation session, with dot color cor-
responding to the times in environment A (black) vs. B (green) during the continuous alternation task. The Mahalanobis distance was not driven by systemic
changes in overall mean iFR [t(99) = 0.54; P > 0.38]. Lower: Movement paths from the continuous alternation lever press periods in the two environments for
the sessions plotted in A. These paths show that the rat moved in a stereotypical pattern between the lever and nose-poke panels while performing the task,
regardless of which environment it was in. In this session there was no difference in the mean distance traveled in the two environments [t(199) = 0.1; P > 0.74].
(D) Mean Mahalanobis distances for within- and between-environment comparisons during continuous alternation task sessions for all subjects (**P < 0.01;
error bars = SEM; n = 3 sessions from three animals). (E–G) Similarity between locomotor paths in the two environments. (E and F) Frequency histograms of the
the x- (E) and y- (F) positions visited by the animal in environment A (blue) and B (brown). (G) First pair of canonical variables between the two sets of x- and y-
frequencies obtained in two distinct environments (see ref. 1), illustrating the high correlation between the spatial locations visited in each of the two en-
vironments. R2 is the maximum canonical correlation coefficient which gives the strength of association between the two sets on this first maximum-co-
variance-explaining direction (i.e., the maximum eigenvalue of the “association matrix”). Results are robust for a wide range of bins (5–50).

1. Krzanowski WJ (2000) Principles of Multivariate Analysis: A User’s Perspective New York (Oxford Univ Press, New York).

Hyman et al. www.pnas.org/cgi/content/short/1114415109 8 of 12


Fig. S4. Effects of novelty and transfer method on mPFC ensemble representations. (A) Locomotor paths from the sessions depicted in B. (B) MSUA spaces for
freely moving exposure sessions using familiar environments. Dots (population vectors) are colored according to whether they were taken from the time in
environment A (black) or B (green). The axes of these 3D projections correspond to different combinations of single-unit firing rates as determined by
multidimensional scaling. (C) Mean (across groups of animals) Mahalanobis distances comparing sets of points within one environment and between two
environments for familiar environment exposure sessions. Mean values are from all subjects and sessions (paired t tests and Wilcoxon signed rank tests; *P <
0.05; error bars = SEM; n = 6 sessions from three animals). (D) MSUA space from a “walk-through” exposure session in which the animals walked between
environment A and B via a walkway. The solid circle indicates the last time bin on the ramp, and the dotted circle shows the first time bin in the subsequent
environment. (E) Comparison of Mahalanobis distances [**P < 0.01; error bars = SEM; n = 8 (four sessions with two repetitions each from three animals)] for
sessions in which the animal was physically moved between environments vs. sessions in which it walked between environments. Black bars are between-
environment distances, and striped bars are within-environment distances. Both transfer methods yielded similar levels of separation.

Hyman et al. www.pnas.org/cgi/content/short/1114415109 9 of 12


Fig. S5. Comparison of mPFC vs. HPC context discrimination. (A) Example of environmental context and time dependence of the Mahalanobis distance
between HPC population states (shaded areas = SEM); analog to Fig. 3A for the mPFC. (B) Example of temporal prediction of HPC population state distances
across repetitions of the same environment; analog to Fig. 3B for the mPFC. (C) Normalized between-environment distances and slopes of temporal shift for all
mPFC (blue circles) vs. HPC (red circles) data sets. For each of the three columns, data points were standardized (z-transformed) to bring them to same scale for
comparison. Left: Overall mean between- divided by mean within-environment distances (with effects due to environmental context alone and to temporal
drift not separated). Center: Normalized Mahalanobis distances for environmental context (when about the same time basis for mPFC and HPC is used). Right:
Effect of time alone on mPFC and HPC representations, measured by the slope of a robust regression fit to within-environment distances (these slopes were all
positive, i.e., indicating increasing state separation with passage of time, but z-transformed as indicated above, making some of the values negative). (D) Mean
Mahalanobis distances for long intervals within (green) and short intervals between (red) environments for all subjects and sessions (**P < 0.01; error bars =
SEM; n = 7 sessions from five animals).

Hyman et al. www.pnas.org/cgi/content/short/1114415109 10 of 12


Fig. S6. Single-unit environmental encoding during restricted-movement session. (A–D) Scatterplots of environmental selectivity on multiple exposures. In
each plot, each neuron’s preference for environment A over B is shown for two successive repetitions. Robust regression lines are shown in gray. (E) Distri-
bution of consistency of environmental preferences. The x axis gives the number (K) of neuronal preferences for environment B over A out of five repetitions
of A and B. The actual data are shown in black, and the gray dotted line shows the expected values from the binominal distribution with Pr = 0.5 (i.e., no
environmental preference). (F) Difference in normalized mean iFRs [(μA - μB)/μS, where μS = overall session mean iFR] between environments A and B over the
five repetitions for the neurons that consistently preferred one environment over the other (n = 15 neurons from three animals). (G) Schematic of the decoding
analysis by means of linear discriminant functions. A hyperplane optimally separating clouds of iFR vectors associated with the two environments was derived
from the first 3 A-B exposures (Left) and then applied to predict environmental assignment of iFR vectors on two further test trials not used for fitting the
classifier. (H) Percentage of incorrectly assigned (to environment A or B) iFR vectors on test trials, predicted from a linear classifier optimized for an in-
dependent training set of trials, as a function of ensemble size. The x axis gives percentage of neurons from the total population and the y axis the percentage
of erroneously assigned iFR vectors (*P < 0.027, Bonferroni corrected; error bars = SEM; n = 3 sessions from three animals).

Hyman et al. www.pnas.org/cgi/content/short/1114415109 11 of 12


Fig. S7. Modulation of lever press selectivity by environmental context. (A) Scatterplot of left vs. right lever selectivity in two environments for all recorded
neurons from the three continuous alternation sessions. Lever press-selectivity values (d′) in environment A are plotted along the y axis, and environment B
values are on the x axis. The gray line was derived from robust regression analysis. Left/right lever press selectivity was highly correlated between environ-
mental contexts across the population (r = 0.44; P < 0.001; n = 107 neurons from three animals). (B) Changes in firing rate for all “lever press-responsive”
neurons between environments. Differences between rates are plotted only for presses on the preferred lever. iFRs for each neuron were divided by their
overall session mean, and then mean environment B rates were subtracted from mean environment A rates. (C) Consistency of environmental preference of
lever press-responsive neurons. The x axis gives the number of times (K) environment A was preferred over environment B out of the four blocks of trials
(Methods). Expected counts from the binomial distribution are shown as gray dotted line, and empirically observed values are shown in black. (D) Consistency
of lever press-selective neurons within one environment. The actual counts (black) were not significantly different from the binomial expectation (gray). To
examine how much other factors, such as time or novelty, may have contributed to the results shown in C, we analyzed a pair of continuous alternation
sessions of similar overall duration but only involving one environment, thus no switch between environments. We identified lever press-selective cells (n = 26
out of 74 neurons from two sessions and animals) and then split the sessions into early and late trials, with the temporal difference between these comparable
to the one between the environment A and environment B trials in C. Selectivity indices were then computed as above, and preference counts compared with
the binomial expectation (with Pr = 0.5). In this case the distribution of observed counts was not significantly different from the expected counts [χ2(4) = 6.15;
P = 0.19], although the observed distribution was again slightly skewed, with more cells preferring the later over the earlier trials. We believe this is due to
some cells increasing their tuning to behaviors over the course of the session. This may explain why we found more lever press-selective cells that preferred
environment B over A. Nevertheless, the differences between observed and expected distributions became significant only for selectivities assessed across two
different environments, not when comparing early and late trials from the same environment. Moreover, importantly, there was a significant difference
between the relative frequencies across outcomes K = 0...4 from the between-environment vs. the within-environment/early-late-trials sessions [χ2(4) = 8.09;
P < 0.001].

Hyman et al. www.pnas.org/cgi/content/short/1114415109 12 of 12

Das könnte Ihnen auch gefallen