1. Home
  2. Explore
  3. Statistics
  4. Statistical Brain Imaging

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Statistical Brain Imaging

Individualized Statistical Analysis of fMRI Data

Functional magnetic resonance imaging, or fMRI, produces measurements that reflect changes associated with brain activity. These measurements can help researchers study brain organization, cognition, disease, development, and treatment. However, obtaining useful scientific or clinical conclusions from fMRI requires more than collecting images. The data must be modeled in a way that reflects how the brain and the measurements actually vary.

A central theme in modern neuroimaging is a shift from relying primarily on group averages toward understanding individual brains. This shift is important because people’s brains are not organized identically. A brain region that is optimal for one person may not occupy exactly the same location or serve exactly the same role in another person.

Individualized fMRI analysis aims to describe each person’s brain accurately rather than assuming that a group average represents every individual equally well.

From Group Averages to Individualized Analysis

Traditional neuroimaging studies often combine data across many participants and identify brain areas that show a common pattern. Group-level analysis can be useful for discovering broad regularities, but it may conceal meaningful individual differences.

For example, suppose a group-average analysis identifies a location in the cortex that is associated with a particular function. That location may represent the average position across participants, even though the actual functional location differs from person to person. If a treatment is directed at the group-average location, the target may be well positioned for some patients but poorly positioned for others.

Individualized analysis attempts to estimate brain features separately for each person. These features may include:

  • The location of functional brain networks
  • The boundaries of brain parcels
  • Functional connectivity between regions
  • Patterns of activation during a task
  • The best location for a clinical intervention

This approach is closely related to precision medicine, the idea that medical treatment should be tailored to the characteristics of an individual patient rather than based solely on population averages.

Individualized Brain Stimulation

One important application is using fMRI to guide brain stimulation. Brain stimulation can be directed toward a particular area of the cortex in an attempt to produce a therapeutic effect. In treatment-resistant depression, for example, researchers have investigated whether fMRI can help identify a more suitable target for stimulation.

Earlier approaches often used group-average resting-state connectivity to select the target. The underlying assumption was that the location that tends to be effective across a group would also be appropriate for a particular patient. However, because functional organization differs across people, an individualized resting-state analysis may provide a more precise target.

The reasoning is:

  1. Resting-state fMRI is used to measure patterns of communication among brain regions.
  2. The analysis identifies the functional organization of a particular patient’s brain.
  3. A brain-stimulation target is selected based on that individual organization.
  4. Treatment can therefore be personalized rather than based only on a population average.

This does not mean that individualized analysis automatically guarantees a successful treatment. It means that the target-selection process is designed to account for the patient’s actual brain organization.

Clinical Uses of fMRI

fMRI has historically been used in pre-surgical planning, particularly through task fMRI. In task fMRI, a participant performs a known task while the scanner measures changes in brain activity. The task might be designed to engage a particular cognitive or sensory function. Clinicians can then use the resulting activation pattern to help understand the functional organization of the brain before surgery.

There has also been interest in broader clinical and translational uses of fMRI, including:

  • Clinical trials
  • Treatment planning
  • Guided brain stimulation
  • Neurodegenerative diseases
  • Neonatal development
  • Psychiatric treatment, including psilocybin therapy

The clinical use of fMRI experienced an early period of enthusiasm, followed by disappointment when many clinical trials did not demonstrate the expected success. More recently, interest has increased again. One reason may be the development of more sophisticated statistical methods, especially for resting-state data.

Better clinical use of fMRI depends not only on collecting images, but also on analyzing them with models that accurately represent individual variation, spatial relationships, and temporal dependence.

Think About It

Why might a treatment target based on a group-average brain location fail to be optimal for a particular patient?

Task fMRI and Resting-State fMRI

Two broad forms of fMRI discussed in this context are task fMRI and resting-state fMRI.

Task fMRI

In task fMRI, the experimental task is known. Researchers know what participants are being asked to do and when different parts of the task occur. This provides important information about the temporal structure of the data.

For example, if a participant is instructed to alternate between viewing images and resting, the researcher knows approximately when each condition occurs. The statistical model can then test whether brain activity changes in relation to the task.

Task fMRI is therefore comparatively simpler to model because:

  • The task paradigm is known.
  • The timing of the task is known or at least partially known.
  • The researcher has a proposed explanation for changes in brain activity.
  • Brain activity can be modeled in relation to experimentally controlled events.

Resting-State fMRI

In resting-state fMRI, participants are not performing a structured task. They may be asked simply to rest while the scanner records spontaneous fluctuations in brain activity.

The absence of a task does not mean that the data contain no useful information. Brain regions often show correlated fluctuations, and these relationships can reveal functional connectivity. Functional connectivity refers to statistical relationships between activity patterns in different regions or networks.

However, resting-state data are harder to model because the researcher does not know in advance:

  • What mental processes are occurring at each moment
  • Which spatial regions should be grouped together
  • How brain networks are organized in that individual
  • Which observed relationships reflect meaningful neural organization and which reflect noise

In other words, resting-state analysis requires assumptions about both:

  1. Spatial organization — where relevant brain regions or networks are located
  2. Temporal organization — how activity changes over time

These spatial and temporal features interact to produce the observed fMRI data. If the model makes overly simple assumptions about either feature, the resulting conclusions may be inaccurate.

Why Resting-State Clinical Applications Have Lagged

Resting-state fMRI has historically had less clinical success than task fMRI. The greater difficulty of modeling resting-state data is one important reason.

Task fMRI begins with a known experimental structure. Resting-state fMRI does not. Consequently, researchers may be tempted to use convenient but overly general methods, such as group-defined brain parcels, even when those parcels do not accurately represent an individual’s brain.

Another problem is data quantity. Resting-state studies have often collected relatively short scans, sometimes only a few minutes. Short recordings provide less information about a person’s stable connectivity patterns and can make estimates less reliable. A longer recording generally provides more observations of the spontaneous fluctuations being studied, although the content emphasizes that many resting-state datasets have historically been limited in duration.

Resting-state fMRI is challenging because both the relevant spatial structure and the relevant temporal structure must be inferred rather than being supplied by an experimental task.

Spatial Statistical Models

A major strategy for improving fMRI analysis is the use of spatial models. These models incorporate information about how nearby or related locations in the brain are connected or similar.

The Problem with Massive Univariate Analysis

A common traditional approach is massive univariate analysis. In this approach, a separate statistical model is fitted independently at each location, or voxel, in the brain.

The advantage is simplicity: each location can be analyzed separately. The disadvantage is that the method treats locations as if they were unrelated, even though the brain has strong spatial organization.

Neighboring brain locations are often more similar than distant locations. Functional networks also extend across multiple locations. A model that ignores these relationships discards useful information.

How Spatial Models Help

A spatial model builds relationships among locations directly into the analysis. Rather than treating every location as an isolated entity, the model treats the brain as a structured spatial system.

This can improve analysis in two related ways:

  • Greater accuracy: Information from related locations can help produce more stable estimates.
  • Greater statistical power: The model can detect meaningful patterns more effectively by using the spatial structure of the data.

Spatial models can be used for both task fMRI and resting-state fMRI. In resting-state research, they can support analyses such as independent component analysis, often abbreviated ICA, and the estimation of resting-state networks.

Multiple Comparisons

Massive univariate analysis creates another challenge: multiple comparisons. If thousands of locations are tested separately, some may appear statistically significant purely by chance. Researchers therefore need procedures that control the risk of false-positive findings.

Spatial models can address the problem differently by modeling the brain as a unified spatial system rather than conducting a completely separate test at every location. This can reduce the dependence on large numbers of independent tests and the associated multiple-comparison corrections.

This does not mean that spatial models eliminate the need for statistical caution. Rather, they incorporate the structure of the problem into one coherent model, which can produce more precise estimates than treating every location independently.

Think About It

If neighboring brain locations are likely to have related activity, why might it be inefficient to analyze each location as though it were completely unrelated to every other location?

Hierarchical Bayesian Models and Population-Derived Priors

Another major approach uses Bayesian modeling, especially hierarchical Bayesian models designed for subject-level analysis.

Bayesian methods combine observed data with prior information. A prior distribution represents information about plausible values or patterns before analyzing the current subject’s data. After the subject’s data are incorporated, the result is a posterior distribution, which represents the updated estimate.

In this work, the prior is derived from a larger population dataset and then used in the analysis of an individual subject.

Population-Derived Priors

Suppose researchers want to estimate a resting-state network map for a healthy young adult. Large databases contain information about many healthy young adults. Researchers can use those data to estimate what network patterns are generally plausible.

The resulting population-derived prior can then be used when analyzing a new individual. The prior provides a useful starting point, but the individual’s data are still analyzed directly.

Population-derived priors can be created for several types of features:

  • Resting-state network maps
  • Functional connectivity matrices between resting-state networks
  • Task activation patterns
  • Other spatial or connectivity characteristics

The main focus described here is on resting-state networks defined through ICA or brain parcellation, along with the connectivity among those networks.

Why Priors Can Reduce Noise

Individual fMRI data are noisy. If a researcher estimates a complex brain pattern using only a short or imperfect scan, the estimate may be unstable.

A population-derived prior can reduce noise by providing information about patterns that are likely to be meaningful. The model does not have to interpret every fluctuation in the individual’s data as a real feature.

This process is often described as shrinkage. An estimate is pulled toward a population-supported pattern when the individual data do not provide strong evidence for a different pattern.

However, indiscriminate shrinkage would be a problem. If every individual were forced toward the group average, genuine individual differences could disappear.

Spatially Varying Priors

The approach described uses spatially varying priors. This means that the strength of the population influence can differ across locations.

Where individuals tend to be similar, the prior can produce stronger shrinkage toward the population pattern. This reduces noise in relatively consistent background areas.

Where individuals tend to differ, the prior becomes more flexible. The individual’s data are allowed to depart from the population pattern, preserving meaningful variation.

The logic can be summarized as follows:

  • Little population variation: stronger shrinkage and greater noise reduction
  • Substantial population variation: weaker shrinkage and greater preservation of individual differences

This approach attempts to achieve a balance between two undesirable extremes:

  1. Estimating each subject entirely independently, which may leave too much noise
  2. Forcing every subject toward a group average, which may erase real individual differences

A well-designed prior should reduce noise where people are similar while allowing individual data to dominate where meaningful differences exist.

Bayesian and Frequentist Approaches

Frequentist and Bayesian methods are often presented as opposing statistical philosophies, but the practical issue is more specific. There can be effective and ineffective models within either framework.

A Bayesian model is not automatically superior simply because it is Bayesian. Likewise, a frequentist model is not automatically appropriate simply because it is familiar or widely used. The more important question is whether the model accurately represents the data.

A useful model should respect:

  • Spatial relationships in the brain
  • Temporal dependence in fMRI measurements
  • Individual differences
  • The uncertainty present in the data
  • The structure created by repeated measurements

Bayesian modeling is one way to incorporate these features, but careful modeling is also possible in non-Bayesian frameworks.

Temporal Autocorrelation and Prewhitening

fMRI data are time series: measurements are collected repeatedly over time. This creates another important statistical issue called temporal autocorrelation.

What Is Temporal Autocorrelation?

Temporal autocorrelation occurs when measurements close together in time are statistically related. In fMRI, a measurement at one time point is often more similar to measurements at nearby time points than to measurements collected much later.

A standard regression model may assume that the residuals are independent and identically distributed, often abbreviated IID. This means that the unexplained errors are assumed to be independent of one another and to follow the same distribution.

That assumption is usually unrealistic for fMRI time-series data. If residuals are temporally related, treating them as independent can lead to incorrect estimates of uncertainty and misleading statistical conclusions.

Prewhitening

Prewhitening is a method intended to reduce or remove temporal dependence in the residuals.

Conceptually, prewhitening transforms the regression equation so that the remaining errors are closer to being independent. This is done by multiplying both sides of the equation by a matrix designed to account for the estimated temporal correlation.

In symbolic form, if a regression equation is represented as

y=Xβ+ε,y = X\beta + \varepsilon,y=Xβ+ε,

a prewhitening transformation applies a matrix WWW to both sides:

Wy=WXβ+Wε.Wy = WX\beta + W\varepsilon.Wy=WXβ+Wε.

The purpose of WWW is to transform the correlated errors into errors that more closely satisfy the independence assumption.

The effectiveness of prewhitening depends on whether the temporal autocorrelation has been modeled accurately. Historically, some prewhitening methods were too simplistic and therefore did not fully account for the actual structure of fMRI time series.

Why Temporal Modeling Matters

If temporal autocorrelation is ignored or modeled poorly, statistical tests may appear more certain than they should be. The analysis may treat repeated, related fluctuations as though they were independent pieces of evidence.

Improved temporal models can therefore make fMRI results more reliable. Importantly, better temporal modeling is not inherently a Bayesian issue. It is a matter of constructing a model that reflects the data’s actual temporal structure.

Spatial Correlation and Cluster Inference

fMRI data also contain spatial correlation: nearby locations tend to have related values. Statistical procedures that use clusters of neighboring significant locations depend on assumptions about this spatial structure.

If the assumed spatial correlation is wrong, cluster-based inference can produce incorrect conclusions about significance. This issue illustrates a broader lesson: statistical tools can be easy to run while still relying on assumptions that require careful understanding.

Multiple Comparisons and Statistical Reliability

fMRI studies typically examine many locations, connections, or hypotheses. The more tests that are performed, the greater the chance that at least one will appear significant by chance.

Multiple-comparison correction refers to methods used to control this problem. These procedures attempt to limit false-positive findings when many statistical tests are conducted.

Understanding multiple comparisons requires attention to:

  • How many tests are being performed
  • Whether tests are independent or spatially related
  • What type of error control is desired
  • How clusters or networks are defined
  • Whether the statistical assumptions match the data

The problem is not merely technical. A false-positive brain finding can influence theories, clinical interpretations, and future research. Therefore, statistical models must be designed with awareness of the number and structure of the comparisons being made.

Learning the Statistical Nuances of fMRI

Modern neuroimaging software makes it possible to conduct sophisticated analyses with relatively little code. Software packages can guide users through preprocessing, model fitting, visualization, and statistical inference.

This accessibility has important benefits. More researchers can analyze fMRI data, and the field can explore a wider range of scientific questions. At the same time, ease of use can create a risk: a researcher may run an analysis without understanding the assumptions behind it.

A complete fMRI researcher does not need to become a specialist in every area of statistics. However, meaningful statistical education is essential. Researchers should understand at least:

  • What the model is estimating
  • What assumptions the model makes
  • Why those assumptions matter
  • How spatial and temporal dependence affect inference
  • How multiple comparisons are handled
  • What sources of uncertainty remain
  • How to interpret the output responsibly

Similarly, statisticians working with neuroimaging benefit from learning the scientific domain. A statistician does not need to become a complete expert in Alzheimer’s disease, cognition, or another specific research area, but domain knowledge helps ensure that the statistical model addresses a meaningful scientific problem.

The strongest interdisciplinary research comes from scientists who understand both their primary field and enough of the connected fields to communicate, identify assumptions, and recognize potential problems.

Statistical expertise and scientific expertise complement one another. Reliable research requires understanding not only how to fit a model, but also what the data represent and what scientific question the model is meant to answer.

Practical, Code-Based Learning

Advanced neuroimaging methods are difficult to learn through lectures alone. Practical training is especially valuable because researchers must deal with:

  • Data organization
  • Software environments
  • Computational limitations
  • Code errors
  • Model specification
  • Visualization
  • Interpretation of statistical output
  • Reproducibility concerns

A notebook-style workflow can combine executable code with explanatory text, outputs, and visualizations. In the R programming environment, a similar format is an R Markdown report. Such a report can:

  1. Introduce the analysis
  2. Provide the code
  3. Run the statistical procedures
  4. Display results and visualizations
  5. Explain how to interpret those results

This format makes the analysis easier to follow and easier to reproduce. It also gives learners a complete example that can be modified for their own data.

Training is particularly effective when it alternates between explanation and practice. Students first learn the purpose and assumptions of a method, then apply it to data, inspect the output, and confront the computational details directly.

Reproducibility and Open Neuroimaging Science

Reproducibility means that an analysis can be repeated using the recorded data, code, software environment, and documented procedures, producing the same or appropriately comparable results.

Reproducibility is important because scientific conclusions should not depend on undocumented steps or inaccessible knowledge. A reproducible analysis allows other researchers to:

  • Check how the results were produced
  • Identify errors
  • Reuse the methods
  • Extend the analysis
  • Compare results across studies
  • Build confidence in the findings

Reproducibility must be considered at both the individual and laboratory levels. It is one thing for a researcher to make a personal analysis repeatable. It is more difficult to create a laboratory-wide system in which multiple researchers consistently organize code, data, documentation, and manuscripts in reproducible ways.

Useful reproducible infrastructure may include:

  • Clearly organized code
  • Documented processing steps
  • Version-controlled files
  • Shared data structures
  • Recorded software environments
  • Executable analysis reports
  • Public repositories when appropriate

Containerized Environments

A containerized environment packages software and its dependencies into a controlled computational setting. Neuroimaging tools can be placed inside such an environment so that the analysis is less dependent on the specific computer or operating system used by an individual researcher.

This helps address a common reproducibility problem: the same code may behave differently when software versions, libraries, or operating systems differ.

A controlled environment can contain multiple neuroimaging programs and provide a consistent place to run the analysis. Data, scripts, and documentation can then be shared together, making it easier for another researcher to reproduce the workflow.

Platforms for Open Analysis

Open neuroimaging platforms aim to make well-documented and reproducible analysis more accessible. Such platforms can support:

  • Standardized workflows
  • Shared computational environments
  • Public or controlled-access data
  • Transparent analysis records
  • Reusable processing pipelines

The broader goal is to democratize open neuroimaging science: researchers should be able to inspect, reuse, and build upon analyses without needing to reconstruct undocumented technical details.

Large Neuroimaging Databases

Large public datasets provide valuable resources for statistical method development and validation. Examples discussed include datasets involving:

  • Healthy adults
  • Autism research
  • Alzheimer’s disease and related conditions

For a statistician who does not collect original data, these repositories make it possible to develop and test new methods using substantial existing datasets.

Large datasets can help researchers:

  • Estimate population patterns
  • Construct priors
  • Test statistical procedures
  • Study variation across individuals
  • Validate methods across samples
  • Investigate questions that would be difficult with a small newly collected dataset

However, larger does not automatically mean better. Large datasets come with logistical, scientific, and statistical challenges.

The Benefits of Large Datasets

A large dataset may provide more observations and broader variation than a small study. This can increase the ability to estimate general patterns and evaluate the performance of statistical methods.

Large repositories also prevent researchers from needing to collect duplicate data for every methodological question. Existing data can be analyzed in new ways, allowing previously collected resources to produce additional scientific value.

Data Storage and Infrastructure

Large datasets require substantial infrastructure. Researchers must determine:

  • Where the data will be stored
  • Who is responsible for maintaining it
  • How multiple researchers can access it
  • How data versions will be managed
  • How computationally intensive analyses will be performed

These are not merely administrative details. If data cannot be stored, processed, or shared reliably, the scientific value of the dataset is reduced.

Standardization and Processing

Some large projects are particularly useful because they have invested heavily in standardized acquisition and processing. Consistent preprocessing and denoising can make a dataset easier to analyze and compare.

For example, a repository may provide data that have already undergone standardized artifact removal or denoising. This reduces the amount of processing each research group must perform independently.

However, researchers should still understand what preprocessing has been done and what assumptions were used. Standardization improves consistency, but it does not eliminate every possible source of bias.

Heterogeneity in Multisite and Longitudinal Data

Datasets collected over many years or at many sites can contain substantial heterogeneity, meaning that the measurements differ for multiple reasons.

Differences in Acquisition

Different sites may use:

  • Different scanners
  • Different pulse sequences
  • Different acquisition protocols
  • Different sampling strategies
  • Different technical generations of MRI equipment

A dataset may therefore combine scans collected under substantially different conditions.

Changes Over Time

In longitudinal studies, the individual may change over time because of:

  • Natural aging
  • Disease development
  • Disease progression
  • Conversion from a nonclinical state to a clinical condition

At the same time, the scanner, acquisition protocol, or processing pipeline may also change.

This creates a difficult identification problem. If the measured brain signal changes between two time points, the change may reflect:

  • A genuine change in the individual’s brain
  • A change in the scanner or acquisition
  • A change in preprocessing
  • Some combination of these factors

Researchers must try to disentangle biological change from measurement change.

Differences Between Sites

Multisite datasets may also reflect real differences among the locations where data were collected. Sites can differ in:

  • Population demographics
  • Environmental conditions
  • Climate
  • Pollution levels
  • Local recruitment patterns
  • Scanner and protocol characteristics

This creates an important complication. A site difference may be a technical artifact, a genuine population difference, or both. Even perfect technical harmonization would not necessarily remove every meaningful difference between sites.

The Double-Edged Nature of Consortium Data

Multisite consortium datasets provide access to large and diverse samples, but their complexity can make analysis difficult. Researchers may be tempted to use simplified correction procedures or compromise on how fully they address the data’s challenges.

If those compromises are not understood, the resulting conclusions may be difficult to interpret. A large sample does not automatically guarantee valid results if the measurement process is inconsistent or the statistical model ignores important sources of variation.

Therefore, large consortium datasets should complement rather than completely replace carefully collected single-site studies. Single-site data may offer more consistent acquisition and processing, while consortium data may offer greater sample size and population diversity. Both types of data contribute different strengths.

Learning from Small, Carefully Collected Datasets

The value of a dataset is not determined only by the number of participants. A small dataset can still provide important information if it has been collected carefully, includes repeated measurements, and addresses a population that is difficult to study.

One example is research on amyotrophic lateral sclerosis, or ALS, a rare neurodegenerative disease. A longitudinal dataset containing a relatively small number of individuals with ALS, together with age-matched healthy controls, can be scientifically valuable when participants have been followed over multiple years.

Such data may reveal disease-related changes that would be difficult to study through a large but shallow dataset. The repeated measurements provide information about the progression of the disease process.

Advanced statistical methods can increase the value of these data by:

  • Modeling spatial relationships in the brain
  • Reducing noise
  • Using repeated measurements efficiently
  • Preserving individual differences
  • Comparing disease-related patterns with appropriate controls

This illustrates the relationship between data quality and analytical quality. Both matter. Modern acquisition techniques may produce better measurements, but older data can still yield new insights when analyzed carefully.

The most productive approach is not to choose between better data and better analytics. Researchers should improve acquisition when possible while also developing models that make effective use of existing data.

Think About It

Why might a small longitudinal dataset be more informative for studying disease progression than a much larger dataset containing only one measurement per participant?

Comprehensive Review

Individualized fMRI analysis responds to a basic limitation of group-average research: people’s brains differ. These differences matter especially when fMRI is used for clinical decisions such as selecting a brain-stimulation target.

Task fMRI is easier to model because the experimental timing and task structure are known. Resting-state fMRI is more difficult because both spatial organization and temporal activity must be inferred. Short resting-state scans can further reduce reliability.

Spatial models improve analysis by representing relationships among brain locations instead of treating every location as independent. This can increase accuracy and statistical power while reducing reliance on massive collections of separate tests.

Hierarchical Bayesian methods can use population-derived priors to stabilize individual-level estimates. Spatially varying priors reduce noise where people are similar but preserve individual differences where people vary. The key issue is not whether Bayesian or frequentist methods are universally better; the key issue is whether the model respects the structure of the data.

fMRI also requires careful temporal modeling because measurements collected close together in time are often correlated. Standard IID residual assumptions may be inappropriate. Prewhitening and other improved temporal models attempt to account for this autocorrelation. Spatial correlation must also be modeled carefully, particularly when researchers make cluster-based inferences.

Reliable neuroimaging research requires more than easy-to-use software. Researchers need enough statistical knowledge to understand assumptions, uncertainty, multiple comparisons, spatial dependence, and temporal dependence. Practical code-based training helps connect theory to real computational workflows.

Reproducibility requires organized code, documented procedures, shared environments, and clearly recorded data-processing steps. Containerized platforms and open-analysis systems can make these practices more accessible.

Finally, large databases provide valuable opportunities for method development and broader inference, but they also contain challenges involving storage, standardization, scanner differences, acquisition changes, site effects, and population heterogeneity. Carefully collected small datasets remain valuable, especially when they provide detailed longitudinal observations of rare diseases.

The overarching principle is that trustworthy fMRI science depends on matching the statistical model to the actual structure of the data. Accurate individualized conclusions emerge when researchers combine thoughtful acquisition, realistic spatial and temporal models, careful treatment of uncertainty, practical computational training, and reproducible scientific workflows.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent