Skip to main content
eLife logoLink to eLife
. 2021 Aug 31;10:e68980. doi: 10.7554/eLife.68980

Decoding the brain state-dependent relationship between pupil dynamics and resting state fMRI signal fluctuation

Filip Sobczak 1,2,, Patricia Pais-Roldán 1,3, Kengo Takahashi 1,2, Xin Yu 4,
Editors: Timothy E Behrens5, Timothy E Behrens6
PMCID: PMC8460262  PMID: 34463612

Abstract

Pupil dynamics serve as a physiological indicator of cognitive processes and arousal states of the brain across a diverse range of behavioral experiments. Pupil diameter changes reflect brain state fluctuations driven by neuromodulatory systems. Resting-state fMRI (rs-fMRI) has been used to identify global patterns of neuronal correlation with pupil diameter changes; however, the linkage between distinct brain state-dependent activation patterns of neuromodulatory nuclei with pupil dynamics remains to be explored. Here, we identified four clusters of trials with unique activity patterns related to pupil diameter changes in anesthetized rat brains. Going beyond the typical rs-fMRI correlation analysis with pupil dynamics, we decomposed spatiotemporal patterns of rs-fMRI with principal component analysis (PCA) and characterized the cluster-specific pupil–fMRI relationships by optimizing the PCA component weighting via decoding methods. This work shows that pupil dynamics are tightly coupled with different neuromodulatory centers in different trials, presenting a novel PCA-based decoding method to study the brain state-dependent pupil–fMRI relationship.

Research organism: Rat

Introduction

Pupil diameter change reflects the brain state and cognitive processing (Beatty and Lucero-Wagoner, 2000; Eckstein et al., 2017; Laeng et al., 2012; Wilhelm and Wilhelm, 2003). It contains information about behavioral variables as diverse as a subject’s arousal fluctuation (McGinley et al., 2015; Yoss et al., 1970; McCormick et al., 2020), sensory task performance (McGinley et al., 2015; Hakerem and Sutton, 1966), movement (Stringer et al., 2019; Salkoff et al., 2020; Musall et al., 2019; Reimer et al., 2014), exerted mental effort (Hess and Polt, 1964; Kahneman and Beatty, 1966; Alnæs et al., 2014), expected reward (O’Doherty et al., 2003), task-related uncertainty (Satterthwaite et al., 2007; Nassar et al., 2012; Richer and Beatty, 1987), or upcoming decisions (de Gee et al., 2014; Sheng et al., 2020). This richness of behavioral correlates is partly explained by the fact that multiple neuronal sources drive pupil activity. Pupil diameter changes reflect spontaneous neural activity across the cortex (Stringer et al., 2019; Salkoff et al., 2020; Musall et al., 2019; Yellin et al., 2015; Pais-Roldán et al., 2020) and in major subcortical areas (Stringer et al., 2019; Joshi et al., 2016; Wang et al., 2012; Schneider et al., 2016; Ranson and Magoun, 1933). Both sympathetic and parasympathetic systems innervate muscles controlling pupil dilation and constriction (Bonvallet and Zbrozyna, 1963; McDougal and Gamlin, 2015; Yüzgeç et al., 2018), and the activity of subcortical nuclei mediating neuromodulation has been tightly coupled with pupillary movements (Pais-Roldán et al., 2020; Joshi et al., 2016; Reimer et al., 2016; Rajkowski, 1993; de Gee et al., 2017; Murphy et al., 2014; Breton-Provencher and Sur, 2019). In particular, rapid and sustained pupil size changes are associated with cortical noradrenergic and cholinergic projections, respectively (Reimer et al., 2016), and direct recordings of the noradrenergic locus coeruleus demonstrate neuronal activity highly correlated with pupil dynamics (Joshi et al., 2016; Rajkowski, 1993; Breton-Provencher and Sur, 2019; Aston-Jones and Cohen, 2005). Also, pupil diameter changes are regulated through dopaminergic neuromodulation under drug administration (Shannon et al., 1976) and in reward-related tasks (O’Doherty et al., 2003; de Gee et al., 2017). Studies also show that pupil dilation and constriction can be controlled by serotonergic agonists and antagonists, respectively (Vitiello et al., 1997; Schmid et al., 2015). These studies have revealed the highly complex relationship between pupil dynamics and brain state fluctuations (McCormick et al., 2020; Reimer et al., 2014; Yüzgeç et al., 2018; Lowenstein et al., 1963).

Resting-state fMRI (rs-fMRI) studies have uncovered global pupil–fMRI correlation patterns in human brains as well as revealed that the pupil dynamics–fMRI relationship changed under different lighting conditions or when subjects engaged in mental imagery (Yellin et al., 2015; Schneider et al., 2016). The dynamic functional connectivity changes detected by fMRI, possibly modulated by the interplay of cholinergic and noradrenergic systems (Shine, 2019), are also reflected in pupil dynamics both at rest (Shine et al., 2016) and in task conditions (Mäki-Marttunen, 2020). Furthermore, rs-fMRI has been used to display a differential correlation pattern with brainstem noradrenergic nuclei, e.g., A5 cell group, depending on the cortical cross-frequency coupling state in the animal model (Pais-Roldán et al., 2020). Although rs-fMRI enables brain-wide pupil–fMRI correlation analysis across different states, the linkage of brain state-dependent pupil dynamics with distinct activation patterns of neuromodulatory nuclei remains to be thoroughly investigated beyond the conventional analysis methods.

Here, we aimed to differentiate brain states with varied coupling patterns of pupil dynamics with the subcortical activity of major neuromodulatory nuclei in an anesthetized rat model. First, we demonstrated that the pupil–fMRI relationship is not uniform across different scanning trials and employed a clustering procedure to identify distinct pupil–fMRI spatial correlation patterns from a cohort of datasets. Next, we modeled the relationship of the two modalities for each cluster using principal component analysis (PCA)-based decoding methods (gated recurrent unit [GRU] [Cho, 2014] neural networks and linear regression) and characterized unique subcortical activation patterns coupled with specific pupil dynamic features. This work demonstrates the effectiveness of PCA-based decoding to dissect the time-varied pupil–fMRI relationship corresponding to different forms of brain state-dependent neuromodulation.

Results

Identification of brain states with distinct pupil dynamics correlation patterns

To investigate brain state-dependent pupil dynamics, we acquired whole-brain rs-fMRI with real-time pupillometry in anesthetized rats (n = 10) as previously reported (Pais-Roldán et al., 2020). Initially, the pupil dilation and fMRI time series from all 15 min trials (n = 74) were concatenated. A voxel-wise correlation map of the concatenated pupil signals with fMRI time courses showed a global negative correlation (Figure 1A). However, the generated map was not representative of all trials, which was revealed by creating correlation maps for individual trials (Figure 1B). These maps demonstrated high variability of pupil–fMRI correlations, which is presented by the histogram distribution of spatial correlation values between individual-trial spatial maps and the concatenated all-trial map (Figure 1C).

Figure 1. Variability of the pupil–fMRI linkage.

Figure 1.

(A) Pupil–fMRI correlation map created by correlating the two modalities’ concatenated signals from all trials. (B) Selected individual-trial correlations maps. (C) Histogram of spatial correlations between the all-trial correlation map and individual-trial maps. High variability of similarities between the maps shows that the pupil–fMRI relationship is not stationary and changes across trials.

Figure 1—source data 1. The mean correlation map (A), all individual correlation maps (B), and the spatial correlation values (C) are available in the source data file.

Next, we clustered all trials into different groups based on pupil–fMRI correlation maps (Figure 2A). To facilitate the clustering analysis, we reduced the dimensionality of the spatial correlation maps using the uniform manifold approximation and projection (UMAP) method (McInnes et al., 2020) and decreased the number of features used for clustering from the number of voxels (n = 20,804) to 72 for each map. Three to seven clusters were identified with Gaussian mixture modeling and examined using silhouette analysis (McLachlan and Basford, 1988; Rousseeuw, 1987). Here, we focused on the four-cluster categorization since this division yielded the highest mean silhouette scores (Figure 2B) across 100 random UMAP and GMM initializations. For each trial, we selected its most common cluster membership across the 100 repetitions and used it in the following analysis. The clustering results exhibited a very high degree of reproducibility as seen in the plots displaying the reproducibility of cluster labels and mean cluster correlation maps (Figure 2—figure supplement 1). The clusters had the following trial counts: n1 = 8; n2 = 30; n3 = 24; n4 = 12. The mean power spectral density (PSD) estimates of pupil dynamics based on the cluster division were plotted in Figure 2C. PSD of cluster one showed a distinct peak at 0.018 Hz as well as the lowest baseline pupil diameter values. In contrast, cluster 4 had the highest mean baseline diameter and a peak at 0.011 Hz. Clusters 2 and 3 showed peaks of oscillatory power at less than 0.01 Hz. The ultra-slow oscillation is typical for spontaneous pupil fluctuations (McLaren et al., 1992). All PSDs and example pupil signals from each cluster are shown in Figure 2—figure supplement 2. We recreated pupil–fMRI correlation maps based on the four clusters (Figure 2D). Three clusters (1, 2, and 4) showed negative correlations across large parts of the brain, with the correlation strength differing across clusters. In contrast, cluster 3 displayed a very low mean correlation with positive coefficients spreading across the entire brain. It is also noteworthy that cluster 1 showed a high positive correlation in the periaqueductal gray and ventral midbrain regions. The distinct qualities of identified clusters supported the usage of data-driven clustering for identifying brain state-dependent pupil dynamics.

Figure 2. Clustering of trials with distinct pupil–fMRI correlation patterns.

(A) Schematic of the clustering procedure. UMAP is used to reduce the dimensionality of all individual-trial correlation maps to 72 dimensions. A 2D UMAP-projection of the real data is shown. Each dot represents a single trial. The trials are clustered using Gaussian mixture model clustering. Different numbers of clusters are evaluated. (B) The final number of clusters is selected based on silhouette analysis. The highest average silhouette score is obtained with k = 4 clusters. Shaded area shows standard deviations. (C) Pupil power spectral density estimates (PSD) of each of the four clusters. Signals were downsampled to match the fMRI sampling rate. Shaded areas show standard deviations. (D) Cluster-specific correlation maps based on concatenated signals belonging to the respective groups.

Figure 2—source data 1. Cluster trial labels, individual silhouette scores (B), mean cluster PSDs (C), and cluster-specific correlation maps (D) are available in the source data file.

Figure 2.

Figure 2—figure supplement 1. Cluster reproducibility across 100 repetitions with random UMAP and GMM initializations.

Figure 2—figure supplement 1.

(A) Matrix displaying the ratio of cluster membership labels matching the most common cluster membership assignment across the 100 repetitions. (B) Matrix displaying the mean spatial correlation between the 100 cluster-specific maps and the maps based on the most common cluster membership assignment.
Figure 2—figure supplement 1—source data 1. The label match ratios (A) and map similarity values (B) are available in the source data file.
Figure 2—figure supplement 2. Cluster-specific pupil fluctuation features.

Figure 2—figure supplement 2.

(A) PSDs of all trials divided based on their cluster memberships. Clusters 1 and 3 show specific peak frequencies. Cluster 4 shows the largest PSDs, hence the largest pupil size fluctuations. Cluster 1 shows the opposite. (B) Two example pupil diameter time courses are plotted per cluster. The magnitude of changes reflects the PSD differences visible in (A).
Figure 2—figure supplement 2—source data 1. All PSDs (A) are available in the source data file.
All pupil signals (B) are available online (see Materials and methods).
Figure 2—figure supplement 3. Clustering reproducibility across 100 clustering repetitions based on HRF-convolved pupil signals.

Figure 2—figure supplement 3.

(A) HRFs with different peak times were used to create the convolved and lagged pupil signals. (B) Mean match ratio of cluster membership labels created using the convolved signals and those employed throughout the manuscript. The shaded area shows the standard deviation. (C) Mean spatial correlation between cluster-specific maps created using the convolved and non-convolved signals. The shaded area shows the standard deviation.
Figure 2—figure supplement 3—source data 1. The HRF kernels (A), cluster membership label match ratios (B), and map similarity values (C) are available in the source data file.
Figure 2—figure supplement 4. Cluster reproducibility across 100 repetitions of split-halves clustering.

Figure 2—figure supplement 4.

(A) Matrix displaying the ratio of split-halves cluster membership labels matching the cluster membership assignment based on all trials across 100 repetitions. (B) Matrix displaying the mean spatial correlation between the 100 split-halves cluster-specific maps and maps based on all trials.
Figure 2—figure supplement 4—source data 1. The label match ratios (A) and map similarity values (B) are available in the source data file.
Figure 2—figure supplement 5. Cluster reproducibility across 100 sets of artificially generated surrogates with values and spatial autocorrelations matching those of real maps.

Figure 2—figure supplement 5.

(A) A real pupil–fMRI correlation map and three example surrogate maps. (B) Matrix displaying the ratio of cluster membership labels generated based on the surrogate maps and those based on real data. (C) Matrix displaying the mean spatial correlation between the surrogate cluster-specific maps and those based on real data.
Figure 2—figure supplement 5—source data 1. Ten example surrogate sets (i.e. 740 maps total) (A), label match ratios (B), and map similarity values (C) are available in the source data file.
Figure 2—figure supplement 6. Mean silhouette scores based on 100 clustering repetitions performed on shorter trials.

Figure 2—figure supplement 6.

Based on the silhouette score criterion, the n = 4 clusters result should be chosen even when dividing the trials into three parts.
Figure 2—figure supplement 6—source data 1. Individual silhouette scores are available in the source data file.

Lastly, we performed a series of analyses to investigate cluster reproducibility beyond the initial random initializations. First, to compensate for the possible lag between pupil and fMRI, we convolved pupil signals with hemodynamic response function (HRF) kernels with different peak times (Yellin et al., 2015; Pais-Roldán et al., 2020; Figure 2—figure supplement 3A). We regenerated the correlation maps and repeated the clustering procedure 100 times for each kernel. The high cluster membership and correlation map reproducibility across a range of HRF peak times (Figure 2—figure supplement 3B,C) justify the use of non-convolved signals and emphasize the impact of slow fluctuations on the correlation results. Similarly to Allen et al., 2014, we performed 100 half-split reproducibility analyses and showed that to a large degree the cluster memberships are preserved when using half of the trials (Figure 2—figure supplement 4). The match might be imperfect, e.g., due to smaller numbers of a particular cluster’s samples in a half-split interacting with UMAP dimensionality reduction parameters. Next, using spatial surrogate maps with spatial autocorrelation and value distribution matching that of real correlation maps (Burt et al., 2020) (see Materials and methods), we verified that the spatial location of correlation values and not the mean values or spatial autocorrelation properties were driving the clustering (Figure 2—figure supplement 5). Finally, we showed that when splitting the trials into shorter runs, clustering the data into n = 4 clusters should be selected based on the silhouette score criterion up to a 300 s trial length (Figure 2—figure supplement 6). The conducted analyses further justified the selection of n = 4 clusters and verified the reproducibility of the UMAP and GMM clustering procedure.

Decoding-based investigation of the relationship between whole-brain rs-fMRI and pupil dynamics

To characterize the pupil–fMRI relationship beyond the conventional correlation analysis, we implemented data-driven decoding models to couple the dynamics of the two modalities. First, we validated the approach in a setting involving all trials. We then employed it to investigate the pupil–fMRI coupling in the previously identified clusters. First, we performed principal component analysis (PCA) to extract spatiotemporal features of whole-brain rs-fMRI signals (n = 300) and trained either linear regression (LR) or a gated recurrent unit (GRU) neural network to predict pupil dynamics based on rs-fMRI PCA time courses (Figure 3A). Furthermore, we compared the LR and GRU prediction models with a correlation-template-based pupil dynamics estimation used in previous studies (Pais-Roldán et al., 2020; Chang et al., 2016). All methods were trained on randomly chosen 64 trials using cross-validation and then were tested on additional 10 unseen trials from the same animals. The PCA model was fit with the 64 training trials only. As the correlation-template-based predictions were bounded to the <−1; 1> range, Pearson’s correlation coefficient was used to evaluate the decoding of all methods. We optimized the hyperparameters of GRUs and linear regression variants using Bayesian optimization and fourfold cross-validation (hyperparameter values are listed in Materials and methods). Both linear regression and GRU outperformed the correlation-template approach on both training (CCbase = 0.37 ± 0.27 s.d., CCLR = 0.45 ± 0.26 s.d., CCGRU = 0.46 ± 0.25 s.d., pLR = 4.3*10–6, pGRU = 2.4 × 10–6) and test sets (CCbase = 0.25 ± 0.17 s.d., CCLR = 0.44 ± 0.24 s.d., CCGRU = 0.45 ± 0.27 s.d., pLR = 0.003, pGRU = 0.01) (Figure 3B). Notably, the test set prediction scores do not reflect generalization across different rats as the training and test data could belong to the same animals. We repeated the linear regression prediction procedure (including the PCA step) on 100 other random train-test trial splits and validated that the obtained scores are representative of the distribution (Figure 3—figure supplement 1A). We also verified the number of rs-fMRI PCA components by testing varied component counts, showing that the highest prediction scores were achieved with 300 components (Figure 3—figure supplement 1B,C). In addition, when varying the temporal shift between pupil dynamics and rs-fMRI signals, we obtained the highest prediction scores with zero shift between the input and output signals (Figure 3—figure supplement 1B). Similarly, the highest prediction scores were obtained based on pupil signals convolved with an HRF kernel with a peak at 0 s (Figure 3—figure supplement 1C). Interestingly, the component which explained the most pupillary variance (explained var. = 7.03%) and had the highest linear regression weight, explained only 0.8% of the fMRI variance (Figure 3—figure supplement 2). Furthermore, the component that explained the most fMRI variance (explained var. = 22.01%) was weakly coupled with the pupil fluctuation (explained var. = 0.51%). Thus, this prediction-based PCA component weighting scheme enabled the dissection of unique brain activity features for the modeling of the pupil−fMRI relationship. It should also be noted that GRU and linear regression methods obtained comparable scores and both methods showed similar prediction performance (Figure 3C). Figure 3—figure supplement 3 shows prediction maps created by integrating PCA components using linear regression weights or averaged GRU gradients (details in Materials and methods). The resemblance of the two maps suggests that despite GRU’s potential for encoding complex and non-linear functions, a linear regression-based rs-fMRI mapping scheme was sufficient for predicting pupil dynamics.

Figure 3. Decoding pupil dynamics based on fMRI signals.

(A) Schematic of the decoding procedure. PCA was applied to fMRI data. The PCA time courses were fed into either linear regression or GRU decoders, which generated pupil signal predictions. The prediction quality was evaluated by comparing the generated signals with real pupil fluctuations using Pearson’s correlation coefficients. (B) Comparison of the three methods’ pupil dynamics predictions. Linear regression and GRU performed better than the correlation-based baseline method on both the cross-validation splits (CCbase = 0.37 ± 0.27 s.d., CCLR = 0.45 ± 0.26 s.d., CCGRU = 0.46 ± 0.25 s.d., pLR = 4.3*10–6, pGRU = 2.4 × 10–6) and on test data (CCbase = 0.25 ± 0.17 s.d., CCLR = 0.44 ± 0.24 s.d., CCGRU = 0.45 ± 0.27 s.d., pLR = 0.003, pGRU = 0.01). Scattered points show individual prediction scores. (C) Linear regression and GRU predictions of three selected trials (CCGRU-top = 0.79, CCLR-top = 0.77, CCGRU-middle = 0.75,CCLR-middle = 0.73, CCGRU-bottom = 0.02, CCLR-bottom = 0.06). Qualitatively, linear regression and GRU predictions were very similar.

Figure 3—source data 1. Prediction scores (B) and all predicted time courses (C) are available in the source data file.

Figure 3.

Figure 3—figure supplement 1. Prediction score dependence on train-test split trial selection, number of PCA components, and temporal shifts between pupil and fMRI signals.

Figure 3—figure supplement 1.

(A) Mean test and train set prediction scores across 100 random train-test splits. The red dot shows values described in the manuscript. (B) The influence of temporal shifts and different component counts on prediction scores. Temporally shifting the fMRI and pupil fluctuation signals reduced prediction accuracy. Predictions generated based on 300 PCA components obtained the best scores. (C) The influence of predicting the HRF-convolved pupil signals and using different component counts on prediction scores. Predicting signals convolved with an HRF with a peak at 0 s generated the highest scores. Predictions generated based on 300 PCA components obtained the best scores.
Figure 3—figure supplement 1—source data 1. Individual prediction scores across all trial mixes (A) and the mean prediction scores (BC) are available in the source data file.
Figure 3—figure supplement 2. PCA decoupling of pupil-related fMRI activity from other signal sources.

Figure 3—figure supplement 2.

(A) fMRI variance explained by individual PCA components. Components are ordered by variance explained. Black dot marks the component with the most explained pupil variance. (B) Pupil variance explained by the PCA signals. Same ordering as in (A). The component explaining the most pupil variance (explained var. = 7.03%) explains only 0.8% of fMRI variance. Black dot marks the component with the most explained pupil variance. (C) Weights of the linear regression model trained to decode pupil signals based on fMRI-PCA data. Each weight corresponds to a single PCA component’s time course. The highest absolute weights are not assigned to the components explaining the most fMRI variance. Black dot marks the component with the most explained pupil variance.
Figure 3—figure supplement 2—source data 1. The variance explained values (AB) and linear regression weights (C) are available in the source data file.
Figure 3—figure supplement 3. Similarity of GRU and linear regression prediction maps.

Figure 3—figure supplement 3.

Spatial maps were generated by integrating PCA spatial maps with either linear regression weights or average GRU gradients. The maps highlight the same areas. This observation coupled with the similarity of predictions generated by both methods and the short GRU training time suggests that a linear mapping was sufficient for this decoding task.
Figure 3—figure supplement 3—source data 1. The maps are available in the source data file.

The map generated by combining PCA components with the linear regression decoder enabled the identification of brain nuclei which were not highlighted in the correlation map shown in Figure 1A. Figure 4 shows an overview of the PCA-based fMRI prediction map overlaid on the brain atlas, revealing pupil-related activation patterns at key neuromodulatory nuclei of the ascending reticular activating system (ARAS) – the dopaminergic ventral tegmental area, substantia nigra and supramammillary nucleus, the serotonergic raphe and B9 cells, the histaminergic tuberomammillary nucleus, the cholinergic laterodorsal tegmental and pontine nuclei, the glutamatergic parabrachial nuclei, and the area containing the noradrenergic locus coeruleus. Positive weights were also located in subcortical regions involved in autonomous regulation – the lateral and preoptic hypothalamus and the periaqueductal gray. In addition, the subcortical basal forebrain nuclei (the horizontal limb of the diagonal band, nucleus accumbens, and olfactory tubercle) and the septal area were positively coupled with pupil dynamics. Lastly, regions of the hippocampal formation – the hippocampus, entorhinal cortex, and subiculum, as well as cingulate, retrosplenial, and visual cortices displayed positive weighting. It should be noted that the thalamus and the hippocampus displayed both positive and negative weights. Negative coupling was also found in the cerebellum and most somatosensory cortical regions. The voxel-wise statistical significance (p<0.01) was validated using randomization tests and corrected for multiple comparisons with false discovery rate correction (details in Materials and methods). The identification of pupil-related information in brain regions closely tied to neuromodulatory activity and to autonomous and brain state regulation (Duyn et al., 2020; Benarroch, 2018; Dampney, 2016; Silvani et al., 2015; Kuwaki and Zhang, 2010; Grimaldi et al., 2014; van den Brink et al., 2019) highlights the advantage of using PCA decomposition combined with prediction-based decoding methods instead of conventional correlation analysis to identify pupil-related subcortical activation patterns.

Figure 4. Localization of pupil dynamics-related information content across the brain.

Figure 4.

The spatial map highlights regions from which pupil-related information was decoded. It was created by integrating PCA spatial maps with weights of the trained linear regression model. The map displays positive weights in all neuromodulatory regions of the ascending reticular activating system as well as in other regions involved in autonomous regulation – the lateral and preoptic hypothalamus and the periaqueductal gray. The subcortical basal forebrain nuclei (the horizontal limb of the diagonal band, nucleus accumbens, and olfactory tubercle) and the septal area were also positively coupled to pupil dynamics. Finally, regions of the hippocampal formation – the hippocampus, entorhinal cortex and subiculum, as well as cingulate, retrosplenial and visual cortices showed positive weights. The thalamus and the hippocampus had both positive and negative weights. Strong negative weighting was found in the cerebellum and most somatosensory cortical regions. Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: B9 – B9 serotonergic cells, Ce – cerebellum, CgCx – cingulate cortex, DB – horizontal limb of the diagonal band, ECx – entorhinal cortex, Hp – hippocampus, LC – locus coeruleus, LDT – laterodorsal tegmental nuclei, LH – lateral hypothalamus, NA – nucleus accumbens, OTu – olfactory tubercle, PAG – periaqueductal gray, PB – parabrachial nuclei, PO – preoptic nuclei, PPT – pedunculopontine tegmental nuclei, Ra – raphe, RF – reticular formation, RsCx – retrosplenial cortex, Sb – subiculum, SCx – somatosensory cortex, Se – septal nuclei, SN – substantia nigra, SuM – supramammillary nucleus, Th – thalamus, TuM – tuberomammillary nucleus, VTA – ventral tegmental area.

Figure 4—source data 1. The masked map is available in the source data file.

Characterization of brain state-dependent PCA-based pupil–fMRI prediction maps

To differentiate brain state-dependent subcortical activation patterns related to different pupil dynamics, we retrained the linear regression model based on the four different clusters shown in Figure 2D and created PCA-based fMRI prediction maps for each cluster (Figure 5).

Figure 5. Characterization of brain state-specific pupil–fMRI relationships.

(A) Pupil information content maps generated by integrating PCA spatial maps with weights of linear regression models trained on cluster-specific trials. In all clusters, negative weights were found in the somatosensory cortex, the cerebellum, and posterior parts of the thalamus. All clusters had positive weights in anterior thalamic, preoptic and hypothalamic nuclei, subiculum, parts of the hippocampus and in the region containing the tuberomammillary nucleus. Clusters 1–3 displayed positive weights in neuromodulatory brainstem regions, substantia nigra, and ventral tegmental area, as well as the entorhinal cortex. The cingulate cortex and retrosplenial cortex and supramammillary nucleus were positive in clusters 2–4. Marked with gray are frames plotted in (B). (B) Cluster-specific spatial patterns are portrayed on slices selected from A (marked with gray rectangles). Characteristic to cluster 1 were positive weights in the dopaminergic substantia nigra and ventral tegmental area as well as in their efferent projections in the nucleus accumbens and caudate-putamen. Positive weighting was also found in the periaqueductal gray and brainstem laterodorsal tegmental and parabrachial nuclei, as well as in the superior colliculus. Cluster 2 was characterized by the strongest positive weights in hypothalamic regions, lateral in particular. Brainstem areas containing the arousal-regulating locus coeruleus, laterodorsal tegmental, and parabrachial nuclei, as well as the septal area and the olfactory tubercle displayed high positive weights. In cluster 3, as in cluster 2, the area containing the locus coeruleus, laterodorsal tegmental, and parabrachial nuclei showed positive linkage with pupil dynamics. The highest cluster 3 values were located in preoptic and other hypothalamic areas, as well as in stria terminalis carrying primarily afferent hypothalamic fibers, caudate-putamen, and globus pallidus. In cluster 4, the neuromodulatory region showing the strongest positive weights was the caudal raphe. The anterior parts of the brainstem displayed negative weighting. Characteristic to cluster 4 were high weights in the thalamus and in the hippocampus and the subiculum forming the hippocampal formation. Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: Ce – cerebellum, CgCx – cingulate cortex, CP – caudate-putamen, GP – globus pallidus, Hp – hippocampus, Hy – hypothalamus, LC – locus coeruleus, LDT – laterodorsal tegmental nuclei, LH – lateral hypothalamus, NA – nucleus accumbens, OTu – olfactory tubercle, PAG – periaqueductal gray, PB – parabrachial nuclei, PO – preoptic nuclei, Ra – raphe, Sb – subiculum, SC – superior colliculus, Se – septal area, SN – substantia nigra, ST – stria terminalis, Th – thalamus, VTA – ventral tegmental area.

Figure 5—source data 1. The unmasked cluster maps (A) and the masked maps based on randomization tests with a different random seed (B) are available in the source data file.

Figure 5.

Figure 5—figure supplement 1. The spatial map based on cluster 1 trials highlights regions from which pupil-related information was decoded.

Figure 5—figure supplement 1.

Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: Ce – cerebellum, CP – caudate-putamen, ECx – entorhinal cortex, Hp – hippocampus, Hy – hypothalamus, LDT – laterodorsal tegmental nuclei, LH – lateral hypothalamus, NA – nucleus accumbens, PAG – periaqueductal gray, PB – parabrachial nuclei, Sb – subiculum, SC – superior colliculus, SCx – somatosensory cortex, SN – substantia nigra, Th – thalamus, TuM – tuberomammillary nucleus, VTA – ventral tegmental area.
Figure 5—figure supplement 2. The spatial map based on cluster 2 trials highlights regions from which pupil-related information was decoded.

Figure 5—figure supplement 2.

Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: B9 – B9 serotonergic cells, Ce – cerebellum, CgCx – cingulate cortex, ECx – entorhinal cortex, Hp – hippocampus, Hy – hypothalamus, LC – locus coeruleus, LDT – laterodorsal tegmental nuclei, LH – lateral hypothalamus, OTu – olfactory tubercle, PB – parabrachial nuclei, PPT – pedunculopontine tegmental nuclei, Ra – raphe, RsCx – retrosplenial cortex, Sb – subiculum, SCx – somatosensory cortex, Se – septal nuclei, SN – substantia nigra, SuM – supramammillary nucleus, Th – thalamus, TuM – tuberomammillary nucleus, VTA – ventral tegmental area.
Figure 5—figure supplement 3. The spatial map based on cluster 3 trials highlights regions from which pupil-related information was decoded.

Figure 5—figure supplement 3.

Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: Ce – cerebellum, CgCx – cingulate cortex, CP – caudate-putamen, ECx – entorhinal cortex, GP – globus pallidusHp – hippocampus, LC – locus coeruleus, LDT – laterodorsal tegmental nuclei, LH – lateral hypothalamus, PAG – periaqueductal gray, PB – parabrachial nuclei, PO – preoptic nuclei, Ra – raphe, RF – reticular formation, RsCx – retrosplenial cortex, Sb – subiculum, SCx – somatosensory cortex, SN – substantia nigra, ST – stria terminalis, SuM – supramammillary nucleus, Th – thalamus, TuM – tuberomammillary nucleus, VTA – ventral tegmental area.
Figure 5—figure supplement 4. The spatial map based on cluster 4 trials highlights regions from which pupil-related information was decoded.

Figure 5—figure supplement 4.

Masked regions (white) did not pass the false discovery rate corrected significance threshold (p=0.01). Abbreviations: Ce – cerebellum, CgCx – cingulate cortex, Hp – hippocampus, LH – lateral hypothalamus, Ra – raphe, RsCx – retrosplenial cortex, Sb – subiculum, SCx – somatosensory cortex, SuM – supramammillary nucleus, Th – thalamus, TuM – tuberomammillary nucleus.

Each PCA-based prediction map portrayed a cluster-specific spatial pattern (Figure 5B). Cluster 1 was characterized by strong positive weights in the dopaminergic substantia nigra and ventral tegmental area as well as in their efferent projections in the striatum (nucleus accumbens and caudate-putamen) (Beckstead et al., 1979). Positive coupling was also displayed in the periaqueductal gray and brainstem laterodorsal tegmental and parabrachial nuclei as well as in the superior colliculus. Cluster 2 had the strongest positive weights in hypothalamic regions, lateral in particular, but also in brainstem arousal-regulating areas containing the locus coeruleus, laterodorsal tegmental, and parabrachial nuclei. High positive values were also found in the septal area and the olfactory tubercle. In cluster 3, the highest values were visible in preoptic and other hypothalamic areas, as well as in stria terminalis carrying primarily afferent hypothalamic fibers (De Olmos and Ingram, 1972), caudate-putamen, and globus pallidus. As in cluster 2, the region containing the locus coeruleus, laterodorsal tegmental, and parabrachial nuclei showed positive linkage with pupil dynamics. Contrastingly, in cluster 4, caudal raphe was the neuromodulatory region showing the strongest positive weights and the anterior parts of the brainstem displayed negative weighting. Characteristic to cluster 4 were high weights in the hippocampus and the subiculum forming the hippocampal formation, as well as in thalamic and amygdaloid areas. In all clusters, negative weights were detected across somatosensory cortices, the cerebellum, and posterior parts of the thalamus, as well as positive weights in hypothalamic and anterior thalamic nuclei and in the area containing the tuberomammillary nucleus. The subiculum and parts of the hippocampus were also positive in all clusters; however, the entorhinal cortex, also belonging to the hippocampal formation, was positive only in clusters 1–3. The same three clusters showed major positive weights in the neuromodulatory brainstem regions, substantia nigra, and ventral tegmental area. Clusters 2–4 displayed strong weights in the supramammillary nucleus, retrosplenial cortex, and the cingulate cortex, which has been coupled with both noradrenergic modulation (Aston-Jones and Cohen, 2005) and pupil dynamics (Pais-Roldán et al., 2020; Joshi et al., 2016). Enlarged cluster-specific maps are displayed in Figure 5—figure supplements 14. Here, we demonstrated the effectiveness of combining the PCA-based approach with clustering methods to reveal brain state-specific subcortical activity patterns related to pupil diameter changes.

Discussion

Previous studies analyzed the relationship of fMRI and pupil dynamics either by directly correlating pupil size changes with the fMRI signal fluctuation (Yellin et al., 2015; Pais-Roldán et al., 2020; Schneider et al., 2016) or by applying a general linear model to produce voxel-wise activation maps (Alnæs et al., 2014; Murphy et al., 2014; Clewett et al., 2018). Here, we performed PCA-based dimensionality reduction to decouple spatiotemporal features of fMRI signals (Mwangi et al., 2014) and implemented prediction methods to decode pupil dynamics based on the optimized PCA component weighting (Figure 3).

Two advantages can be highlighted in the present pupil–fMRI dynamic mapping scheme. First, conventional correlation analysis relies on the temporal features of fMRI time courses from individual voxels or regions of interest. Hence, it could not decouple the superimposed effects of multiple signal sources (Carbonell et al., 2011; Tong et al., 2019) or characterize the state-dependent dynamic subcortical correlation patterns. On the other hand, the PCA decomposition scheme solved these issues by decoupling multiple components of rs-fMRI signals with unique spatiotemporal patterns carrying pupil-related information. Second, the data-driven training of prediction methods optimized the weighting of individual rs-fMRI PCA components. Using the optimized neural network (GRU) or linear regression (LR)-based decoding models, we created prediction maps linking pupil dynamics with fMRI signal fluctuation of specific subcortical nuclei (Figure 4, Figure 3—figure supplement 3). Also, the decoding models showed much better pupil dynamics prediction than the correlation-template-based approach reported previously (Pais-Roldán et al., 2020; Chang et al., 2016). Meanwhile, it should be noted that both LR and GRU models generated qualitatively similar prediction maps, highlighting the pupil-related rs-fMRI signal fluctuation from the same subcortical brain regions (Figure 3C, Figure 3—figure supplement 3). Unlike our previous single-vessel fMRI prediction study (Sobczak et al., 2021a), the GRU-based neural network prediction scheme may require much bigger training datasets to outperform linear regression modeling (Schulz et al., 2020). Another plausible explanation is that the pupil dynamics were predominantly and linearly driven by only a few rs-fMRI PCA components (Figure 3—figure supplement 2), presenting brain activation patterns related to arousal fluctuation and autonomous regulation (Duyn et al., 2020; Özbay, 2019).

The PCA-based prediction modeling provides a novel scheme to decipher subcortical spatial patterns of fMRI signal fluctuation related to brain state-dependent pupil dynamics. Most notably, neuromodulatory nuclei of ARAS and other subcortical nuclei involved in brain state modulation, as well as autonomous regulation were identified in the PCA-prediction map created from all trials. The highlighted hypothalamus, basal forebrain, and neuromodulatory brainstem nuclei are responsible for both global brain state modulation and autonomous cardiovascular, respiratory, and baroreflex control (Duyn et al., 2020; Benarroch, 2018; Dampney, 2016; Silvani et al., 2015; Kuwaki and Zhang, 2010; Grimaldi et al., 2014; van den Brink et al., 2019). Consequently, the source of pupil-related information found across the cortex was probably modulated through global subcortical projections rather than a more direct causal interaction with pupil size changes (Reimer et al., 2016; Lecrux and Hamel, 2016). Noradrenergic neurons of the locus coeruleus are the hypothesized drivers of pupil dilation (Joshi et al., 2016; Aston-Jones and Cohen, 2005), and both the area containing the locus coeruleus and many of its input regions (Breton-Provencher and Sur, 2019) were highlighted in the PCA map. However, the observed activation of the hypothalamus and other neuromodulatory nuclei suggests that, in the anesthetized state, pupil diameter fluctuation reflects a complex interaction of subcortical homeostatic and brain state-modulating centers.

Also, we have shown that these subcortical interactions and the neural correlates of pupil dynamics are not stationary but change across trials in a brain state-dependent manner. Based on the correlation patterns, we identified four clusters of trials with distinct pupil–fMRI coupling. The clusters displayed a high degree of reproducibility when repeating the clustering procedure with all trials; however, the lower label match ratios of clusters 1 and 2 in half-split analyses (Figure 2—figure supplement 4) should be considered. Our results demonstrate that pupil size changes can be modulated by different combinations of subcortical nuclei, indicating varied brain state fluctuations underlying different oscillatory patterns of pupil dynamics (Figure 2C). This is further exemplified by examining the cluster-specific PCA prediction maps. The map of cluster 2 demonstrates the strongest coupling of pupil dynamics with the hypothalamus, which is known to drive pupil dilation (Ranson and Magoun, 1933) and also highlights other brain state-regulating nuclei of the ARAS. It is possible that the hypothalamus was the key driver of brain state fluctuation in cluster 2 (Grimaldi et al., 2014; Lee and Dan, 2012). On the other hand, hypothalamic weights were least prevalent in cluster 1, which displayed strong pupil coupling with the dopaminergic system known to modulate pupil dynamics (O’Doherty et al., 2003; de Gee et al., 2017; Shannon et al., 1976). Finally, in trials of cluster 4, the caudal raphe nucleus was the brainstem neuromodulatory nucleus whose activity had the strongest positive weighting to predict pupil fluctuations. Additionally, the subiculum weights were the strongest in cluster 4 out of all clusters. The positive coupling of the raphe and subiculum hints at the possibility of pupillometry reflecting the activity of circuits responsible for autonomous stress modulation (Lowry, 2002). The PCA prediction maps identify key nuclei coupled with pupil dynamics at different states and also highlight the complexity of brain activation patterns responsible for autonomous and brain state regulation.

The presented results should be interpreted in light of employing anesthesia to acquire BOLD fMRI signals within the MRI scanner. Alpha-chloralose was employed due to the quality of BOLD fMRI responses under this anesthetic (Hyder et al., 2016; Alonso et al., 2011). The neural correlates of brain state-dependent pupil–fMRI correlation differences under alpha-chloralose anesthesia have previously been verified (Pais-Roldán et al., 2020). However, as alpha-chloralose has been reported to inhibit the sympathetic system’s responses (Gaumann and Yaksh, 1990), its influence on pupil size and brain state changes should be investigated similarly to what has been done with other anesthetics. Previous studies report that the use of propofol dampened higher frequency pupil size changes observed in the awake state (Behrends et al., 2019), and slow pupil diameter fluctuations were influenced by both isoflurane and urethane anesthesia (Kum et al., 2016; Blasiak et al., 2013). Furthermore, the brain state changes we observed across trials could be a typical feature of brain activity observed in unanesthetized human subjects e.g. due to arousal or sleep state changes (Allen et al., 2014; Kaufmann et al., 2006; Tagliazucchi and Laufs, 2014) but could also be driven by the anesthetic, as in the case of urethane inducing sleep-like state changes (Blasiak et al., 2013; Clement et al., 2008). Although the present study is based on the anesthetized rat model, it provides a framework that could be applied to analyze human datasets. Working with awake subjects would mitigate the potential impact of anesthesia on the activity of the sympathetic system, which controls pupillary movements in an antagonistic relationship with the parasympathetic system (Bonvallet and Zbrozyna, 1963; McDougal and Gamlin, 2015). Additionally, the cognitive component of brain activity reflected in pupil diameter changes of awake human subjects could be investigated using the PCA-based fMRI decoding method.

Further research should also be directed toward investigating the state-dependent coupling of pupil dynamics and brain activity at finer temporal scales. Importantly, assuming stationarity of the relationship at any scale could lead to oversimplification of the results, as already evidenced by our ability to differentiate four distinct pupil–fMRI coupling patterns instead of one common correlation map. Combining the analysis of individual fMRI frames (Liu et al., 2013; Tseng and Poppenk, 2020) with the phase of pupil diameter fluctuation, which is known to reflect the activity of different cortical neural populations (Reimer et al., 2014), would demonstrate whole-brain activity patterns coupled with pupil dilation and constriction. Finally, regions like the subiculum, which previously have not been linked to pupil dynamics, but displayed strong coupling weights in our study, could guide future electrophysiological studies to reveal novel neuronal regulatory mechanisms underlying pupil dynamics.

Conclusion

We provided a framework to investigate the brain state-dependent relationship between pupil dynamics and fMRI. The pupil-related brain activity was decoupled from other signal sources based on PCA decomposition and the cluster-specific pupil–fMRI relationship was identified by integrating optimized PCA weighting features using decoding methods. Eventually, distinct subcortical activation patterns were revealed to highlight varied neuromodulatory nuclei corresponding to pupil dynamics.

Materials and methods

Animal preparation

All experimental procedures were approved by the Animal Protection Committee of Tübingen (Regierungsprasidium Tübingen; protocol KY12-14) and performed following the guidelines. Pupillometry and fMRI data acquired from 10 male Sprague Dawley rats had been previously published (Pais-Roldán et al., 2020). The rats were imaged under alpha-chloralose anesthesia. For details related to the experimental procedures, refer to Pais-Roldán et al., 2020.

fMRI acquisition and preprocessing

All MRI measurements were performed on a 14.1 T/26 cm magnet (Magnex, Oxford) with an Avance III console (Bruker, Ettlingen) using an elliptic trans-receiver surface coil (~2 × 2.7 cm). To acquire functional data, a whole-brain 3D EPI sequence was used. The sequence parameters were as follows: 1 s TR, 12.5 ms TE, 48 × 48 × 32 matrix size, 400 × 400 × 600 µm resolution. Each run had a length of 925 TRs (15 min 25 s). The RARE sequence was used to acquire an anatomical image for each rat. The RARE parameters were as follows: 4 s TR, 9 ms TE, 128 × 128 matrix size, 32 slices, 150 µm in-plane resolution, 600 µm slice thickness, 8× RARE factor. The data from all rats were spatially co-registered. First, for each EPI run, all volumes were registered to the EPI mean. The EPI means were registered to corresponding anatomical images. To register all data to a common template, all RARE images were registered to a selected RARE image. The obtained registration matrices were then applied to the functional data. A temporal filter (0.002, 0.15 Hz) was applied to the co-registered data. The registration was performed using the AFNI software package (Cox, 1996). Principal component analysis (PCA) implemented in the Python scikit-learn library (Pedregosa, 2011) was used to reduce the dimensionality of fMRI data for prediction purposes. The PCA time courses were variance normalized before the optimization of linear regression and GRU weights. The functional and anatomical data are available online (Sobczak et al., 2021b).

Pupillometry acquisition and pupil diameter extraction

For each fMRI scan, a video with the following parameters was recorded: 24 bits per pixel, 240 × 352 pixels, 29.97 frames/s, RGB24 format. A customized MRI-compatible camera was used. For details related to the setup, refer to Pais-Roldán et al., 2020. The DeepLabCut toolbox (Mathis et al., 2018; Nath, 2018) was used to extract the pupil position from each video frame. The toolbox’s artificial neural network was optimized using 1330 manually labeled images extracted from 74 eye monitoring videos. Training frames were selected using an automated clustering-based DeepLabCut procedure. Four pupil edge points were manually labeled in each training image. Using the trained network, the four points were located in each recorded frame and their coordinates were used to calculate the pupil diameter as follows:

d=x2-x12+y2-y12+x4-x32+y4-y322

Simultaneously, in each video, the eye size was calculated based on manual landmark identification. The eye size was then used to normalize the pupil size, such that pupil diameter values were limited to the <0, 1> range. The pupil diameter signals were averaged over 1 s windows to match the fMRI temporal resolution while reducing noise. Pupillometry time courses were variance normalized before the optimization of linear regression and GRU weights. The time courses are available online (Sobczak et al., 2021b).

Hemodynamic response function convolution

Pupil signals were convolved with HRF kernels with varied peak times to investigate the influence of correcting for the lag between pupil and fMRI signals. The following equation, involving a positive component for the positive response and a negative one for the undershoot, was used to generate the kernels:

f(a)=ta1etΓ(a)0.3t11etΓ(12),

where a is a parameter controlling the peak time, and Γ is the gamma function. HRFs with peaks in the <0; 5> s range were used.

UMAP dimensionality reduction

The uniform manifold approximation and projection (UMAP) (McInnes et al., 2020) algorithm was employed to reduce the dimensionality of pupil–fMRI correlation maps before clustering. We used the Python implementation of the algorithm provided by the authors of the method. First, UMAP finds a k-nearest neighbor graph. Based on silhouette scores we set k = 7. To facilitate clustering, we set the minimum allowed distance between points on the low dimensional manifold to 0. We projected the data from the voxel space (n = 20,804) to a 72-dimensional representation, as this was the highest number of dimensions the method permitted given 74 input trials.

Gaussian mixture model clustering

To cluster the trials in the low dimensional space resulting from the UMAP embedding, we used the expectation-maximization algorithm fitting mixture of Gaussians models to the data (McLachlan and Basford, 1988). We used the Python implementation from the scikit-learn library (Pedregosa, 2011) with default parameters.

Silhouette analysis – cluster number verification

To find the number of clusters for successive analyses, we evaluated clustering results using silhouette analysis (Rousseeuw, 1987) implemented in the Python scikit-learn library (Pedregosa, 2011). For each point, the method computes a silhouette score which evaluates how similar it is to points in its cluster versus points in other clusters. The clustering of the entire dataset was evaluated by computing the mean silhouette score across all points. The clustering result with the highest mean silhouette score was selected for successive analyses.

Cluster reproducibility

The cluster membership label of each trial was specified based on 100 repetitions of UMAP dimensionality reduction and GMM clustering applied to all trials. We found the final cluster labels by identifying which trials clustered together most often. These final labels were used to create cluster-specific correlation maps. Both the labels and maps were compared with those generated in following analyses to evaluate cluster reproducibility. In particular, we compared label match ratios and cluster map similarities (spatial correlations). We generated alternative clustering results based on: half-split analysis (randomly dividing the 74 trials into groups of 37), using HRF-convolved pupil signals, temporally splitting the data into more trials with shorter durations, and employing spatial surrogates with properties matching those of real maps. We repeated each analysis 100 times and compared results with the initial clustering.

Surrogate map generation

Surrogate maps were created using the Brainsmash toolbox (Burt et al., 2020). For each correlation map, we generated 100 artificial surrogates that had the same values and spatial autocorrelation as the real map but different spatial patterns. By showing that clustering results based on surrogates were different, we verified that our clustering was not dependent on, e.g., mean map values but on the spatial patterns and regions highlighted in the maps.

Power spectral density estimation

The spectral analysis was performed using the Python SciPy library (Virtanen et al., 2020). To compute the PSDs of utilized signals, we employed Welch’s method (Welch, 1967), with the following parameters: 512 discrete Fourier transform points; Hann window; 50% overlap.

Correlation map-based prediction

Following a strategy described in previous studies (Pais-Roldán et al., 2020; Chang et al., 2016) we used a pupil–fMRI correlation map to predict pupillometry time courses given fMRI input data. To create the correlation map, pupillometry and fMRI data were concatenated across all trials and the pupil diameter fluctuation signal was correlated with each voxel’s signal. This generated a 3D volume (the correlation map), which was then spatially correlated with each individual fMRI volume yielding a single predicted value for each time point. As the resulting time courses’ amplitudes were bounded to the <−1; 1> range and not informative of the target signals amplitudes, Pearson’s correlation coefficient was used to evaluate the quality of the predictions on a trial-by-trial basis.

Linear regression variants

Linear regression was used to predict pupillometry data given fMRI-PCA inputs. Four linear regression variants were available to a Bayesian optimizer, which selected both the linear model type and its parameters. The available variants were ordinary least squares, Ridge, Lasso and elastic-net regression models. Python scikit-learn library (Pedregosa, 2011) implementations were used. L2 Ridge regression with a regularization parameter α=19861 obtained the best prediction scores and was found using the Hyperopt toolbox (Bergstra, 2011; Bergstra et al., 2013).

GRU

The second model employed for pupillometry decoding was the gated recurrent unit (GRU) (Cho, 2014) artificial neural network. The GRU is a recurrent neural network, which encodes each element of the input fMRI-PCA sequence x into a hidden state vector ht through the following computations:

rt=σWirxt+bir+Whrht-1+bhr
zt=σWizxt+biz+Whzht-1+bhz
n(t)=tanh(Winx(t)+bin+r(t)(Whnh(t1)+bhn))
h(t)=(1z(t))n(t)+z(t)h(t1)

where r,z,n are the reset, update, and new gates, W are matrices connecting the inputs, gates, and hidden states, σ and tanh are the sigmoid and hyperbolic tangent functions, b are bias vectors, and ⨀ is the elementwise product. A linear decoder generated predictions based on the hidden state vector:

.yt=woutht

The correlation coefficient was used as the loss function. The networks were trained in PyTorch (Paszke, 2019) using the Adam optimizer (Kingma and Ba, 2017). Hyperparameters were found using Bayesian optimization using the tree of Parzen estimators algorithm (Hyperopt toolbox, n = 200) (Bergstra, 2011; Bergstra et al., 2013). The optimized hyperparameters have been described in Table 1. Early stopping was used in the Bayesian optimization procedure. To set the final number of training epochs for the best network, cross-validation was repeated and the GRU was trained for 100 epochs on each split. Training for seven epochs yielded the best performance.

Table 1. Optimized GRU hyperparameters.

Parameter name Description Range Final value
Number of layers Multiple recurrent layers could be stacked on top of each other. [1; 3] 1
Hidden size Hidden state vector size. [10; 500] 300
Learning rate The rate at which network weights were updated during training. [10–6; 1] 0.0023
L2 Strength of the L2 weight regularization. [0; 10] 0.0052
Gradient clipping Gradient clipping (Pascanu et al., 2013) limits the gradient magnitude at a specified maximum value. [yes; no] Yes
Max. gradient Value at which the gradients are clipped. [0.1, 2] 1
Dropout During training, a percentage of units could be set to 0 for regularization purposes (Srivastava et al., 2014). [0; 0.2] 0
Residual connection Feeding the input directly to the linear decoder bypassing the RNN’s computation. [yes; no] No
Batch size The number of training trials fed into the network before each weight update. [3; 20] 12

Cross-validation

The available 74 trials were divided into training (n = 64) and test (n = 10) sets. Linear regression and GRU parameters were found based on the training set with fourfold cross-validation. The final performance was evaluated on the test set. Scores of the correlation-template-based prediction were based on the same data splits.

Spatial map – linear regression

To create spatial maps highlighting areas that contributed to linear regression predictions, we weighted PCA component maps by their associated linear regression weights, summed them, and took their means. Region borders from the rat brain atlas (Paxinos and Watson, 2006) were matched to and overlaid on spatial map slices.

Spatial map – GRU

To create spatial maps highlighting areas that contributed to GRU predictions, we computed gradients of each of the predicted time points with respect to the 300 input features. We then averaged the gradients across all time points for each of the features and used these mean values just like the weights in the case of linear regression map generation.

Variance explained

We obtained the fMRI variance explained by each PCA component directly from the scikit-learn (Pedregosa, 2011) PCA model. To compute the pupil variance explained by each of the PCA time courses, we used an approach described in Musall et al., 2019 with fourfold cross-validation. The explained variance of each component was found by randomly shuffling the time points of all other components, training the Ridge linear regression model (α=19861) on shuffled data and assessing the explained variance based on generated predictions.

Statistical tests – prediction

We used a paired t-test to compare the prediction scores across methods.

Statistical tests – linear regression spatial maps

To test which linear regression spatial map values significantly contributed to the predictions, we used randomization tests. For each cluster, we shuffled the input and output pairings 10,000 times, trained a linear model, and created a spatial map for each of those pairings. We then compared the values in the original maps with the shuffled ones. Values that were at least as extreme as the shuffled values at the 0.005 positive or negative percentile (p=0.01) were considered significant. The results were controlled for false discovery rate with adjustment (Benjamini and Hochberg, 1995; Yekutieli and Benjamini, 1997).

Acknowledgements

We thank Dr. R Pohmann and Dr. K Buckenmaier for technical support; Dr. E Weiler, Dr. P Douay, Mrs. R König, Ms. S Fischer, Ms. H Schulz, and Dr. Jörn Engelmann for animal/lab maintenance and support; and the Analysis of Functional NeuroImages (AFNI) team for software support. Funding: This research was supported by internal funding from Max Planck Society, NIH Brain Initiative funding (RF1NS113278–01, R01MH111438–01) and shared instrument grant (S10 MH124733-01), German Research Foundation (DFG) YU215/2-1 and Yu215/3–1, BMBF 01GQ1702.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

Filip Sobczak, Email: fsobczak@tue.mpg.de.

Xin Yu, Email: XYU9@mgh.harvard.edu.

Timothy E Behrens, University of Oxford, United Kingdom.

Timothy E Behrens, University of Oxford, United Kingdom.

Funding Information

This paper was supported by the following grants:

  • Max-Planck-Gesellschaft internal funding to Xin Yu.

  • National Institutes of Health RF1NS113278-01 to Xin Yu.

  • Deutsche Forschungsgemeinschaft YU215/2-1 to Xin Yu.

  • Bundesministerium für Bildung und Forschung 01GQ1702 to Filip Sobczak, Xin Yu.

  • National Institutes of Health R01MH111438-01 to Xin Yu.

  • Deutsche Forschungsgemeinschaft Yu215/3-1 to Xin Yu.

  • National Institutes of Health S10 MH124733-01 to Xin Yu.

Additional information

Competing interests

None.

none.

Author contributions

Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Visualization, Writing – original draft, Writing – review and editing.

Data curation, Investigation, Writing – review and editing.

Data curation, Investigation, Writing – review and editing.

Conceptualization, Funding acquisition, Project administration, Resources, Supervision, Writing – original draft, Writing – review and editing.

Ethics

All experimental procedures were approved by the Animal Protection Committee of Tübingen (Regierungsprasidium Tübingen; protocol KY12-14) and performed following the guidelines. The rats were imaged under alpha-chloralose anesthesia.

Additional files

Transparent reporting form

Data availability

All fMRI datasets, as well as the synchronized pupil-size vectors, reported in this paper have been deposited in Zenodo at https://zenodo.org/record/4670277 (https://doi.org/10.5281/zenodo.4670277). Source data for all figures have been uploaded in the system.

The following dataset was generated:

Pais-Roldán P, Takahashi K, Sobczak F, Chen Y, Zhao X, Zeng H, Jiang Y, Yu X. 2020. Raw data for "Indexing brain state-dependent pupil dynamics with simultaneous fMRI and optical fiber calcium recording". Zenodo.

References

  1. Allen EA, Damaraju E, Plis SM, Erhardt EB, Eichele T, Calhoun VD. Tracking whole-brain connectivity dynamics in the resting state. Cerebral Cortex. 2014;24:663–676. doi: 10.1093/cercor/bhs352. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Alnæs D, Sneve MH, Espeseth T, Endestad T, van de Pavert SHP, Laeng B. Pupil size signals mental effort deployed during multiple object tracking and predicts brain activity in the dorsal attention network and the locus coeruleus. Journal of Vision. 2014;14:1. doi: 10.1167/14.4.1. [DOI] [PubMed] [Google Scholar]
  3. Alonso B, Makarova T, Hess A. On the use of α-chloralose for repeated bold FMRI measurements in rats. Journal of Neuroscience Methods. 2011;195:236–240. doi: 10.1016/j.jneumeth.2010.12.010. [DOI] [PubMed] [Google Scholar]
  4. Aston-Jones G, Cohen JD. An integrative theory of locus coeruleus-norepinephrine function: Adaptive gain and optimal performance. Annual Review of Neuroscience. 2005;28:403–450. doi: 10.1146/annurev.neuro.28.061604.135709. [DOI] [PubMed] [Google Scholar]
  5. Beatty J, Lucero-Wagoner B. The Pupillary System. Handbook of Psychophysiology. Cambridge University Press; 2000. [Google Scholar]
  6. Beckstead RM, Domesick VB, Nauta WJH. Efferent connections of the substantia nigra and ventral tegmental area in the rat. Brain Research. 1979;175:191–217. doi: 10.1016/0006-8993(79)91001-1. [DOI] [PubMed] [Google Scholar]
  7. Behrends M, Larson MD, Neice AE, Bokoch MP. Suppression of pupillary unrest by general anesthesia and propofol sedation. Journal of Clinical Monitoring and Computing. 2019;33:317–323. doi: 10.1007/s10877-018-0147-y. [DOI] [PubMed] [Google Scholar]
  8. Benarroch EE. Brainstem integration of arousal, sleep, cardiovascular, and respiratory control. Neurology. 2018;91:958–966. doi: 10.1212/WNL.0000000000006537. [DOI] [PubMed] [Google Scholar]
  9. Benjamini Y, Hochberg Y. Controlling the false discovery rate: A practical and powerful approach to multiple testing. Journal of the Royal Statistical Society. Series B. 1995;57:289–300. doi: 10.1111/j.2517-6161.1995.tb02031.x. [DOI] [Google Scholar]
  10. Bergstra J. Algorithms for hyper-parameter optimization. Nips’11: Proceedings of the 24th International Conference on neural information processing systems; 2011. pp. 2546–2554. [Google Scholar]
  11. Bergstra J, Yamins D, Cox DD. Making a science of model search. Proceedings of the 30th International Conference on International Conference on Machine Learning; 2013. [Google Scholar]
  12. Blasiak T, Zawadzki A, Lewandowski MH. Infra-slow oscillation (ISO) of the pupil size of urethane-anaesthetised rats. PLOS ONE. 2013;8:e62430. doi: 10.1371/journal.pone.0062430. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Bonvallet M, Zbrozyna A. Les commandes Réticulaires du Système Autonome et En particulier de l’innervation Sympathique et Parasympathique de la Pupille. Archives Italiennes de Biologie. 1963;101:174–207. [PubMed] [Google Scholar]
  14. Breton-Provencher V, Sur M. Active control of arousal by a locus coeruleus gabaergic circuit. Nature Neuroscience. 2019;22:218–228. doi: 10.1038/s41593-018-0305-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Burt JB, Helmer M, Shinn M, Anticevic A, Murray JD. Generative modeling of brain maps with spatial autocorrelation. NeuroImage. 2020;220:S1053-8119(20)30524-3. doi: 10.1016/j.neuroimage.2020.117038. [DOI] [PubMed] [Google Scholar]
  16. Carbonell F, Bellec P, Shmuel A. Global and system-specific resting-state fmri fluctuations are uncorrelated: Principal component analysis reveals anti-correlated networks. Brain Connectivity. 2011;1:496–510. doi: 10.1089/brain.2011.0065. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Chang C, Leopold DA, Schölvinck ML, Mandelkow H, Picchioni D, Liu X, Ye FQ, Turchi JN, Duyn JH. Tracking brain arousal fluctuations with FMRI. PNAS. 2016;113:4518–4523. doi: 10.1073/pnas.1520613113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Cho K. Learning Phrase Representations Using RNN Encoder–Decoder for Statistical Machine Translation. Association for Computational Linguistics; 2014. [Google Scholar]
  19. Clement EA, Richard A, Thwaites M, Ailon J, Peters S, Dickson CT. Cyclic and sleep-like spontaneous alternations of brain state under urethane anaesthesia. PLOS ONE. 2008;3:e2004. doi: 10.1371/journal.pone.0002004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Clewett DV, Huang R, Velasco R, Lee TH, Mather M. Locus coeruleus activity strengthens prioritized memories under arousal. The Journal of Neuroscience. 2018;38:1558–1574. doi: 10.1523/JNEUROSCI.2097-17.2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Cox RW. AFNI: Software for analysis and visualization of functional magnetic resonance neuroimages. Computers and Biomedical Research, an International Journal. 1996;29:162–173. doi: 10.1006/cbmr.1996.0014. [DOI] [PubMed] [Google Scholar]
  22. Dampney RAL. Central neural control of the cardiovascular system: Current perspectives. Advances in Physiology Education. 2016;40:283–296. doi: 10.1152/advan.00027.2016. [DOI] [PubMed] [Google Scholar]
  23. de Gee JW, Knapen T, Donner TH. Decision-related pupil dilation reflects upcoming choice and individual bias. PNAS. 2014;111:E618. doi: 10.1073/pnas.1317557111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. de Gee JW, Colizoli O, Kloosterman NA, Knapen T, Nieuwenhuis S, Donner TH. Dynamic modulation of decision biases by brainstem arousal systems. eLife. 2017;6:e23232. doi: 10.7554/eLife.23232. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. De Olmos JS, Ingram WR. The projection field of the stria terminalis in the rat brain. An experimental study. The Journal of Comparative Neurology. 1972;146:303–333. doi: 10.1002/cne.901460303. [DOI] [PubMed] [Google Scholar]
  26. Duyn JH, Ozbay PS, Chang C, Picchioni D. Physiological changes in sleep that affect fmri inference. Current Opinion in Behavioral Sciences. 2020;33:42–50. doi: 10.1016/j.cobeha.2019.12.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Eckstein MK, Guerra-Carrillo B, Miller Singley AT, Bunge SA. Beyond eye gaze: What else can eyetracking reveal about cognition and cognitive development? Developmental Cognitive Neuroscience. 2017;25:69–91. doi: 10.1016/j.dcn.2016.11.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Gaumann DM, Yaksh TL. Alpha-chloralose anesthesia inhibits the somato-sympathetic reflex response in cats more effectively than halothane. Zentralblatt Fur Veterinarmedizin. Reihe A. 1990;37:669–675. doi: 10.1111/j.1439-0442.1990.tb00960.x. [DOI] [PubMed] [Google Scholar]
  29. Grimaldi D, Silvani A, Benarroch EE, Cortelli P. Orexin/hypocretin system and autonomic control: New insights and clinical correlations. Neurology. 2014;82:271–278. doi: 10.1212/WNL.0000000000000045. [DOI] [PubMed] [Google Scholar]
  30. Hakerem GAD, Sutton S. Pupillary response at visual threshold. Nature. 1966;212:485–486. doi: 10.1038/212485a0. [DOI] [PubMed] [Google Scholar]
  31. Hess EH, Polt JM. Pupil size in relation to mental activity during simple problem-solving. Science. 1964;143:1190–1192. doi: 10.1126/science.143.3611.1190. [DOI] [PubMed] [Google Scholar]
  32. Hyder F, Behar KL, Martin MA, Blamire AM, Shulman RG. Dynamic magnetic resonance imaging of the rat brain during forepaw stimulation. Journal of Cerebral Blood Flow & Metabolism. 2016;14:649–655. doi: 10.1038/jcbfm.1994.81. [DOI] [PubMed] [Google Scholar]
  33. Joshi S, Li Y, Kalwani RM, Gold JI. Relationships between pupil diameter and neuronal activity in the locus coeruleus, colliculi, and cingulate cortex. Neuron. 2016;89:221–234. doi: 10.1016/j.neuron.2015.11.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Kahneman D, Beatty J. Pupil diameter and load on memory. Science. 1966;154:1583–1585. doi: 10.1126/science.154.3756.1583. [DOI] [PubMed] [Google Scholar]
  35. Kaufmann C, Wehrle R, Wetter TC, Holsboer F, Auer DP, Pollmächer T, Czisch M. Brain activation and hypothalamic functional connectivity during human non-rapid eye movement sleep: An EEG/FMRI study. Brain. 2006;129:655–667. doi: 10.1093/brain/awh686. [DOI] [PubMed] [Google Scholar]
  36. Kingma DP, Ba J. Adam: A Method for Stochastic Optimization. arXiv. 2017 https://arxiv.org/abs/1412.6980
  37. Kum JE, Han HB, Choi JH. Pupil size in relation to cortical states during isoflurane anesthesia. Experimental Neurobiology. 2016;25:86–92. doi: 10.5607/en.2016.25.2.86. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Kuwaki T, Zhang W. Orexin neurons as arousal-associated modulators of central cardiorespiratory regulation. Respiratory Physiology & Neurobiology. 2010;174:43–54. doi: 10.1016/j.resp.2010.04.018. [DOI] [PubMed] [Google Scholar]
  39. Laeng B, Sirois S, Gredebäck G. Pupillometry: A Window to the Preconscious. Perspectives on Psychological Science; 2012. [DOI] [PubMed] [Google Scholar]
  40. Lecrux C, Hamel E. Neuronal networks and mediators of cortical neurovascular coupling responses in normal and altered brain states. Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences. 2016;371:20150350. doi: 10.1098/rstb.2015.0350. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Lee SH, Dan Y. Neuromodulation of brain states. Neuron. 2012;76:209–222. doi: 10.1016/j.neuron.2012.09.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Liu X, Chang C, Duyn JH. Decomposition of spontaneous brain activity into distinct FMRI co-activation patterns. Frontiers in Systems Neuroscience. 2013;7:101. doi: 10.3389/fnsys.2013.00101. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Lowenstein O, Feinberg R, Loewenfeld IE. Pupillary movements during acute and chronic fatigue: A new test for the objective evaluation of tiredness. Investigative Ophthalmology & Visual Science. 1963;2:138–157. [Google Scholar]
  44. Lowry CA. Functional subsets of serotonergic neurones: Implications for control of the hypothalamic-pituitary-adrenal axis. Journal of Neuroendocrinology. 2002;14:911–923. doi: 10.1046/j.1365-2826.2002.00861.x. [DOI] [PubMed] [Google Scholar]
  45. Mäki-Marttunen V. Pupil-Based States of Brain Integration across Cognitive States. bioRxiv. 2020 doi: 10.1101/2020.12.15.422870. [DOI] [PubMed]
  46. Mathis A, Mamidanna P, Cury KM, Abe T, Murthy VN, Mathis MW, Bethge M. Deeplabcut: Markerless pose estimation of user-defined body parts with deep learning. Nature Neuroscience. 2018;21:1281–1289. doi: 10.1038/s41593-018-0209-y. [DOI] [PubMed] [Google Scholar]
  47. McCormick DA, Nestvogel DB, He BJ. Neuromodulation of brain state and behavior. Annual Review of Neuroscience. 2020;43:391–415. doi: 10.1146/annurev-neuro-100219-105424. [DOI] [PubMed] [Google Scholar]
  48. McDougal DH, Gamlin PD. Autonomic control of the eye. Comprehensive Physiology. 2015;5:439–473. doi: 10.1002/cphy.c140014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. McGinley MJ, David SV, McCormick DA. Cortical membrane potential signature of optimal states for sensory signal detection. Neuron. 2015;87:179–192. doi: 10.1016/j.neuron.2015.05.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. McInnes L, Healy J, Melville J. UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv. 2020 https://arxiv.org/abs/1802.03426
  51. McLachlan GJ, Basford KE. Mixture models: Inference and applications to clustering. Applied Statistics. 1988;38:2348072. doi: 10.2307/2348072. [DOI] [Google Scholar]
  52. McLaren JW, Erie JC, Brubaker RF. Computerized analysis of pupillograms in studies of alertness. Investigative Ophthalmology & Visual Science. 1992;33:671–676. [PubMed] [Google Scholar]
  53. Murphy PR, O’Connell RG, O’Sullivan M, Robertson IH, Balsters JH. Pupil diameter covaries with bold activity in human locus coeruleus. Human Brain Mapping. 2014;35:4140–4154. doi: 10.1002/hbm.22466. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Musall S, Kaufman MT, Juavinett AL, Gluf S, Churchland AK. Single-trial neural dynamics are dominated by richly varied movements. Nature Neuroscience. 2019;22:1677–1686. doi: 10.1038/s41593-019-0502-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Mwangi B, Tian TS, Soares JC. A review of feature reduction techniques in neuroimaging. Neuroinformatics. 2014;12:229–244. doi: 10.1007/s12021-013-9204-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Nassar MR, Rumsey KM, Wilson RC, Parikh K, Heasly B, Gold JI. Rational regulation of learning dynamics by pupil-linked arousal systems. Nature Neuroscience. 2012;15:1040–1046. doi: 10.1038/nn.3130. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Nath T. Using Deeplabcut for 3d Markerless Pose Estimation across Species and Behaviors. bioRxiv. 2018 doi: 10.1101/476531. [DOI] [PubMed]
  58. Özbay PS. Sympathetic activity contributes to the FMRI signal. Communications Biology. 2019;2:1–9. doi: 10.1038/s42003-019-0659-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. O’Doherty JP, Dayan P, Friston K, Critchley H, Dolan RJ. Temporal difference models and reward-related learning in the human brain. Neuron. 2003;38:329–337. doi: 10.1016/s0896-6273(03)00169-7. [DOI] [PubMed] [Google Scholar]
  60. Pais-Roldán P, Takahashi K, Sobczak F, Chen Y, Zhao X, Zeng H, Jiang Y, Yu X. Indexing brain state-dependent pupil dynamics with simultaneous FMRI and optical fiber calcium recording. PNAS. 2020;117:6875–6882. doi: 10.1073/pnas.1909937117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Pascanu R, Mikolov T, Bengio Y. proceedings of the 30th international conference on international conference on machine learning. On the difficulty of training recurrent neural networks; 2013. [Google Scholar]
  62. Paszke A. Pytorch: An Imperative Style. High-Performance Deep Learning Library.8024--8035; 2019. [Google Scholar]
  63. Paxinos G, Watson C. The Rat Brain in Stereotaxic Coordinates. Hard Cover Edition (Elsevier; 2006. [Google Scholar]
  64. Pedregosa F. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. 2011;12:2825–2830. [Google Scholar]
  65. Rajkowski J. Correlations between Locus Coeruleus (LC) Neural Activity, Pupil Diameter and Behavior in Monkey Support a Role of LC in Attention. Soc. Neurosc., Abstract; 1993. [Google Scholar]
  66. Ranson SW, Magoun H. Respiratory and pupillary reactions: Induced by electrical stimulation of the hypothalamus. Journal of Nervous and Mental Disease. 1933;29:1179–1194. doi: 10.1192/BJP.80.328.128-B. [DOI] [Google Scholar]
  67. Reimer J, Froudarakis E, Cadwell CR, Yatsenko D, Denfield GH, Tolias AS. Pupil fluctuations track fast switching of cortical states during quiet wakefulness. Neuron. 2014;84:355–362. doi: 10.1016/j.neuron.2014.09.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Reimer J, McGinley MJ, Liu Y, Rodenkirch C, Wang Q, McCormick DA, Tolias AS. Pupil fluctuations track rapid changes in adrenergic and cholinergic activity in cortex. Nature Communications. 2016;7:13289. doi: 10.1038/ncomms13289. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Richer F, Beatty J. Contrasting effects of response uncertainty on the task-evoked pupillary response and reaction time. Psychophysiology. 1987;24:258–262. doi: 10.1111/j.1469-8986.1987.tb00291.x. [DOI] [PubMed] [Google Scholar]
  70. Rousseeuw PJ. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics. 1987;20:53–65. doi: 10.1016/0377-0427(87)90125-7. [DOI] [Google Scholar]
  71. Salkoff DB, Zagha E, McCarthy E, McCormick DA. Movement and performance explain widespread cortical activity in a visual detection task. Cerebral Cortex. 2020;30:421–437. doi: 10.1093/cercor/bhz206. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Satterthwaite TD, Green L, Myerson J, Parker J, Ramaratnam M, Buckner RL. Dissociable but inter-related systems of cognitive control and reward during decision making: Evidence from pupillometry and event-related FMRI. NeuroImage. 2007;37:1017–1031. doi: 10.1016/j.neuroimage.2007.04.066. [DOI] [PubMed] [Google Scholar]
  73. Schmid Y, Enzler F, Gasser P, Grouzmann E, Preller KH, Vollenweider FX, Brenneisen R, Müller F, Borgwardt S, Liechti ME. Acute effects of lysergic acid diethylamide in healthy subjects. Biological Psychiatry. 2015;78:544–553. doi: 10.1016/j.biopsych.2014.11.015. [DOI] [PubMed] [Google Scholar]
  74. Schneider M, Hathway P, Leuchs L, Sämann PG, Czisch M, Spoormaker VI. Spontaneous pupil dilations during the resting state are associated with activation of the Salience network. NeuroImage. 2016;139:189–201. doi: 10.1016/j.neuroimage.2016.06.011. [DOI] [PubMed] [Google Scholar]
  75. Schulz M-A, Yeo BTT, Vogelstein JT, Mourao-Miranada J, Kather JN, Kording K, Richards B, Bzdok D. Different scaling of linear models and deep learning in Ukbiobank brain images versus machine-learning datasets. Nature Communications. 2020;11:4238. doi: 10.1038/s41467-020-18037-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Shannon RP, Mead A, Sears ML. The effect of dopamine on the intraocular pressure and pupil of the rabbit eye. Investigative Ophthalmology & Visual Science. 1976;15:371–380. [PubMed] [Google Scholar]
  77. Sheng F, Ramakrishnan A, Seok D, Zhao WJ, Thelaus S, Cen P, Platt ML. Decomposing loss aversion from gaze allocation and pupil dilation. PNAS. 2020;117:11356–11363. doi: 10.1073/pnas.1919670117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  78. Shine JM, Bissett PG, Bell PT, Koyejo O, Balsters JH, Gorgolewski KJ, Moodie CA, Poldrack RA. The dynamics of functional brain networks: Integrated network states during cognitive task performance. Neuron. 2016;92:544–554. doi: 10.1016/j.neuron.2016.09.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Shine JM. Neuromodulatory influences on integration and segregation in the brain. Trends in Cognitive Sciences. 2019;23:572–583. doi: 10.1016/j.tics.2019.04.002. [DOI] [PubMed] [Google Scholar]
  80. Silvani A, Calandra-Buonaura G, Benarroch EE, Dampney RAL, Cortelli P. Bidirectional interactions between the baroreceptor reflex and arousal: An update. Sleep Medicine. 2015;16:210–216. doi: 10.1016/j.sleep.2014.10.011. [DOI] [PubMed] [Google Scholar]
  81. Sobczak F, He Y, Sejnowski TJ, Yu X. Predicting the FMRI signal fluctuation with recurrent neural networks trained on vascular network dynamics. Cerebral Cortex. 2021a;31:826–844. doi: 10.1093/cercor/bhaa260. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Sobczak F, Pais-Roldan P, Takahashi K, Yu X. Raw Data for "Decoding the Brain State-Dependent Relationship between Pupil Dynamics and Resting State FMRI Signal Fluctuation. Zenodo. 2021b doi: 10.5281/zenodo.4670277. [DOI] [PMC free article] [PubMed]
  83. Srivastava N, Hinton G, Krizhevsky A, Sutskever I, Salakhutdinov R. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research. 2014;15:1929–1958. [Google Scholar]
  84. Stringer C, Pachitariu M, Steinmetz N, Reddy CB, Carandini M, Harris KD. Spontaneous behaviors drive multidimensional, brainwide activity. Science. 2019;364:255. doi: 10.1126/science.aav7893. [DOI] [PMC free article] [PubMed] [Google Scholar]
  85. Tagliazucchi E, Laufs H. Decoding wakefulness levels from typical FMRI resting-state data reveals reliable drifts between wakefulness and sleep. Neuron. 2014;82:695–708. doi: 10.1016/j.neuron.2014.03.020. [DOI] [PubMed] [Google Scholar]
  86. Tong Y, Hocke LM, Frederick BB. Low Frequency Systemic Hemodynamic “Noise” in Resting State BOLD fMRI: Characteristics, Causes, Implications, Mitigation Strategies, and Applications. Frontiers in Neuroscience. 2019;13:787. doi: 10.3389/fnins.2019.00787. [DOI] [PMC free article] [PubMed] [Google Scholar]
  87. Tseng J, Poppenk J. Brain meta-state transitions demarcate thoughts across task contexts exposing the mental noise of trait neuroticism. Nature Communications. 2020;11:3480. doi: 10.1038/s41467-020-17255-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  88. van den Brink RL, Pfeffer T, Donner TH. Brainstem modulation of large-scale intrinsic cortical activity correlations. Frontiers in Human Neuroscience. 2019;13:340. doi: 10.3389/fnhum.2019.00340. [DOI] [PMC free article] [PubMed] [Google Scholar]
  89. Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, Burovski E, Peterson P, Weckesser W, Bright J, van der Walt SJ, Brett M, Wilson J, Millman KJ, Mayorov N, Nelson ARJ, Jones E, Kern R, Larson E, Carey CJ, Polat İ, Feng Y, Moore EW, VanderPlas J, Laxalde D, Perktold J, Cimrman R, Henriksen I, Quintero EA, Harris CR, Archibald AM, Ribeiro AH, Pedregosa F, van Mulbregt P, SciPy 1.0 Contributors SCIPY 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods. 2020;17:261–272. doi: 10.1038/s41592-019-0686-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  90. Vitiello B, Martin A, Hill J, Mack C, Molchan S, Martinez R, Murphy DL, Sunderland T. Cognitive and behavioral effects of cholinergic, dopaminergic, and serotonergic blockade in humans. Neuropsychopharmacology. 1997;16:15–24. doi: 10.1016/S0893-133X(96)00134-0. [DOI] [PubMed] [Google Scholar]
  91. Wang CA, Boehnke SE, White BJ, Munoz DP. Microstimulation of the monkey superior colliculus induces pupil dilation without evoking saccades. The Journal of Neuroscience. 2012;32:3629–3636. doi: 10.1523/JNEUROSCI.5512-11.2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  92. Welch P. The use of fast fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms. IEEE Transactions on Audio and Electroacoustics. 1967;15:70–73. doi: 10.1109/TAU.1967.1161901. [DOI] [Google Scholar]
  93. Wilhelm H, Wilhelm B. Clinical applications of pupillography. Journal of Neuro-Ophthalmology. 2003;23:42–49. doi: 10.1097/00041327-200303000-00010. [DOI] [PubMed] [Google Scholar]
  94. Yekutieli D, Benjamini Y. Resampling-based false discovery rate controlling multiple test procedures for correlated test statistics. Journal of Statistical Planning and Inference. 1997;82:171–196. doi: 10.1016/S0378-3758(99)00041-5. [DOI] [Google Scholar]
  95. Yellin D, Berkovich-Ohana A, Malach R. Coupling between pupil fluctuations and resting-state fmri uncovers a slow build-up of antagonistic responses in the human cortex. NeuroImage. 2015;106:414–427. doi: 10.1016/j.neuroimage.2014.11.034. [DOI] [PubMed] [Google Scholar]
  96. Yoss RE, Moyer NJ, Hollenhorst RW. Pupil size and spontaneous pupillary waves associated with alertness, drowsiness, and sleep. Neurology. 1970;20:545–554. doi: 10.1212/wnl.20.6.545. [DOI] [PubMed] [Google Scholar]
  97. Yüzgeç Ö, Prsa M, Zimmermann R, Huber D. Pupil size coupling to cortical states protects the stability of deep sleep via parasympathetic modulation. Current Biology. 2018;28:392–400. doi: 10.1016/j.cub.2017.12.049. [DOI] [PMC free article] [PubMed] [Google Scholar]

Decision letter

Editor: Timothy E Behrens1
Reviewed by: Jan Willem de Gee

Our editorial process produces two outputs: i) public reviews designed to be posted alongside the preprint for the benefit of readers; ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.

Acceptance summary:

Pupil diameter is used as an index of the brain's arousal system, and has traditionally thought to be a non-invasive index of specific neuromodulatory activity. It is therefore been heavily used as a measure in neuroscience. More recent data suggests a more complex picture whereby a pupil dilation might track cocktail of different neuromodulators. This paper provides firm data supporting this view, and introduces the new view that the make-up of this cocktail changes significantly over time. Pupil dynamics are linked with different neuromodulatory centers over different intervals of time. This is clearly important data across a broad range of human and animal systems neuroscience.

Decision letter after peer review:

Thank you for submitting your article "Decoding the brain state-dependent relationship between pupil dynamics and resting state fMRI signal fluctuation" for consideration by eLife. Your article has been reviewed by 2 peer reviewers, and the evaluation has been overseen by Timothy Behrens as the Senior and Reviewing Editor. The following individual involved in review of your submission has agreed to reveal their identity: Jan Willem de Gee (Reviewer #2).

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

After our discussion, we believe the following 3 points from the review are essential. All remaining points are strongly recommended to improve the paper, but are discretionary.

Essential points

From Reviewer 2:

(1) First point in public review – the lag between pupil and BOLD

From Reviewer 3's public review:

(2) assessing reproducibility of the clusters,

(3) potential inter-dependence between train/testing data.

Reviewer #3 (Recommendations for the authors):

My specific suggestions for addressing the above points are as follows:

1) Regarding reproducibility and comparison against null models, the authors might refer to the paper Allen et al., 2014 ("Tracking whole-brain connectivity…"), which examined the reproducibility of time-varying fMRI connectivity matrices using a split-halves analysis, and compared the results against "null" data that matched the actual data in terms of mean, variance, and autocorrelation.

2) In the power spectral density (PSD) of pupil dynamics for each cluster (Figure 2c), it may be helpful to display some measure of variability over the trials within each cluster -- otherwise it is unclear whether the spectral profiles are distinct across the clusters. Also, how should these different spectral peaks be interpreted in light of the corresponding fMRI spatial maps?

3) Regarding the decoding models – from what I understood, the PCA step included all 74 scans, including the test data, which would be a source of leakage between train/test sets. It was also not clear whether trials from the same rat could appear in both training and testing sets, which would also affect the interpretation of the decoding accuracy.

4) It is also mentioned that models were trained on 64 trials, and tested on 10 held-out trials. Since the result might be quite sensitive to the 10 particular trials that were held out, it may be helpful to do a nested cross-validation, holding out multiple subsets of trials for testing (and averaging over the resulting test-set errors).

5) On first reading, I was a bit confused that the paper first shows 1) that different pupil-fMRI correlation patterns were found in different scans, and then 2) that generalizable models (including linear models) could be trained to predict pupil waveforms from fMRI. The section beginning on p. 9 seems to link these sections by fitting models separately across clusters, but it may be helpful to make this conceptually clearer at the outset.

6) As clustering is currently performed over 15-min intervals (entire trials), I wondered if the authors had experimented with using shorter intervals. In other words, based on the mechanisms that could drive these changes in pupil-fMRI correlation (and accounting for limitations of fMRI temporal resolution), how quickly would the correlation patterns expect to shift?

eLife. 2021 Aug 31;10:e68980. doi: 10.7554/eLife.68980.sa2

Author response


Essential points

From Reviewer 2:

(1) First point in public review – the lag between pupil and BOLD

From reviewer 3's public review:

(2) assessing reproducibility of the clusters,

(3) potential inter-dependence between train/testing data.

We thank the reviewers for the positive feedback and for providing ways of improving the study. We addressed the issues pointed out by the reviewers to the best of our capability, in particular, the three essential points as highlighted.

Reviewer #3 (Recommendations for the authors):

My specific suggestions for addressing the above points are as follows:

1) Regarding reproducibility and comparison against null models, the authors might refer to the paper Allen et al., 2014 ("Tracking whole-brain connectivity…"), which examined the reproducibility of time-varying fMRI connectivity matrices using a split-halves analysis, and compared the results against "null" data that matched the actual data in terms of mean, variance, and autocorrelation.

The point has been addressed in the public review response, however, here we provide an explanation for using the spatial surrogates instead of the temporal ones employed in Allen et al., 2014. We perform dimensionality reduction and clustering on spatial correlation maps. Using temporal surrogates from Allen et al., (2014) did not provide an adequate null model, as (a) applying the same phase shifts to both pupil and fMRI data resulted in creating almost the same spatial correlation maps and the same final results and (b) applying random phase shifts to pupil and fMRI signals before correlating them resulted in close to 0 correlation values and completely random maps. On the other hand, using the Brainsmash toolbox (Burt et al., (2020)), we generated surrogate maps with preserved spatial autocorrelation and value distribution, which allowed us to show that it’s not those two features but the region-specific spatial patterns that drive the clustering.

2) In the power spectral density (PSD) of pupil dynamics for each cluster (Figure 2c), it may be helpful to display some measure of variability over the trials within each cluster -- otherwise it is unclear whether the spectral profiles are distinct across the clusters. Also, how should these different spectral peaks be interpreted in light of the corresponding fMRI spatial maps?

We now plot the standard deviation of the cluster-specific PSD values (Figure 2C). We also included plots of all individual PSDs and example raw pupil signal data (Figure 2 —figure supplement 2). As the different spectral peaks originated from the clustering analysis, they could indicate varied neuromodulatory mechanisms, which were presented in the corresponding fMRI spatial maps. One of our current work is aiming to elucidate the neuronal basis of the varied slow oscillatory features of pupil dynamics based on electrophysiological recordings.

3) Regarding the decoding models – from what I understood, the PCA step included all 74 scans, including the test data, which would be a source of leakage between train/test sets. It was also not clear whether trials from the same rat could appear in both training and testing sets, which would also affect the interpretation of the decoding accuracy.

Point addressed in the public review response.

4) It is also mentioned that models were trained on 64 trials, and tested on 10 held-out trials. Since the result might be quite sensitive to the 10 particular trials that were held out, it may be helpful to do a nested cross-validation, holding out multiple subsets of trials for testing (and averaging over the resulting test-set errors).

Point addressed in the public review response.

5) On first reading, I was a bit confused that the paper first shows 1) that different pupil-fMRI correlation patterns were found in different scans, and then 2) that generalizable models (including linear models) could be trained to predict pupil waveforms from fMRI. The section beginning on p. 9 seems to link these sections by fitting models separately across clusters, but it may be helpful to make this conceptually clearer at the outset.

We now clarified the connection between the decoding analysis and the clustering results at the beginning of the decoding analysis section (Page 5).

6) As clustering is currently performed over 15-min intervals (entire trials), I wondered if the authors had experimented with using shorter intervals. In other words, based on the mechanisms that could drive these changes in pupil-fMRI correlation (and accounting for limitations of fMRI temporal resolution), how quickly would the correlation patterns expect to shift?

Based on the comment, we split the data into shorter trials and repeated the clustering analysis. Based on the silhouette score criterion, selecting n=4 clusters holds up to the length of ~300 s (Figure 2 —figure supplement 6).

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Citations

    1. Pais-Roldán P, Takahashi K, Sobczak F, Chen Y, Zhao X, Zeng H, Jiang Y, Yu X. 2020. Raw data for "Indexing brain state-dependent pupil dynamics with simultaneous fMRI and optical fiber calcium recording". Zenodo. [DOI] [PMC free article] [PubMed]

    Supplementary Materials

    Figure 1—source data 1. The mean correlation map (A), all individual correlation maps (B), and the spatial correlation values (C) are available in the source data file.
    Figure 2—source data 1. Cluster trial labels, individual silhouette scores (B), mean cluster PSDs (C), and cluster-specific correlation maps (D) are available in the source data file.
    Figure 2—figure supplement 1—source data 1. The label match ratios (A) and map similarity values (B) are available in the source data file.
    Figure 2—figure supplement 2—source data 1. All PSDs (A) are available in the source data file.

    All pupil signals (B) are available online (see Materials and methods).

    Figure 2—figure supplement 3—source data 1. The HRF kernels (A), cluster membership label match ratios (B), and map similarity values (C) are available in the source data file.
    Figure 2—figure supplement 4—source data 1. The label match ratios (A) and map similarity values (B) are available in the source data file.
    Figure 2—figure supplement 5—source data 1. Ten example surrogate sets (i.e. 740 maps total) (A), label match ratios (B), and map similarity values (C) are available in the source data file.
    Figure 2—figure supplement 6—source data 1. Individual silhouette scores are available in the source data file.
    Figure 3—source data 1. Prediction scores (B) and all predicted time courses (C) are available in the source data file.
    Figure 3—figure supplement 1—source data 1. Individual prediction scores across all trial mixes (A) and the mean prediction scores (BC) are available in the source data file.
    Figure 3—figure supplement 2—source data 1. The variance explained values (AB) and linear regression weights (C) are available in the source data file.
    Figure 3—figure supplement 3—source data 1. The maps are available in the source data file.
    Figure 4—source data 1. The masked map is available in the source data file.
    Figure 5—source data 1. The unmasked cluster maps (A) and the masked maps based on randomization tests with a different random seed (B) are available in the source data file.
    Transparent reporting form

    Data Availability Statement

    All fMRI datasets, as well as the synchronized pupil-size vectors, reported in this paper have been deposited in Zenodo at https://zenodo.org/record/4670277 (https://doi.org/10.5281/zenodo.4670277). Source data for all figures have been uploaded in the system.

    The following dataset was generated:

    Pais-Roldán P, Takahashi K, Sobczak F, Chen Y, Zhao X, Zeng H, Jiang Y, Yu X. 2020. Raw data for "Indexing brain state-dependent pupil dynamics with simultaneous fMRI and optical fiber calcium recording". Zenodo.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES