lecture 5 - GLM Flashcards
the signal intensity of time series
- changes with specific experimental conditions, stimuli, or tasks the subject was performing during the scan to identify brain regions that are involved in particular cognitive processes or responses.
- However, the signal can also be influenced by noise, movement artifacts, and physiological changes unrelated to neural activity (breathing), which requires careful preprocessing and analysis to ensure accurate interpretation.
- so, how much of the signal is explained variance
averaging
- take 2 periods
- overlay and average
- test difference between two values (t-test)
problem with averaging fMRI data (+ solution)
- all types of events are being averaged together
-> cue-related and stimulus-related responses - solution: EPOCH AVERAGING
Instead of averaging the whole time series, take the data 20 seconds after an event (cue or stimulus) and average those epochs.
–> Segmenting the time series data into shorter intervals (“epochs”) around the time of the stimulus or cue and then averaging the data within those epochs.
–> This method allows for the examination of the time-locked response to specific events
(i.e., epoched average of cue-locked response and stimulus-locked response separately)
problem with epoch averaging
it is impossible to unambiguously assign data to overlapping events within epochs
–> if stimuli and cues are presented in quick succession, their related BOLD responses can overlap in time.
–> if data responses fall into multiple epochs, they are ‘counted’ multiple times
GLM/Linear Time-Invariant (LTI) System
- neuronal activity acts as input/impulse
- HRF acts as the impulse response function
- the expected fMRI signal at time t is modeled as the convolution of a canonical response and neural activity
GLM/Linear Time-Invariant (LTI) System - principle of linearity
GLM assumes that the BOLD responses elicited by different events or stimuli within the experiment can simply be added together in a linear way to produce the overall BOLD response
–> BOLD response is directly proportional to the magnitude of the neural activity
convolution
- neural activity * ‘canonical’ response
- shows how the BOLD signal changes over time in response to neural activity induced by the stimulus.
- because we assume that the link between neural firing and BOLD response is an LTI system, we can use convolution with an HRF to model the predicted BOLD response
meat of the GLM analysis
- multiple events of which you’ll be interested in differential responses to these events
- form explicit expectations for different conditions/events/predictors/regressors/explanatory variables
–> here, you assume the HRF shape - see whether the voxel’s response pattern is more similar to predictor (regressor) 1 or 2.
-> This comparison is done by convolving the stimulus timing for each condition with the canonical HRF to create predicted BOLD time-courses, which are then compared to the actual observed time-course of BOLD signals from the voxel.
GLM analysis goal
- to try to explain the measured BOLD signal as a combination of our explanatory variables
- Modeling voxel time courses with a linear combination of hypothetical time-series (regressors).
- Same model for each voxel –> One beta estimate per regressor per voxel
y_i = a_i ⋅ x_1 + b_i ⋅ x_2 + c_i + N(0,σ)
- y_i = observed BOLD response for the ith voxel at a specific time point
–> single voxel - x_1, x_2 = regressors
- a, b, c = scaling factors (beta weights) that specify whether a voxel is e.g., ‘house’ selective or ‘face’ selective
–> Indicate how much each regressor contributes to the observed signal - c = intercept: describes the average signal and has nothing to do with the BOLD signal
- N(0,σ) = normally distributed noise
beta weights (scaling factors)
y-hat_i = β_i,1 ⋅ x_1 + β_i,2 ⋅ x_2 + β_i,3
- allow you to say whether a voxel is a ‘face’ or a ‘house’ voxel
- these are the values you need to multiply with your explanatory variables to best explain the data
- optimal combination of betas gives us the explained signal
- indicates the responsiveness of a voxel to each condition
- y-hat_i = the predicted BOLD response for a single voxel
–> explains a cewrtain portion of the signal’s variance
explained & unexplained variance for
y-hat_i = β_i,1 ⋅ x_1 + β_i,2 ⋅ x_2 + β_i,3
- the optimal combination of betas gives us the modeled/explained signal
- this y-hat_i explains a certain portion of the original signal’s variance.
- the better our model, the higher the ratio of explained variance
GLM analysis
Y = X ⋅ β + ε
- We can perform this analysis across all voxels at the same time ( = fast!)
–> simultaneous solution for multiple voxels.
GLM methods
minimizing squared error
||y = Xβ||^2
y = Xβ + e
β-hat = (X’X)^-1⋅X’y (unbiased estimator)
fMRI Donders’ subtraction method
- to zoom into a specific cognitive process, we often want to vary only a single thing in our experiments
- therefore, we need a control condition to subtract
–> task - control task