Skip to main content
Elsevier Sponsored Documents logoLink to Elsevier Sponsored Documents
. 2022 Aug 15;257:119288. doi: 10.1016/j.neuroimage.2022.119288

Using deep clustering to improve fMRI dynamic functional connectivity analysis

Arthur PC Spencer a,b,, Marc Goodfellow c,d
PMCID: PMC10751537  PMID: 35551991

Highlights

  • We compared dimensionality reduction methods prior to clustering for dFC analysis.

  • We measured clustering performance in synthetic datasets with multiple subjects.

  • Deep clustering out-performed PCA, UMAP and raw k-means.

  • We demonstrated the effect of dimensionality reduction on results from real data.

Keywords: Dynamic functional connectivity, Sliding window correlations, Deep learning, Autoencoders, Dimensionality reduction

Graphical abstract

graphic file with name ga1.jpg

Abstract

Dynamic functional connectivity (dFC) analysis of resting-state fMRI data is commonly performed by calculating sliding-window correlations (SWC), followed by k-means clustering in order to assign each window to a given state. Studies using synthetic data have shown that k-means performance is highly dependent on sliding window parameters and signal-to-noise ratio. Additionally, sources of heterogeneity between subjects may affect the accuracy of group-level clustering, thus affecting measurements of dFC state temporal properties such as dwell time and fractional occupancy. This may result in spurious conclusions regarding differences between groups (e.g. when comparing a clinical population to healthy controls). Therefore, is it important to quantify the ability of k-means to estimate dFC state temporal properties when applied to cohorts of multiple subjects, and to explore ways in which clustering performance can be maximised.

Here, we explore the use of dimensionality reduction methods prior to clustering in order to map high-dimensional data to a lower dimensional space, providing salient features to the subsequent clustering step. We assess the use of deep autoencoders for dimensionality reduction prior to applying k-means clustering to the encoded data. We compare this deep clustering method to dimensionality reduction using principle component analysis (PCA), uniform manifold approximation and projection (UMAP), as well as applying k-means to the original feature space using either L1 or L2 distance. We provide extensive quantitative evaluation of clustering performance using synthetic datasets, representing data from multiple heterogeneous subjects. In synthetic data we find that deep clustering gives the best performance, while other approaches are often insufficient to capture temporal properties of dFC states. We then demonstrate the application of each method to real-world data from human subjects and show that the choice of dimensionality reduction method has a significant effect on group-level measurements of state temporal properties.

1. Introduction

Functional connectivity (FC) analysis of functional magnetic resonance imaging (fMRI) data is used to characterise and quantify the spatiotemporal patterns of brain activity. In this analysis, statistical similarities (e.g. correlations) in the blood oxygen level dependent (BOLD) signal between pairs of brain regions, or “nodes”, are used as edges in the construction of FC networks. This facilitates the use of graph theory to quantify whole-brain dynamics (Bassett, Sporns, 2017, Bullmore, Sporns, 2009, Bullmore, Bassett, 2011, Medaglia, Lynall, Bassett, 2015). More recently, dynamic functional connectivity (dFC) has been widely adopted to investigate the time-varying organisation of resting-state brain activity (Calhoun, Miller, Pearlson, Adalı, 2014, Cohen, 2018, Hutchison, Womelsdorf, Allen, Bandettini, Calhoun, Corbetta, Penna, Duyn, Glover, Gonzalez-Castillo, et al., 2013, Karahanoğlu, De Ville, 2017, Lurie, Kessler, Bassett, Betzel, Breakspear, Kheilholz, Kucyi, Liégeois, Lindquist, McIntosh, et al., 2020, Preti, Bolton, De Ville, 2017). A common approach is to calculate sliding-window correlations (SWC), resulting in a set of FC matrices that can then be clustered into sets of repetitively occurring FC patterns, or “states” (Allen, Damaraju, Plis, Erhardt, Eichele, Calhoun, 2014, Calhoun, Miller, Pearlson, Adalı, 2014), as summarised in Fig. 1. For a review, see Preti et al. (2017). The spatiotemporal dynamics of the brain are then quantified in terms of the stability and variability of each dFC state, using statistics such as dwell time (the average duration the state is occupied before a state change) and fractional occupancy (the proportion of time spent in a given state).

Fig. 1.

Fig. 1

Overview of the SWC framework, including constructing FC matrices from BOLD fMRI data, followed by clustering in order to determine dFC states. Also shown is the modification to this framework assessed in this study, which consists of applying dimensionality reduction to the FC matrices before clustering the low-dimensional representation of the data.

Thus, an important assumption underlying dFC analysis is the ability to segment the dynamics of the brain into states with particular spatial correlation patterns, and that these patterns remain stationary for some time period shorter than the length of the scan (analogous to EEG microstates (Michel and Koenig, 2018)). This is typically achieved in practice using clustering methods (e.g. k-means) to identify which of the windowed FC matrices belong to each of a finite number of states, grouping matrices based on a similarity metric. Since the dimensionality of an FC matrix with N nodes is N(N1)/2, and parcellations can have up to hundreds of nodes, clustering FC matrices into dFC states is a high-dimensional (unsupervised) learning task. Nevertheless, this step is usually performed using k-means clustering (Allen et al., 2014) (although other studies have used spectral clustering (Xu et al., 2018) or hierarchical methods (Ou, Xie, Jin, Li, Zhu, Jiang, Chen, Zhang, Li, Liu, 2015, Yang, Craddock, Margulies, Yan, Milham, 2014)).

Several studies have evaluated the ability of SWC to detect dynamic changes in brain activity (Hindriks, Adhikari, Murayama, Ganzetti, Mantini, Logothetis, Deco, 2016, Leonardi, De Ville, 2015, Lindquist, Xu, Nebel, Caffo, 2014, Thompson, Richter, Plavén-Sigray, Fransson, 2018) and the effect of specific window parameters on its efficacy (Mokhtari, Akhlaghi, Simpson, Wu, Laurienti, 2019, Savva, Kassinopoulos, Smyrnis, Matsopoulos, Mitsis, 2020, Shakil, Lee, Keilholz, 2016). However, few have quantitatively assessed the performance of the clustering step (Shakil et al., 2016). Some studies have provided validation of dFC clustering methods using synthetic (Allen, Damaraju, Plis, Erhardt, Eichele, Calhoun, 2014, Erhardt, Allen, Wei, Eichele, Calhoun, 2012, Lin, Hou, Yang, Yan, Kim, Laurienti, Wu, 2021, Mokhtari, Akhlaghi, Simpson, Wu, Laurienti, 2019) or surrogate data (Shakil et al., 2016). These studies consistently demonstrate that k-means performance is highly dependent on sliding window shape and length (Lehmann, White, Henson, Geerligs, et al., 2017, Mokhtari, Akhlaghi, Simpson, Wu, Laurienti, 2019, Shakil, Lee, Keilholz, 2016) and on the signal-to-noise ratio (Lin, Hou, Yang, Yan, Kim, Laurienti, Wu, 2021, Shakil, Lee, Keilholz, 2016). Gonzalez-Castillo et al. (2015) used task-based fMRI to enforce switching between cognitive states, treating each task block (rest, memory, video, maths) as a different dFC state, therefore providing a “ground truth” in real-world data. They reported high accuracy when clustering at the subject level, and with a large number of regions in the parcellation (>100), but diminishing performance with smaller parcellations and shorter sliding window lengths.

K-means has been widely adopted for dFC analysis in cohort studies, to assess fractional occupancy and dwell time in a range of neurological disorders including Parkinson’s disease (Díez-Cirarda, Strafella, Kim, Peña, Ojeda, Cabrera-Zubizarreta, Ibarretxe-Bilbao, 2018, Fiorenzato, Strafella, Kim, Schifano, Weis, Antonini, Biundo, 2019, Kim, Criaud, Cho, Díez-Cirarda, Mihaescu, Coakeley, Ghadery, Valli, Jacobs, Houle, et al., 2017), schizophrenia (Bolton, Morgenroth, Preti, De Ville, 2020, Damaraju, Allen, Belger, Ford, McEwen, Mathalon, Mueller, Pearlson, Potkin, Preda, et al., 2014, Du, Fryer, Fu, Lin, Sui, Chen, Damaraju, Mennigen, Stuart, Loewy, et al., 2018, Du, Pearlson, Yu, He, Lin, Sui, Wu, Calhoun, 2016, Fu, Iraji, Turner, Sui, Miller, Pearlson, Calhoun, 2021, Rashid, Damaraju, Pearlson, Calhoun, 2014, Su, Shen, Zeng, Qin, Liu, Hu, 2016), lewy body dementia (Schumacher et al., 2019) and autism (He, Chen, Jian, Chen, Guo, Wang, Wu, Chen, Duan, 2018, Li, Zhu, Nguchu, Wang, Wang, Qiu, Wang, 2020, Rabany, Brocke, Calhoun, Pittman, Corbera, Wexler, Bell, Pelphrey, Pearlson, Assaf, 2019), in addition to healthy cognition (Hutchison and Morton, 2015) and sleep (Damaraju, Tagliazucchi, Laufs, Calhoun, 2020, Zhou, Cai, Zhang, Zhang, Calhoun, Wang, 2020). In applications such as these that compare the spatiotemporal dynamics of the brain across different groups, sources of heterogeneity between subjects, such as the shape of the hemodynamic response function (HRF) and levels of noise (Lehmann et al., 2017), may induce between-subject differences masking underlying dFC states. It is clear that inaccuracies in the clustering step would lead to inaccuracies in the measurement of properties such as fractional occupancy and dwell time, and therefore potentially spurious conclusions regarding the differences between groups.

It is therefore crucial to assess the ability of k-means to accurately quantify spatiotemporal dFC patterns and their transition statistics when applied to cohorts of multiple subjects. A particularly pertinent issue is that distance-based clustering methods like k-means do not perform well in high dimensional problems (Assent, 2012), and dFC analysis certainly fits into this category. In other applications of clustering to high-dimensional data, dimensionality reduction methods are often applied prior to clustering in order to map the data to a lower dimensional space. This provides salient features to the subsequent clustering step, reducing the effects of irrelevant or noisy features (Assent, 2012, Kriegel, Kröger, Zimek, 2009).

In this study, we evaluate the use of dimensionality reduction methods prior to clustering dFC states (Fig. 1). We propose the use of deep autoencoders for dimensionality reduction prior to applying k-means clustering to the encoded data. We compare this deep clustering method to dimensionality reduction using principle component analysis (PCA), uniform manifold approximation and projection (UMAP), as well as applying k-means to the original feature space using either L1 or L2 distance. We provide extensive quantitative evaluation of clustering performance using synthetic datasets, representing data from multiple, heterogeneous artificial subjects (with subject-specific state time courses and noise parameters and variable intervals between state transitions). We measured performance in terms of clustering accuracy, similarity between the FC matrices of extracted states and those of true states, as well as error in measurements of fractional occupancy and dwell time. In synthetic data we find that deep clustering outperforms the other approaches. We then demonstrate the application of each method to real-world data from human subjects and show that the choice of dimensionality reduction method has a significant effect on group-level measurements of state temporal properties.

2. Methods

2.1. Data

We study both synthetic and real-world fMRI data. In general, data acquired for SWC analysis typically consist of several minutes of resting state fMRI data per subject. Nodes are defined either by a predetermined structural (Tzourio-Mazoyer et al., 2002) or functional (Craddock, James, Holtzheimer III, Hu, Mayberg, 2012, Shen, Tokoglu, Papademetris, Constable, 2013) parcellation scheme, or by generating a study-specific map by applying independent component analysis (ICA) at the group level (Kiviniemi et al., 2009). The timeseries of T time points by N nodes is then constructed by calculating the average BOLD signal within each region.

2.1.1. Synthetic data

We produced synthetic data using SimTB (Erhardt et al., 2012) (https://trendscenter.org/software/simtb/) to simulate BOLD activity in a set of N nodes under a model of spatiotemporal separability, using code modified from that originally used in Allen et al. (2014). In this model, timeseries data are constructed by linearly convolving a sequence of neural events with a HRF. We generated data governed by a time course of underlying dFC states, where the state occupied at a given time dictates the influence of each node’s activity on all other nodes, as follows. At each time point, a state-specific neural event occurs with some probability (set to the default value of 0.5). When a state-specific event occurs in a node, this has an additive or subtractive effect on the amplitude of events in all nodes which are functionally connected to this node, as defined by the dFC state occupied at that time step. In addition to these state-specific neural events, unique events occur randomly and are added to the time course for each node, representing spontaneous node-specific fluctuations in brain activity. For validation, the amplitude and probability of occurrence of these unique events was varied in order to create synthetic data with different noise levels (see Section 2.4.1).

We aimed to assess dFC clustering performance when applied to cohorts containing multiple subjects, so we created artificial subjects with simulated FC time courses. For each artificial subject, the underlying time course of dFC states was sampled from a hidden Markov model (HMM). This ensured variable intervals between state changes (Supplementary Fig. 1). Between-subject differences in dFC can be caused by individual differences in properties such as noise levels (i.e. neural noise and measurement noise) and HRF shape (Lehmann et al., 2017). Therefore, the probability and amplitude of unique neural events, the amplitude of the gaussian noise added to the BOLD signal, and the parameters of the HRF were varied across artificial subjects. HRF parameters were sampled from the default distributions defined in SimTB (Erhardt, Allen, Wei, Eichele, Calhoun, 2012, Friston, Holmes, Worsley, Poline, Frith, Frackowiak, 1994, Friston, Mechelli, Turner, Price, 2000), shown in Supplementary Table 2. The probability and amplitude of unique neural events and gaussian noise were sampled from normal distributions shown in Supplementary Table 1. We also aimed to ensure that clustering performance was independent of the state FC matrices and state transition matrix, so we created multiple datasets, each containing multiple subjects (the default number of subjects generated was 50 in each dataset; see Section 2.4.1). State FC matrices, and the transition matrix governing the HMM, were randomly generated in order to be unique to each dataset, but were shared between subjects within the dataset. Supplementary Fig. 2 summarises the structure of the synthetic datasets.

Each dataset was generated with a repetition time (i.e. the sampling rate), TR, of 2 s and an overall duration of 270 TR (9 minutes). The method used to randomly generate the state FC matrices and transition matrix are described in the Supplementary Materials. Fig. 2(a) shows examples of randomly generated sets of dFC states. Fig. 2(b) shows examples of randomly generated transition matrices, with examples of corresponding state time courses shown in Fig. 2c. Note that we did not alter the functionality of the SimTB model, we simply automated the process of generating batches of synthetic data.

Fig. 2.

Fig. 2

Examples of randomised states, transition matrices and time courses. a) Each row shows a set of five randomly generated dFC states, with functional connectivity indicated by the colour bar. b) Randomly generated transition matrices are shown, with the value in position (i,j) indicating the probability of switching from state i to state j, with probability indicated by the colour bar. For each transition matrix, the corresponding row in c) shows three examples of state time courses sampled from a HMM.

This model was used to generate training datasets to tune parameters of the dimensionality reduction methods (see Section 2.3), as well as validation datasets with different noise levels, number of nodes, number of states, number of subjects and HRF model in order to assess clustering performance in a range of experimental conditions (see Section 2.4.1).

2.1.2. Human data

For application to real-world data, we obtained resting-state fMRI data from the HCP1200 release from the Human Connectome Project (Essen et al., 2013) (https://www.humanconnectome.org). These data are provided as fully-processed subject-specific BOLD timeseries using a parcellation derived with spatial ICA. Briefly, processing steps which have already been applied to these data include spatial preprocessing according to Glasser et al. (2013) and temporal preprocessing according to Smith et al. (2013). Spatial preprocessing included correction for spatial distortions caused by gradient nonlinearity, correction for head motion, correction for B0 distortion global intensity normalisation, and 2 mm full-width at half maximum (FWHM) smoothing. Temporal preprocessed included high-pass temporal filtering (>2000 s FWHM) and regression of artefact and motion-related time courses (Griffanti, Salimi-Khorshidi, Beckmann, Auerbach, Douaud, Sexton, Zsoldos, Ebmeier, Filippini, Mackay, et al., 2014, Salimi-Khorshidi, Douaud, Beckmann, Glasser, Griffanti, Smith, 2014) followed by temporal demeaning and variance normalisation (Beckmann and Smith, 2004). Following preprocessing, spatial ICA was applied using MELODIC (Beckmann, Smith, 2004, Hyvarinen, 1999, Smith, Hyvärinen, Varoquaux, Miller, Beckmann, 2014) from FSL (Smith et al., 2004), to obtain group-level parcellations. The set of ICA spatial maps was then mapped onto each subject’s BOLD timeseries to derive the node timeseries for each individual. We used the parcellation with N=50 brain regions. We selected data which had no notable quality control issues recorded and used the first acquisition from each subject. These data had TR=720 ms and a duration of 1200 TR (14 minutes 24 seconds).

2.2. Sliding-window correlations

The multivariate timeseries consisting of T time points and N brain regions were converted into a series of FC matrices using SWC, as follows. A window was used to select a short segment of the timeseries for all nodes. The window was then shifted in time by a given step size to extract overlapping segments, of the same length, for the whole timeseries of a given subject. In the synthetic data, we tested both rectangular and tapered (Hamming and Hanning) window shapes, and window lengths in the range 30–60 s (see Section 2.4.1) with a step size of 1 TR (2 s). We measured FC in each window by estimating covariance from the precision matrix, regularised with the L1-norm (Allen, Damaraju, Plis, Erhardt, Eichele, Calhoun, 2014, Smith, Miller, Salimi-Khorshidi, Webster, Beckmann, Nichols, Ramsey, Woolrich, 2011, Varoquaux, Gramfort, Poline, Thirion, 2010), where the regularisation parameter, λL1, was estimated for each subject using cross-validation.

2.3. Clustering & dimensionality reduction

As the FC matrices are symmetric, the upper triangle was extracted and vectorised. Thus, after windowing and vectorisation, the BOLD data were transformed into an X by Y matrix, where Y represents the number of subjects multiplied by the number of windows per subject, and X represents the pair-wise correlations (equal to N(N1)/2). The clustering task that we focus on is then the assignment of each column of this data to a cluster. Introducing a dimensionality reduction step, prior to clustering, converts the X by Y matrix to a d by Y matrix, where d is the number of dimensions in the low-dimensional representation.

We tested the performance of “raw” k-means against k-means applied after a dimensionality reduction step (Fig. 1). The dimensionality reduction procedures we used (described in detail below) are PCA, UMAP and deep clustering (autoencoder followed by k-means). The same k-means procedure was used in all methods. We compared our results to “chance” clustering by randomly assigning state labels to each window.

As the dimensionality reduction methods required parameter tuning, we generated training datasets with 50 subjects, 5 states, canonical HRF and medium noise, processed with a rectangular window of length 40 s. These data were used to tune the parameters of each method, using a grid search of parameter values to maximise clustering accuracy. A coarse grid of parameter values was used in order to prevent overfitting. Separate training datasets were generated with 15, 25 and 50 nodes, to re-tune clustering methods for the different input data dimensionality for these scenarios.

2.3.1. k-means

We followed a k-means clustering methodology commonly used in dFC analysis (Allen et al., 2014). We selected exemplar FC windows at local maxima in variance and applied 128 repetitions of k-means (max 1000 iterations) to the FC matrices corresponding to these windows, each initialised with the k-means++ algorithm (Arthur and Vassilvitskii, 2006). The set of centroids which gave the lowest sum of squared error between each data point and its nearest centroid was then used to initialise k-means clustering (max 10,000 iterations) for all windows. As well as the ‘default’ Euclidian (L2) distance metric, we also tested the Manhattan (L1) distance metric, as this is often used in dFC analysis due to high dimensionality (Aggarwal, Hinneburg, Keim, 2001, Allen, Damaraju, Plis, Erhardt, Eichele, Calhoun, 2014).

2.3.2. Principle component analysis

PCA was applied to all FC matrices, then the first p principle components were used as features for k-means clustering, where p was chosen to maximise clustering accuracy using synthetic training data, as described above. The parameter values searched are shown in Supplementary Table 3. The resulting p for each parcellation is shown in Table 1.

Table 1.

Parameters of each dimensionality reduction method for each size parcellation tested, as determined by a coarse grid search to maximise clustering accuracy using synthetic training data. The values searched are shown in Supplementary Tables 3– 5. p is the number of principle components used for PCA. For UMAP, m is the number of neighbours used to determine the local connectivity of the high-dimensional graph before optimising the low-dimensional representation, v is the minimum permissible distance between points in the low-dimensional representation, and u is the number of dimensions. For deep clustering, d1, d2 and d3 are the number of units in the layers of the symmetric autoencoder (giving d3-dimensional encoded data).

Number of nodes Dimensionality PCA UMAP
Deep Clustering
N N(N1)/2 p m v u d1 d2 d3
15 105 16 30 1.0 32 512 256 16
25 300 32 30 1.0 64 512 256 32
50 1225 256 40 1.0 32 1024 256 64

2.3.3. Uniform manifold approximation and projection

UMAP is a nonlinear dimension reduction technique which projects data onto a low-dimensional manifold by constructing a high-dimensional graph representation, then optimising a low-dimensional graph to have a structure as similar as possible to the high-dimensional graph (McInnes et al., 2018). The structure of the high-dimensional graph is determined locally based on distances to the nearest m neighbours. Higher m results in a low-dimensional projection which more accurately captures the global structure of the data rather than preserving local distances to neighbours. Additional parameters which must be chosen are the number of dimensions, u, in the low-dimensional subspace, and the minimum permissible distance, v, between points in the low-dimensional representation. We used UMAP to embed all FC matrices into a low-dimensional subspace, then applied k-means clustering to the embedded data. The values of u, v and m were chosen to maximise clustering accuracy using synthetic training data, as described above. The parameter values searched are shown in Supplementary Table 4. The tuned parameters for each size parcellation are shown in Table 1.

2.3.4. Deep clustering

Deep learning has provided powerful tools for neuroimaging analysis, including segmentation of anatomical structures or lesions in structural MRI (Akkus et al., 2017), annotation of cognitive states in task-based fMRI data (Zhang et al., 2021), or clinical diagnosis from functional connectivity networks (He, Li, Holland, Yuan, Altaye, Parikh, 2018, Kam, Zhang, Jiao, Shen, 2019, Vieira, Pinaya, Mechelli, 2017, Wang, Li, Hu, 2020) (for an overview of deep learning concepts and methodology, and a review of applications to studies of neurological disorders, see Vieira et al. (2017)). Whereas these supervised applications of deep learning require a large amount of ground truth data for training (Quaak et al., 2021), autoencoders can be used as a dimensionality reduction method for unsupervised applications.

Autoencoders are a type of artificial neural network which copy the input data to the output, via a low-dimensional encoding layer (Goodfellow, Bengio, Courville, Bengio, 2016, Vincent, Larochelle, Bengio, Manzagol, 2008). The bottleneck formed by this low-dimensional encoding layer forces the network to extract features from which the original data can be reproduced via the decoding layers. In this case, the input data is used as the training target, thus autoencoders can be used for dimensionality reduction in unsupervised clustering applications with no ground truth (Guo, Liu, Zhu, Yin, 2017, Xie, Girshick, Farhadi, 2016). Here, we use autoencoders as a data-driven approach to determining feature space at the group level, allowing clustering to be applied to the salient features provided by the low-dimensional encoding layer. This framework is known as deep clustering (Caron, Bojanowski, Joulin, Douze, 2018, Guo, Liu, Zhu, Yin, 2017).

The proposed deep clustering framework consists of training an autoencoder on all FC windows before applying k-means clustering to the encoded data (Fig. 3). We used a fully-connected autoencoder with three encoding layers and a symmetric decoder. Weights were trained using the Adam optimiser (Kingma and Ba, 2014) to minimise the mean-squared error (MSE) between the input and output, trained for 100 epochs with a batch size of 50. Rectified linear unit (ReLU) activation functions were used for hidden layers and linear activation functions were used for the low-dimensional layer and output layer. The number of units in each layer were chosen to maximise clustering accuracy using synthetic training data, as described above. The parameter values searched are shown in Supplementary Table 5. The number of units in each layer for each parcellation is shown in Table 1.

Fig. 3.

Fig. 3

Autoencoder architecture. The architecture, shown here for a parcellation with N=25 nodes, was determined by a coarse grid search to maximise clustering accuracy using a synthetic training dataset. The upper triangle of each FC matrix is taken as an input. Each layer shows the number of units and the activation function. The encoded data is used for clustering. ReLU = rectified linear unit.

2.4. Experiments

2.4.1. Clustering synthetic data

We varied the parameters of the model and preprocessing steps to assess clustering performance in each of the following cases:

  • a)

    Number of “subjects”: 10, 50 and 100.

  • b)

    Number of regions in the parcellation: 15, 25 and 50.

  • c)

    Number of states: 3, 5 and 7.

  • d)

    Hemodynamic response function (HRF): Both HRF models provided in SimTB were tested; the canonical HRF, and the Windkessel-Balloon model.

  • e)

    Noise: Low, medium and high noise datasets were generated by varying the probability and amplitude of unique events in the underlying neural time course, and the amplitude of Gaussian noise added to the BOLD signal. The distributions of these parameters are shown in Supplementary Table 1, and examples of simulated timeseries with each noise level is shown in Supplementary Fig. 3.

  • f)

    Sliding window shape: Rectangle, Hamming and Hanning.

  • g)

    Sliding window length: 30, 40 and 60 s.

In each dataset, parameters that were not varied were set to the following default values: 50 subjects; 25 nodes; canonical HRF; high noise; rectangle sliding window length of 40 s. For validation, clustered states were matched to true states by pairing those with maximum cosine similarity between corresponding FC matrices. To allow comparison of dFC state centroids between clustering methods, the representative FC matrix for a given state was constructed by averaging all FC windows belonging to that state (rather than using the low-dimensional centroid derived by the k-means step). Clustering performance was then measured by accuracy (fraction of correctly labelled windows), mean cosine similarity between cluster centroids and true states, and mean-squared error in dwell time (the average duration the state is occupied before a state change) and fractional occupancy (the proportion of the total scan duration spent in a given state). To calculate dwell time MSE and fractional occupancy MSE, these properties were calculated for each state in every subject, then the squared error between these measurements and the true values were calculated and averaged across subjects and states. For each parameter set, we constructed five datasets (each with a unique set of state FC matrices and a unique transition matrix) and performed 10 runs of each method on each dataset. We then averaged performance metrics over all 50 runs of each method on the given parameter set.

To demonstrate the differences between measurements of temporal properties across subjects in each dataset, we took results from one run of each method and performed an unpaired two-tailed t-test to test for significant differences from the true distribution of fractional occupancy and dwell time measurements for each state.

2.4.2. Clustering real-world data

We selected five non-overlapping groups of 100 subjects from the Human Connectome Project dataset (see Section 2.1.2). In each group, we applied SWC with a rectangular window of length 55 TR (39.6 s) with a step size of 2 TR (1.44 s), giving 573 windows per subject. This was based on previous work suggesting that, where motion noise is not excessive, a rectangular window is suitable for detecting dFC (Savva et al., 2020). The number of clusters, k, was selected for each dataset using the elbow criterion of the within-cluster to between-cluster distance when clustering exemplar FC windows (Allen et al., 2014). In all groups of 100 subjects, we identified the optimal number of clusters to be k= 4. We then applied clustering with each method to each group, using the parameters shown in Table 1 for 50 nodes. For subsequent comparison, states were matched between methods by pairing those with maximum cosine similarity between the corresponding FC matrices.

To assess the measurements of state temporal properties provided by each method, we calculated the fractional occupancy and dwell time of each state in each subject. To determine whether the stochasticity introduced by training the autoencoder affected measurements of state temporal properties across repeated runs of deep clustering, we performed 10 runs of deep clustering on each dataset and used a one-way analysis of variance (ANOVA) to test for differences between runs in the fractional occupancy and dwell time of each state.

To determine whether the choice of dimensionality reduction method affected the measurement of state temporal properties, we performed one run of each method and used a one-way ANOVA to test for differences between methods in fractional occupancy and dwell time. False discovery rate (FDR) correction was applied using the Benjamini-Hochberg method (Benjamini and Hochberg, 1995). If this yielded significant results (FDR-corrected p< 0.05) then post hoc pairwise comparison between methods was performed using unpaired two-tailed t-tests with FDR correction applied.

2.5. Data availability statement

Real-world fMRI data were obtained from the Human Connectome Project (Essen et al., 2013) (https://www.humanconnectome.org). The SimTB model (Erhardt et al., 2012) used to generate synthetic data was obtained from https://trendscenter.org/software/simtb/. The code used in this study is publicly available at https://github.com/apcspencer/dFC_DimReduction.

3. Results

3.1. Validation

To examine the efficacy of each dimension reduction method, we quantified clustering performance using synthetic data. Of the methods tested, deep clustering gave the highest accuracy in all synthetic datasets overall (Fig. 4). Deep clustering provided the highest mean cosine similarity between extracted states and true states, the lowest MSE in fractional occupancy, and the lowest MSE in dwell time in the majority of datasets (Fig. 4). The only exceptions are those with 10 subjects, 15 nodes and 30s windows, where PCA and UMAP give marginally better results for mean cosine similarity, and lower MSE in dwell time, respectively. Additionally, deep clustering was the only method to give measurements of fractional occupancy and dwell time better than chance in all datasets.

Fig. 4.

Fig. 4

Results of validation with synthetic data. Performance metrics from each dimensionality reduction method plotted for synthetic validation datasets with varying model parameters. For each set of model parameters, 5 datasets were generated with the given parameters, each with a unique transition matrix and set of state FC matrices, then 10 runs of each method were applied to each of these datasets. The performance averaged over these 50 runs is plotted for each parameters set. The accuracy of each individual run is shown in Supplementary Fig. 4. FO = fractional occupancy; DT = dwell time; MSE = mean squared error; PCA = principle component analysis; UMAP = uniform manifold approximation and projection; HRF = hemodynamic response function; Rect = rectangular; Hamm = Hamming; Hann = Hanning; Canon = canonical; W-B = Windkessel-Balloon.

Applying k-means to the original feature space, using L1 distance almost always gave the worst performance. In most datasets, using PCA for dimensionality reduction prior to k-means did not offer any performance improvements over applying k-means with L2 distance to the original feature space. UMAP gave variable accuracy, with good performance in data with low noise, 30 s window, Hamming window, or 15 nodes, but performed poorly in the 60 s window and 7 state datasets, in which fractional occupancy measurements were worse than chance.

The accuracy of each individual run of each method, grouped by dataset, is shown in Supplementary Fig. 4. Repeated runs of each method on a given dataset had tightly grouped accuracy scores, with the exception of datasets in the 10 subject parameter set, which was highly variable. In terms of accuracy, the ranking of the methods was similar all five datasets for each set of parameter values, with deep clustering almost always performing best, and k-means using L1 distance almost always performing worst.

To assess whether the superior performance of deep clustering over other methods was entirely due to better generalisation, or due to an improved ability to extract salient features regardless of the quality of hyperparameter tuning, we assessed the clustering accuracy of each method when hyperparameters were tuned on the validation data. Supplementary Fig. 5 shows the comparison between clustering accuracy obtained using the hyperparameters given in Table 1, and clustering accuracy obtained with hyperparameters tuned to the validation data. For deep clustering, the generalised accuracy was similar to the tuned accuracy for most datasets, indicating good generalisation of hyperparameters. In many datasets, UMAP showed a large improvement when tuned on the data, indicating performance was highly sensitive to hyperparameters. In some datasets (e.g. Hamming and Hanning windows, and 10 subjects) UMAP was capable of reaching a higher clustering accuracy than deep clustering when tuned on the data, but not when using generalised hyperparameters. However, for most datasets, the accuracy of deep clustering with generalised hyperparameter values was higher than all other methods with either tuned or generalised parameter values, showing that deep clustering was capable of attaining higher accuracy regardless of tuning.

Fig. 5 shows exemplar data from the results of each clustering algorithm applied to a high noise dataset. It can be seen that the distribution of dwell time measurements for deep clustering were not statistically distinguishable from the ground truth. On the other hand, these were significantly different from the ground truth for states 1, 2 and 5 with PCA or k-means using L1 distance, and for state 1 with k-means using L2 distance (Fig. 5c). Additionally, fractional occupancy measurements from k-means using either L1 or L2 distance, PCA and UMAP were significantly different from the truth for state 3. The high fractional occupancy measurements for state 3 show that a large number of FC windows were incorrectly assigned to this cluster. This has a visible effect on the state FC matrices for state 3 for these methods (Fig. 5a), in which most elements are close to zero due to being averaged over a large number of FC windows. Conversely, all five state FC matrices derived using deep clustering have visually similar structure to the ground truth.

Fig. 5.

Fig. 5

Clustering results from one run of each dimensionality reduction method applied to synthetic data with high noise. a) State FC matrices are plotted with connectivity indicated by the colour bar. b) State time courses are shown for five subjects. c) The distribution across subjects of fractional occupancy and dwell time measurements are plotted for each state. Boxes show the interquartile range, with a line for the median. The median of the ground truth is shown as a dashed line across each plot for comparison with other methods. Whiskers extend to the range of the data, not including outliers which are shown as diamonds. Significant differences from the true distributions, measured by unpaired two-tailed t-tests, are indicated as follows: *p< 0.01, **p< 0.001, ***p< 0.0001.

A similar effect is observed with most parameter sets (see Supplementary Fig. 6–18), which clearly demonstrates the difference in performance between deep clustering and the other methods. K-means using either L1 or L2 distance, PCA and UMAP derive state FC matrices that appear to be very similar to the ground truth for most states (see e.g. states 1, 2, 4 and 5 in Fig. 5a). It appears this is because these methods only identify the FC windows that very strongly express the state’s pattern of connectivity. Spurious correlations in many other FC windows cause those windows to be incorrectly assigned to a single state by these methods (state 3 in Fig. 5a). We postulate that for deep clustering, the autoencoder projects the data to a low-dimensional feature space in which the salient features allow the FC windows to be assigned to the correct state more accurately, reducing the effect of the spurious correlations.

Notably, PCA as well as k-means using either L1 or L2 distance each gave lower measurements of median dwell time than the ground truth for all states. This was the case for all parameter sets (see Supplementary Fig. 6–18). This is likely due to occasional spurious switching between states, as seen in the state time courses of individual subjects plotted in Fig. 5b.

3.2. Application to real-world data

We applied each method to real-world data from five groups of 100 subjects from the Human Connectome Project. Clustering results for the first group are shown in Fig. 6. The estimated state FC matrices were largely comparable for all methods except for UMAP, though state 4 also differed for deep clustering compared to the other methods (Fig. 6a). There were significant differences in the measurements of fractional occupancy for states 1 and 3, and dwell time in states 2–4 (Fig. 6b; one-way ANOVA, FDR-corrected p< 0.05).

Fig. 6.

Fig. 6

Human Connectome Project clustering results from each dimensionality reduction method. a) State FC matrices resulting from each method, with connectivity indicated by the colour bar. b) Fractional occupancy and dwell time measurements across subjects are shown for each state. Boxes show the interquartile range with a line for the median. Whiskers extend to the range of the data, not including outliers which are shown as diamonds. Measurements were compared using a one-way ANOVA, with post hoc pairwise comparison using two-tailed t-tests. c) State time courses are shown for five subjects. FDR-corrected: *p< 0.05, **p< 0.001, ***p< 0.0001.

Results for the four additional groups of 100 subjects are shown in Supplementary Fig. 19–22. Notably, PCA and k-means using either L1 or L2 distance resulted in lower dwell time measurements than deep clustering and UMAP for most states in all groups, which is similar to our finding when analysing synthetic data (see Fig. 5 and Supplementary Fig. 6–18). State time courses are plotted for five subjects, demonstrating qualitative differences in the switching characteristics of each method (Fig. 6c).

To assess whether the stochasticity introduced when training the autoencoder affected measurements of state temporal properties across repeated runs of deep clustering, we performed a one-way ANOVA to test for differences in the fractional occupancy and dwell time of each state for 10 repetitions applied to each group of 100 participants. Measurements of both fractional occupancy and dwell time were robust across repeated runs for all states in all groups of participants (lowest uncorrected p-value = 0.1191). These results are shown in full in Supplementary Fig. 23.

3.3. Computational demand

When applied to 100 subjects, with 573 windows per subject and a parcellation of 50 nodes, dimensionality reduction took 11 seconds with PCA and 2 minutes and 7 seconds with UMAP, averaged over 10 runs using an 8-core 2.70 GHz CPU (Intel Core i7). Training the autoencoder for deep clustering took 32 minutes and 38 seconds using a CPU, or 10 minutes and 21 seconds using a GPU (NVIDIA Quadro M620; CUDA v10.1).

4. Discussion

In this study, we evaluated the use of dimensionality reduction methods prior to clustering dFC data from SWC. We proposed a deep clustering framework consisting of training a fully-connected autoencoder on all FC windows, followed by applying k-means clustering to the encoded data. We quantitatively assessed clustering performance using multiple synthetic datasets, each with unique sets of state FC matrices and transition probabilities, and each containing multiple timeseries representing different subjects with randomised model parameters. We demonstrated that deep clustering gives the highest accuracy across a range of model parameters and preprocessing conditions, including varying HRF parameters, noise levels (both additive Gaussian noise and spurious neural events), number of subjects, number of states, number of nodes, and sliding window shape and length. Further, when measuring the error in estimates of fractional occupancy and dwell time, deep clustering was the only method to perform better than chance across all experimental conditions.

PCA and both k-means approaches consistently performed worse than deep clustering, with k-means using L1 distance usually performing worst, and PCA or k-means using L2 distance giving roughly similar performance. UMAP gave good performance in some tests, with similar accuracy to deep clustering in the low noise, medium noise, 30 s window, and 15 node datasets. However, the performance of UMAP varied widely, giving comparatively lower accuracy in the 7 state datasets, and very poor performance in the 60 s window datasets. This is likely due to the fact that UMAP relies on distances between data points (windowed FC matrices in this case) to construct the low-dimensional feature space. As such, UMAP parameters are unlikely to generalise to data in which distances between data points, and the number of data points, are drastically different from the tuning data, which may be the case for a different window size. The assessment of clustering accuracy when hyperparameters were tuned on each validation dataset revealed that, although UMAP was capable of achieving high accuracy in some datasets, this was highly dependent on hyperparameter tuning (thus gave poor generalisation) and often still did not perform as well as deep clustering (Supplementary Fig. 5). As one cannot tune the dimensionality reduction methods on real-world data, the performance across different synthetic validation datasets serves as an indication of how well a given method will generalise to real-world data. As UMAP gives variable performance, declining dramatically in some cases, it is clearly not robust across parameters and is therefore not the most reliable for application to real-world data.

Autoencoders (with ReLU activation functions) and UMAP are both nonlinear dimensionality reduction methods. This is likely what allows them to achieve high clustering accuracy in many cases (and often higher than PCA, which is a linear dimensionality reduction method). In some synthetic datasets, the distributions of fractional occupancy and dwell time measurements appear similar between UMAP and deep clustering (e.g. the low noise, medium noise, and 3 state datasets; see Supplementary Fig. 6, 7 and 16 respectively). However, in the high noise dataset, the distributions of fractional occupancy and dwell time measurements appear substantially different between UMAP and deep clustering (Fig. 5c). Additionally, in all five groups of real-world data, there were multiple states for which the measurements of fractional occupancy and dwell time differed significantly between UMAP and deep clustering (Fig. 6b and Supplementary Fig. 19–22). Although the nonlinearity of UMAP allowed it to achieve high clustering accuracy in some cases, this did not generalise well (Fig. 4, Supplementary Fig. 5). Deep clustering was capable of reaching higher accuracy than UMAP, and offered good generalisation across a wide range of simulated conditions.

Upon qualitative inspection of the timeseries of state labels in synthetic data (Fig. 5b), it appears many of the erroneous state labels occur near state transitions. This is likely due to the transient activity near state transitions making it more difficult for the clustering algorithm to detect the underlying state, in addition to the fact that activity is averaged within a sliding window which may contain activity from multiple states. While some methods are unable to identify the correct state near these transitions, and often spuriously switch between several incorrect states (skewing the distribution of dwell time measurements), deep clustering appears to extract the relevant information to determine the correct state more effectively.

When applied to real-world data, measurements of state temporal properties were dependent on the choice of dimensionality reduction method. For many states, PCA and both k-means approaches (using either L1 or L2 distance) gave estimates of dwell time that were significantly lower than those given by deep clustering. This echos the results from synthetic data, in which these methods consistently underestimated dwell time. UMAP gave longer estimates of dwell time than other methods. This is likely due to the neighbour embedding algorithm placing consecutive windows, with high similarity, close to each other in the embedded space. This may not have been an issue in the simulated data which has sharper transitions between states (Shakil et al., 2016). While the real-world data does not demonstrate any advantage of one method over another (as we do not know the ground truth), it does show that dimensionality reduction is an important design choice when analysing such data. Taken in context with our findings from simulated data, we recommend deep clustering.

Measurements of state temporal properties in real-world data using deep clustering were consistent across repeated evaluations of the algorithm. While this reproducibility does not necessarily indicate good or meaningful clustering, it does show that deep clustering gives robust results despite the stochasticity introduced by the deep learning approach.

There are an increasing number of available approaches for dFC analysis of resting state fMRI data, including methods of extracting brain states directly from voxelwise BOLD data (Lin et al., 2021), or methods to determine spatially and temporally overlapping states (Karahanoğlu and De Ville, 2015) (for a review, see Preti et al. (2017)). However, applying k-means to SWC data is the most common approach in studies of dFC in neurological disorders, despite evidence showing that this method gives poor characterisation of state transitions (Shakil et al., 2016). Our results show that applying k-means to the original feature space, without the use of dimensionality reduction, may be insufficient for measuring state temporal properties, despite a high similarity between the FC matrices representing extracted states and true states. Our proposed deep clustering approach provides accurate measurements of temporal properties in synthetic data, robust to variations in model parameters and experimental conditions.

In neuroimaging studies, autoencoders have been used for dimensionality reduction prior to modelling (Suk et al., 2016), and for pre-training layers of a classifier (Heinsfeld et al., 2018). A recent study has applied autoencoders directly to fMRI BOLD data in order to improve individual identifiability of functional connectomes (Cai et al., 2021). The goals of Cai et al. (2021) were to residualise the BOLD data, by applying autoencoders directly to the BOLD timeseries to remove common neural activities, in order to enhance inter-subject variability for functional connectome ‘fingerprinting’. Conversely, we used autoencoders as a data-driven approach to determine feature space at the group level in order to improve clustering of FC windows, thus improving measurements of dFC state temporal properties. Our deep clustering approach is applied to the FC matrices, such that it fits into the existing, well-established framework of SWC analysis.

The use of deep learning often raises concerns of overfitting, as the number of parameters (weights in the neural network) exceeds the number of data points (FC windows) resulting in poor generalisation to data points outside the training set (Vieira et al., 2017). In the deep clustering approach used here, the autoencoder is always trained on the data being clustered, therefore the weights do not have to generalise to unseen data. The only parameters which are not trained on each data point encountered are hyperparameters such as the number of units in each layer, the activation function, the batch size and the number of epochs. By demonstrating that deep clustering performance is robust to model parameters and preprocessing parameters, we have shown that the autoencoder architecture and hyperparameters, which were tuned with a coarse grid search to maximise clustering accuracy using a synthetic training dataset, offer good generalisation.

The use of tapered sliding windows when computing SWC has been proposed in order to diminish the effect of spurious fluctuations causing large discontinuities when entering and leaving the window (Allen, Damaraju, Plis, Erhardt, Eichele, Calhoun, 2014, Mokhtari, Akhlaghi, Simpson, Wu, Laurienti, 2019, Shakil, Lee, Keilholz, 2016). Our results in synthetic data showed slightly worse clustering performance with all methods when using tapered windows, in comparison with a rectangular window. However, as previous suggested (Shakil et al., 2016), this is likely due to the sharp discontinuities at state transitions in synthetic data, which may not reflect the characteristics of state changes in real-world data. Additionally, we did not match the different window types (e.g. by varying window length to match the cuttoff frequency) (Mokhtari et al., 2019). The purpose of assessing different window shapes in this study was to evaluate clustering performance across a range of experimental conditions; a comprehensive comparison of sliding window parameters and preprocessing options is beyond the scope of this work, but can be found in previous studies (Hindriks, Adhikari, Murayama, Ganzetti, Mantini, Logothetis, Deco, 2016, Leonardi, De Ville, 2015, Mokhtari, Akhlaghi, Simpson, Wu, Laurienti, 2019, Shakil, Lee, Keilholz, 2016).

There is still some debate over whether dFC analysis truly captures underlying neural activity (Gonzalez-Castillo, Hoy, Handwerker, Robinson, Buchanan, Saad, Bandettini, 2015, Handwerker, Roopchansingh, Gonzalez-Castillo, Bandettini, 2012, Matsui, Murakami, Ohki, 2019) or simply artefacts due to head motion (Laumann et al., 2017). The improved performance offered by deep clustering may allow more refined assessment of the ability of SWC to capture neural activity.

5. Conclusion

We have demonstrated that a deep clustering framework, comprising autoencoders for dimensionality reduction prior to k-means clustering, offers improved dFC clustering performance on synthetic data. When applied to real-world data, this performance increase resulted in significant differences in the measurement of temporal characteristics of brain states compared to the standard approach. These differences qualitatively reflected the differences observed in synthetic clustering results.

Funding

AS is supported by the Wellcome Trust (WT220070/Z/20/Z).

CRediT authorship contribution statement

Arthur P.C. Spencer: Conceptualization, Methodology, Software, Validation, Writing – original draft. Marc Goodfellow: Methodology, Supervision, Validation, Writing – review & editing.

Declaration of Competing Interest

None.

Acknowledgements

Data were provided in part by the Human Connectome Project, WU-Minn Consortium (Principal Investigators: David Van Essen and Kamil Ugurbil; 1U54MH091657) funded by the 16 NIH Institutes and Centers that support the NIH Blueprint for Neuroscience Research; and by the McDonnell Center for Systems Neuroscience at Washington University.

Footnotes

Supplementary material associated with this article can be found, in the online version, at doi:10.1016/j.neuroimage.2022.119288.

Appendix A. Supplementary materials

Supplementary Data S1

Supplementary Raw Research Data. This is open data under the CC BY license http://creativecommons.org/licenses/by/4.0/

mmc1.pdf (21.5MB, pdf)

References

  1. Aggarwal C.C., Hinneburg A., Keim D.A. International Conference on Database Theory. Springer; 2001. On the surprising behavior of distance metrics in high dimensional space; pp. 420–434. [Google Scholar]
  2. Akkus Z., Galimzianova A., Hoogi A., Rubin D.L., Erickson B.J. Deep learning for brain mri segmentation: state of the art and future directions. J Digit Imaging. 2017;30(4):449–459. doi: 10.1007/s10278-017-9983-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Allen E.A., Damaraju E., Plis S.M., Erhardt E.B., Eichele T., Calhoun V.D. Tracking whole-brain connectivity dynamics in the resting state. Cerebral cortex. 2014;24(3):663–676. doi: 10.1093/cercor/bhs352. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Arthur D., Vassilvitskii S. Technical report, Stanford; 2006. k-means++: The advantages of careful seeding. [Google Scholar]
  5. Assent I. Clustering high dimensional data. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery. 2012;2(4):340–350. [Google Scholar]
  6. Bassett D.S., Sporns O. Network neuroscience. Nat. Neurosci. 2017;20(3):353. doi: 10.1038/nn.4502. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Beckmann C.F., Smith S.M. Probabilistic independent component analysis for functional magnetic resonance imaging. IEEE Trans Med Imaging. 2004;23(2):137–152. doi: 10.1109/TMI.2003.822821. [DOI] [PubMed] [Google Scholar]
  8. 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 (Methodological) 1995;57(1):289–300. [Google Scholar]
  9. Bolton T.A.W., Morgenroth E., Preti M.G., De Ville D.V. Tapping into multi-faceted human behavior and psychopathology using fMRI brain dynamics. Trends Neurosci. 2020 doi: 10.1016/j.tins.2020.06.005. [DOI] [PubMed] [Google Scholar]
  10. Bullmore E., Sporns O. Complex brain networks: graph theoretical analysis of structural and functional systems. Nat. Rev. Neurosci. 2009;10(3):186. doi: 10.1038/nrn2575. [DOI] [PubMed] [Google Scholar]
  11. Bullmore E.T., Bassett D.S. Brain graphs: graphical models of the human brain connectome. Annu Rev Clin Psychol. 2011;7:113–140. doi: 10.1146/annurev-clinpsy-040510-143934. [DOI] [PubMed] [Google Scholar]
  12. Cai B., Zhang G., Zhang A., Xiao L., Hu W., Stephen J.M., Wilson T.W., Calhoun V.D., Wang Y.-P. Functional connectome fingerprinting: identifying individuals and predicting cognitive functions via autoencoder. Hum Brain Mapp. 2021;42(9):2691–2705. doi: 10.1002/hbm.25394. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Calhoun V.D., Miller R., Pearlson G., Adalı T. The chronnectome: time-varying connectivity networks as the next frontier in fMRI data discovery. Neuron. 2014;84(2):262–274. doi: 10.1016/j.neuron.2014.10.015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Caron M., Bojanowski P., Joulin A., Douze M. Proceedings of the European Conference on Computer Vision (ECCV) 2018. Deep clustering for unsupervised learning of visual features; pp. 132–149. [Google Scholar]
  15. Cohen J.R. The behavioral and cognitive relevance of time-varying, dynamic changes in functional connectivity. Neuroimage. 2018;180:515–525. doi: 10.1016/j.neuroimage.2017.09.036. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Craddock R.C., James G.A., Holtzheimer III P.E., Hu X.P., Mayberg H.S. A whole brain fmri atlas generated via spatially constrained spectral clustering. Hum Brain Mapp. 2012;33(8):1914–1928. doi: 10.1002/hbm.21333. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Damaraju E., Allen E.A., Belger A., Ford J.M., McEwen S., Mathalon D.H., Mueller B.A., Pearlson G.D., Potkin S.G., Preda A., et al. Dynamic functional connectivity analysis reveals transient states of dysconnectivity in schizophrenia. NeuroImage: Clinical. 2014;5:298–308. doi: 10.1016/j.nicl.2014.07.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Damaraju E., Tagliazucchi E., Laufs H., Calhoun V.D. Connectivity dynamics from wakefulness to sleep. Neuroimage. 2020;220:117047. doi: 10.1016/j.neuroimage.2020.117047. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Díez-Cirarda M., Strafella A.P., Kim J., Peña J., Ojeda N., Cabrera-Zubizarreta A., Ibarretxe-Bilbao N. Dynamic functional connectivity in parkinson’s disease patients with mild cognitive impairment and normal cognition. NeuroImage: Clinical. 2018;17:847–855. doi: 10.1016/j.nicl.2017.12.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Du Y., Fryer S.L., Fu Z., Lin D., Sui J., Chen J., Damaraju E., Mennigen E., Stuart B., Loewy R.L., et al. Dynamic functional connectivity impairments in early schizophrenia and clinical high-risk for psychosis. Neuroimage. 2018;180:632–645. doi: 10.1016/j.neuroimage.2017.10.022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Du Y., Pearlson G.D., Yu Q., He H., Lin D., Sui J., Wu L., Calhoun V.D. Interaction among subsystems within default mode network diminished in schizophrenia patients: a dynamic connectivity approach. Schizophr. Res. 2016;170(1):55–65. doi: 10.1016/j.schres.2015.11.021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Erhardt E.B., Allen E.A., Wei Y., Eichele T., Calhoun V.D. Simtb, a simulation toolbox for fmri data under a model of spatiotemporal separability. Neuroimage. 2012;59(4):4160–4167. doi: 10.1016/j.neuroimage.2011.11.088. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Essen D.C.V., Smith S.M., Barch D.M., Behrens T.E.J., Yacoub E., Ugurbil K., Consortium W.-M.H., et al. The Wu-Minn human connectome project: an overview. Neuroimage. 2013;80:62–79. doi: 10.1016/j.neuroimage.2013.05.041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Fiorenzato E., Strafella A.P., Kim J., Schifano R., Weis L., Antonini A., Biundo R. Dynamic functional connectivity changes associated with dementia in parkinson?s disease. Brain. 2019;142(9):2860–2872. doi: 10.1093/brain/awz192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Friston K.J., Holmes A.P., Worsley K.J., Poline J.-P., Frith C.D., Frackowiak R.S.J. Statistical parametric maps in functional imaging: a general linear approach. Hum Brain Mapp. 1994;2(4):189–210. [Google Scholar]
  26. Friston K.J., Mechelli A., Turner R., Price C.J. Nonlinear responses in fmri: the balloon model, volterra kernels, and other hemodynamics. Neuroimage. 2000;12(4):466–477. doi: 10.1006/nimg.2000.0630. [DOI] [PubMed] [Google Scholar]
  27. Fu Z., Iraji A., Turner J.A., Sui J., Miller R., Pearlson G.D., Calhoun V.D. Dynamic state with covarying brain activity-connectivity: on the pathophysiology of schizophrenia. Neuroimage. 2021;224:117385. doi: 10.1016/j.neuroimage.2020.117385. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Glasser M.F., Sotiropoulos S.N., Wilson J.A., Coalson T.S., Fischl B., Andersson J.L., Xu J., Jbabdi S., Webster M., Polimeni J.R., et al. The minimal preprocessing pipelines for the human connectome project. Neuroimage. 2013;80:105–124. doi: 10.1016/j.neuroimage.2013.04.127. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Gonzalez-Castillo J., Hoy C.W., Handwerker D.A., Robinson M.E., Buchanan L.C., Saad Z.S., Bandettini P.A. Tracking ongoing cognition in individuals using brief, whole-brain functional connectivity patterns. Proceedings of the National Academy of Sciences. 2015;112(28):8762–8767. doi: 10.1073/pnas.1501242112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Goodfellow I., Bengio Y., Courville A., Bengio Y. MIT press Cambridge; 2016. Deep Learning, Volume 1. [Google Scholar]
  31. Griffanti L., Salimi-Khorshidi G., Beckmann C.F., Auerbach E.J., Douaud G., Sexton C.E., Zsoldos E., Ebmeier K.P., Filippini N., Mackay C.E., et al. Ica-based artefact removal and accelerated fmri acquisition for improved resting state network imaging. Neuroimage. 2014;95:232–247. doi: 10.1016/j.neuroimage.2014.03.034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Guo X., Liu X., Zhu E., Yin J. International Conference on Neural Information Processing. Springer; 2017. Deep clustering with convolutional autoencoders; pp. 373–382. [Google Scholar]
  33. Handwerker D.A., Roopchansingh V., Gonzalez-Castillo J., Bandettini P.A. Periodic changes in fMRI connectivity. Neuroimage. 2012;63(3):1712–1719. doi: 10.1016/j.neuroimage.2012.06.078. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. He C., Chen Y., Jian T., Chen H., Guo X., Wang J., Wu L., Chen H., Duan X. Dynamic functional connectivity analysis reveals decreased variability of the default-mode network in developing autistic brain. Autism Research. 2018;11(11):1479–1493. doi: 10.1002/aur.2020. [DOI] [PubMed] [Google Scholar]
  35. He L., Li H., Holland S.K., Yuan W., Altaye M., Parikh N.A. Early prediction of cognitive deficits in very preterm infants using functional connectome data in an artificial neural network framework. NeuroImage: Clinical. 2018;18:290–297. doi: 10.1016/j.nicl.2018.01.032. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Heinsfeld A.S., Franco A.R., Craddock R.C., Buchweitz A., Meneguzzi F. Identification of autism spectrum disorder using deep learning and the abide dataset. NeuroImage: Clinical. 2018;17:16–23. doi: 10.1016/j.nicl.2017.08.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Hindriks R., Adhikari M.H., Murayama Y., Ganzetti M., Mantini D., Logothetis N.K., Deco G. Can sliding-window correlations reveal dynamic functional connectivity in resting-state fMRI? Neuroimage. 2016;127:242–256. doi: 10.1016/j.neuroimage.2015.11.055. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Hutchison R.M., Morton J.B. Tracking the brain’s functional coupling dynamics over development. J. Neurosci. 2015;35(17):6849–6859. doi: 10.1523/JNEUROSCI.4638-14.2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Hutchison R.M., Womelsdorf T., Allen E.A., Bandettini P.A., Calhoun V.D., Corbetta M., Penna S.D., Duyn J.H., Glover G.H., Gonzalez-Castillo J., et al. Dynamic functional connectivity: promise, issues, and interpretations. Neuroimage. 2013;80:360–378. doi: 10.1016/j.neuroimage.2013.05.079. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Hyvarinen A. Fast and robust fixed-point algorithms for independent component analysis. IEEE Trans. Neural Networks. 1999;10(3):626–634. doi: 10.1109/72.761722. [DOI] [PubMed] [Google Scholar]
  41. Kam T.-E., Zhang H., Jiao Z., Shen D. Deep learning of static and dynamic brain functional networks for early MCI detection. IEEE Trans Med Imaging. 2019;39(2):478–487. doi: 10.1109/TMI.2019.2928790. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Karahanoğlu F.I., De Ville D.V. Transient brain activity disentangles fMRI resting-state dynamics in terms of spatially and temporally overlapping networks. Nat Commun. 2015;6(1):1–10. doi: 10.1038/ncomms8751. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Karahanoğlu F.I., De Ville D.V. Dynamics of large-scale fMRI networks: deconstruct brain activity to build better models of brain function. Current Opinion in Biomedical Engineering. 2017;3:28–36. [Google Scholar]
  44. Kim J., Criaud M., Cho S.S., Díez-Cirarda M., Mihaescu A., Coakeley S., Ghadery C., Valli M., Jacobs M.F., Houle S., et al. Abnormal intrinsic brain functional network dynamics in parkinson’s disease. Brain. 2017;140(11):2955–2967. doi: 10.1093/brain/awx233. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Kingma D.P., Ba J. Adam: a method for stochastic optimization. arXiv preprint arXiv:1412.6980. 2014 [Google Scholar]
  46. Kiviniemi V., Starck T., Remes J., Long X., Nikkinen J., Haapea M., Veijola J., Moilanen I., Isohanni M., Zang Y.-F., et al. Functional segmentation of the brain cortex using high model order group pica. Hum Brain Mapp. 2009;30(12):3865–3886. doi: 10.1002/hbm.20813. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Kriegel H.-P., Kröger P., Zimek A. Clustering high-dimensional data: a survey on subspace clustering, pattern-based clustering, and correlation clustering. ACM Transactions on Knowledge Discovery from Data (TKDD) 2009;3(1):1–58. [Google Scholar]
  48. Laumann T.O., Snyder A.Z., Mitra A., Gordon E.M., Gratton C., Adeyemo B., Gilmore A.W., Nelson S.M., Berg J.J., Greene D.J., et al. On the stability of bold fMRI correlations. Cerebral cortex. 2017;27(10):4719–4732. doi: 10.1093/cercor/bhw265. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Lehmann B.C., White S.R., Henson R.N., Geerligs L., et al. Assessing dynamic functional connectivity in heterogeneous samples. Neuroimage. 2017;157:635–647. doi: 10.1016/j.neuroimage.2017.05.065. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Leonardi N., De Ville D.V. On spurious and real fluctuations of dynamic functional connectivity during rest. Neuroimage. 2015;104:430–436. doi: 10.1016/j.neuroimage.2014.09.007. [DOI] [PubMed] [Google Scholar]
  51. Li Y., Zhu Y., Nguchu B.A., Wang Y., Wang H., Qiu B., Wang X. Dynamic functional connectivity reveals abnormal variability and hyper-connected pattern in autism spectrum disorder. Autism Research. 2020;13(2):230–243. doi: 10.1002/aur.2212. [DOI] [PubMed] [Google Scholar]
  52. Lin Y., Hou J., Yang D., Yan C., Kim M., Laurienti P.J., Wu G. Learning dynamic graph embeddings for accurate detection of cognitive state changes in functional brain networks. Neuroimage. 2021:117791. doi: 10.1016/j.neuroimage.2021.117791. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Lindquist M.A., Xu Y., Nebel M.B., Caffo B.S. Evaluating dynamic bivariate correlations in resting-state fMRI: a comparison study and a new approach. Neuroimage. 2014;101:531–546. doi: 10.1016/j.neuroimage.2014.06.052. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Lurie D.J., Kessler D., Bassett D.S., Betzel R.F., Breakspear M., Kheilholz S., Kucyi A., Liégeois R., Lindquist M.A., McIntosh A.R., et al. Questions and controversies in the study of time-varying functional connectivity in resting fMRI. Network Neurosci. 2020;4(1):30–69. doi: 10.1162/netn_a_00116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Matsui T., Murakami T., Ohki K. Neuronal origin of the temporal dynamics of spontaneous bold activity correlation. Cerebral Cortex. 2019;29(4):1496–1508. doi: 10.1093/cercor/bhy045. [DOI] [PubMed] [Google Scholar]
  56. McInnes L., Healy J., Melville J. Umap: uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426. 2018 [Google Scholar]
  57. Medaglia J.D., Lynall M.-E., Bassett D.S. Cognitive network neuroscience. J Cogn Neurosci. 2015;27(8):1471–1491. doi: 10.1162/jocn_a_00810. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Michel C.M., Koenig T. Eeg microstates as a tool for studying the temporal dynamics of whole-brain neuronal networks: a review. Neuroimage. 2018;180:577–593. doi: 10.1016/j.neuroimage.2017.11.062. [DOI] [PubMed] [Google Scholar]
  59. Mokhtari F., Akhlaghi M.I., Simpson S.L., Wu G., Laurienti P.J. Sliding window correlation analysis: modulating window shape for dynamic brain connectivity in resting state. Neuroimage. 2019;189:655–666. doi: 10.1016/j.neuroimage.2019.02.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Ou J., Xie L., Jin C., Li X., Zhu D., Jiang R., Chen Y., Zhang J., Li L., Liu T. Characterizing and differentiating brain state dynamics via hidden markov models. Brain Topogr. 2015;28(5):666–679. doi: 10.1007/s10548-014-0406-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Preti M.G., Bolton T.A., De Ville D.V. The dynamic functional connectome: state-of-the-art and perspectives. Neuroimage. 2017;160:41–54. doi: 10.1016/j.neuroimage.2016.12.061. [DOI] [PubMed] [Google Scholar]
  62. Quaak M., van de Mortel L., Thomas R.M., van Wingen G. Deep learning applications for the classification of psychiatric disorders using neuroimaging data: systematic review and meta-analysis. NeuroImage: Clinical. 2021;30:102584. doi: 10.1016/j.nicl.2021.102584. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Rabany L., Brocke S., Calhoun V.D., Pittman B., Corbera S., Wexler B.E., Bell M.D., Pelphrey K., Pearlson G.D., Assaf M. Dynamic functional connectivity in schizophrenia and autism spectrum disorder: convergence, divergence and classification. NeuroImage: Clinical. 2019;24:101966. doi: 10.1016/j.nicl.2019.101966. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Rashid B., Damaraju E., Pearlson G.D., Calhoun V.D. Dynamic connectivity states estimated from resting fMRI identify differences among schizophrenia, bipolar disorder, and healthy control subjects. Front Hum Neurosci. 2014;8:897. doi: 10.3389/fnhum.2014.00897. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Salimi-Khorshidi G., Douaud G., Beckmann C.F., Glasser M.F., Griffanti L., Smith S.M. Automatic denoising of functional MRI data: combining independent component analysis and hierarchical fusion of classifiers. Neuroimage. 2014;90:449–468. doi: 10.1016/j.neuroimage.2013.11.046. [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. Savva A.D., Kassinopoulos M., Smyrnis N., Matsopoulos G.K., Mitsis G.D. Effects of motion related outliers in dynamic functional connectivity using the sliding window method. J. Neurosci. Methods. 2020;330:108519. doi: 10.1016/j.jneumeth.2019.108519. [DOI] [PubMed] [Google Scholar]
  67. Schumacher J., Peraza L.R., Firbank M., Thomas A.J., Kaiser M., Gallagher P., O’Brien J.T., Blamire A.M., Taylor J.-P. Dynamic functional connectivity changes in dementia with lewy bodies and alzheimer’s disease. NeuroImage: Clinical. 2019;22:101812. doi: 10.1016/j.nicl.2019.101812. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Shakil S., Lee C.-H., Keilholz S.D. Evaluation of sliding window correlation performance for characterizing dynamic functional connectivity and brain states. Neuroimage. 2016;133:111–128. doi: 10.1016/j.neuroimage.2016.02.074. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Shen X., Tokoglu F., Papademetris X., Constable R.T. Groupwise whole-brain parcellation from resting-state fmri data for network node identification. Neuroimage. 2013;82:403–415. doi: 10.1016/j.neuroimage.2013.05.081. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Smith S.M., Beckmann C.F., Andersson J., Auerbach E.J., Bijsterbosch J., Douaud G., Duff E., Feinberg D.A., Griffanti L., Harms M.P., et al. Resting-state fmri in the human connectome project. Neuroimage. 2013;80:144–168. doi: 10.1016/j.neuroimage.2013.05.039. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Smith S.M., Hyvärinen A., Varoquaux G., Miller K.L., Beckmann C.F. Group-pca for very large fmri datasets. Neuroimage. 2014;101:738–749. doi: 10.1016/j.neuroimage.2014.07.051. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Smith S.M., Jenkinson M., Woolrich M.W., Beckmann C.F., Behrens T.E.J., Johansen-Berg H., Bannister P.R., De Luca M., Drobnjak I., Flitney D.E., et al. Advances in functional and structural MR image analysis and implementation as FSL. Neuroimage. 2004;23 doi: 10.1016/j.neuroimage.2004.07.051. [DOI] [PubMed] [Google Scholar]; S208–S219
  73. Smith S.M., Miller K.L., Salimi-Khorshidi G., Webster M., Beckmann C.F., Nichols T.E., Ramsey J.D., Woolrich M.W. Network modelling methods for fMRI. Neuroimage. 2011;54(2):875–891. doi: 10.1016/j.neuroimage.2010.08.063. [DOI] [PubMed] [Google Scholar]
  74. Su J., Shen H., Zeng L.-L., Qin J., Liu Z., Hu D. Heredity characteristics of schizophrenia shown by dynamic functional connectivity analysis of resting-state functional MRI scans of unaffected siblings. Neuroreport. 2016;27(11):843–848. doi: 10.1097/WNR.0000000000000622. [DOI] [PubMed] [Google Scholar]
  75. Suk H.-I., Wee C.-Y., Lee S.-W., Shen D. State-space model with deep learning for functional dynamics estimation in resting-state fMRI. Neuroimage. 2016;129:292–307. doi: 10.1016/j.neuroimage.2016.01.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Thompson W.H., Richter C.G., Plavén-Sigray P., Fransson P. Simulations to benchmark time-varying connectivity methods for fmri. PLoS Comput. Biol. 2018;14(5) doi: 10.1371/journal.pcbi.1006196. [DOI] [PMC free article] [PubMed] [Google Scholar]; E1006196
  77. Tzourio-Mazoyer N., Landeau B., Papathanassiou D., Crivello F., Etard O., Delcroix N., Mazoyer B., Joliot M. Automated anatomical labeling of activations in SPM using a macroscopic anatomical parcellation of the MNI MRI single-subject brain. Neuroimage. 2002;15(1):273–289. doi: 10.1006/nimg.2001.0978. [DOI] [PubMed] [Google Scholar]
  78. Varoquaux G., Gramfort A., Poline J.-B., Thirion B. Advances in Neural Information Processing Systems. 2010. Brain covariance selection: better individual functional connectivity models using population prior; pp. 2334–2342. [Google Scholar]
  79. Vieira S., Pinaya W.H., Mechelli A. Using deep learning to investigate the neuroimaging correlates of psychiatric and neurological disorders: methods and applications. Neuroscience & Biobehavioral Reviews. 2017;74:58–75. doi: 10.1016/j.neubiorev.2017.01.002. [DOI] [PubMed] [Google Scholar]
  80. Vincent P., Larochelle H., Bengio Y., Manzagol P.-A. Proceedings of the 25th International Conference on Machine Learning. 2008. Extracting and composing robust features with denoising autoencoders; pp. 1096–1103. [Google Scholar]
  81. Wang L., Li K., Hu X.P. Graph convolutional network for fmri analysis based on connectivity neighborhood. Network Neurosci. 2020:1–13. doi: 10.1162/netn_a_00171. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Xie J., Girshick R., Farhadi A. International conference on machine learning. 2016. Unsupervised deep embedding for clustering analysis; pp. 478–487. [Google Scholar]
  83. Xu H., Shen H., Wang L., Zhong Q., Lei Y., Yang L., Zeng L.-L., Zhou Z., Hu D., Yang Z. Impact of 36 h of total sleep deprivation on resting-state dynamic functional connectivity. Brain Res. 2018;1688:22–32. doi: 10.1016/j.brainres.2017.11.011. [DOI] [PubMed] [Google Scholar]
  84. Yang Z., Craddock R.C., Margulies D.S., Yan C.-G., Milham M.P. Common intrinsic connectivity states among posteromedial cortex subdivisions: insights from analysis of temporal dynamics. Neuroimage. 2014;93:124–137. doi: 10.1016/j.neuroimage.2014.02.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  85. Zhang Y., Tetrel L., Thirion B., Bellec P. Functional annotation of human cognitive states using deep graph convolution. Neuroimage. 2021;231:117847. doi: 10.1016/j.neuroimage.2021.117847. [DOI] [PubMed] [Google Scholar]
  86. Zhou Z., Cai B., Zhang G., Zhang A., Calhoun V.D., Wang Y.-P. Prediction and classification of sleep quality based on phase synchronization related whole-brain dynamic connectivity using resting state fmri. Neuroimage. 2020;221:117190. doi: 10.1016/j.neuroimage.2020.117190. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Supplementary Data S1

Supplementary Raw Research Data. This is open data under the CC BY license http://creativecommons.org/licenses/by/4.0/

mmc1.pdf (21.5MB, pdf)

Data Availability Statement

Real-world fMRI data were obtained from the Human Connectome Project (Essen et al., 2013) (https://www.humanconnectome.org). The SimTB model (Erhardt et al., 2012) used to generate synthetic data was obtained from https://trendscenter.org/software/simtb/. The code used in this study is publicly available at https://github.com/apcspencer/dFC_DimReduction.

RESOURCES