An automated method for identifying artifact in independent component analysis of resting-state fMRI
- 1The Florey Institute of Neuroscience and Mental Health, The University of Melbourne, Austin Hospital, Melbourne, VIC, Australia
- 2Department of Medicine, The University of Melbourne, Melbourne, VIC, Australia
- 3Department of Radiology, The University of Melbourne, Melbourne, VIC, Australia
An enduring issue with data-driven analysis and filtering methods is the interpretation of results. To assist, we present an automatic method for identification of artifact in independent components (ICs) derived from functional MRI (fMRI). The method was designed with the following features: does not require temporal information about an fMRI paradigm; does not require the user to train the algorithm; requires only the fMRI images (additional acquisition of anatomical imaging not required); is able to identify a high proportion of artifact-related ICs without removing components that are likely to be of neuronal origin; can be applied to resting-state fMRI; is automated, requiring minimal or no human intervention. We applied the method to a MELODIC probabilistic ICA of resting-state functional connectivity data acquired in 50 healthy control subjects, and compared the results to a blinded expert manual classification. The method identified between 26 and 72% of the components as artifact (mean 55%). About 0.3% of components identified as artifact were discordant with the manual classification; retrospective examination of these ICs suggested the automated method had correctly identified these as artifact. We have developed an effective automated method which removes a substantial number of unwanted noisy components in ICA analyses of resting-state fMRI data. Source code of our implementation of the method is available.
Functional magnetic resonance imaging (fMRI) is a non-invasive technique that uses the blood oxygen level dependent (BOLD) effect to explore neural activity (Ogawa et al., 1990). However, BOLD fMRI suffers from numerous sources of structured noise (Biswal et al., 1996; Friston et al., 1996; Glover et al., 2000) which compromises the fMRI signal. These include rapid and slow head movements, physiological activity (breathing and heart-beat), and potential acquisition artifacts. Even after traditional pre-processing steps, such as slice-timing correction, motion correction, high-pass filtering, and spatial smoothing, some of these artifacts still remain (Grootoonk et al., 2000; Lund et al., 2006). To overcome this, the use of data-driven techniques are increasingly being employed to generate potentially valuable information on the nature of signal and noise in fMRI data. In particular, spatial Independent Component Analysis (ICA), has been proposed (McKeown et al., 1998). Spatial ICA is a blind source separation (BSS) technique, that decomposes fMRI data into components which are maximally independent (Hyvärinen, 1999). Each Independent Component (IC) contains a 3D spatial map and a 1D time-course. When compared to traditional fMRI analysis approaches, where a design paradigm and assumptions about the hemodynamic processes in the brain are required to obtain spatial activation maps (Buxton et al., 2004), ICA offers a hypothesis free model to gain further insights in identifying the spatial location of brain activity. However, such an approach, due to its hypothesis free nature begs the question of interpretation of the results. In particular, how does one distinguish between ICs which are signal (i.e., components of neuronal origin) and noise (i.e., due to movement, cardiac pulsations etc.)? Typically, this has been done by visually inspecting each IC and manually categorizing them (McKeown et al., 1998; Moritz et al., 2003; Kelly Jr. et al., 2010). This is however, a very time consuming and subjective procedure which is dependent on the experience of the researcher. For example, Kelly Jr. et al. (2010) provide a detailed description of the criteria to manually classify ICs via visual inspection. They estimate approximately 37 min for classifying 100 ICs which can be a typical yield from lengthy resting-state ICA (Rodionov et al., 2007; LeVan et al., 2010).
Other methods have classified ICs by using paradigm information (Thomas et al., 2002; Calhoun et al., 2005; Kochiyama et al., 2005). Specifically, Calhoun et al. (2005) present an approach for semi-blind ICA analysis of event-related fMRI data by imposing regularization on certain estimated time courses using the paradigm information. This approach, however, is limited to studies where temporal information is available. In some applications it may not be desirable to use temporal information in the classifier. Resting-state functional connectivity is one such application. Another, which is a particular interest of ours, is the data-driven exploration of fMRI prior to an epileptic seizure (Federico et al., 2005), where we have no prior model of expected signal change or event timing (apart from the seizure itself at which point the data acquisition usually ends).
More recently, several automatic techniques have been developed to assist in classifying ICs into categories of noise and signal (Perlbarg et al., 2007; Stevens et al., 2007; Calhoun et al., 2008; Sui et al., 2009; Kundu et al., 2012). Perlbarg et al. (2007) uses both spatial and temporal patterns to categorize ICs into noise and signal. However, their automatic classifier, CORSICA, is limited to identifying physiological noise. Calhoun et al. (2008) utilize a brain atlas to aid sorting ICs. However, atlas based sorting requires strong a priori assumptions on the spatial layout of the activation which is not always available. Sui et al. (2009) employ spatial only criterion to automatically classify ICs as they use contrast images that contain no time-domain information. Their method relies on generating cerebrospinal fluid (CSF) red and gray-matter (GM) masks. It can be difficult to obtain an accurate GM mask with fMRI images, especially at higher magnetic field strengths (e.g., 3 T) where image distortions and signal dropout can result in blurred boundaries between gray matter and white matter. Kundu et al. (2012) differentiate BOLD-like functional network components from non-BOLD-like components related to motion, pulsatility, and other nuisance effects based on TE-dependence. While this was found to be a robust method compared to conventional techniques for classifying artifacts, the technique requires a multi-echo acquisition sequence and cannot be applied to conventional single-echo fMRI data.
Other automatic techniques based on machine learning algorithms have been applied to identify artifactual ICs (De Martino et al., 2007; Tohka et al., 2008). De Martino et al. (2007) represents each IC in a multidimensional space, called an IC-fingerprint. Using these IC-fingerprints, they classify ICs into various categories of signal and noise. Tohka et al. (2008) uses a combination of spatial and temporal criteria to aid in classifying signal and noise via global decision trees. However, their classifier overlooks physiological noise. Moreover these two techniques are primarily dependent on a training data set.
We sought to overcome some of the limitations of existing classifiers by developing an artifact identification method that:
• Does not require temporal information about the fMRI paradigm.
• Does not require the user to train the algorithm.
• Requires only the EPI images (additional acquisition of anatomical images is not required).
• Is able to identify a high proportion of artifact-related ICs without removing components that are likely to be of neuronal origin.
• Can be applied to resting-state fMRI.
• Is automated, requiring minimal or no human intervention.
We are not aware of any existing IC artifact identification method that contains all of the above features. We have dubbed our method the Spatially Organized Component Klassifikator (SOCK). In the context of this paper, we mean by “Klassifikator” (a German word meaning classifier) the ability to distinguish between ICs dominated by artifact and those containing possible neuronal signal. We note from the outset that our approach is designed to complement rather than replace existing approaches. A limitation in some applications can be a strength in others. We designed SOCK for particular applications where the features listed above are the highest priorities.
2.1. Methods Overview
The overview of the automatic IC classification process is given below (see also Figure 1).
1. ICA was applied to the pre-processed fMRI data (see Section 2.5) using MELODIC (Beckmann and Smith, 2004), yielding both thresholded (P < 0.05) and unthresholded ICs and associated time courses and power spectra1.
2. Calculation of features (smoothness measure, edge, CSF, and temporal frequency power) for each IC was computed via the SOCK algorithm.
3. Based on the above features, ICs dominated by artifact are classified into an Artifact category and all other ICs (i.e., those containing possible neuronal signal) into an Unlikely Artifact category.
Figure 1. ICA was applied to pre-processed fMRI data yielding spatial component maps with associated time courses and power spectra. SOCK automatically distinguishes between ICs dominated by artifact (Artifact category) and those containing possible neuronal signal (Unlikely Artifact category) by calculating IC features (smoothness measure, edge, CSF, and temporal frequency power).
Source code of our implementation of the method is available at http://www.brain.org.au/software.
2.2. ICA Decomposition
The idea behind ICA is to decompose the 4D fMRI time series into a linear combination of spatially independent component maps with an associated time-course (McKeown et al., 1998; Hyvärinen, 1999). This is expressed mathematically as follows:
where X is a K × M matrix (K = number of samples and M = number of time courses) of the fMRI time series, S the N × M matrix whose rows Si (i = 1, …, N) represent the ith spatial component (K ≤ T) and T is the K × N mixing matrix (unknown), whose columns Ti (i = 1, …, N) contain the time courses of the N sources. Estimating the number of sources, N is done in the pre-processing step, usually via PCA (Beckmann and Smith, 2004).
The only constraint enforced in this decomposition is that each of the component maps, Si’s are spatially independent. This is equivalent to saying that all Si’s, with the exception of one have to be non-Gaussian. Structured non-Gaussian noise (head motion and physiological noise) in the fMRI data series is not explicitly modeled, but is treated as an independent source in the ICA decomposition (McKeown et al., 1998; Hyvärinen, 1999).
The ICA decomposition is done by estimating the mixing matrix, T, by minimizing redundancy in the spatial maps of the components, S. This can be mathematically expressed as:
where matrix W, called the “un-mixing” matrix, is the inverse of T. Several freely available software packages are available to perform this decomposition; we used MELODIC which is part of the FSL package (Beckmann and Smith, 2004). The output is a set of spatial maps (Si) with associated time courses (Ti) and power spectra (PSi). These then form the input for the automatic classifier, SOCK.
2.3. Calculation of IC Features
SOCK automatically identifies artifact in each IC using features likely to indicate motion, physiological noise, or machine or undetermined noise. To achieve this, each IC is assessed for the presence of substantial edge-only activity, activity in the ventricles, or a large number of isolated very small clusters or isolated voxels (i.e., a “spotty” appearance), respectively. Specifically, we use four measures:
1. Smoothness measure. This assesses the contributions of low and high spatial frequency content for each IC (Section 2.3.1).
2. Edge activity measure. This assesses the extent of activity in peripheral areas of the brain, via an edge mask (Section 2.3.2).
3. CSF activity measure. This assesses the extent of activity in ventricular areas of the brain, via a CSF mask (Section 2.3.3).
4. Temporal Frequency Noise (TFN) measure. This assesses the power in temporal frequency beyond 0.08 Hz (Section 2.3.4).
2.3.1. Smoothness measure
The spotty appearance of an IC, which reflects the degree of smoothness, is identified by observing spatial frequencies via a Fourier Transform. We assume components that are likely to be of neuronal origin will be relatively smooth and that by observing contributions in spatial frequency, we can distinguish between ICs that are smooth and unsmooth. The framework for the smoothness criterion is as follows.
Let Fi(Kx, Ky, Kz) be the 3D Discrete Fourier Transform of IC, i. That is,
where j is an imaginary unit, X, Y, and Z are vectors corresponding to the fMRI image dimensions and X0, Y0, and Z0 are the step sizes between consecutive samples in the X, Y, and Z directions respectively. Kx, Ky, and Kz are vectors in the Fourier space and S is the intensity in the image space. A typical Fourier Transform for a single slice is illustrated in 2A. While a 3D Discrete Fourier Transform is implemented in SOCK, we show a 2D illustration for simplicity. Data in the center of this figure contains low spatial frequency information about the image, while data near the periphery represents high spatial frequencies. We apply the above Discrete Fourier Transform to unthresholded ICs, thus capturing all spatial frequency modes to assess whether or not an IC is smooth. To classify the extent of spatial smoothness of a particular IC, we calculate a ratio of low to high frequency information.
Let Li be the low frequency information contained within volume, V1 (see Figure 2A) for IC, i. That is,
where V1x, V1y, and V1z are vectors corresponding to the dimensions in Fourier space of volume, V1. Let Hi be the high frequency information contained outside of volume, V1 for IC, i. That is,
Figure 2. An overview of identifying “spotty” artifact. The example data is taken from an ICA of a control that underwent a 10 min resting-state fMRI study (see Section 2.5). (A) Discrete Fourier Transform of a single slice of an IC. While a 3D Discrete Fourier Transform is implemented in SOCK, we show a 2D illustration for simplicity. Data in the center of figure contains low spatial frequency information about the image, while data near the periphery represents high spatial frequencies. The sphere with volume V1 is an arbitrary region which contains low spatial frequency information. (B) A plot of the ratio of low to high frequency information [equation (6)] vs. the radius of sphere V1 for all ICs. (C) A spatial map of the top and bottom curves corresponding to the smoothest and least smooth IC respectively. (D) Applying k-means clustering to split the ICs into a set of “smooth” (red curves), “subsmooth” (green curves), and “unsmooth” (blue curves) ICs. Each line in (B,D) represents the ratio for a particular IC calculated over all slices, not just the slice shown in (A).
We then define, Ri as the ratio of low to high frequency information for IC, i. That is,
This ratio is a function of the radius of the volume, V1. As we increase the radius of V1, we increase the volume of low intensity frequencies contributing to the ratio. Plotting equation (6) as a function of different radius values, we obtain curves such as the example shown in Figure 2B. Each curve represents a different IC. These are referred to as ratio curves from here on in. These ratio curves naturally organize themselves from top to bottom representing the smoothest IC at the top to the least smooth IC at the bottom (Figure 2C).
To distinguish between smooth and unsmooth ICs, we apply a k-means clustering in a 2D feature space (Euclidean distance metric) implemented in MATLAB R2010b (The MathWorks Inc., Natick, MA, USA) to the ratio curves. Firstly, we split the ratio curves into two clusters:
We further split the lower cluster into two clusters:
This yields three sets of vectors (ClusterA, ClusterB, ClusterC), which contain ratio curves. We label these clusters (Smooth, Subsmooth, Unsmooth). An example of the clustering is shown in Figure 2D.
2.3.2. Edge activity measure
It has been demonstrated that in ICA of fMRI data, gross subject motion can result in artifactual activity at the edge of the brain (McKeown et al., 1998). We therefore assess the amount of activity within an edge mask, an example of which is shown in Figure 3A (single slice shown). For this we utilize the sub-routine, “New Segment” from the SPM8 software package (The Wellcome Trust Centre for Neuroimaging2), applied to the mean functional image. “New Segment” generates two edge masks covering the inner and outer brain boundary; we amalgamate these masks to produce a single edge mask. To identify ICs characterized by gross motion artifact, we define a variable, edge activity, which is a measure of the extent of activation overlapping the edge mask. The edge activity, EAi for each IC, i is defined as follows:
where Ev is the volume of the edge mask and OEk, ∀k = 1, 2, …, n is the volume of those contiguous clusters which overlaps the edge mask with there being n of these clusters. An illustration of these clusters is shown in Figure 3A for a single slice. We used the “locmax.m” function within the FMRISTAT software (Worsley et al., 2002) to extract these contiguous clusters.
Figure 3. An overview of identifying motion artifact. The example data is taken from an ICA of a control that underwent a 10 min resting-state fMRI study (see Section 2.5). (A) An edge mask (in green) automatically created by an SPM sub-routine, “New Segment” (single slice shown). This is overlaid onto a mean functional image. In red are an illustration of contiguous clusters which overlap the edge mask. (B) A plot of the edge activity for all ICs. (C) A spatial map of the top and bottom points corresponding to the highest and lowest edge activity ICs respectively. (D) Using k-means clustering, the ICs are automatically divided into a set of “High Edge Activity” components (points colored red in the scatter-plot) and “Low Edge Activity” components (points colored blue in the scatter-plot). Each point in the scatter-plot represents the edge activity for a particular IC summed over all slices.
Plotting equation (9) for each IC, i produces a plot such as that shown in Figure 3B. Each point represents a different IC with the highest and lowest points corresponding to the ICs with the highest edge activity and lowest edge activity respectively (Figure 3C). Similar to the technique used in clustering the smooth and unsmooth ICs, we employ k-means clustering in a 2D feature space (Euclidean distance metric) to group edge activity into two clusters:
where (ClusterA, ClusterB) are two vectors which contain edge activities. We label these clusters (Low Edge Activity, High Edge Activity). An example of the clustering is shown in Figure 3D. In addition to the adaptive clustering we employ a fixed threshold rejecting ICs independent of any other criteria when they have a 50% or greater volume of activity overlapping the edge mask. This threshold was identified by testing combinations of thresholds on data independent from the data presented here (see Appendix B).
2.3.3. CSF activity measure
Physiological noise, due to breathing and heart-beat, is often most evident in or at the borders of CSF regions such as the ventricles (Weisskoff et al., 1993; Windischberger et al., 2002). To detect such noise we create a CSF mask, isolating the lateral ventricles. An example is shown in Figure 4 (single slice shown). For this we utilize the sub-routine, “New Segment” from the SPM8 software package [The Wellcome Trust Centre for Neuroimaging (see text footnote 2)], applied to the mean functional image. To isolate the lateral ventricles, we manually defined this region on the Montreal Neurological Institute (MNI) templates included in SPM 8. To identify ICs characterized by CSF artifact, we define a variable, CSF activity, which is a measure of the extent of activation overlapping the CSF mask. The CSF activity, CAi for each IC, i is defined as follows:
where OCk, ∀k = 1, 2, …, m is the volume of the contiguous clusters which overlaps the CSF mask with there being m of these clusters. An illustration of these clusters is shown in Figure 4 for a single slice. CSFv is the volume of the CSF mask.
Figure 4. An overview of identifying CSF artifact. A CSF mask automatically created by an SPM sub-routine, “New Segment” is shown in green (single slice shown). This is overlaid onto a mean functional image. In red are an illustration of contiguous clusters which overlap the CSF mask. If the volume of activity overlapping the CSF mask is 10% or greater, the IC is labeled High CSF Activity (Low CSF Activity otherwise). The CSF activity for a particular IC calculated over all slices, not just the slice shown above.
Unlike the smoothness and motion artifact measures, we do not employ a clustering technique to identify ICs characterized by CSF artifact. Instead, we employ a fixed threshold. If the volume of activity overlapping the CSF mask is 10% or greater, the IC is labeled High CSF Activity (Low CSF Activity otherwise). In addition, we reject ICs independent of any other criteria when they have a 30% or greater volume of activity overlapping the CSF mask. This threshold was identified by testing combinations of thresholds on data independent from the data presented here (see Appendix B).
2.3.4. Temporal frequency noise measure
The dominant period of the hemodynamic Response Function (HRF) is approximately 12 s (from onset to return to baseline, ignoring the post-stimulus undershoot) (Chapter 10, Huettel et al., 2009). Therefore we expect the dominant frequency for components which exhibit BOLD neuronal signal to be about 1/12 or 0.08 Hz. Hence to identify activity that is unlikely to come from the BOLD HRF, we quantify the temporal power beyond 0.08 Hz.
To identify ICs characterized by high frequency noise in the time series, we define a variable, Temporal Frequency Noise (TFN), which is a measure of the extent of temporal power beyond 0.08 Hz. The TFN, TFNi for each IC, i, is defined as follows:
where PSi, are the power spectrum values for each IC, i, which are provided by the MELODIC ICA (Beckmann and Smith, 2004) and fNyquist is Nyquist frequency. This formula in essence calculates the sum of all power spectrum values from 0.08 Hz to the Nyquist frequency. Plotting equation (12) for each IC, i produces a plot, such as the example shown in Figure 5A. Each point represents a different IC. K-means clustering in a 2D feature space (Euclidean distance metric) is employed to cluster TFN values into two clusters:
where (ClusterA, ClusterB) are two vectors which contain TFN values. We label these clusters (High TFN, Low TFN) which correspond to ICs with high and low TFN values respectively. An example of the clustering is shown in Figure 5B, with the spatial maps for the highest and lowest points shown in Figure 5C. The associated power spectra for these ICs are shown in Figure 5D with the blue and red curves representing the low and high TFN ICs respectively. This is a zoomed in view showing only frequencies beyond 0.08 Hz which is the region of interest.
Figure 5. An overview of identifying ICs with Temporal Frequency Noise (TFN). The example data is taken from an ICA of a control that underwent a 10 min resting-state fMRI study (see Section 2.5). (A) A plot of the TFN activity (sum of power spectrum values from 0.08 Hz to Nyquist frequency) for all ICs. (B) Applying k-means clustering to split the ICs into a set of Low and High TFN ICs. (C) A spatial map of the top and bottom points corresponding to the highest and lowest TFN activity ICs respectively. (D) The associated power spectra for these ICs with the blue and red curves representing the low and high TFN ICs respectively. This is a zoomed in view showing only frequencies beyond 0.08 Hz which is the region of interest.
2.4. Classification of ICs
Based on the above features, ICs dominated by artifact are identified using the conditions given in Table 1. These were established by the authors based on their experience in visually classifying components from independent data (5 subjects scanned on the same scanner as data sets 1 and 2 in Section 2.5).
2.5. fMRI Data
We validate SOCK for individual ICA analyses in 50 subjects, from three separate data sets. All were resting-state studies. See Table 2 for a summary.
2.5.1. Data sets 1 and 2
The first two data sets consisted of resting-state data from thirty healthy control subjects that had participated in studies at our institute (Waites et al., 2005, 2006; Lillywhite et al., 2009; Abbott et al., 2010). Ethics approval was obtained from the Austin Health Human Research Ethics Committee or the Howard Florey Institute of Experimental Physiology and Medicine Human Research Ethics Committee and each subject gave informed consent.
Participants were instructed to close their eyes and relax without falling asleep and without focusing on anything in particular. A single run of fMRI data was collected for each of the participants; each run was 60 min in 9 of the participants and 10 min in 21 of the participants.
The fMRI studies were carried out with a 3 T GE Signa LX whole body scanner (General Electric, Milwaukee, WI, USA), using a standard birdcage quadrature head coil. Functional images were acquired as a series of gradient-recalled echo planar imaging (GR-EPI) volumes (TR/TE = 3,000/40 ms in 9 of the participants and TR/TE = 3,600/40 ms in 21 of the participants, 25 oblique slices 4 mm thick + 1-mm gap, voxel size = 1.875 mm × 1.875 mm × 5 mm, 24-cm field of view (FOV), 128 × 128 matrix). The first 14 volumes were discarded (to allow the scanner time to reach steady-state and the subject to become settled to the procedure).
fMRI data were processed using SPM8 software (Wellcome Department of Imaging Neuroscience, London, UK 3) with the aid of iBrainTM (Abbott and Jackson, 2001) and the iBrainTM Analysis Toolbox for SPM (Abbott et al., 2011) 4. In brief, pre-processing included slice-timing correction, motion correction (realignment), and non-linear warping to a custom local template approximating that of the standard Montreal Neurological Institute (MNI) template supplied with SPM8. The spatially normalized image data were smoothed with an 8 mm isotropic Gaussian kernel and were written at a voxel size of 2 mm × 2 mm × 2 mm. No further pre-processing was carried out in FSL prior to ICA being performed using the MELODIC tool (Beckmann and Smith, 2004).
2.5.2. Data set 3 (functional connectomes data)
The third set of data consisted of resting-state fMRI data with a relatively short TR from twenty healthy controls obtained from the 1000 Functional Connectomes Project website (Biswal et al., 2010, data set 2 from Table S1 with TR = 2,000 ms, 34 slices and voxel size = 3 mm × 3 mm × 3 mm). Participants were instructed to open their eyes without focusing on anything in particular. fMRI data was collected for each of the participants in a 9 min study. The fMRI studies were carried out with a 3 T scanner (make of scanner not specified). Functional images were acquired using a sequential ascending sequence, discarding the first 5 time points of each time series.
No pre-processing [slice-timing correction, motion correction (realignment), normalization, or smoothing] was carried out on this data set.
Preforming ICA using the MELODIC tool, yielded both thresholded and unthresholded ICs and associated time courses and power spectra which were then inputs for SOCK (Figure 1).
In order to evaluate the performance of our algorithm, we assessed SOCK’s classification against manual classification. An expert manual classification of components as either artifact or unlikely artifact was performed blinded to the SOCK classification. The manual classification used visual inspection criteria similar to that outlined in Kelly Jr. et al. (2010) and had previously been applied by consensus of all the authors on data independent from that presented here. In the present study, author KB manually classified all components, and author DA additionally manually classified all ICs in the 1000 Functional Connectomes Project dataset. For all 50 data sets, the number of discordant components [those which were identified as artifact by SOCK but as unlikely artifact by an expert (KB or DA)] were examined in an effort to understand the reason for discordance.
3.1. ICA Analysis and SOCK Classification
MELODIC ICA was applied to resting-state fMRI data acquired in 50 healthy control subjects across three data sets:
1. Data set 1: 7 male, 2 female; age range 7–11 years, mean = 8.8, SD = 1.6
2. Data set 2: 14 male, 7 female; age range 17–40 years, mean = 24.4, SD = 5.9
3. Data set 3: 20 male; age range 19–38 years, mean = 23.4, SD = 5.3
A total of 2,722 components (average of 54 components per subject) were obtained. SOCK classified between 26 and 72% of each subject’s components as artifact (mean 55%). See Table 3 for a summary. A comprehensive list of the ICA decomposition and the SOCK classification for all 50 subjects is also provided in the Appendix (see Tables A1–A3 in Appendix A).
The time required for SOCK to run, including the automatic generation of the edge and CSF masks, was approximately 2 min per subject on a PC equipped with an Intel Quad-Core i7-2,600 3.4 GHz CPU.
We show below a case example of each of the SOCK criteria for ICs from a MELODIC ICA on one of the 50 subjects (Table 4; Figure 6). ICA yielded 87 components for this particular subject, out of which 44 (51%) ICs were classified as artifact. No discordant ICs were identified for this particular subject.
Figure 6. A selected set of spatial maps from an ICA and corresponding SOCK classification for Subject 4. The numbering of the ICs is based on the order of extraction in the ICA decomposition.
Figure 6 illustrates the spatial maps and the SOCK classification of a selected set of components from an ICA for this subject. The numbering of the ICs is based on the order of extraction in the ICA decomposition. For example, IC16 has been classified by SOCK as unlikely artifact as it has been clustered into the smooth category and has low edge and CSF activity and low TFN.
3.2. Classification Performance
We assess the performance of SOCK by calculating the sensitivity, that is, the proportion of components SOCK classifies in the artifact category and the specificity, how many of these components are actually artifact. Table 3 indicates that on average, 55% of ICs were classified in the artifact category. That is, SOCK was able to approximately halve the number of ICs we would otherwise need to look at.
We assessed the specificity by comparing SOCK’s classification against manual classification done by an expert (KB or DA) blinded to the SOCK classification. An expert manually classified each IC into either an artifact or unlikely artifact category. All the ICs which SOCK classified as artifact were compared to ICs which the experts classified. Only 0.3% (7) of components identified as artifact by SOCK were discordant with the manual classification (last column of Table 3); retrospective examination of these ICs suggested SOCK had correctly identified these as artifact. All seven discordant components with their spatial maps and SOCK features are provided in Figures 7 and 8.
Figure 7. Spatial maps from an ICA and corresponding SOCK classification for all discordant ICs among the first 30 subjects (data sets 1 and 2). All these ICs were classified by an expert as unlikely artifact, whereas SOCK classified them as artifact. The numbering of the ICs is based on the order of extraction in the ICA decomposition. (A,B) Subjects 1 and 8: thresholded spatial maps of IC27 for subject 1 and ICs 7, 23, and 96 for subject 8 overlaid on an edge mask (in green, single slice shown) reveals a significant proportion of activation overlapping the edge mask. (C) Subject 5: a closer look at the unthresholded spatial map of IC90 (shown on the right of the thresholded map), reveals that the IC is not as smooth as it appears; compared to viewing the thresholded spatial map.
Figure 8. Spatial maps from an ICA and corresponding SOCK classification for all discordant ICs among the last 20 subjects (data set 3). All these ICs were classified by an expert as unlikely artifact, whereas SOCK classified them as artifact. The numbering of the ICs is based on the order of extraction in the ICA decomposition. (A) Subject 41, IC70: SOCK rejected this IC as artifact as it was unsmooth. However, an IC with overlapping spatial regions, but with a greater degree of smoothness was observed in the ICA decomposition (compare unthresholded maps of IC70 vs. IC24). IC24 was not classified as artifact by SOCK. (B) Subject 41, IC75: SOCK rejected this IC as artifact as it had substantial temporal frequency noise (see shaded region of power spectrum). However, ICs with overlapping spatial regions, but with less temporal frequency noise were observed in the ICA decomposition (compare power spectra of IC75 vs. ICs 26 and 29). These ICs were not classified as artifact by SOCK.
3.2.1. IC27 (subject 1)
IC27 in subject 1 (Figure 7A) was accepted by an expert because it contained smooth activity in regions of gray matter and was free from CSF artifact and high TFN. However, SOCK classified this IC as artifact as it contains greater than 50% of volume of activity overlapping the edge mask (see Table 1).
3.2.2. IC7, IC23, and IC96 (subject 5)
IC7, IC23, and IC96 in subject 8 (Figure 7B) were accepted by an expert as they all appeared smooth and did not have gross edge or CSF activity. However, a closer look at the thresholded spatial maps of each IC overlaid on the edge mask (in green) reveals that a significant proportion of activation is overlapping the edge mask. Both axial and coronal views are shown to clearly indicate this. Hence, SOCK classified these ICs as artifact as they contain greater than 50% of volume of activity overlapping the edge mask (see Table 1).
3.2.3. IC90 (subject 5)
IC90 in subject 5 (Figure 7C) was accepted by an expert as it was smooth and did not have gross edge or CSF activity. However, a closer look at the unthresholded spatial map of IC90 (shown on the right of the thresholded map) reveals that the IC is not as smooth as it appears compared to viewing the thresholded spatial map. Hence, SOCK clustered it in the unsmooth category and subsequently classified it as artifact (see Table 1).
3.2.4. IC70 and IC75 (subject 41)
IC70 and IC75 in subject 41 (Figure 8) were not rejected by an expert as they appeared to contain some possible neuronal activity. However these components were rejected by SOCK. SOCK determined IC70 was not sufficiently spatially smooth. Retrospective examination of the ICA decomposition revealed another IC (IC24, not rejected by SOCK) that had overlapping spatial regions (Figure 8A). Examination of the unthresholded component maps (not considered during manual classification) revealed the rejected component did indeed have a less smooth spatial pattern than the accepted component (Figure 8A). IC 75 was rejected by SOCK due to substantial temporal frequency noise. In this case, retrospective examination revealed two ICs (26 and 29) with spatial maps overlapping the apparent neuronal activity in the rejected component. These other components had less temporal frequency noise (as can seen in the shaded area of the power spectrum, Figure 8B) and were not rejected by SOCK.
We have illustrated a general approach for the identification of artifact in independent components derived from fMRI primarily using spatial criteria. The motivation for our algorithm was to automatically remove artifact without removing signal likely to be of neuronal origin from an ICA of resting-state fMRI. The algorithm assesses four types of artifacts; CSF, sparsely distributed noise, movement-related artifact, and high temporal frequency noise. The temporal feature of the IC is considered only after the initial clustering of ICs using spatial features because temporal frequency ranges of artifactual and neural activity sometimes overlap (Beckmann et al., 2005; Birn et al., 2006). Such overlap in frequencies complicates the determination of how much of component variance is due to artifacts vs. signal likely to be of neuronal origin.
We chose to use generic properties of the IC to categorize artifact, specifically limiting them to spatial features as we have particular interest in the application of SOCK to resting-state functional connectivity and to fMRI data collected prior to an epileptic seizure (Federico et al., 2005). In this case, we have no prior model of expected signal change or event timing (apart from the seizure itself at which point the data acquisition usually ends).
Despite the limited a priori information, SOCK was able to reduce the solution space by over 50% without rejecting any components that are likely to be of neuronal origin in our test group of 50 healthy controls. Only 0.3% (7) of components identified as artifact by SOCK were discordant with the manual classification and retrospective examination of these ICs suggested SOCK had correctly identified these as artifact. Thus, our method leads to a substantial reduction of the number of components to be inspected and interpreted.
There are other automatic classifier methods which like SOCK use a combination of spatial and temporal characteristics to inform IC classification (Thomas et al., 2002; Kochiyama et al., 2005; De Martino et al., 2007; Perlbarg et al., 2007; Tohka et al., 2008; Sui et al., 2009; Kundu et al., 2012), however, an important difference is that these methods either rely on training data (De Martino et al., 2007; Tohka et al., 2008) or task-related temporal or spatial information (Thomas et al., 2002; Kochiyama et al., 2005; Sui et al., 2009) or set thresholds (Perlbarg et al., 2007) or multi-echo acquisition sequences (Kundu et al., 2012). For example De Martino et al. (2007) used IC-fingerprints for characterizing independent components and in a support vector machines framework to classify them into six classes including activation and noise classes. However, the accuracy of their classifier was dependent on the training data. They found that automatic classification was less accurate in detecting residual motion signal effects due to small number of samples employed in the training. Other methods, such as Sui et al. (2009) classify ICs using contrast images that contain no time-domain information. Their method works on utilizing information concerning the proportion of active voxels overlapping ventricular CSF and gray-matter masks. From our experience, it is often difficult to obtain accurate gray-matter masks with EPI images at 3 T, as the boarders between GM and WM are often indistinct. Edge and CSF masks such as those used in SOCK can be more reliably extracted from EPI images than GM masks. The method of Sui et al. (2009) also requires a user-selected parameter (Z-score threshold) whereas SOCK uses the threshold automatically determined by the Gaussian mixture modeling approach implemented in MELODIC (Beckmann and Smith, 2004) when determining the edge and CSF activity and unthresholded maps when determining the degree of smoothness. Finally, the work of Kundu et al. (2012) offers a robust means for classifying components of interest vs. artifact based on TE-dependence. However, the applicability of this method is dependent on functional images being acquired with a multi-echo EPI sequence, which precludes it from use with data from studies not acquired in this fashion.
The use of k-means clustering equips SOCK with objective and adaptive criteria, however it does require that at least some components are dominated by noise and others by signal of interest so that a meaningful clustering is achieved. This applies to clustering based upon degree of smoothness, edge activity, and temporal frequency noise. Even in the cases containing the fewest components in our study (subjects 25 and 27 in Table A2 in Appendix), SOCK was still effective at correctly removing a substantial proportion artifactual components: ICA yielded 14 components out of which SOCK classified 43 and 50% as artifact respectively. Nevertheless we advise caution in applying SOCK as presently implemented to variations of ICA that are already effective in producing very few, if any, components that are dominated by noise. For example event-related ICA (eICA) typically yields very few components due to it only dealing with short time epochs time-locked to events of interest (Masterton et al., 2013a,b). When only a handful of components are generated there is less need for an automatic classifier as it is relatively easy to manually inspect the ICs.
The performance of the SOCK classification is dependent on the accuracy of the edge and CSF masks which are generated using SPM’s New Segment tool. We found this tool robust in generating edge and CSF masks for the mean functional images used in this study. However, we did not test accuracy in cases where there exists gross pathology in subjects’ brains or where insufficient contrast between CSF and gray-matter regions exists in the EPI images. In these situations where the automated edge or CSF segmentation fails, the user could either generate custom masks, or elect to ignore these criteria (in which case SOCK would be unable to reject as artifact components exhibiting these features).
We tested the SOCK algorithm successfully on data from two different 3 T MRI scanners. These data had TR’s of 2.0, 3.0, and 3.6 s, voxel sizes of 2 mm × 2 mm × 2 mm and 3 mm × 3 mm × 3 mm and smoothing of 0 and 8 mm. The performance of SOCK was similar across all data sets. However, we only tested SOCK in conjunction with MELODIC (a popular ICA package). Other good ICA software exists [for example Egolf et al. (2004) and Himberg et al. (2004)] and we would therefore recommend a validation study if one were contemplating the use of SOCK with these or other packages.
A potential limitation of SOCK is that it may reject some neuronal activity if it is mixed with substantial noise in a single component. In the data we tested this may have occurred in two of the components we examined, as shown in Figure 8. In cases such as these it is not clear whether one should reject the component. One might argue that a conservative approach is rejection, because the potential activity of interest has the same time-course as noise. On the other hand, in clinical applications it may be considered conservative to retain the IC if any portion might be neuronal, even in the presence of noise. In the case of the two discordant components in this study, rejection would have had a minor impact on the possible neuronal activity, as there were other accepted components that contained substantially more activity in the same locations (see Figure 8).
In conclusion we have demonstrated a novel method for the automatic identification of artifactual ICs from resting-state fMRI data. SOCK proved to be effective in separating noise from signal in each of 50 healthy controls by identifying a high proportion of artifact-related ICs without removing components that are likely to be of neuronal origin. We tested the method with resting-state fMRI, however the method may also be effective for other study types and we therefore encourage validation studies in other contexts. SOCK does not require the user to train the algorithm and is able to adaptively determine variable threshold settings via use of k-means clustering. It does not require any temporal information about the fMRI paradigm or high-resolution anatomical scans. SOCK software is available at http://brain.org.au/software.
5. Conflict of Interest Statement
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
This study was supported by the National Health and Medical Research Council of Australia (Project Grants 368650 and 318900, Program Grant 628952, and a practitioner fellowship 527800 to Graeme D. Jackson), the Austin Hospital Medical Research Foundation, and the Operational Infrastructure Support Program of the State Government of Victoria, Australia.
Abbott, D., Masterton, R., Waites, A., Bhaganagarapu, K., Pell, G., Harvey, M., et al. (2011). “The iBrainTM analysis toolbox for SPM,” in Proceedings of the 17th Annual Meeting of the Organisation for Human Brain Mapping, Quebec City.
Abbott, D. F., Waites, A. B., Lillywhite, L. M., and Jackson, G. D. (2010). fMRI assessment of language laterlization: an objective approach. Neuroimage 50, 1446–1455. doi:10.1016/j.neuroimage.2010.01.059
Beckmann, C. F., DeLuca, M., Devlin, J. T., and Smith, S. M. (2005). Investigations into resting-state connectivity using independent component analysis. Philos. Trans. R. Soc. Lond. B Biol. Sci. 360, 1001–1013. doi:10.1098/rstb.2005.1634
Birn, R. M., Diamond, J. B., Smith, M. A., and Bandettini, P. A. (2006). Separating respiratory-variation-related fluctuations from neuronal-activity-related fluctuations in fMRI. Neuroimage 31, 1536–1548. doi:10.1016/j.neuroimage.2006. 02.048
Biswal, B. B., Mennes, M., Zuo, X. N., Gohel, S., Kelly, C., Smith, S. M., et al. (2010). Toward discovery science of human brain function. Proc. Natl. Acad. Sci. U.S.A. 107, 4734–4739. doi:10.1073/pnas.0911855107
Calhoun, V. D., Adali, T., Stevens, M. C., Kiehl, K. A., and Pekar, J. J. (2005). Semi-blind ICA of fMRI: a method for utilizing hypothesis-derived time courses in a spatial ICA analysis. Neuroimage 25, 527–538. doi:10. 1016/j.neuroimage.2004.12.012
Calhoun, V. D., Maciejewski, P. K., Pearlson, G. D., and Kiehl, K. A. (2008). Temporal lobe and default hemodynamic brain modes discriminate between schizophrenia and bipolar disorder. Hum. Brain Mapp. 29, 1265–1275. doi:10.1002/hbm.20463
De Martino, F., Gentile, F., Esposito, F., Balsi, M., Di Salle, F., Goebel, R., et al. (2007). Classification of fMRI independent components using IC-fingerprints and support vector machine classifiers. Neuroimage 34, 177–194. doi:10. 1016/j.neuroimage.2006.08.041
Glover, G. H., Li, T. Q., and Ress, D. (2000). Image-based method for retrospective correction of physiological motion effects in fMRI: RETROICOR. Magn. Reson. Med. 44, 162–167. doi:10.1002/1522-2594(200007)44:1<162::AID-MRM23>3.3.CO;2-5
Grootoonk, S., Hutton, C., Ashburner, J., Howseman, A., Josephs, O., Rees, G., et al. (2000). Characterization and correction of interpolation effects in the realignment of fMRI time series. Neuroimage 11, 49–57. doi:10.1006/nimg.1999.0515
Himberg, J., Hyvärinen, A., and Esposito, F. (2004). Validating the independent components of neuroimaging time series via clustering and visualization. Neuroimage 22, 1214–1222. doi:10. 1016/j.neuroimage.2004.03.027
Kelly, R. E. Jr., Alexopoulos, G. S., Wang, Z., Gunning, F. M., Murphy, C. F., Morimoto, S. S., et al. (2010). Visual inspection of independent components: defining a procedure for artifact removal from fMRI data. J. Neurosci. Methods 189, 233–245. doi:10.1016/j.jneumeth.2010.03.028
Kochiyama, T., Morita, T., Okada, T., Yonekura, Y., Matsumura, M., and Sadato, N. (2005). Removing the effects of task-related motion using independent-component analysis. Neuroimage 25, 802–814. doi:10. 1016/j.neuroimage.2004.12.027
Kundu, P., Inati, S. J., Evans, J. W., Luh, W. M., and Bandettini, P. A. (2012). Differentiating bold and non-bold signals in fmri time series using multi-echo epi. Neuroimage 60, 1759–1770. doi:10. 1016/j.neuroimage.2011.12.028
LeVan, P., Tyvaert, L., Moeller, F., and Gotman, J. (2010). Independent component analysis reveals dynamic ictal BOLD responses in EEG-fMRI data from focal epilepsy patients. Neuroimage 49, 366–378. doi:10. 1016/j.neuroimage.2009.07.064
Lillywhite, L. M., Saling, M. M., Simon Harvey, A., Abbott, D. F., Archer, J. S., Vears, D. F., et al. (2009). Neuropsychological and functional MRI studies provide converging evidence of anterior language dysfunction in BECTS. Epilepsia 50, 2276–2284. doi:10.1111/j.1528-1167.2009.02065.x
Masterton, R. A. J., Carney, P. W., Abbott, D. F., and Jackson, G. D. (2013a). Absence epilepsy subnetworks revealed by event-related independent components analysis of functional magnetic resonance imaging. Epilepsia 54, 801–808. doi:10.1111/epi.12163
Masterton, R. A. J., Jackson, G. D., and Abbott, D. F. (2013b). Mapping brain activity using event-related independent components analysis (eICA): specific advantages for EEG-fMRI. NeuroImage 70, 164–174. doi:10.1016/j.neuroimage.2012. 12.025
McKeown, M. J., Makeig, S., Brown, G. G., Jung, T. P., Kindermann, S. S., Bell, A. J., et al. (1998). Analysis of fMRI data by blind separation into independent spatial components. Hum. Brain Mapp. 6, 160–188. doi:10.1002/(SICI)1097-0193(1998)6:5/6<368::AID-HBM7>3.3.CO;2-5
Moritz, C. H., Rogers, B. P., and Meyerand, M. E. (2003). Power spectrum ranked independent component analysis of a periodic fMRI complex motor paradigm. Hum. Brain Mapp. 18, 111–122. doi:10.1002/hbm.10081
Ogawa, S., Lee, T. M., Kay, A. R., and Tank, D. W. (1990). Brain magnetic resonance imaging with contrast dependent on blood oxygenation. Proc. Natl. Acad. Sci. U.S.A. 87, 9868–9872. doi:10.1073/pnas.87.24.9868
Perlbarg, V., Bellec, P., Anton, J. L., Plgrini-Issac, M., Doyon, J., and Benali, H. (2007). CORSICA: correction of structured noise in fMRI by automatic identification of ICA components. Magn. Reson. Imaging 25, 35–46. doi:10.1016/j.mri.2006.09.042
Rodionov, R., De Martino, F., Laufs, H., Carmichael, D. W., Formisano, E., Walker, M., et al. (2007). Independent component analysis of interictal fMRI in focal epilepsy: comparison with general linear model-based EEG-correlated fMRI. Neuroimage 38, 488–500. doi:10.1016/j.neuroimage.2007.08.003
Sui, J., Adali, T., Pearlson, G. D., and Calhoun, V. D. (2009). An ICA-based method for the identification of optimal FMRI features and components using combined group-discriminative techniques. Neuroimage 46, 73–86. doi:10. 1016/j.neuroimage.2009.01.026
Tohka, J., Foerde, K., Aron, A. R., Tom, S. M., Toga, A. W., and Poldrack, R. A. (2008). Automatic independent component labeling for artifact removal in fMRI. Neuroimage 39, 1227–1245. doi:10.1016/j.neuroimage.2007. 10.013
Waites, A. B., Briellmann, R. S., Saling, M. M., Abbott, D. F., and Jackson, G. D. (2006). Functional connectivity networks are disrupted in left temporal lobe epilepsy. Ann. Neurol. 59, 335–343. doi:10.1002/ana.20733
Waites, A. B., Stanislavsky, A., Abbott, D. F., and Jackson, G. D. (2005). Effect of prior cognitive state on resting state networks measured with functional connectivity. Hum. Brain Mapp. 24, 59–68. doi:10.1002/hbm.20069
Weisskoff, R., Baker, J., Belliveau, J., Davis, T., Kwong, K., Cohen, M., et al. (1993). Power spectrum analysis of functionally-weighted MR data: what’s in the noise? Proc. Int. Soc. Magn. Reson. Med. 1993(Suppl. S1), 7.
Windischberger, C., Langenberger, H., Sycha, T., Tschernko, E. M., Fuchsjger-Mayerl, G., Schmetterer, L., et al. (2002). On the origin of respiratory artifacts in BOLD-EPI of the human brain. Magn. Reson. Imaging 20, 575–582. doi:10.1016/S0730-725X(02)00 563-5
Table A1. ICA decomposition and the SOCK classification for 9 healthy controls who underwent a 60 min resting-state fMRI with TR of 3.0 s.
Table A2. ICA decomposition and the SOCK classification for 21 healthy controls who underwent a 10 min resting-state fMRI with TR of 3.6 s.
Table A3. ICA decomposition and the SOCK classification for 20 healthy controls who underwent a 9 min resting-state fMRI with TR of 2.0 s.
This appendix describes how we arrived at the hard thresholds used to determine when a component could be safely classified as artifact solely on edge or solely on CSF criteria. Our subsequent validation of the algorithm on data substantially different from that used here indicates that this procedure does not need to be re-done by an end user of the SOCK algorithm.
SOCK uses a combination of measures with adaptively determined thresholds to assist classification. However when there is a very large amount of edge or CSF activity, this alone can be enough to definitively classify the component as artifact. Therefore we use additional fixed thresholds to classify components as artifact when extremes occur in the edge and CSF measures. We tested a combination of fixed edge and CSF thresholds from 5 subjects scanned on the same scanner as data sets 1 and 2 in Section 2.5, where a manual classification was known. This was done via a Receiver Operating Characteristic (ROC) (Figure A1), which illustrates the performance of SOCK on these subjects for a total of 525 combinations of edge and CSF thresholds ranging from 0 to 70%. Each combination represents an edge and CSF threshold, with combination 0 representing 0% edge and CSF threshold and combination 525 representing 70% edge and CSF threshold (Figure A2). We found the classification in the 5 subjects did not change significantly (within 10%) in the range of 40–50% for edge threshold and 20–30% for the CSF threshold (points in light gray). Lower values resulted in at least one neuronal component being misclassified as artifact (i.e., having a sensitivity of less than one which we regard as failure), whilst higher values resulted in fewer artifacts being identified (which we regard as a decrease in performance or smaller specificity). To minimize the chance of failure we chose the highest thresholds before a decrease in performance occurs (i.e., well away from the failure condition); 50 and 30% for the edge and CSF thresholds respectively.
Figure A1. Receiver Operating Characteristic (ROC) curve for edge and CSF thresholds for 5 test subjects. A total of 525 combinations of edge and CSF thresholds (ranging from 0 to 70%) were tested. Shown in light gray are combinations where the classification in the 5 subjects did not change significantly (within 10%). These represent the ranges, 40–50% for the edge threshold and 20–30% for the CSF threshold. Lower values resulted in at least one neuronal component being misclassified as artifact (i.e., having a sensitivity of less than one which we regard as failure), whilst higher values resulted in fewer artifacts being identified (which we regard as a decrease in performance or smaller specificity). To minimize the chance of failure we chose the highest thresholds before a decrease in performance occurs (i.e., well away from the failure condition); 50 and 30% for the edge and CSF thresholds respectively.
Figure A2. A total of 525 combinations for edge and CSF thresholds ranging from 0 to 70% were tested. Each combination represents an edge and CSF threshold, with combination 0 representing 0% edge and CSF threshold and combination 525 representing 70% edge and CSF threshold. Shown on the graph is combination 367, which corresponds to 50% edge threshold and 30% CSF threshold.
Keywords: functional magnetic resonance imaging, fMRI, independent component analysis, ICA, automated classification, automatic, artifacts, independent component labeling
Citation: Bhaganagarapu K, Jackson GD and Abbott DF (2013) An automated method for identifying artifact in independent component analysis of resting-state fMRI. Front. Hum. Neurosci. 7:343. doi: 10.3389/fnhum.2013.00343
Received: 20 December 2012; Accepted: 17 June 2013;
Published online: 10 July 2013.
Edited by:Simon Daniel Robinson, Medical University of Vienna, Austria
Reviewed by:Prantik Kundu, University of Cambridge/National Institutes of Health, USA
Roland N. Boubela, Medical University of Vienna, Austria
Copyright: © 2013 Bhaganagarapu, Jackson and Abbott. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in other forums, provided the original authors and source are credited and subject to any copyright notices concerning any third-party graphics etc.
*Correspondence: David F. Abbott, The Florey Institute of Neuroscience and Mental Health, The University of Melbourne, Austin Campus, 245 Burgundy Street, Heidelberg, Melbourne, VIC 3084, Australia e-mail: email@example.com