jupytext | kernelspec | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
-
1946: Felix Bloch and Edward Purcell independently discover the magnetic resonance phenomenon (Nobel Prize in 1952)
-
1971: Raymond Damadian observes different nuclear magnetic relaxation times between healthy tissue and tumor. Clinical application are envisioned
-
1973/1974: Paul C. Lauterbur and Peter Mansfield apply gradient magnetic fields to obtain spatial encoding: first MR images (Nobel Prize in 2003)
-
1980's: MRI scanners enter the clinics.
-
1990's: enlarging field of clinical application, higher magnetic field magnets
-
2000-present: accelerating acquisition protocols.
At the present, more than 100 million MRI scans are worldwide performed each year. Most common applications include tumors, multiple sclerosis, epilepsy, ischemic stroke, stenosis or aneurysms (MR Angiography), sardiac, musculoskeletal system, brain functioning (functional MRI), MR guided surgery (e.g. MRI-Linac).
Central quantity is the magnetization
Suppose an external magnetic field
:label: bloch
\frac{\text{d}\mathbf{m}}{\text{d}t}=
\left(\begin{array}{ccc}
-1/T_2 &\gamma b_z(t) & -\gamma b_y(t)\\
-\gamma b_z(t)& -1/T_2 & \gamma b_x(t)\\
\gamma b_y(t) & -\gamma b_x(t)&-1/T_1
\end{array}\right)\mathbf{m}+
\left(\begin{array}{c}
0\\0\\ \rho/T_1
\end{array}\right),\quad
\mathbf{m}(0)=\left(\begin{array}{c}
0\\0\\ \rho
\end{array}\right)
The quantities
:label: blochmv
\frac{\text{d}\mathbf{m}}{\text{d}t} = A(t)\mathbf{m}+\mathbf{d},\quad \mathbf{m}(0) = \mathbf{m}_0
This equation can look rather complex at a first
glance. To better understand the dynamics involved let's separate the
tissue-parameter (i.e.
:label: rotation
\frac{\text{d}\mathbf{m}}{\text{d}t}=
\left(\begin{array}{ccc}
0 & \gamma b_z(t) & -\gamma b_y(t)\\
-\gamma b_z(t)& 0 & \gamma b_x(t)\\
\gamma b_y(t) & -\gamma b_x(t) &0
\end{array}\right)\mathbf{m}
Note that this differential equation is characterized
by a skew-symmetric matrix. This is equivalent to a rotation of
:label: decay
\frac{\text{d}\mathbf{m}}{\text{d}t}=
\left(\begin{array}{ccc}
-1/T_2 & 0 & 0\\
0& -1/T_2 & 0\\
0 & 0 &-1/T_1
\end{array}\right)\mathbf{m}+
\left(\begin{array}{c}
0\\0\\ \rho/T_1
\end{array}\right)
This differential equation clearly describes two
independent exponential decays, one for
In conclusion: applied, time-dependent magnetic field
Let's start by investigating what happens to a single tissue component
during an MRI scan. When we lay inside an MRI scanner, the large
doughnut-shaped magnet generates a very strong magnetic field in the
feet-head direction. By definition, this is the longitudinal,
To measure the magnetic moments, we need them to attain a net transverse
magnetization component which differs from 0. Since the blochmv
admits the following solution:
A graph of the solution transient
. What would have happened if we had chosen a different value for the magnetic field
Which leads to
A plot of steady
. Note that not only the absolute amplitude of each
signal changes, but, more importantly, also the relative amplitude
(contrast) changes; for instance, for
+++
:container: container-fluid
:column: col-lg-6 col-md-6 col-sm-6 col-xs-12
:card: shadow-none border-0
```{figure} images/magnetic_resonance_imaging/transient.png
:height: 150px
:name: transient
Transient states behavior of $m_x$ for different tissue types. In these simulations, $m_y$ = 0.
```
---
```{figure} images/magnetic_resonance_imaging/steady.png
:height: 150px
:name: steady
Steady states of $m_x$ as a function of the experimental setting $\gamma b_y$ for three different tissue types.
```
+++
To better illustrate this point, I simulated the transverse
magnetization for a 2D object made of these three tissue types. See {numref}contrast
.
:height: 150px
:name: contrast
Contrast obtained for di�erent experimental settings in a 2D object.
Tuning the scanner parameter contrast_invivo
. Note that the these four images are
acquired from the same slice of the same brain! The ability to capture
different anatomical and functional characteristics just by changing
magnetic field settings makes MRI probably the richest medical imaging
modality.
:height: 150px
:name: contrast_invivo
Four different in-vivo contrast images acquired for the same slice of the same brain.
In the previous paragraph we have investigate the behavior of an
individual tissue type. In this section we will see how data from a
whole object (human body) is acquired and processed into an image.
Look again at {numref}transient
. Once the steady-state condition is reached (in
that specific case for
- the Radiofrequency fields are the transverse components
$b_x$ and$b_y$ - the Gradient fields describe the longitudinal component
$b_z$ and have the form of a gradient:$b_z(t,\mathbf{r}) = \mathbf{g}(t)\cdot\mathbf{r}$ where$\mathbf{g}=(g_x,g_y,g_z)\in\mathbb{R}^3$ can be tuned at the user's discretion. Note that the gradient fields are spatially dependent (this is essential to localize the signal contribution form different positions in the body).
During an MRI scan, these two types of fields are not played out
continuously but keep alternating (see {numref}sequence
).
:height: 250px
:name: sequence
A simple MRI acquisition sequence.
This is a slightly different situation than the scenarios we have
previously seen but the physical insights are pretty much the same. The
RF fields are used to drive the magnetization to some kind of desired
state (for instance a steady-sate) as we have seen in the previous
section (remember that, in order to record a signal:
Since each data acquisition block (read-out) lasts a very short time
(few milliseconds) we can ignore the relaxation effects and study their
behavior at the hand of equation {eq}rotation
.
In particular, suppose that at the start of the acquisition (
:label: mss
m_{xy}(t,\mathbf{r}) = u(\mathbf{r})e^{-\text{i}\gamma\int_{t_0}^{t}\mathbf{g}(t')\cdot \mathbf{r}\text{d}t'}
which is of course still a localized signal expression. We will now make the final step toward MR Imaging.
In an MRI scanner, radiofrequency receive coils are used to capture the
total amount of transverse magnetization present in the object. By using
Faraday's induction law, it can be shown that the signal
:label: signal
s(t) \propto \int_{\mathbb{R}^n}m_{xy}(t,\mathbf{r})\text{d}\mathbf{r} = \int_{\mathbb{R}^n}u(\mathbf{r})e^{-\text{i}\gamma\int_{t_0}^{t}\mathbf{g}(\tau)\cdot \mathbf{r}\text{d}\tau}\text{d}\mathbf{r}
where we made use of equation {eq}mss
for the second equality.
It is important to realize that the measured signal signal
. This step is going to be much easier if we rewrite
this equation by introducing the following variable:
:label: k
\mathbf{k}(t)\equiv \frac{\gamma}{2\pi}\int_{t_0}^t\mathbf{g}(\tau)\text{d}\tau
:label: signalk
\Rightarrow s(t) = s(\mathbf{k}(t))= \int_{\mathbb{R}^n}u(\mathbf{r})e^{-2\pi \text{i}\mathbf{k}(t)\cdot \mathbf{r}}\text{d}\mathbf{r}
Note that, for ease of notation, we have dropped the
proportionality sign from {eq}signal
(you
could think of it as a global, space-independent factor which scales
kspace
).
:height: 250px
:name: kspace
$k$-space and image space. The data acquisition process is mathematically equivalent to a Fourier
transform F of the image. To reconstruct the image, inverse Fourier transform $\mathcal{F}^{-1}$ can be applied.
The new variable
Equation {eq}signalk
has profound implications not only in the
reconstruction but also in the data acquisition process. Fourier
theory tells which sample point in nyquistMRI
.
:height: 250px
:name: nyquistMRI
Sampling in $k$-space
In conclusion, the MRI acquisition process is characterized by two main components:
- Radiofrequency excitations to drive and keep the magnetization into
a tissue-dependent state
$u(\mathbf{r})$ - gradient field encoding to collect the signal
$s(\mathbf{k})$ as spatial frequency coefficients of$u(\mathbf{r})$
The first component is responsible for the different type of contrast characteristics of the image. The second component make sure that the acquired data can correctly be reconstructed at the desired resolution.
Let's have a closer look at the data acquisition component (encoding).
This is achieved by ensuring sufficient portion of the k
shows the direct
relationship between the somehow abstract concept of
As a very simple example, consider a 2D cartesian encoding scheme with
equal time-steps kline
).
:height: 250px
:name: kline
Top: a very simple 2D cartesian trajectory in red. Bottom: corresponding gradient waveforms in
green and blue.
To traverse a single line, parallel to the
Assuming a constant
Thus, for each kline
for a
pictorial illustration.
Although the cartesian sampling is by far the most commonly used scheme
for clinical MRI exams, other trajectories are gradually entering the
MRI practice. See {numref}trajectories
for other 2D and 3D examples.
:height: 250px
:name: trajectories
Examples of 2D and 3D non-cartesian $k$-space trajectories
We discretize the signal equation {eq}signalk
as
:label: signalm
\mathbf{s} = \mathcal{F}\mathbf{u}
where we used the following notation:
-
$\mathbf{s}$ : the vector of signal samples ($k$ -space data) -
$\mathbf{u}$ : the vector of image values (i.e. a discretized version of$u(\mathbf{r})$ ) -
$\mathcal{F}$ : the$N$ -dimensional sampling (Fourier transform) operator:$\mathcal{F}_{i,j} = \exp\left(-2\pi\text{i}\mathbf{k}_i\cdot \mathbf{r}_j\right)\nu$ with volume element$\nu$ .
For cartesian, equidistant samples of signalm
is unitary and can be implemented by the Fast
Fourier transform (FFT) algorithm. To reconstruct
- computationally efficient; applying FFT to a
$N$ -long array scales with$N\log_2 N$ while naive implementation would scale with$N^2$ . - memory efficient, because no operator needs to be stored.
For other, non-cartesian trajectories, the solving strategies are more
complex. First of, all, note that
It is interesting to give a closer look at this numerical problem. Suppose we acquire data according to a 2D spiral trajectory, which can be parametrized as:
with
{numref}svd
shows a portion of the samples at the svd
which show
the spectrum (singular values) of
:height: 250px
:name: svd
Magnified portion of $k$-space samples for a 2D spiral trajectory and the spectrum of the corresponding $\mathcal{F}$ operator. Note the decaying singular values.
To mitigate this problem, regularization needs to be applied. This is
usually done by introducing a penalty
The most common choice for
Note that the sampling is a time-dependent process; if two consecutive
samples are acquired at
However, a single 2D image is not sufficient for diagnosis and either
several stacked 2D images (slices) are needed or a full-3D acquisition.
In both cases, the amount of data needed is multiplied by a factor close
to 100 (either 100 2D slices or an additional dimension). This time, the
acquisition would last several seconds or even minutes, depending on the
sequence timings sequence
)
that also RF events need to be played out in order to drive and keep the
magnetization in a desired state.
Toward the end of the previous century, a solution strategy was found to accelerate the scans. It all began around the year 1990 when multiple receive channels were introduced to increase the signal-to-noise-ratio (SNR). However, MRI scientists soon realized that using multiple coils could also allow for shorter data-acquisition protocols.
Parallel imaging in MRI works in the following way. Due to
electromagnetic interference effects (electromagnetism is a wave
phenomenon), each
where
which we can be solved as
:label: joint
\arg\min_{\mathbf{u}}\|\mathbf{s}-F\mathbf{u}\|_2^2+\lambda R(\mathbf{u})
where
Note that the operator
The most recent advance in accelerated protocols is the introduction of
compressed sensing. Basically, the reconstruction problem {eq}joint
is solved
with a non-linear regularization term cs
.
:height: 250px
:name: cs
Compressed sensing in MRI. Top: illustrative sketch of 2D k-space sampling strategy. Bottom:
Reconstruction by Compressed sensing. Note that the variable-density randomized sampling (right) gives the best reconstruction quality. Image taken from Geerts-Ossevoort et al (Philips). Compressed Sense (2018).
Compressed sensing has recently entered clinical practice and showed to further accelerate exams by about 40%.
Can you prove that {eq}rotation
defines a rotation and that the
rotation axis is aligned along
Rewrite {eq}decay
as two independent equations, one for the transverse component
Prove Equation {eq}mss
. You may use the result from the first exercise.
By using {eq}k
, can you derive an expression for trajectories
? You do not need to assume
Set up a regularised inversion for an MRI scan with standard cartesian sampling. As test data you can use skimage.data.brain
. You may assume that the data are noisy (subsampled) versions of the Fourier transform of the image slices. Can you get rid of aliasing artefacts using appropriate Tikhonov regularisation?