Open Access

Comparison method for community detection on brain networks from neuroimaging data

Applied Network Science20161:8

Received: 14 March 2016

Accepted: 12 June 2016

Published: 16 August 2016


The brain is a complex system consisting of regions dedicated to different brain functions, and higher cognitive functions are realized via information flow between distant brain areas communicating with each other. As such, it is natural to shift towards brain network analysis from mapping of brain functions, for deeper understanding of the brain system. The graph theoretical network metrics measure global or local properties of network topology, but they do not provide any information about the intermediate scale of the network. Community structure analysis is a useful approach to investigate the mesoscale organization of brain network. However, the community detection schemes are yet to be established.

In this paper, we propose a method to compare different community detection schemes for neuroimaging data from multiple subjects. To the best of our knowledge, our method is the first attempt to evaluate community detection from multiple-subject data without “ground truth” community and any assumptions about the original network features. To show its feasibility, three community detection algorithms and three different brain atlases were examined using resting-state fMRI functional networks. As it is crucial to find a single group-based community structure as a representative for a group of subjects to allow discussion about brain areas and connections in different conditions on common ground, a number of community detection schemes based on different approaches have been proposed. A non-parametric permutation test on similarity between group-based community structures and individual community structures was used to determine which algorithm or atlas provided the best representative structure of the group. The Normalized Mutual Information (NMI) was computed to measure the similarity between the community structures. We also discuss further issues on community detection using the proposed method.


Brain network Community detection “Ground truth” Permutation test Normalized Mutual Information (NMI) Multiple-subject data Functional Magnetic Resonance Imaging (fMRI) Brain atlases


Recent development in neuroimaging devices such as magnetic resonance imaging (MRI) and electroencephalography (EEG) enable us to record human brain activity with high temporal and spatial resolutions. As the brain is known as a complex network consisting of distributed brain areas dedicated to different functions, it is natural to shift towards brain network analysis from brain mapping to understand the functional integration in the brain (Friston 2011). Additionally, the development in computational methods has facilitated studies on brain networks using big data. Brain connectome is a promising approach, employing complex network analysis based on graph theory for investigating topological architecture of the brain network (Sporns 2013).

For better understanding of the relationship between brain regions and their topological roles in the brain network, network analysis has been applied to structural and functional brain networks derived from neuroimaging data to quantify the topological characteristics of the network using graph theoretical network metrics such as clustering coefficient, shortest path length, small-worldness, and node centrality (Rubinov and Sporns 2010). Although these metrics provide useful information regarding global and local properties of the brain network, they do not provide any information about the intermediate scale of the network. As such, community detection techniques have been used to investigate the mesoscale network organization (Meunier et al. 2010).

The community structure analysis is one of the most important field of complex networks as networks in nature often show hierarchical, modular organization (Fortunato 2010; Fortunato and Castellano 2012; A. Lancichinetti and Fortunato 2009; M. E. J. Newman 2012). Communities or clusters are usually regarded as subgraphs of a network, with dense connections within the subgraphs, that are weakly linked each other. To identify community structure of networks, a variety of community detection algorithms have been proposed, and have been applied to various networks, e.g., metabolic networks (Guimera and Nunes Amaral 2005), citation networks (Rosvall and Bergstrom 2008), co-authorship network (Luzar et al. 2014), and Twitter network (Beguerisse-Diaz et al. 2014). However, there are no established schemes to perform the community structure analysis on the neuroimaging data. For the neuroimaging data, it is of great importance to find a representative, group-based community structure for a group of subject to have discussions about brain states in different conditions on common ground. Although a number of approaches for finding a consensus cluster have been proposed (Dong et al. 2014; Kumar et al. 2011; Ozdemir et al. 2015; Strehl and Ghosh 2003; Tang et al. 2009), not only the community detection algorithms, but also pre-processing of data and methods for construction of networks influence the results. Additionally, although community detection algorithms are usually evaluated by comparing detected communities with “ground truth” communities, which are often provided independently of topological properties of networks as node metadata (Hric et al. 2014), such “ground truth” community is unknown or is no use for studies on neuroimaging data. Rather than comparing the obtained community with a priori metadata communities, it would be more important to identify a common group-based community structure representative of individual structures. Furthermore, community detection algorithms identify community structure, which are substantially different from metadata groups classified with non-topological features of nodes, particularly for large networks (Hric et al. 2014). As such, comparison methods for community detection schemes independent of “ground truth” community would be required to establish the scheme for community structure analysis on neuroimaging data.

In this study, we propose a method to compare different community structure analysis approaches for multiple-subject data in terms of the agreement of a group-based community structure with individual community structures (de Souza et al. 2015). In the proposed method, a non-parametric permutation test is used to examine which community structure shows a greater agreement with individual structures. The group-based community structure is compared with each individual community structure, and the number of subjects showing greater similarity with the group-based community is examined, instead of averaged values, which has been used for finding the best partition of networks (Strehl and Ghosh 2003) or selecting a representative among individual structures (Meunier et al. 2009b). To quantify similarity between community structures, Normalized Mutual Information (NMI) (Fortunato 2010; Kuncheva and Hadjitodorov 2004) is computed for every pair of the group-based community and individual communities. A lot of measures for comparing different community structures other than NMI have been proposed (Fortunato 2010; Lancichinetti et al. 2009; Meilă 2007), and can be used instead of NMI, depending on the presumptions about the networks and the communities.

To show the feasibility of the method for comparing different community detection approaches, three different community detection algorithms for multiple subjects (i.e., the “virtual-typical-subject” (VTS), the “individual structure” (IS) and the “group analysis” (GA) approaches are compared. In the VTS or consensus averaging approach, we suppose that group averaged data reflect a typical pattern of the data, ignoring inter-subject variability. In the IS approach, a community detection algorithm is applied to each individual network and a single group-based community is extracted from the obtained individual communities. The problem to find a consensus cluster from multiple known clusters without accessing the original features has been known as clustering ensembles or multiple graph clustering, and has been studied intensively (Dong et al. 2014; Kumar et al. 2011; Strehl and Ghosh 2003; Tang et al. 2009). As it is requisite to detect individual communities before obtaining a group-based community, the IS approach is usually computationally expensive. To overcome the problems with VTS and IS approaches, a GA method, in which a common modularity function from multiple subjects is optimized while searching for a common group-based community directly from individual networks, was proposed (Y. Liu et al. 2014). As this approach does not require obtaining individual community structures, it is computationally less expensive than the IS approach. The Liu’s method was tested on simulated EEG networks with predefined “ground truth” community structure, outperforming the VTS approach, and was applied to real EEG data to use the obtained community structure for investigating inter- and intra-cluster information flow (Liu et al. 2014). However, the method is yet to be evaluated with actual neuroimaging data. Ozdemir and colleagues have also proposed a GA-based community detection algorithm and compared it with the VTS approach and several algorithms following the IS approach without “ground truth”, in terms of the agreement between the common community structure and each subject’s connectivity graph on the assumption that rank distribution of inter- and intra-cluster connection strengths are indicative of quality of a cluster (Ozdemir et al. 2015). Differently from their approach, our comparison method examines the agreement of the common community structure with individual community structures without any assumptions about the original network features.

In addition to the algorithms for community detection, node definition in network graphs is of great importance in community structure analysis. For graph theoretical analysis on neuroimaging data, brain networks are usually constructed by dividing whole brain volume into brain regions, which are defined anatomically, functionally or based on connectivity. However, different brain atlases can be mutually inconsistent and produce different results (Stanley et al. 2013). Also, as the number of nodes defined by brain atlases increases, the computational costs for community detection get more expensive. Although voxels can also be regarded as nodes of a brain network graph, it is often too fine for the problem under investigation and computationally too expensive. To show that the proposed method can be employed to compare different brain atlases for parcellation, three brain atlases, which are popular and easily obtainable, were examined.

We demonstrate that the proposed method based on the permutation test and NMI would be a powerful tool for assessing different community detection algorithms and different brain atlases in terms of the agreement of a group-based community structure with individual structures, without “ground truth” metadata and accessing the original network features. Undirected, weighted network graphs derived from resting-state fMRI data were used for the community structure analysis. We would like to emphasize that the goal of this paper is not to find the best scheme for the community structure analysis on neuroimaging data from a vast number of possible combinations of the methods, but to provide a tool to assess different schemes. Although the methods based on the popular Louvian algorithm (Blondel et al. 2008) were used for the all of the approaches examined in this study, the other algorithms such as Informap (Rosvall and Bergstrom 2008) or NetExplorer (Massaro et al. 2012) have been compared for cat and macaque cortical networks (Gronchi et al. 2014) and could outperform the Louvian method for the fMRI functional networks as well.


For each subject, network graph is constructed from resting-state fMRI data. Then, a single group-based community structure is detected from multiple-subject data and is compared with individual community structures using Normalized Mutual Information (NMI). The obtained NMI values are subjected to a permutation test to determine the algorithm or the atlas that provided the best representative of the group. The processing step is depicted in Fig. 1 and its details are given in the subsequent subsections.
Fig. 1

The processing steps of the community detection analysis. For each subject, resting-state fMRI data were acquired (a) and parcellated into ROIs with a brain atlas (AAL, HOA or Dosenbach atlas) (b) to get time-series data of brain activity (c). A correlation matrix was obtained from the time-series data (d) and a network graph was represented by a connectivity matrix thresholded at a density level (e). Then, a group-based community structure was detected with a community detection algorithm (VTS, IS or GA approach) (f). To compare the group-based structure with individual structures, Normalized Mutual Information (NMI) was computed for every pair of the group-based and individual communities (g). The individual communities were detected with Louvian algorithm. The obtained NMI values were subjected to the permutation test to determine which algorithm or atlas provided the best representative of the group


Twenty healthy volunteers (12 female, age: 23.1 ± 3.1 years) took part in the study. All subjects gave written consent to participate in the experiment, and underwent two sessions of fMRI scanning. One out of the two sessions is used and reported in this article. Each subject was reimbursed in compensation for his effort and time. The protocol of the study was approved by the National University of Singapore Institutional Ethical Review Board.

All subjects were right-handed according to the Edinburg Handedness Inventory, and had normal or corrected-to-normal vision. Pre-screening via a short telephone interview was performed to ensure that they had no history of psychological and physical disorders, no poor eyesight, and no metal implants in their body. The subjects were requested to have at least eight hours of sleep for the two nights before the recording, and not to take any caffeine or alcohol for twenty-four hours preceding the study.

Experimental design

In this study, we used the resting-state functional network to examine agreement of the community structure detected with different community detection techniques or different parcellation techniques. During the resting-state runs, a white fixation cross was presented in the center of the screen, which was projected onto the mirror inside the scanner. The subject was lying calmly on his back with eyes open. The subjects were requested not to move inside the scanner as much as possible. Each run lasted for a period of 5 min and 26 s. Thus, the total number of scans was 163 for each run.

fMRI data acquisition

All subjects were scanned with a Siemens 3 T Prisma scanner (Siemens, Erlangen, Germany) at the A*STAR-NUS Clinical Imaging Research Centre in the medical school of the National University of Singapore. Functional scans with echo planar imaging (EPI) were acquired using the following parameters: number of slices = 33 (interleaved); slice thickness = 3.5 mm; inter-slice gap = 0.70 mm; matrix size = 74 × 74; flip angle = 90°; repetition time (TR) = 2000 ms; echo time = 30 ms; and in-plane resolution = 3.0 mm. A high-resolution (1.0 × 1.0 × 1.0 mm3) sagittal T1-weighted MP-RAGE image was acquired for registration and normalization of functional data to standard brain.

fMRI data preprocessing

Functional MRI data were preprocessed using FSL ( The functional images were motion corrected, corrected for slice timing, and normalized for intensity. If head motion, which was estimated with the head motion correction algorithm, exceeded 3 mm in translation or 3° in rotation, the motion was regarded as excessive, and the data were to be discarded; however, no data met these criteria. The high-resolution anatomical T1-weighted images were registered to MNI standard space to normalize individual data to the standard space. Average cerebrospinal fluid (CSF) and white matter signals were regressed out with the general linear model (GLM) and the residual signals were used for the subsequent analysis.

Network construction

To compare different community detection algorithms on multiple-subject data and different brain atlases for parcellation, we constructed functional connectivity maps based on correlation matrices for each subject. Firstly, time series of blood-oxygen-level dependent (BOLD) signal were extracted from the functional data normalized to the standard brain for the regions of interest (ROIs) defined in different brain atlases. The automated anatomical labeling atlas (AAL-90; 90 ROIs) (Tzourio-Mazoyer et al. 2002), Harvard-Oxford probabilistic atlas (HOA; 112 ROIs) (Kennedy et al. 1998; Makris et al. 1999) and Dosenbach atlas (160 ROIs) (Dosenbach et al. 2010) were examined. For HOA atlas, the probability threshold of 25 % was used. The extracted signals were averaged over voxels within each ROI, resulting in 90–160 sets of time-series data, depending on the atlas. The first four volumes of each series were discarded, following which each signal was up-sampled to 1 Hz, band-pass filtered (0.01-0.1 Hz), and down-sampled to 0.5 Hz.

To obtain functional connectivity strength between each node, linear correlation coefficients were calculated for the pre-processed fMRI signals. The correlation coefficients were obtained for all possible pairs of ROIs to construct a correlation matrix M. The size of the matrices M was different depending on the atlas for parcellation. A Fisher’s-Z transformation was applied to each matrix M to improve the normality of the correlation coefficients. As density of connections would influence on partitioning of the network into communities, the obtained functional connectivity matrices were thresholded at density levels of 1–50 % to examine the effects, where higher density level corresponds to denser network. The obtained weighted, undirected graphs were subjected to community detection.

Community detection based on modularity

Communities or modules are defined as subgroups of densely interconnected nodes in a network (M. E. Newman and Girvan 2004; Radicchi et al. 2004). In this study, we compared different approaches for partitioning networks into communities, i.e., the VTS (Meunier et al. 2009a), the IS (Meunier et al. 2009b) and the GA approaches (Y. Liu et al. 2014). Different brain atlases for parcellation were also compared. All of the examined algorithms for community detection in this study were based on the Louvain algorithm, a fast and relatively accurate algorithm, which maximizes modularity of the community (Blondel et al. 2008). The results of modular decomposition can vary every time the algorithm is executed due to its heuristic nature, but the variation of modularity over the execution was considered to be negligible (Blondel et al. 2008). Therefore, the community detection was performed one hundred times for each connection matrix, and a single modular structure yielding the highest modularity was selected as a representative for subsequent assessment of community structure (Han et al. 2014). Although the highest Qs could be observed at several iterations, all community structures showing the highest Q were identical for all atlases and all community detection techniques, suggesting reliability of the methods. The community structures were obtained independently at each density level.

For the VTS approach, the community structure of the brain functional network was generated using the averaged connection matrices across subjects (Meunier et al. 2009a; Robinson et al. 2015; Sun et al. 2014). The averaged matrices were thresholded at density levels of 1–50 %. In the Louvain algorithm, the partitioning of the network nodes into communities is completed by maximizing modularity index Q, which represents the density of links inside communities compared to links between communities (Blondel et al. 2008), where the definition of modularity index Q is given in Appendix 1. For the network with strong community structure, the modularity index typically falls in the range from 0.3 to 0.7 (M. E. Newman and Girvan 2004). The modularity indices and the number of modules were also obtained for fifty different density levels from 1 % to 50 % at the interval of 1 %.

For the IS approach, individual community structures were first detected for all subjects using the Louvain algorithm. Then, Normalized Mutual Information (NMI), which quantifies similarity between two community structures, was calculated for every possible pair of subjects. The detailed calculation about the NMI is given below. The obtained NMI values were averaged for each subject, and the community structure of the subject showing the highest averaged NMI value was selected as the representative (Meunier et al. 2009b).

For the GA approach, a single community structure was detected using individual connection matrices with the algorithm proposed by Liu and colleagues (Y. Liu et al. 2014), an extension of Blondel’s algorithm maximizing the modularity of individual community structures. In this algorithm, the change of modularity was calculated for all subjects excluding outliers, and the change of community structure showing the maximum change of modularity averaged over the subjects is selected at each step of the greedy algorithm to find a community structure showing highest modularity among subjects. In this study, we excluded subjects whose modularity change was outside the 25th and 75th percentiles.

To compare the different community detection algorithms and the different brain atlases for parcellation, we extracted three group-based community structures using three different approaches (VTS, IS and GA) and twenty individual community structures with the Blondel’s algorithm. The group-based and individual community structures were obtained for three different brain atlases (AAL, HOA and Dosenbach atlases).

In-house scripts on MATLAB (version R2011b, Mathworks, USA) were used for network analysis. The flowchart of the fMRI data analysis is depicted in Fig. 1.

Agreement with individual community structures

To assess the three community detection techniques, using the different brain atlases for parcellation, we propose to examine the similarity between a group-based community and individual community structures with a non-parametric permutation test. The similarity between two community structures is quantified by the Normalized Mutual Information (NMI) (Alexander-Bloch et al. 2012; Kuncheva and Hadjitodorov 2004; Strehl and Ghosh 2003), which is one of the most popular, similarity measure based on information theory. The definition of NMI is given in Appendix 2. The basic idea behind the theory is that, if two communities are similar, less information is necessary to infer one from the other community structure (Fortunato 2010). The confusion matrix, which represents overlap between communities, is useful for understanding the concept of NMI (Kuncheva and Hadjitodorov 2004). If the overlap between communities represented, i.e., the number of nodes belonging to the same community, is high, NMI gets high. The calculation of NMI through confusion matrix is depicted in Fig. 2.
Fig. 2

An illustration of calculation of Normalized Mutual Information (NMI) quantifying similarity between two community structures. Colors of the nodes represent assigned community and red circles indicate overlaps in communities. Confusion matrix is used to measure the overlap between the two community structures. In the above figure, Community C1 in Network A corresponds to Community C2 in Network B. The NMI is calculated with the confusion matrix, and gets high when the overlap between the communities is high

The NMI was calculated for every pair of the group-based community structure (VTS, IS and GA) and the individual community structure (20 subjects) at each density level for three brain atlases (AAL, HOA and Dosenbach). The obtained NMI values were subjected to a non-parametric permutation test in order to examine agreement of group-based community structure with individual community structures. For the comparison of the NMI values, it is examined whether the number of subjects showing higher MNI value for one approach was greater than the other approach. In the permutation test, 10,000 iterations were executed for each density level per subject. To correct for multiple testing, the false discovery rate (FDR) was controlled at the significance level of 5 % (Benjamini and Yekutieli 2001). For comparison, a permutation test on averaged NMI values was also performed.

Permutation tests on modularity indices

To compare the modularity index of the intrinsic functional network for different approaches, we used a permutation test with 10,000 iterations for each density level per subject. For modularity indices, we recalculated the modularity indices using the group-based community structure detected with VTS, IS and GA approaches and the individual connection matrices. Please note that the modularity indices used for the statistical tests were different from those used during the community detection. To correct for multiple testing, the false discovery rate (FDR) was controlled at the significance level of 5 % (Benjamini and Yekutieli 2001).

Consistency in community structures within iterations

To overcome the heuristic nature of the algorithms for community detection, the partition of the network was performed 100 times and a community showing the highest modularity was selected as a representative. However, this approach can be applied only to networks with relatively small number of nodes (90–160 parcellated regions in this study). For larger networks, it is too time-consuming to repeat the calculation multiple times.

In order to grasp the nature of the community detection algorithms, the obtained 100 community structures were investigated. For each atlas, group-based communities detected with VTS and GA algorithms were compared. At each density level, NMI values between a group-based community and 20 individual communities were calculated for 100 communities. The obtained NMI values were first averaged over subjects. Then, the averaged NMI values across iterations and standard deviation of the values were calculated to investigate consistency in community structure within iterations in terms of agreement with individual community structures. Additionally, in order to explore similarity between detected community structures within 100 iterations, NMI values were calculated for all possible pairs of the detected 100 communities.


Modularity and the number of communities

We first compared the global properties of the community structure: the modularity Q and the number of communities. Figure 3 shows the recalculated modularity indices averaged over subjects while Fig. 4 shows the number of communities of the group-based community structures. The modularity indices and the number of communities for individual community structures are also shown in these figures. As can be seen in Figs. 3 and 4, the modularity indices and the number of communities decreased as the density level increased. Generally, the averaged modularity indices were higher for VTS and GA compared to IS approach while VTS and GA approaches produced the group-based communities with almost the same modularity at every density level in all atlases. As expected, the averaged modularity index of individual community structure was highest for all atlases as Louvian algorithm looks for the community structure showing the highest modularity. For the number of communities, IS approach tended to detect more communities while GA approach tended to detect fewer communities. VTS approach lay in the middle.
Fig. 3

Averaged modularity indices Qs were better for VTS and GA, compared with IS approach. Three rows of symbols on the top of each figure show significant difference (p < 0.05, FDR-corrected) for the comparison of VTS-IS, VTS-GA and IS-GA. Blue asterisks, green Xs and red crosses indicate significant higher Q values for VTS, IS and GA respectively. Error bars indicate SEMs

Fig. 4

IS approach tended to identify more communities, while GA approach detected the least. Error bars indicate SEMs

Permutation tests on modularity indices showed that both VTS and GA approaches communities with higher modularity indices compared to IS approach at every density level. When comparing VTS and GA, GA approach produced community with higher modularity at a number of density levels (AAL: 1–4, 10 %, HOA: 1–5, 9, 34, 39–42, 44–45 %, Dosenbach: 1–4 %) while no community detected with VTS approach showed higher modularity than GA.

Agreement with individual community structures

To compare different community detection algorithms and brain atlases for parcellation, we examined the agreement of the group-based community structure with the individual community structures. To quantify the similarity of the group-based community structure with the individual community structures, we computed NMI values between the group-based and the individual community structures for each approach. Figure 5 shows the averaged NMI values between the group-based community, partitioned with different community detection techniques, and individual communities for each brain atlas while Fig. 6 shows the averaged NMI values between the group-based community for different brain atlases and individual communities plotted for each community detection approach. As shown in these figures, the agreement with individual community structures decreased as the density level increased, suggesting that it is harder to find a single common community structure as the density of the network increases.
Fig. 5

Averaged NMI between group-based consensus community structure and individual community structures are shown for different community detection methods. VTS and GA approaches identified better consensus community structures in terms of the agreement of group-based community structure with individual community structures. Three rows of symbols on the top of each figure show significant difference (p < 0.05, FDR-corrected) for the comparison of VTS-IS, VTS-GA and IS-GA, using the proposed method. Blue asterisks, green Xs and red crosses indicate significant higher NMI values for VTS, IS and GA respectively. Error bars indicate SEMs

Fig. 6

Averaged NMI between group-based consensus community structure and individual community structures are plotted for different brain atlases. AAL and HOA atlases tended to produce better consensus community structures, compared to Dosenbach atlas in terms of the agreement of group-based community structures with individual community structures. Three rows of symbols on the top of each figure show significant difference (p < 0.05, FDR-corrected) for the comparison of AAL-HOA, AAL-Dosenbach and HOA-Dosenbach. Blue asterisks, green Xs and red crosses indicate significantly higher NMI values for AAL, HOA and Dosenbach atlas respectively. Error bars indicate SEMs

When comparing the different community detection approaches, a small difference existed in averaged NMI values between them. The GA approach tended to show lower NMI values for sparser networks, as shown in Fig. 5. In order to get a clearer picture of which method was superior to the other, we carried out a non-parametric permutation test on the number of subjects showing higher NMI value between the compared methods. The permutation test demonstrated significant differences at a number of density levels. In comparison to IS, VTS produced communities with greater number of subjects showing higher NMI values at density levels of 2, 9–50 % in AAL, 1, 3, 6–14, 15–50 % in HOA, and 2–40, 44–45, 47, 50 % in Dosenbach atlases. When comparing VTS with GA, VTS tended to show higher agreement with individual community structures at lower density levels (AAL: 1–6, 10–11, 17, 29, 31, 38 %; HOA: 1–9, 18–24, 26, 33 %; Dosenbach: 1–13, 17–19, 21–25, 27, 29, 31, 33, 35–36, 38 %) while GA tended to show higher agreement at higher density levels (AAL: 12–13, 32, 40, 44 %; HOA: 10, 34–38, 40–47, 49 %; Dosenbach: 40–42, 46–49 %). In the comparison of IS with GA, IS tended to show higher agreement at lower density levels (AAL: 2–6 %; HOA: 2–6 %; Dosenbach: 1–7 %) while GA tended to show higher agreement at higher density levels (AAL: 11–50 %; HOA: 7–14, 16–50 %; Dosenbach: 12–21, 25–30, 32, 34, 37, 40, 42–50 %).

The proposed test can be applied for the comparison between brain atlases used for parcellation. As shown in Fig. 6, Dosenbach atlas showed lower agreement with individual community structures than both AAL and HOA at every density level, which was further confirmed with the permutation tests (p < 0.05, FDR-corrected). In comparison of AAL with HOA, AAL showed higher agreement at a number of density levels (VTS: 1–2 %; IS: 1, 3, 7, 23, 28–29, 32 %; GA: 3–4 %) while HOA showed higher agreement at a density level of 10 % for GA.

When averaged NMI values were tested, the permutation test was less sensitive compared to that on the number of subjects. For example, VTS-IS comparisons showed no significant difference for AAL and Dosenbach atlases probably due to large variability in the IS algorithm. Even for the other comparisons, the permutation tests on averaged NMI values showed less sensitivity to the difference between algorithms or atlases in general. These results indicate that the permutation test on the averaged NMI values is more sensitive to outliers.

Similarity between group-based community structures

To investigate similarities between group-based community structures detected with different community detection algorithms, NMI values between group-based communities were calculated as shown in Fig. 7. As can be seen in the figure, NMI values between VTS and GA approaches fluctuated around relatively higher values (0.8–0.9) suggesting that the VTS and the GA tended to produce relatively similar community structures. On the other hand, NMI for VTS-IS and IS-GA were very low particularly for higher density levels, suggesting that the IS approach produced very different community structures from the other approaches.
Fig. 7

NMI between group-based community structures detected with different approaches are shown. VTS and GA approaches tended to produce similar group-based community structures regardless of brain atlases, while IS approach identified quite different ones

Consistency in community structures within iterations

To investigate consistency in community structures within iterations of community detection, the averaged NMI values and the standard deviations of the values over iterations were represented in Fig. 8. As seen in the figure, the variability of the averaged NMI values over iterations was very small at every density level for both VTS and GA regardless of the brain atlas. These results indicate that both community detection algorithms produce consistent communities at every iteration in terms of agreement with individual community structures, suggesting that even a single execution of the community detection can produce a group-based community with comparable quality.
Fig. 8

Averages and standard deviations of NMI between group-based and individual community structures over 100 iterations of community detection are shown. Variability in the agreement of the obtained consensus communities with the individual structures was very small in both approaches

Similarity of the obtained community structures within 100 iterations was also explored as shown in Fig. 9. Generally, VTS produced communities with higher resemblance for sparser networks, but the similarity became lower for denser networks. On the other hand, GA produced relatively consistent results at every density level, except at lower density levels for Dosenbach atlas.
Fig. 9

Averages of NMI between every pair of obtained community structures within 100 iterations are shown. VTS approach tended to identify similar group-based communities at lower density levels while GA tended to produce similar group-based communities at higher density levels. Error bars indicate SDs


In summary, comparing between community detection algorithms, the VTS and the GA approaches detected community structures with greater agreement with individual community structures, as compared to the IS approach (Fig. 5). When comparing the representative group-based communities detected with the different algorithms, the VTS and the GA approaches produced relatively similar results while the IS approach detected very different community structures particularly at higher density levels (Fig. 7). Additionally, the VTS approach tended to produce better results at relatively lower density levels (Fig. 8) while the GA approach produced stable results regardless of the density levels (Fig. 9). When comparing brain atlases for used parcellation, AAL and HOA atlases were comparable while Dosenbach atlas produced surprisingly worse results than the other atlases (Fig. 6).


In this study, we proposed the method to compare different schemes for community detection from multiple-subject neuroimaging data to determine which algorithm or atlas produce the best representative community structure of the group. To the best of our knowledge, this is the first attempt to assess community structure schemes for multiple-subject data.

We showed that our method was feasible to real data: brain functional networks derived from resting-state fMRI data. For this purpose, three community detection algorithms based on different approaches (i.e., VTS, IS and GA), and three brain atlases (i.e., AAL, HOA and Dosenbach atlases) used in parcellation were examined. In our method, the Normalized Mutual Information (NMI) was calculated between a group-based community and each individual community. The obtained NMI values were subjected to the permutation test to examine whether there was a significant difference in the number of subjects showing a greater NMI value for either of the approaches examined. Our method showed significant differences between community detection schemes even when no significant difference was found on averaged NMI, suggesting that our method was more sensitive to the difference in NMI values between algorithms or those between atlases.

Our results indicate that the VTS approach, using the averaged connection matrix as the representative, can produce surprisingly good results. For the VTS approach, group-based connectivity pattern can be obtained using more sophisticated method rather than just averaging such as the modified PCFDR algorithm based on a multi-subject, error-rate-controlled brain connectivity modeling approach (Liu et al. 2012), which could result in better results. As the GA and the IS approaches are computationally more expensive, the VTS approach proved to be a relatively good choice. However, please note that our results are limited to the particular algorithms and dataset that we examined. Although it is inconsistent with the result showing higher accuracy of the GA approach in community detection compared to the VTS approach for EEG simulated data (Y. Liu et al. 2014), there are several potential reasons for this, e.g., difference in data modality (fMRI vs. EEG), temporal resolution of signals and spatial distribution of sensors. Also, a more elaborate version of the IS approach could produce communities with higher agreement with individual structures. Although, in the IS algorithm that we examined, a community showing the highest average NMI value was selected as a representative, other algorithms following the IS approach can be implemented by integrating individual structures with averaging or voting/consensus algorithms (Strehl and Ghosh 2003).

In the Dosenbach atlas that showed the worst result, 160 ROIs are identified functionally and are defined as spheres centered at peaks identified with meta-analyses (Dosenbach et al. 2010) while the ROIs are defined anatomically in AAL and HOA atlases. Therefore, the functional distinctiveness of ROIs may be too prominent in Dosenbach atlas and thus resulted in poorer clustering of ROIs in community detection. Other community detection algorithms and brain atlases are to be investigated.

In addition to the quality of the obtained common community, the scalability of different methods must be considered to determine the scheme for community structure analysis on neuroimaging data. First, although we used a greedy Louvain algorithm, which tries to maximize modularity, for community detection, there are a variety of algorithms based on different approximation methods as the community detection or clustering is NP-hard (Fortunato 2010). Second, the VTS, the IS and the GA approach are also different in scalability. Generally, the VTS approach requires the least computation as the community detection is performed on an averaged network. Thus, it depends only on the community detection algorithm. The IS approach requires to obtain individual community structures, indicating that the computational time depends on the number of individual networks. However, if the individual communities are already given or necessary for other purposes, the relative costs could be comparable with the VTS approach. The GA approach lies between the VTS and the IS approaches. Furthermore, the network size, i.e., the number of nodes, is crucial although the computational time could be less important compared with social or biological networks whose network size is usually much larger than that of brain networks. In case of fMRI brain network, the number of nodes depends on the choice of brain atlas. Practically, the computational time is almost negligible for the AAL atlas whose node number is 90, but much longer for the Dosenbach atlas or other atlases such as Cradock atlas consisting of 200 ROIs (Craddock et al. 2012).

There are further several issues to be addressed for community detection on neuroimaging data. Although the community detection is a promising approach for studying mesoscale organization of brain network because of its well-established modular architecture, there are no established schemes for the employment of the community detection analysis on neuroimaging data obtained from multiple subjects. Currently, there are two approaches to investigate the modular organization of the brain network. Firstly, a single group-based community structure is obtained with a community detection technique based on any one of the virtual-typical-subject (VTS), the individual structure (IS), or the group analysis (GA) approach because a single community structure common among individual subjects is necessary to discuss about brain regions and connections on common ground. Secondary, quantitative metrics measuring global properties of community structure, such as modularity index or the number of communities, are computed based on individual community structure and discussed (Bassett et al. 2011). In either case, the community structure analysis is not used effectively, demanding more sophisticated approaches to neuroimaging data. In addition, although there are several options for partitioning brain networks into communities and for dividing whole brain into regions or nodes, there exists no established scheme for obtaining community structures. Further studies would be necessary to investigate effects of different scheme on community structure analysis.

In this study, we proposed a method using the permutation test on Normalized Mutual Information to compare different community detection approaches to neuroimaging data from multiple subjects. Using the real fMRI data, we demonstrated that our method is feasible for comparing different community detection algorithms and different brain atlases for parcellation. The results showed that the algorithms based on VTS and GA approaches are comparable and detected a group-based community structure showing greater agreement with the individual community structures compared to IS approach, and anatomically defined AAL and HOA atlases are more appropriate than functionally defined Dosenbach atlas for community structure analysis. Our method would be a useful tool to evaluate different approaches for detecting a group-based community structure from multiple-subject data in terms of the agreement with individual community structures.

Availability of data and materials

The brain network data used in this study are available at "". Please refer to Methods in this article for the details about the datasets.



automated anatomical labeling


blood-oxygen-level dependent


cerebrospinal fluid




echo planar imaging


false discovery rate


functional Magnetic Resonance Imaging


group analysis


general linear model


Harvard-Oxford Atlas


individual structure


Normalized Mutual Information


region of interest


virtual-typical subject



The authors would like to thank Dr. Yu Sun and Dr. Julian Lim for the design of the experiment, and Mr. Kian Foong Wong for the data collection.


This research was conducted at the Cognitive Engineering Group at the Singapore Institute for Neurotechnology (SINAPSE), supported by the National University of Singapore under the grant number R-719-001-102-232 and by the DSO under the grant number R-719-000-012-592.

Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Authors’ Affiliations

Singapore Institute for Neurotechnology (SINAPSE), Centre for Life Sciences, National University of Singapore
Institute of High Performance Computing (IHPC), Agency for Science, Technology and Research (A*STAR)
Department of Electrical & Computer Engineering, National University of Singapore
Department of Biomedical Engineering, National University of Singapore
Department of Biomedical Engineering, Johns Hopkins University
School of Medicine, University of Patras


  1. Alexander-Bloch A, Lambiotte R, Roberts B, Giedd J, Gogtay N, Bullmore E (2012) The discovery of population differences in network community structure: new methods and applications to brain functional networks in schizophrenia. NeuroImage 59(4):3889–3900. doi: View ArticleGoogle Scholar
  2. Bassett DS, Wymbs NF, Porter MA, Mucha PJ, Carlson JM, Grafton ST (2011) Dynamic reconfiguration of human brain networks during learning. Proc Natl Acad Sci U S A 108(18):7641–7646. doi: ADSView ArticleGoogle Scholar
  3. Beguerisse-Diaz M, Garduno-Hernandez G, Vangelov B, Yaliraki SN, Barahona M (2014) Interest communities and flow roles in directed networks: the Twitter network of the UK riots. Journal of the Royal Society Interface 11(101):20140940. doi: View ArticleGoogle Scholar
  4. Benjamini Y, Yekutieli D (2001) The control of the false discovery rate in multiple testing under dependency. Ann Statist. 29(4):1165–1188.Google Scholar
  5. Blondel VD, Guillaume J-L, Lambiotte R, Lefebvre E (2008) Fast unfolding of communities in large networks. J Stat Mech 2008(10):P10008View ArticleGoogle Scholar
  6. Craddock RC, James GA, Holtzheimer PE 3rd, Hu XP, Mayberg HS (2012) A whole brain fMRI atlas generated via spatially constrained spectral clustering. Hum Brain Mapp 33(8):1914–1928. doi: View ArticleGoogle Scholar
  7. de Souza J, Taya F, Thakor NV, Bezerianos A (2015) Comparing Community Detection Algorithms on Neuroimaging Data from Multiple Subjects, Paper presented at the 2015 11th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS)View ArticleGoogle Scholar
  8. Dong X, Frossard P, Vandergheynst P, Nefedov N (2014) Clustering on multi-layer graphs via subspace analysis on grassmann manifolds. Signal Processing, IEEE Transactions on 62(4):905–918ADSMathSciNetView ArticleGoogle Scholar
  9. Dosenbach NU, Nardos B, Cohen AL, Fair DA, Power JD, Church JA, Schlaggar BL (2010) Prediction of individual brain maturity using fMRI. Science 329(5997):1358–1361. doi: ADSView ArticleGoogle Scholar
  10. Fortunato S (2010) Community detection in graphs. Phys Rep 486(3-5):75–174. doi: ADSMathSciNetView ArticleGoogle Scholar
  11. Fortunato S, Castellano C (2012) Community structure in graphs Computational Complexity. Springer, pp 490–512.Google Scholar
  12. Friston KJ (2011) Functional and effective connectivity: a review. Brain Connect 1(1):13–36. doi: MathSciNetView ArticleGoogle Scholar
  13. Gronchi G, Guazzini A, Massaro E, Bagnoli F (2014) Mapping cortical functions with a local community detection algorithm. Journal of Complex Networks, doi:
  14. Guimera R, Nunes Amaral LA (2005) Functional cartography of complex metabolic networks. Nature 433(7028):895–900. doi: ADSView ArticleGoogle Scholar
  15. Han K, Mac Donald CL, Johnson AM, Barnes Y, Wierzechowski L, Zonies D, Brody DL (2014) Disrupted modular organization of resting-state cortical functional connectivity in U.S. military personnel following concussive ‘mild’ blast-related traumatic brain injury. NeuroImage 84:76–96. doi: View ArticleGoogle Scholar
  16. Hric D, Darst RK, Fortunato S (2014) Community detection in networks: Structural communities versus ground truth. Phys Rev E Stat Nonlin Soft Matter Phys 90(6):062805. doi: View ArticleGoogle Scholar
  17. Kennedy DN, Lange N, Makris N, Bates J, Meyer J, Caviness VS Jr (1998) Gyri of the human neocortex: an MRI-based analysis of volume and variance. Cereb Cortex 8(4):372–384View ArticleGoogle Scholar
  18. Kumar A, Rai P, Daume H (2011) Co-regularized multi-view spectral clustering, Paper presented at the Advances in Neural Information Processing SystemsGoogle Scholar
  19. Kuncheva LI, Hadjitodorov ST (2004) Using diversity in cluster ensembles, 2004 Ieee International Conference on Systems, Man & Cybernetics, Vols 1-7., pp 1214–1219Google Scholar
  20. Lancichinetti A, Fortunato S (2009) Community detection algorithms: a comparative analysis. Physical Review E 80(5 Pt 2):056117. doi: ADSView ArticleGoogle Scholar
  21. Lancichinetti A, Fortunato S, Kertész J (2009) Detecting the overlapping and hierarchical community structure in complex networks. New Journal of Physics 11(3):033015. doi: ADSView ArticleGoogle Scholar
  22. Liu A, Li J, Wang ZJ, McKeown MJ (2012) A computationally efficient, exploratory approach to brain connectivity incorporating false discovery rate control, a priori knowledge, and group inference. Comput Math Methods Med 2012:967380. doi: MathSciNetMATHGoogle Scholar
  23. Liu Y, Moser J, Aviyente S (2014) Network community structure detection for directional neural networks inferred from multichannel multisubject EEG data. IEEE Trans Biomed Eng 61(7):1919–1930. doi: View ArticleGoogle Scholar
  24. Luzar B, Levnajic Z, Povh J, Perc M (2014) Community structure and the evolution of interdisciplinarity in Slovenia’s scientific collaboration network. PLoS ONE 9(4):e94429. doi: ADSView ArticleGoogle Scholar
  25. Makris N, Meyer JW, Bates JF, Yeterian EH, Kennedy DN, Caviness VS (1999) MRI-Based topographic parcellation of human cerebral white matter and nuclei II. Rationale and applications with systematics of cerebral connectivity. NeuroImage 9(1):18–45. doi: View ArticleGoogle Scholar
  26. Massaro E, Bagnoli F, Guazzini A, Lió P (2012) Information dynamics algorithm for detecting communities in networks. Communications in Nonlinear Science and Numerical Simulation 17(11):4294–4303ADSMathSciNetView ArticleMATHGoogle Scholar
  27. Meilă M (2007) Comparing clusterings—an information based distance. Journal of multivariate analysis 98(5):873–895MathSciNetView ArticleMATHGoogle Scholar
  28. Meunier D, Achard S, Morcom A, Bullmore E (2009a) Age-related changes in modular organization of human brain functional networks. NeuroImage 44(3):715–723. doi: View ArticleGoogle Scholar
  29. Meunier D, Lambiotte R, Fornito A, Ersche KD, Bullmore ET (2009b) Hierarchical modularity in human brain functional networks. Front Neuroinform 3:37. doi: View ArticleGoogle Scholar
  30. Meunier D, Lambiotte R, Bullmore ET (2010) Modular and hierarchically modular organization of brain networks. Front Neurosci 4(December):200. doi: Google Scholar
  31. Newman MEJ (2012) Communities, modules and large-scale structure in networks. Nat Phys 8(1):25–31View ArticleGoogle Scholar
  32. Newman ME, Girvan M (2004) Finding and evaluating community structure in networks. Physical Review E 69(2 Pt 2):026113ADSView ArticleGoogle Scholar
  33. Ozdemir A, Bolanos M, Bernat E, Aviyente S (2015) Hierarchical Spectral Consensus Clustering for Group Analysis of Functional Brain Networks. IEEE Trans Biomed Eng 62(9):2158–2169. doi: View ArticleGoogle Scholar
  34. Radicchi F, Castellano C, Cecconi F, Loreto V, Parisi D (2004) Defining and identifying communities in networks. Proc Natl Acad Sci U S A 101(9):2658–2663. doi: ADSView ArticleGoogle Scholar
  35. Robinson LF, Atlas LY, Wager TD (2015) Dynamic functional connectivity using state-based dynamic community structure: method and application to opioid analgesia. NeuroImage 108:274–291. doi: View ArticleGoogle Scholar
  36. Rosvall M, Bergstrom CT (2008) Maps of random walks on complex networks reveal community structure. Proc Natl Acad Sci U S A 105(4):1118–1123. doi: ADSView ArticleGoogle Scholar
  37. Rubinov M, Sporns O (2010) Complex network measures of brain connectivity: uses and interpretations. NeuroImage 52(3):1059–1069. doi: View ArticleGoogle Scholar
  38. Sporns O (2013) Network attributes for segregation and integration in the human brain. Curr Opin Neurobiol 23(2):162–171. doi: View ArticleGoogle Scholar
  39. Stanley ML, Moussa MN, Paolini BM, Lyday RG, Burdette JH, Laurienti PJ (2013) Defining nodes in complex brain networks. Front Comput Neurosci 7:169. doi: View ArticleGoogle Scholar
  40. Strehl A, Ghosh J (2003) Cluster ensembles---a knowledge reuse framework for combining multiple partitions. J Mach Learn Res 3:583–617MathSciNetMATHGoogle Scholar
  41. Sun Y, Yin Q, Fang R, Yan X, Wang Y, Bezerianos A, Sun J (2014) Disrupted functional brain connectivity and its association to structural connectivity in amnestic mild cognitive impairment and Alzheimer’s disease. PLoS ONE 9(5):e96505. doi: ADSView ArticleGoogle Scholar
  42. Tang W, Lu Z, Dhillon IS (2009) Clustering with multiple graphs, Paper presented at the Data Mining, 2009. ICDM'09. Ninth IEEE International Conference onView ArticleGoogle Scholar
  43. Tzourio-Mazoyer N, Landeau B, Papathanassiou D, Crivello F, Etard O, Delcroix N, Joliot M (2002) Automated anatomical labeling of activations in SPM using a macroscopic anatomical parcellation of the MNI MRI single-subject brain. NeuroImage 15(1):273–289. doi: View ArticleGoogle Scholar


© The Author(s) 2016