Study S09 · generated 2026-10-13T21:32:28+00:00 · 19.6 s

Population dynamics: dimensionality and hidden states

Participation-ratio dimensionality and hidden Markov model population states across CSDS.

Question

Does defeat compress or expand the dimensionality of population activity, and does the population visit different discrete states in each context, states that track defensive behavior?

Background & rationale

The participation ratio summarises how many dimensions population activity occupies (Gao & Ganguli 2015; Recanatesi et al. 2022). Lower dimensionality indicates stronger shared fluctuations, a population-level counterpart of increased network coupling. Hidden Markov models segment population activity into recurring discrete states (Mazzucato et al. 2015). In CSDS, susceptible mice show more distinct basolateral amygdala population states in Neuropixels recordings (PMC10854313), and HMM-GLM models decode social-competition states from mPFC ensembles (Padilla-Coreano et al. 2022).

Methodology

Dimensionality. For each session, 1-s binned inferred spikes were z-scored per neuron, and the participation ratio PR = (Σλᵢ)² / Σλᵢ² was computed from the eigenvalues λ of the neuron covariance matrix. PR / number of neurons gives the normalised dimensionality. Conditions were compared on per-animal means over days that contain all of BL, SD and SS (days 1–9, day 7 excluded; Friedman, exact Wilcoxon, FDR across metrics × contrasts).

Hidden Markov model. Per animal, 1-s bins from all sessions were z-scored per neuron and projected on the top 10 principal components. A Gaussian HMM with 6 states (diagonal covariance, 200 EM iterations, fixed seed) was fit with session boundaries respected, and Viterbi decoding gave the state sequence. Per session we computed: - occupancy entropy, in bits (how evenly states are used); - mean dwell time, in seconds; - transitions per minute; - the occupancy distribution.

Context specificity of states: the Jensen–Shannon divergence between occupancy distributions of different-day sessions with the same context vs different contexts (per-animal means, one-sided exact Wilcoxon).

State–behavior coupling. In defeat sessions, mutual information between HMM state and annotated behavior was compared with 200 circular shifts of the full 1-s behavior sequence relative to the state sequence (shift ≥ 30 s). MI was computed on bins whose behavior label, after shifting, is a single annotated behavior. Per animal, z = (MI − null mean) / null SD and p = (1 + #null ≥ MI) / 201; the group test is a one-sided exact Wilcoxon of z.

Parameters

ParameterValue
bin_s1.0
n_states6
n_pcs10
covariancediag

Highlights

null

Dimensionality during defeat

-0.002 PR/N

Median paired change (SD − BL), 2/6 animals higher, p = 0.219, q = 0.917.

null

Context-specific population states

JS 0.532 vs 0.549

Occupancy divergence for same- vs different-context sessions (different days), p = 0.078.

null

States track defeat behavior

MI z = 0.9

1/6 animals above circular-shift null; group p = 0.078.

Results

Dimensionality. Normalised participation ratio averaged BL 0.034, SD 0.032 and SS 0.036 (days 1–9, day 7 excluded; SD vs BL median Δ = -0.002, p = 0.219). Lower values mean activity is dominated by fewer shared modes. All contrasts are in Table 1 and Figure 1.

Hidden states. A 6-state HMM per animal segmented population activity into recurring states. State-occupancy divergence between different-day sessions averaged 0.532 (JS) for the same context and 0.549 for different contexts (p = 0.078). State occupancy was therefore not detectably context-specific (Figure 2, Table 2).

States and behavior. In defeat sessions, mutual information between HMM state and annotated behavior exceeded the circular-shift null in 1/6 animals (mean z = 0.9, group p = 0.078; Figure 4). An example state sequence aligned with the ethogram is shown in Figure 3.

Figures

Dimensionality and state dynamics by phase
Figure 1. Dimensionality and state dynamics by phase. Per-animal means and group mean ± SEM (days 1–9 without day 7). Stars: exact Wilcoxon vs BL, uncorrected (* p < 0.05; with n = 6 the minimum two-sided p is 0.031). See the tables for FDR-corrected q.
HMM state occupancy by context
Figure 2. HMM state occupancy by context. Fraction of time in each of the 6 hidden states, per animal and context (states are animal-specific).
Hidden-state sequence during defeat
Figure 3. Hidden-state sequence during defeat. Viterbi HMM state sequence (top) and annotated behavior (bottom) for one defeat session of animal 6675.
HMM states, behavior and context
Figure 4. HMM states, behavior and context. Left: mutual information between hidden state and behavior in defeat sessions (red: p < 0.05 per animal). Right: occupancy divergence between different-day sessions sharing vs not sharing a context.

Tables

Table 1. Dimensionality and HMM measures: condition contrasts

Exact Wilcoxon on per-animal means (days 1–9 without day 7). Download CSV

metriccontrastnmedian_diffdzpq_fdrfriedman_p
PR_normSD vs BL6-0.00223-0.4890.2190.9170.607
PR_normSS vs BL60.001660.3690.4380.9170.607
PR_normSS vs SD60.00550.520.3120.9170.607
occupancy_entropySD vs BL6-0.012-0.1730.6880.9170.223
occupancy_entropySS vs BL60.07060.2810.4380.9170.223
occupancy_entropySS vs SD60.1051.240.09380.9170.223
dwell_sSD vs BL60.05210.3490.5620.9170.607
dwell_sSS vs BL60.2370.4650.5620.9170.607
dwell_sSS vs SD60.04890.161110.607
transitions_per_minSD vs BL6-0.543-0.1650.6880.9170.607
transitions_per_minSS vs BL6-0.250.0129110.607
transitions_per_minSS vs SD60.4810.2840.84410.607

Table 2. Context specificity of HMM state occupancy

Jensen–Shannon divergence between occupancy distributions of different-day sessions. Download CSV

subjectJS_same_contextJS_different_context
47030.4070.428
64450.390.434
65970.3030.302
66690.8420.839
66720.5540.576
66750.6950.713

Table 3. HMM state – behavior mutual information (defeat sessions)

MI vs 200 circular shifts of the behavior sequence. Download CSV

subjectMI_bitsnull_mean_bitszp
47030.1140.09130.6580.224
64450.1410.154-0.2470.622
65970.1630.08793.30.00498
66690.3790.2811.130.149
66720.1220.09621.210.134
66750.09370.101-0.4520.667

Table 4. Session-level dynamics measures

Showing 12 of 111 rows. Download CSV

keysubjectconditiondaymappingPRPR_normoccupancy_entropydwell_stransitions_per_min
4703_BL_D14703BL1supported3.970.03781.314.8412.2
4703_SD_D14703SD1supported2.560.02441.852.7721.5
4703_SS_D14703SS1supported3.030.02881.692.622.9
4703_BL_D24703BL2supported3.150.031.544.3413.6
4703_SD_D24703SD2supported2.850.02711.692.622.9
4703_SS_D24703SS2supported2.990.02851.852.821.3
4703_BL_D34703BL3supported3.680.0351.53.2918
4703_SD_D34703SD3supported2.970.02831.862.4724.1
4703_SS_D34703SS3supported3.160.03011.722.3825.1
4703_BL_D54703BL5supported1.980.01891.372.722.1
4703_SD_D54703SD5supported2.090.01991.482.6322.7
4703_SS_D54703SS5supported2.980.02841.442.5623.3

Limitations

  • The number of HMM states (6) and PCs (10) were fixed a priori rather than selected by cross-validated likelihood.
  • PR depends on the number of neurons and samples. Comparisons are therefore within animal and between equal-length sessions.
  • The HMM is fit to all sessions of an animal, including day 11, so states are defined on data that also enter the condition contrasts. Contrasts compare how the same states are used, not whether states differ.
  • BL, SD and SS are always recorded in that order within a day, so condition contrasts are confounded with position in the recording.

References

  1. Gao P. & Ganguli S. (2015) On simplicity and complexity in the brave new world of large-scale neuroscience. Curr Opin Neurobiol 32:148–155.
  2. Recanatesi S. et al. (2022) A scale-dependent measure of system dimensionality. Patterns 3:100555.
  3. Mazzucato L., Fontanini A. & La Camera G. (2015) Dynamics of multistable states during ongoing and evoked cortical activity. J Neurosci 35:8214–8231.
  4. Identifying and modulating neural signatures of stress susceptibility and resilience enables control of anhedonia (BLA/vCA1 Neuropixels, HMM states). PMC10854313.
  5. Padilla-Coreano N. et al. (2022) Cortical ensembles orchestrate social competition through hypothalamic outputs. Nature 603:667–671.
  6. Lin J. (1991) Divergence measures based on the Shannon entropy. IEEE Trans Inf Theory 37:145–151.