Signal Decay#
In this chapter, we illustrate how BOLD signal decays and how we can glean useful information from that decay rate.
Throughout the chapter, we describe the signal with the monoexponential decay model:
\(S_{0}\) is the signal we would measure at \(TE = 0\), before any decay has happened. \(T_{2}^{*}\) is the time constant of the decay: the longer \(T_{2}^{*}\) is, the more slowly the signal fades. \(R_{2}^{*} = 1 / T_{2}^{*}\) is the same quantity expressed as a decay rate. The BOLD effect works through \(T_{2}^{*}\): when local blood oxygenation increases, there is less deoxygenated hemoglobin to disturb the magnetic field, so \(T_{2}^{*}\) gets longer and the signal decays more slowly. Many sources of noise, such as head motion and inflow, instead change \(S_{0}\).
The monoexponential model is an approximation. A voxel contains several pools of water, such as water in tissue, in blood, in cerebrospinal fluid, and trapped between layers of myelin, and each pool decays at its own rate. The decay of the whole voxel is therefore better described by a sum of exponentials, such as a biexponential model with two pools. However, each extra pool adds parameters to estimate, and multi-echo fMRI usually has only three to five echoes per volume, each with its own noise, which is not enough to estimate those extra parameters reliably. For that reason, multi-echo fMRI methods, including all of the ones in this book, use the monoexponential model. Why T₂* and S₀ Vary Across the Brain shows what happens when a monoexponential model is fit to decay that is not monoexponential.
To illustrate this, we will use a combination of simulated and real multi-echo data.
Signal decays as echo time increases#
To start, let us look at how BOLD signal changes with increasing echo time in real data. The data we use is a single resting-state run, with five echo times.
Fig. 4 The first volume of each echo, shown as axial slices from the bottom (left) to the top (right) of the brain, with the same intensity scale for every echo.#
As the echo time increases, the whole brain gets darker, because the signal has had more time to decay. This means that later echoes have a lower signal-to-noise ratio (SNR) than earlier ones. The decay is not the same everywhere, though. Near the sinuses and ear canals (left two columns), the signal is almost gone by the third echo, because \(T_{2}^{*}\) is very short there. The ventricles, on the other hand, become brighter than the surrounding tissue at later echoes, because the cerebrospinal fluid that fills them has a long \(T_{2}^{*}\) and decays slowly. This difference in brightness between tissues is \(T_{2}^{*}\)-weighted contrast, which reflects differences in the average \(T_{2}^{*}\) of each tissue. It is not the same thing as BOLD contrast, which comes from small changes in \(T_{2}^{*}\) over time. Why T₂* and S₀ Vary Across the Brain describes why the average \(T_{2}^{*}\) varies across the brain.
Echo-specific data and echo time#
Fig. 5 The signal of a single voxel at each echo time. Each point is one volume of the run.#
Here, we plot the signal of a single voxel in every volume of the run, at each of the five echo times. As expected, the signal decreases as the echo time increases. Notice also that the spread of the points, which reflects how much the signal fluctuates over time, is smallest at the first echo, even though the signal is largest there. This voxel was chosen because it has strong BOLD fluctuations, and BOLD fluctuations have little effect at short echo times. We will see why later in this chapter.
The signal itself changes with echo time as well#
Let us visualize the time series of the same voxel at each echo time. While the overall scale of the signal decreases with echo time, the pattern of the signal changes as well.
Fig. 6 The time series of a single voxel at each echo time. Each time series is scaled separately, so the y-axes are not comparable.#
The later echoes share a slow, wave-like pattern, which is the BOLD signal in this voxel. The same pattern is much weaker at the first echo, which is dominated by small, fast fluctuations, along with a spike in the very first volume. Early in a run, before the magnetization has reached a steady state, the signal is brighter at every echo. That change affects \(S_{0}\) rather than \(T_{2}^{*}\), so it stands out most at the first echo, where the BOLD fluctuations are weakest.
Estimating \(S_{0}\) and \(T_{2}^{*}\) from the decay#
With several echoes, we can estimate the two parameters of (1) for each voxel. Fitting an exponential curve directly is possible, but there is a simpler way. Taking the natural logarithm of both sides of (1) turns the curve into a straight line:
So if we plot \(\ln S\) against \(TE\), the intercept of the line is \(\ln S_{0}\) and its slope is \(-R_{2}^{*}\),
and both can be estimated with ordinary least squares.
This “log-linear” fit is fast, and it is the default in tedana (fittype="loglin").
tedana also offers a nonlinear fit of the exponential curve (fittype="curvefit"), which is slower.
Below, we fit the model to the voxel from Fig. 5. We fit all of the volumes at once, so we get a single \(S_{0}\) and \(T_{2}^{*}\) that describe the voxel’s average decay.
Fig. 7 The monoexponential model fit to one voxel. (A) After a log transform, the signal falls on a straight line, whose intercept and slope give \(S_{0}\) and \(R_{2}^{*}\). (B) The same fit, shown on the original scale. The red star marks \(S_{0}\), and the dashed blue lines mark \(T_{2}^{*}\), the echo time at which the signal has decayed to 37% of \(S_{0}\).#
For this voxel, the fit gives \(S_{0}\) ≈ 26740 and \(T_{2}^{*}\) ≈ 104.9 ms. \(T_{2}^{*}\) has a simple interpretation: it is the echo time at which the signal has decayed to \(1/e\), or about 37%, of \(S_{0}\). This voxel’s \(T_{2}^{*}\) is longer than is typical for gray matter at 3T (roughly 40-55 ms). We chose the voxel because it has strong BOLD fluctuations, not because its decay is typical, and Why T₂* and S₀ Vary Across the Brain describes why \(T_{2}^{*}\) varies so much from voxel to voxel.
Noise across echoes#
Every measurement also contains thermal noise, whose amplitude is roughly the same at every echo time. Because the signal decays, the same amount of noise is a larger fraction of the signal at later echoes, so later echoes have a lower signal-to-noise ratio. This has a few consequences:
In panel A of Fig. 7, the log-transformed points spread out more at later echoes. Part of that spread is BOLD fluctuation, which also grows with echo time as a fraction of the signal (as we will see below), but part of it is noise.
MRI magnitude images cannot be negative, so once the signal has decayed to the level of the noise, the measured values level off instead of continuing to fall. Echoes at this “noise floor” make the decay look slower than it really is.
Fitting the decay to a single volume, with only a handful of noisy measurements, gives much noisier estimates than fitting all of the volumes at once, as we did here.
There are two more things to keep in mind.
First, the fit is only as good as the echoes that go into it.
In regions with strong signal dropout, such as orbitofrontal cortex,
the later echoes contain almost nothing but noise,
so tedana builds an adaptive mask that limits the fit in each voxel to the echoes with good signal
(see BOLD, non-BOLD, and TE-dependence with tedana).
Second, the values we estimated here describe the voxel’s average decay.
In the next section, we look at how \(S_{0}\) and \(T_{2}^{*}\) change from one volume to the next,
and why we need multiple echoes to tell those changes apart.
The impact of \(T_{2}^{*}\) and \(S_{0}\) fluctuations on BOLD signal#
In this section, we use simulations to investigate the two factors that drive changes in the signal decay pattern: \(T_{2}^{*}\) and \(S_{0}\). We simulate a voxel with an average \(S_{0}\) of 16000 and an average \(T_{2}^{*}\) of 45 ms, a typical value for gray matter at 3T, and a single-echo acquisition with an echo time of 30 ms, which is common for single-echo fMRI at 3T.
# The echo time of a typical single-echo scan at 3T
SINGLEECHO_TE = np.array([30])
# Echo times for a nice, smooth curve
FULLCURVE_TES = np.round(np.arange(0, 121, 1), decimals=5)
MEAN_T2S = 45
MEAN_S0 = 16000
Simulate \(T_{2}^{*}\) and \(S_{0}\) fluctuations#
Next, we simulate a short run of 21 volumes, in which \(T_{2}^{*}\) and \(S_{0}\) fluctuate over time. To make the fluctuations easy to see, they are much larger (10%) than real fluctuations, which are a few percent or less.
# We'll convolve with HRF just for smoothness
hrf = first_level.spm_hrf(1, oversampling=1)
N_VOLS = 21
SCALING_FRACTION = 0.1 # used to scale standard deviation
# Simulate the relative T2*/S0 fluctuations.
# The original time series is random noise from a normal distribution,
# convolved with the HRF.
rng = np.random.default_rng(42)
ts = rng.normal(loc=0, scale=1, size=(N_VOLS + 20,))
ts = signal.convolve(ts, hrf)[20 : N_VOLS + 20]
ts *= SCALING_FRACTION / np.std(ts)
ts -= np.round(ts[0], decimals=5)
t2s_ts = (ts * MEAN_T2S) + MEAN_T2S
s0_ts = (ts * MEAN_S0) + MEAN_S0
BOLD signal decay for a standard single-echo scan#
Fig. 8 The signal decay curve for a voxel with \(T_{2}^{*}\) = 45 ms (black), and the single value a single-echo scan with TE = 30 ms measures (red cross).#
In every volume of an fMRI scan, each voxel’s signal follows a decay curve like the black one, but a single-echo scan only measures one point on that curve. For example, if a single-echo scan is acquired at TE = 30 ms, the signal is approximately 8215 (red cross and dashed lines).
BOLD signal decay and BOLD contrast#
Fig. 9 Signal decay curves for a voxel at low activity (blue) and high activity (red). The green lines show the difference between the curves at three echo times.#
This plot shows the signal decay for two levels of activity. When activity increases, blood oxygenation increases, so \(T_{2}^{*}\) gets longer and the signal decays more slowly. The difference in \(T_{2}^{*}\) here (40 vs. 50 ms) is exaggerated to make it visible; real BOLD changes in \(T_{2}^{*}\) are a few percent.
The BOLD contrast is the difference between the two curves (green lines). It is zero at TE = 0, grows as the echo time increases, peaks at an echo time of about 45 ms, close to \(T_{2}^{*}\), and then shrinks again as both signals decay toward zero. This is why single-echo fMRI uses an echo time that is close to the typical \(T_{2}^{*}\) of gray matter. Note that this is the absolute difference between the curves. As a fraction of the signal, the difference keeps growing with echo time, which becomes important in BOLD, non-BOLD, and TE-dependence with tedana.
Single-echo data over time#
Now let us add the fluctuations, starting with a single-echo acquisition at TE = 30 ms. In the animation below, the bottom panel shows the signal measured at TE = 30 ms in each volume, and the top panel shows the resulting time series. This is what a single-echo fMRI time series is: one measurement per volume, at a single echo time.
Fig. 10 Single-echo data from a simulated voxel whose \(S_{0}\) and \(T_{2}^{*}\) fluctuate. Top: the time series measured at TE = 30 ms. Bottom: the measurement in the current volume.#
Each single-echo measurement comes from a decay curve#
Next, we add the full decay curve for each volume. Each single-echo measurement is just one point on that volume’s decay curve, and the curve itself changes from volume to volume as \(S_{0}\) and \(T_{2}^{*}\) fluctuate.
Fig. 11 The same single-echo data, with the full decay curve of the current volume (gray). The single-echo measurement is one point on that curve.#
Where \(S_{0}\) and \(T_{2}^{*}\) sit on the curve#
We are still looking at a single-echo acquisition with TE = 30 ms. The decay model from the start of this chapter, written for volume \(t\) and with noise added, is:
Both \(S_{0}\) and \(T_{2}^{*}\) can change from volume to volume, for different reasons, and a change in either one changes the measured signal. In the animation below, the red star marks \(S_{0}\), where the curve meets \(TE = 0\), and the blue star marks the point on the curve at \(TE = T_{2}^{*}\). Both move as the fluctuations change the curve.
Fig. 12 The same data, with \(S_{0}\) (red star) and the point on the curve at \(TE = T_{2}^{*}\) (blue star) marked in each volume.#
\(S_{0}\) and \(T_{2}^{*}\) fluctuations change the curve differently#
To see the two effects separately, we now let only one of them fluctuate at a time, using the same relative fluctuations for both. The top panel shows the relative fluctuations over time. In the bottom panel, the red curve is the decay curve when only \(S_{0}\) fluctuates (with \(T_{2}^{*}\) fixed), and the blue curve is the decay curve when only \(T_{2}^{*}\) fluctuates (with \(S_{0}\) fixed). A change in \(S_{0}\) scales the whole curve up or down, including its starting point at \(TE = 0\). A change in \(T_{2}^{*}\) leaves the starting point alone and changes how quickly the curve falls.
Fig. 13 Decay curves when only \(S_{0}\) fluctuates (red) or only \(T_{2}^{*}\) fluctuates (blue), with the same relative fluctuations (top). The black curve is the average decay curve.#
Single-echo data cannot tell the two apart#
Now let us measure both curves with a single-echo acquisition at TE = 30 ms (red and blue points). The two points move up and down with the same timing, even though they come from very different changes in the decay curve. With only one echo, we see that the signal went up or down, but we cannot tell whether \(S_{0}\) or \(T_{2}^{*}\) changed.
Fig. 14 The \(S_{0}\)-driven (red) and \(T_{2}^{*}\)-driven (blue) decay curves, measured at a single echo time (TE = 30 ms).#
The same point can be made with time series. In the figure below, the measured single-echo signal is plotted against the \(T_{2}^{*}\) or \(S_{0}\) fluctuations that produced it, after scaling them to the same units. When only \(S_{0}\) fluctuates, the signal is exactly a scaled copy of \(S_{0}\), because \(S\) is proportional to \(S_{0}\) in (3). When only \(T_{2}^{*}\) fluctuates, the signal is almost a scaled copy of \(T_{2}^{*}\); the small differences come from the exponential, which is not linear in \(T_{2}^{*}\). Since we never observe the underlying fluctuations in real data, the single-echo time series alone does not tell us which of the two produced it.
Fig. 15 Single-echo signal (gray) when only \(T_{2}^{*}\) (left) or only \(S_{0}\) (right) fluctuates, compared with those fluctuations scaled to the units of the signal (dashed).#
Multi-echo data can tell the two apart#
Finally, let us measure the same curves at the five echo times of our real data. Now the two kinds of fluctuation produce clearly different patterns across echoes. When \(S_{0}\) changes, the red points all move by the same fraction of their value, so the change is largest at the first echo. When \(T_{2}^{*}\) changes, the blue points barely move at the first echo and move much more at later echoes. With several echoes, we could, in principle, fit the decay curve in each volume, as we did for the real voxel above, and tell which parameter changed.
Fig. 16 The \(S_{0}\)-driven (red) and \(T_{2}^{*}\)-driven (blue) decay curves, measured at five echo times.#
Summary#
MR signal decays with echo time following, approximately, \(S(TE) = S_{0} e^{-TE / T_{2}^{*}}\). With several echoes, we can estimate \(S_{0}\) and \(T_{2}^{*}\) by fitting a straight line to the log of the signal.
The BOLD effect changes \(T_{2}^{*}\), while many sources of noise change \(S_{0}\).
A single-echo scan measures one point on the decay curve in each volume, so it cannot tell a change in \(S_{0}\) from a change in \(T_{2}^{*}\).
With multiple echoes, the two kinds of change leave different fingerprints: an \(S_{0}\) change is the same fraction of the signal at every echo time, while a \(T_{2}^{*}\) change grows, as a fraction of the signal, with echo time.
In practice, the signal in a single volume is too noisy to fit the decay curve reliably.
BOLD, non-BOLD, and TE-dependence with tedana shows how tedana uses these fingerprints on components of the data instead,
to separate BOLD from non-BOLD signal.
Before that, Why T₂* and S₀ Vary Across the Brain looks at why the average \(T_{2}^{*}\) and \(S_{0}\) vary so much across the brain.