Introduction

Magnetic Resonance Imaging (MRI) is a well known medical imaging technique alongside Computed Tomography (CT) and Positron Emission Tomography (PET). Unlike CT and PET which use ionising radiation, MRI uses magnetic fields instead and is thus clinically safer.

Most people know that MRI uses the property of hydrogen’s nuclear spin but how do you use this property for imaging? More precisely, MRI relies on generating precisely controlled magnetic fields that fluctuate and overlap. If you’ve ever taken an MRI scan, you would have heard loud sounds like they are coming from a bizarre radio station - this is a clue that the frequencies involved are in the radio band frequency.

In this blog post, we will explore how exactly to control these magnetic fields for image reconstruction.

Background

In 1946, Felix Bloch and Edward Purcell’s research group published two descriptions of Nuclear Magnetic Resonance (NMR). One based on classical physics looking at net magnetisation of aggregate atoms, and one based on quantum physics looking at the behaviour of single nuclei. Both Bloch and Purcell were jointly awarded the Nobel prize in physics in 1952. (CT and PET generated their own Nobel laureates as well.) But this Nobel prize story does not end there. The main application for NMR was chemical spectroscopy and it wasn’t until 1970 that Paul Lauterbur introduced the idea of using gradient magnetic fields to get spatial resolution and obtain images that could distinguish heavy water from ordinary water. Peter Mansfield then developed mathematic techniques to speed up the imaging process now called echo-planar imaging. Lauterbur and Mansfield jointly received the 2003 Nobel Prize for Medicine and Physiology. In this blog post, we will take the classical approach to understanding MRI.

Spin

The nucleus of a hydrogen atom (a proton) has a fundamental property known as spin. It is often compared to a spinning top which can rotate about an axis. This spin behaves similar to a compass in that the orientation of this spin likes to align with an external magnetic field. The spins can be parallel or anti-parallel (same direction as magnetic field or opposite direction respectively) but with a preference towards aligning in the same direction (it is a lower energy level) and this difference can be measured. Without an external magnetic field, the spins are randomly aligned and in aggregate, the net effect is zero.

Precesion

Not align exactly but precess or wobble about the magnetic field lines just like a spinning top doesn’t fall over but wobbles as it spins.

The Bloch Equation

dMdt=γM×B<Mx,My,0>T2<0,0,MzMeq>T1\frac{d\mathbf{M}}{dt} = \gamma \mathbf{M}\times \mathbf{B} - \frac{<M_x,M_y,0>}{T_2} - \frac{<0,0,M_z-M_{eq}>}{T_1} dMxdt=γB0My(t)Mx(t)T2\frac{dM_x}{dt} = \gamma B_0 M_y(t) - \frac{M_x(t)}{T_2} dMydt=γB0Mx(t)My(t)T2\frac{dM_y}{dt} = -\gamma B_0 M_x(t) - \frac{M_y(t)}{T_2} dMzdt=Mz(t)MeqT1\frac{dM_z}{dt} = -\frac{M_z(t)-M_{eq}}{T_1} Mx(t)=et/T2(Mx(0)cos(ω0t)My(0)sin(ω0t))M_x(t) = e^{-t/T_2} \left( M_x(0)\cos(\omega_0 t) - M_y(0)\sin(\omega_0 t) \right) My(t)=et/T2(Mx(0)sin(ω0t)+My(0)cos(ω0t))M_y(t) = e^{-t/T_2} \left( M_x(0)\sin(\omega_0 t) + M_y(0)\cos(\omega_0 t) \right)

Mz)t)=Mz(0)et/T1+Meq(1et/T1)M_z)t) = M_z(0) e^{-t/T_1} + M_{eq}\left( 1-e^{-t/T_1} \right) where $\omega_o = -\gamma B_0$.

The RF Field

B1=<2B1cos(ωt),0,0>\mathbf{B}_1 = <2B_1\cos(\omega t),0,0>

RF Pulse Sequences: $T_1$ and $T_2$

$90^\circ$ pulse filps

Gradients and Slice Selection

BG(p)=<0,0,G1x+G2y+G3z>=<0,0,Gp>\mathbf{B}_G(\mathbf{p}) = <0,0,G_1 x + G_2 y + G_3 z> = <0,0,\mathbf{G}\cdot\mathbf{p}>

The Imaging Equation

S(t)=KM(t,p)exp(iωt)dpS(t) = K \int M^*(t,\mathbf{p})\exp(-i\omega t) d \mathbf{p}

References

Pretty much the entirety of this post can be found in greater detail here: [Ch 10. pg 163–175] Wendt, R., 2010. The mathematics of medical imaging: a beginner’s guide.