Skip to main content
. 2015 Dec 18;4:e12247. doi: 10.7554/eLife.12247

Figure 2. CA1 ensemble codes are informative about the temporal relationship between experienced events.

(A) Pairwise correlations between the complete activity patterns of all cells in different environments and different days (an average of n = 5 mice). The checkerboard pattern reveals the resemblance between the episodic representations of the same environments at different times. (B) Correlations between cell activity patterns within the same environment (green) or between different environments (red) decay with time. This trend is also visible in A when considering the changes in correlations along a row. Inset, the probability that a cell active on one day will be active on subsequent days in the same environment (green) or in a different environment (red) decayed with time (mean ± s.e.m). (C) Performance of the ordinal time decoder. Red dots indicate perfect performance, as was achieved by using data from both environments together (see Figure 2—figure supplement 2). Sorting of the sessions using data from one of the environments was highly significant in comparison with the results obtained using data in which the day labels of each cell’s activity patterns were randomly shuffled (gray dots, n =10 shuffles per mouse). Red lines indicate p = 0.05. (D,E) A ‘within-environment time decoder’ was trained and tested on data from the same environment. (D) Distributions of the decoder’s errors in inferring the day from which the test data (single trials) were taken. The decoder successfully inferred the day from which the test data was taken in the majority of cases, but performed at chance level on shuffled data (gray dots, shuffled data as in C). (E) Successful time decoding (decoder error = 0 days) depended on the amount of test data used by the decoder. Shown are percentages of accurate decoding for test data of different durations. Performance using test data segments as short as 1 sec exceeded chance level (12.5%, gray horizontal line). (F,G) An ‘across-environments time decoder’ was trained on data from one environment (A or B) and tested on data from the other environment (B or A, respectively). (F) Distributions of the decoder’s errors in inferring the day from which a test data consisting of single sessions (F) or single trials (G) were taken. The decoder successfully inferred the day from which the test data was taken in the majority of cases, but performed at chance level on shuffled data (shuffled data as in C). Data in B and D-G are mean ± s.e.m.

DOI: http://dx.doi.org/10.7554/eLife.12247.008

Figure 2.

Figure 2—figure supplement 1. Within-environment cell-level dynamics (A–E).

Figure 2—figure supplement 1.

(A) Distribution of maximal monotonic sequence length for all cells (black) and for the shuffled data (red). None of the cells exhibited monotonic changes in event rates throughout the experiment (0.7% of cells with a monotonic sequence-length ≥ 4). However, the single-cell dynamics were slightly more monotonic than shuffled data (average maximal sequence length is 1.56 for real data and 1.48 for shuffled data). Data are mean ± s.e.m. (B) Distribution of the monotonicity score. Inset, cumulative distribution of the absolute values of the score for all cells. In the real data (black) there were more strongly increasing and decreasing cells than in the shuffled data (red) suggesting that cell-level changes in event rates are time dependent and are not purely due to noise (Kolmogorov-Smirnov test, p < 10−10). (C) Distribution of event rates’ coefficient of variation (CV) for the cells that were active in all sessions (black) and the CV distribution of a population of simulated cells with equivalent average event rates that follow a stationary Poisson model of activity (red). Note that cells exhibit higher CV than Poisson distribution (median CV is 0.30 for real data and 0.16 for the equivalent Poisson model) indicating that even cells that were active in all days of the experiment do not preserve their firing rates over days. (D,E) Gradual ensemble dynamics emerges when averaging the activity over the entire population. (D) Normalized event rate aligned to the day of peak event rate, averaged over all cells. The real data (black) shows a clear relationship between the ensemble average event rate and time difference from the session with the maximal event rate. Data are mean ± s.e.m. Shuffled data shown in red. (E) Same as in D for subgroups of different maximal consecutive activity segment lengths (2–8 days, maximal-length active segment is shown). Thus, the trend shown in D is not only due to the recruitment dynamics but also due to gradual changes in event rates of active cells.

Figure 2—figure supplement 2. Time decoders accurately expose temporal information in all individual mice.

Figure 2—figure supplement 2.

(A) Distributions of the correlations between ensemble activity patterns averaged over the seven pairs of neighboring days for all 8!/2 possible day permutations (the top 5% of the correlations values are colored red). Colored vertical lines indicate the mean correlations between activity patterns of pairs of neighboring days (taken from both environments together) from the actual data. In all mice, the actual data yielded the highest mean correlation of all possible permutations. Therefore, maximizing the mean correlation between pairs of days allows for an accurate ordering of the data from different days of the experiment (p < 5 · 10−5 for each mouse). (B,C) Performance of across environment time decoder on whole sessions (B) and single trials (C) exceeded the chance level in all mice. (B) Distribution of mean errors over all 16 sessions for random day labeling of each session (n = 100,000). The top 5% of the performances are colored red and represent a significantly small mean error. Colored vertical lines represent the mean error for each mouse (color code as in A; p < 5 · 10−5). Inset, distribution of mean squared error (MSE) of chance levels and individual mouse performances (vertical lines). (C) Distribution of mean errors over all 80 trials for random day labeling of each trial (n = 100,000). The top 5% of the performances are colored red and represent a significantly small error. Colored vertical lines represent the mean error for each mouse (color code as in A; p < 5 · 10−5 for each mouse). Inset, distribution of mean squared error (MSE) of chance levels and individual mouse performances (vertical lines).

Figure 2—figure supplement 3. Time decoders accurately infer the time of the episode even when the tested session is excluded from the training data (A–D).

Figure 2—figure supplement 3.

(A,B) Distributions of the decoders’ errors in inferring the day from which the test sessions (A) or trials (B) were taken within environment. The decoder inferred either the recording day before or after the day the test data was taken from in 95% of the sessions and 87.25% of the trials, significantly higher than chance levels (gray dots). (C,D) Distributions of the decoders’ errors in inferring the day from which the test sessions (C) or trials (D) were taken across-environments. The decoder inferred either the recording day before or after the day the test data was taken from in 82.5% of the sessions and 75.25% of the trials, significantly higher than chance levels (gray dots). (z-test, p < 6 · 10−7 for all comparisons). Data are mean ± s.e.m.

Figure 2—figure supplement 4. CA1 ensemble place codes and non-place codes are informative about the temporal relationship between experienced events.

Figure 2—figure supplement 4.

To quantify whether non-place codes contained temporal information we analyzed the performance of the different time decoders, separately for periods in which the mouse was active versus stationary (A–C) and for place cells versus non-place cells (D–F). Active periods were defined as times when the animal was at velocity ≥1 cm/sec and located more than 8cm from either ends of the track. Place cells were defined as cells with significant place coding in at least one session. (A,D) Distributions of the time decoders’ errors in inferring the day from which the test trials were taken within environment (as in Figure 2— figure supplement 3B the tested session was excluded from the training data), for active periods versus stationary periods (A; paired t-test, p >0.36) and for place cells versus non-place cells (D; paired t-test, p >0.27). (B,E) Distributions of the time decoders’ errors in inferring the day from which the test sessions were taken across environment, for active periods versus stationary periods (B; paired t-test, p >0.81) and for place cells versus non-place cells (E; paired t-test, p >0.14). (C,F) Distributions of the time decoders’ errors in inferring the day from which the test trials were taken across environments, for active periods versus stationary periods (C; paired t-test, p >0.25) and for place cells versus non-place cells (F; paired t-test, p >0.19). All data in A-F is significantly different than chance (paired t-test, p <10-6 for all comparisons).

Figure 2—figure supplement 5. Time decoding is robust to changes in the across-session cell identification method.

Figure 2—figure supplement 5.

(A–D) We re-analyzed the data using the alternative, distance-based across-session cell identification routine, with a threshold distance of 5μm (See Figure 1—figure supplement 2). Using this alternatively analyzed data, we performed the same time decoding analyses shown in Figure 2D–H. (A) Performance of the ordinal time decoder. The red dots indicate perfect performance, as was achieved by using data from both environments together. Sorting of the sessions using data from one of the environments significantly outperformed sorting of the sessions using data in which the day labels of each cell’s activity patterns were randomly shuffled (gray dots, n =10 shuffles per mouse). (B) Distributions of the correlations between ensemble activity patterns averaged over the seven pairs of neighboring days for all 8!/2 possible day permutations. Vertical lines indicate the mean correlations between activity patterns of pairs of neighboring days of the actual data. As in the analysis shown in Figure 2C and Figure 2—figure supplement 2A, we found that in all mice, actual data yielded the highest mean correlation of all possible permutations. (C) A ‘within-environment time decoder’ was trained and tested on data from the same environment. Shown are distributions of the decoder’s errors in inferring the day from which a test data (single trials) was taken. The decoder successfully inferred the days from which the test data was taken in the majority of cases. (D,E) An ‘across-environment time decoder’ was trained on data from one environment (A or B) and tested on data from the other environment (B or A, respectively). Shown are distributions of the decoder’s errors in inferring the day from which a test data consisting of single sessions (D) or single trials (E) were taken. The decoder successfully inferred the day from which the test data was taken in the majority of cases. (F, G) Changing the threshold for a candidate cell to register as the same neuron across sessions did not alter the conclusions regarding the performance of the across environment time decoder. (F) The success rates of the time decoder changed only slightly and were highly significant in comparison to the chance level over a broad range of thresholds used by the correlation-based across-session cell identification routine (z-test, p < 10-8 for all comparisons). The red data point indicates optimal threshold, consistent with an independent analysis shown in Figure 1—figure supplement 2C. (G) The success rates of the time decoder changed only slightly and were highly significant in comparison to the chance level over a broad range of thresholds used by the distance-based across-session cell identification routine (z-test, p < 10-8 for all comparisons). The red data point indicates optimal threshold, consistent with an independent analysis shown in Figure 1—figure supplement 2D. Data are mean ± s.e.m.

Figure 2—figure supplement 6. The two environments can be distinguished according to CA1 place cell firing patterns regardless of recording day (A,B).

Figure 2—figure supplement 6.

(A) Average pairwise correlations of firing patterns (i.e. the ‘population vector’, PV, of all place cells) at different environments and different days (an average of n = 5 mice). The checkerboard pattern reveals the resemblance between the episodic representations of the same environments at different times. (B) PV correlations within the same environment (green data) or between different environments (red data) as a function of elapsed time. Although PV correlations decay as a function of elapsed time, within environment PV correlations from sessions that are two weeks apart remain higher than across-environment PV correlations from the same day. Inset, zoom in on the low PV correlation values (mean ± s.e.m).