Showing posts with label 101. Show all posts

The diffusion tensor, and its relation to FA, MD, AD and RD


In DTI 101 we described how diffusion tensor imaging estimates brain microstructure by modeling diffusion of water in the brain. We briefly discuss that this is done by using ellipsoid or ball shaped tensors. This leads to the question; what is a tensor? 

"Tensors are simply mathematical objects that can be used to describe physical properties, just like scalars and vectors." - University of Cambridge
Or, more specifically as described by Kahn Academy:

In the scanner the diffusion tensor is measured by imaging the diffusion in individual gradient directions, like in the image below. If you are interested a more in depth mathematical explanation of this principle is provided in our post here.

Example work out for 6 gradient directions, from diffusion image to tensor
Once the water diffusion is measured there are a number of ways you can quantify the shape of the tensors in each voxel. In DTI there are 4 measures that are most commonly used; fractional anisotropy, mean diffusivity, axial diffusivity and radial diffusivity. These measure directly relate to the value of the three main eigenvalues of the tensor, indicated in the figure below with lambda 1lambda 2 and lambda 3. What is an eigenvalue of a tensor? It is the value of the displacement/diffusion for each specific vector. Or, as defined by wikipedia: 

"If a two-dimensional space is visualized as a rubber sheet, a linear map with two eigenvectors and associated eigenvalues λ1 and λ2 may be envisioned as stretching/compressing the sheet simultaneously along the two directions of the eigenvectors with the factors given by the eigenvalues." - Wikipedia
Example of the influence of the transformation (or in our case diffusion) on the eigenvalues  
There are roughly two archetypical examples of diffusion tensors. On the left you see the example where the tensor has roughly equal eigenvalues for each main vector, thus showing an isotropic diffusion profile. On the right an example of diffusion primarily in one direction, thus demonstrating an anisotropic diffusion profile.  
Examples of tensor shapes
Characterization of each eigenvalue in the tensor and combinations of them help constitute the main diffusion measures. Specifically, in axial diffusivity (AD) we only quantify the value of lambda 1. While in radial diffusivity (RD) we take the average of lambda 2 and lambda 3. Mean diffusivity (MD) provides an average of all three, lambda 1, lambda 2, and lambda 3, this measure is sometimes also referred to as trace (TR), which is the sum of lambda 1lambda 2 and lambda 3. And finally fractional anisotropy (FA) provides the relative difference between the largest eigenvalue as compared to the others; it quantifies the fraction of diffusion that is anisotropic. The exact mathematical relations are shown below:

Relation of diffusivity measures to the eigenvalues of the tensor

When you plot the value of each a diffusivity measure in every voxel you can get scalar maps of the quantification of the local tensors. In the image below you see representative examples of each measure. When you look at the MD map it becomes apparent that the mean diffusivity measure is specifically sensitive to cerebral spinal fluid (CSF), which has high values of average diffusion. In voxels with much CSF mean diffusivity is high, and values are thus bright. While AD is only sensitive to diffusion in the longest eigenvalue. Here you see that highly organized structures like white matter pathways are brights. In addition large open cavities like ventricles have general high levels of diffusion which translates to high lambda 1 values. Then RD represents the two shortest eigenvalues and shows dark values in highly organized and dense structures like white matter pathways, intermediate values in gray matter, and high values in regions with CSF. Finally, FA plots the relative length of lambda 1, compared to lambda 2 and lambda 3. This leads to selective brightness in white matter, but not gray matter or CSF.
Examples of each diffusivity measure, FA, MD, AD and RD

Calculate the diffusion tensor from diffusion weighted images: A mathematical example




A guest post by Rodrigo Dennis Perea on the computational models for estimating the diffusion tensor from diffusion weighted images: 
"When I first started working with DTI, I had a hard time understanding the derivation of the diffusion tensor from what was acquired on the scanner, the diffusion weighted image (DWI). Once I understood this process a little better I decided to create a brief review. I hope this will help you! It might be lacking information or it might be too implicit so please feel free to ask me anything if you need more detailed information."
                                                                                               
I have to thank Peter B. Kingsley for his very helpful publication on this topic: http://onlinelibrary.wiley.com/doi/10.1002/cmr.a.20048/abstract 
First, it is worth noting that this example will highlight the computations in a single voxel (e.g. x=76, y=64, z=21). Essentially, a similar approach will be applied to every voxel in the entire MRI scan. The figure below illustrates our example where we have six DWI's, and the sample voxel is denoted by a small color coded square: 
Diffusion weighted images

The simplified diffusion matrix will look like this:
Diffusion matrix
Which will translate into this tensor:
Tensor model

Next the Stejskal-Tanner equation is of importance, this equation shows how there will be a reduction in the signal due to the application of a pulse gradient, this change will be proportional to the amount of diffusion: 

Image[1] 
It is important to notice that we will solve for tensor D given the other parameters from the MRI acquisition. Sk is the intensity at the "single voxel" when a specific gk gradient direction is applied (e.g. a 1x3 vector for the x,y,z direction).  b0 is the no diffusion signal and S0 is the intensity value you get from the no-diffusion signal. So lets begin...
A random MRI-DWI sequence (lets say sample_001) is used as an example. Given the following gradient vectors with their specific intensity values at an specific voxel location in the brain, we will derive equation [1]  to solve for the simplest case with only 7 volumes (1 3D volume with no diffusion and 6 3D volumes with pulse gradient directions).
A simple approach: The “H” approach: Six gradient directions (Sk) images “plus” a no-diffusion image (S0)
Given the following gradient direction pulses and intensities with a b-value of 800 s/mm2:
          
Given equation Stejskal-Tanner equation:
Image[1] 
with gk­:
Image [2]                 
And D:
Image    [3]
We can solve expand equation [1] in terms of D:
Image  [4]
Where the subscript “i” denotes each gradient direction pulse ("i" in this case will go from 1 to 6).  One approach to solve this system of equation is to use matrix algebra. Thus let express D as a six-element column vector, d:
Image      [5]
With a six-element row matrix containing a large M x 6 matrix, where M is the number of gradient directions (in this case M=6):
H_6[6]
Lastly, let’s define a Y matrix for the left side of equation [4]:
Image[7]
Thus we can express equation [4] with the following 6 directions as:
Image    [8]
With exactly six directions, there is an exact analytic solution and can be solved using standard methods such as the Cramer’s rule:
Image   [9]
Using these equation, I was able to create functions in matlab. I also compared my accurate results with FSL dtifit, which gave me similar results. 
I'll be more than happy to share my matlab functions and explain these in more detailed if needed. 

Why Do We Acquire B0 Images in DTI Exams?


This post is in response to the following question that was received from one of our readers:
"I acquired a DTI exam of a patient, which has an artifact that corrupted the B0 images but left the diffusion encoded images unaffected. Can I scan the patient again a year later and use that B0 image to process both exams?"
To answer this question Samuel Hurley was kind enough to write a guest blog post:
                                                                                               

Let us begin by observing the difference between a non-diffusion weighted (left) and diffusion-weighted (right) image:





This image on the left is typically referred to as a "B0 image," although this should not be confused with the variable B0, which describes the the strength of the main magnetic field (e.g. 3T). If we inspect the equation that describes a diffusion weighted imaging (DWI) experiment, we see that the overall level of signal in a DWI image is scaled by a factor S_0:


In addition to acquiring diffusion-weighted data (b>0, right image), we also need to acquire data with b=0:



As we observe from the equation, this gives us an image with signal intensity S_0. We divide each diffusion weighted image S_DWI by this image in order to remove the S_0 scaling term from the equation and properly fit the data to estimate ADC (or the diffusion tensor D, in the case of DTI imaging)
S_0, or the B0 image (as we will refer to it herein), is an image of the anatomy that takes into account tissue signals and contrasts in the absence of diffusion gradients. Because the echo time (TE) is typically long in a DWI or DTI experiment to accommodate large diffusion encoding gradients, this is typically a T2-weighted image. However, in addition to this T2 contrast, there are other factors that modulate the intensity of this image.


One of the main reasons the B0 images are acquired during the same scan as the other DTI encoding directions is due to the scanner's prescan function, which sets the hardware receiver and transmitter gain settings (as well as resonant frequency, shim, and a few other things). These gains determine the way the raw MRI signal in the coil (in volts) is translated into a digitally stored image (as bits and bytes in a file). Each time you run the scan, this gain is re-calibrated, leading to a different signal scale.

DWI and DTI exams are typically acquired with echo-planar imaging (EPI) readouts in order to reduce the overall duration of the experiment as well prevent phase errors induced by the extremely large diffusion encoding gradients. In spite of advances in magnet shimming and parallel imaging (PI), moderate to severe geometric distortion artifacts are still likely in EPI due to field inhomogeneities (e.g. the signal "pileup" in the frontal lobe [left side] of the above images). Removing and re-positioning a patient will alter how that individual's anatomy interacts with the main field, changing the patterns of geometric distortion. While nonlinear coregistration (e.g. FNIRT, ANTs), phase correction algorithms, and eddy current correction (eddy_correct, FSL) can mitigate some of these distortions, they are not effective at completely removing them.

Additionally, the sensitivity profile of the coil also modulates the image intensity, and this profile is likely to be different after the patient has been removed and later re-positioned in the magnet. Coil sensitivities are actually removed using image-based parallel imaging (PI) techniques such as SENSE (ASSET, iPAT), as is typically done with a phased array coil in order to reduce EPI geometric distortion artifacts. However, the SNR (g-factor) and residual PI (aliasing) artifacts in different parts of the image will likely be different. Inconsistent SNR levels between B0 images and diffusion weighted images may bias estimates of ADC or D.
Therefore, the purpose of the B0 images is not only to divide out the baseline T2w signal of tissues, but also to remove these other sources of signal variance listed above.  Receiver gains and voltages tend to drift significantly over the timescale of hours; therefore over the course of a year it is unlikely for these values to remain stable. Additionally, by removing and re-placing the patient's head a year later, the coil sensitivities, geometric distortions, and SNR variations due to PI are no longer likely to match up.

DTI Scalars (FA, MD, AD, RD) - How do they relate to brain structure?


When working with diffusion tensor images (DTI) it is important to understand what is being measured. If you would like to learn more about how the diffusion tensor relates to FA, MD, AD and RD, you might want to read this post. A different key question that is often posed in this field is how biological microstructure relates to the different measures that are extracted from diffusion images (like FA, MD etc). The table below attempts to clarify how differences and changes in biology influence each measure of diffusivity individually and what pattern of change across measures you might expect.


FA
MD (λ1+λ2+λ3)/3
AD
λ1
RD
(λ2+λ3)/2

FA is a summary measure of microstructural integrity. While FA is highly sensitive to microstructural changes, it is less specific to the type of change.
MD is an inverse measure of the membrane density, is very similar for both GM and WM and higher for CSF. MD is sensitive to cellularity, edema, and necrosis.
AD tends to be variable in WM changes and pathology. In axonal injury AD decreases. The ADs of WM tracts have been reported to increase with brain maturation.
RD increases in WM with de- or dys-myelination. Changes in the axonal diameters or density may also influence RD.
Gray Matter
White Matter
CSF
High myelination
Dense axonal packing
WM Maturation
Axonal degeneration
Demyelination
Low SNR


References:

Feldman et al. (2010). Diffusion Tensor Imaging: A Review for Pediatric Researchers and Clinicians. J Dev Behav Pediatr.
Alexander et al. (2007). Diffusion Tensor Imaging of the BrainNeurotherapeutics.
Alexander et al. (2012). Characterization of Cerebral White Matter Properties Using Quantitative Magnetic Resonance Imaging StainsBrain Connectivity.


Definitions:

AD = Axial Diffusivity
CSF = Cerebral Spinal Fluid
FA = Fractional Anisotropy
GM = Gray Matter
MD = Mean Diffusivity
RD = Radial Diffusivity
SNR = Signal to Noise Ratio
WM = White Matter
λ = Eigen Value; length of the axis in the tensor

Examples of FA, MD, AD and RD maps
---------------------
Reference this post as: Do Tromp, DTI Scalars (FA, MD, AD, RD) - How do they relate to brain structure?, The Winnower3:e146119.94778 (2016). DOI:10.15200/winn.146119.94778

DTI Processing - Voxel-based versus tract-based diffusion imaging





The
 development
 of
 diffusion
 magnetic resonance imaging (dMRI)

 enabled
 the
 research
 of
 white 
matter 
micro- and macro-structure in 
vivo. 
DMRI 
measures 
the 
magnitude 
and
 orientation
 of 
water
 diffusion.
 This
 is

 done
 in
 multiple
 directions

 to
 calculate
 the
 
 three
 dimensional
 representation
 of
 the
 water
 diffusion
 profile.
  Gray
 matter
 has
 predominantly
 isotropic (soccer ball shaped)
 water
 diffusion, while dense
 white
 matter 
tracks 
have 
highly 
anisotropic 
(rugby ball shaped) diffusion 
of
 water 
pointing 
in 
the
 direction
 of
 the
 fiber
 bundle.


The
 measure
 most 
commonly 
used 
to
 characterize 
directional 
diffusion 
is
 fractional
 anisotropy
 (FA).
 This
 measure
 gives
 a
 value
 between
 0
 and
 1
 to
 indicate
 the
 fraction
 of
 diffusion
 that
 is
 in
 the
 longitudinal
 direction
 compared
 to
 the
 proportion
 of 
diffusion 
in 
both 
transverse
 directions.

 Other measures that can be used are axial diffusivity (AD), radial diffusivity (RD) and mean diffusivity (MD).


Voxel-Based Morphometry

There 
are 
two 
main 
methods 
of 
analyzing diffusion 
images.
 The 
first 
is
 voxel‐based
 analyses
 (VBA)
,
 which
 is specifically suited for whole
 brain
 analysis.
 It
 is 
a
 voxel wise 
method 
to
 statistically 
compare 
local 
anisotropy 
values
 for 
the 
whole
 brain 
between 
different 
subjects. It has to be kept in mind that this method should correct for multiple comparisons.
 One way to reduce the number or comparisons is to use an atlas based segmentation methods to selectively investigate white matter areas of interest.

Tract-Based Analysis

The
 second
 method
 is
 called
 tract‐based
 analysis.
 It
 uses
 the
 more
 anisotropic
 tensors
 to
 form
 streamlines
 of
 tensors
 leading
 to
 estimations
 of
 white
 matter
 fiber
 tracts.
 A
 region
 of
 interest
 is
 used
 as
 seed
 region
 from
 where
 the
 fibers
 are
 traced.
 For
 each
 tract
 mean
 FA
 values
 can be
 calculated.
 These
 values
 per
 tract
 can
 be
 compared
 across
 groups
 to
 investigate
 structural
 connectivity.
 

VBA
 and
 fiber
 tractography
 are
 two
 methods
 using
 a
 fairly
 different
 approach in dMRI.
 In
 VBA
 the
 whole
 brain
 is
 investigated,
 but
 the
 method
 relies
 heavily
 on
 effective
 registration
 between
 subjects.
 When
 regions
 of
 abnormal
 FA
 values
 do
 not
 map
 onto
 each
 other
 correctly
 this
 will
 greatly
 reduce
 the
 likelihood to
 find
 significant
 results.
 In
 tract‐based
 analyses
 tracts can be delineated without relying on subject registration. Although specific
 a
 priori
 regions
 of
 interest
 or
 specific
 tracts
 need to be
 selected
 for
 comparison.