Line 32: Line 32:
 
----
 
----
  
Magnetic resonance imaging (MRI or MR) is a medical imaging technique that uses the property of nuclear magnetic resonance. We will see later in greater detail that magnetic fields are applied to manipulate the precession of nuclei within the patients body. As they return to their previous states, they emit a signal that can be decoded into a map.   
+
Magnetic resonance imaging (MRI or MR) is a medical imaging technique that uses the property of nuclear magnetic resonance. We will see later in greater detail that magnetic fields are applied to manipulate the precession of nuclei within the patient's body. As the nuclei return to their previous states, they emit a signal that can be decoded into a mapping of the body's internal structure.   
  
 
There is, in principal, no upper bound to how high the resolution can be of images produced using MRI. It would of course take a long time to perform such a scan. Generally scans have a spatial resolution in the order of millimeters.
 
There is, in principal, no upper bound to how high the resolution can be of images produced using MRI. It would of course take a long time to perform such a scan. Generally scans have a spatial resolution in the order of millimeters.
  
Another advantage of MRI is that it uses no ionizing radiation unlike CT. Additionally, MR is very flexible and programmable. It is basically a software programmable module. MR is however about twice as expensive as CT. One of the reasons it is expensive is that it is slower than CT. The machine itself is also acoustically noisy, which can be uncomfortable for the patient and can interfere with your measurements if for example you are trying to image the part of the brain that is stimulated by sound.  
+
Another advantage of MRI is that it uses no ionizing radiation unlike CT. Additionally, MR is very flexible and programmable. It is basically a software programmable module. MR is however about twice as expensive as CT and the duration of the scan is one reason behind the cost. The machine itself is also acoustically noisy, which can be uncomfortable for the patient and can interfere with your measurements if for example you are trying to image the part of the brain that is stimulated by sound.  
  
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 1: The exterior of an MRI scanner]]
+
[[Image:mri_fig01.jpeg|400px|thumb|left|Fig 1: The exterior of an MRI scanner]]
  
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 2: MRI scan of a patient]]
+
[[Image:mri_fig02.jpeg|400px|thumb|left|Fig 2: Sagittal plane through the hind-brain obtained using MRI]]
  
 +
 +
These notes present a simplified explanation of the physics. A full explanation is beyond the scope of the lecture since it will mainly deal with the signal processing aspect of MRI.
  
 
----
 
----
Line 62: Line 64:
 
** Requires an enormous (and very expensive) superconducting magnet
 
** Requires an enormous (and very expensive) superconducting magnet
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 3: fMRI scan of a patient's brain. It shows the regional cerebral blood volume (rCBV). Different colors indicate different levels of activity in the brain.]]
+
[[Image:mri_fig03.jpeg|400px|thumb|left|Fig 3: fMRI scan of a patient's brain. It shows the regional cerebral blood volume (rCBV). Different colors indicate different levels of activity in the brain. The patient in the picture has had a stroke]]
  
  
Line 69: Line 71:
 
== Magnetic Resonance ==
 
== Magnetic Resonance ==
  
Larmor precession is the precession of the magnetic moments of atoms or their particles about an external magnetic field.  
+
You put a muclear species that has a magnetic dipole in the presence of a magnetic field and this will cause the particle spin to precess about the external field axis much like how a top spins about its axis. This phenomenon is depicted in figure 4.
  
You put a muclear species that has a magnetic dipole in the presence of a magnetic field and this will cause the particle spin to precess about the external field axis much like how a top spins about its axis. This phenomenon is depicted in figure 1.
+
[[Image:mri_fig04.png|300px|thumb|left|Fig 4: Precession of atom in the presence of a magnetic field]]
  
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 4: Precession of atom in the presence of a magnetic field]]
+
Larmor precession is the precession of the magnetic moments of atoms or their particles about an external magnetic field.
  
 
An atom or its nuclei will precess at the Larmor frequency, given by <br/>  
 
An atom or its nuclei will precess at the Larmor frequency, given by <br/>  
Line 83: Line 85:
 
<math>L</math> is the gyromagnetic constant known as the Larmor constant and its value depends on the choice of atom. L has units of radians per second per Tesla (rad/(sT))<br/>
 
<math>L</math> is the gyromagnetic constant known as the Larmor constant and its value depends on the choice of atom. L has units of radians per second per Tesla (rad/(sT))<br/>
  
Simplified explanation of the physics. full explanation is beyond the scope of the lecture since it will mainly deal with the signal process aspect of MRI
+
The Larmor constant is unique to a nuclear species so the frequency of oscillation is intrinsic to a nuclear species in a given magnetic field. Scanners are designed around a particular <math>\omega_0</math> depending on which nucleus you are imaging. Typically they are built to image hydrogen ions because of the abundance of these ions, which are essentially protons, in our bodies. The frequency of oscillation of hydrogen in the presence of a magnetic field of 1.5 T is about 63.87 MHz.
  
Typically, MR scans are done with hydrogen although it does not have to be. most MRI scanners are designed (center frequencies are set up) to scan hydrogen because hydrogen ions, which are just protons, are so abundant in our bodies. the frequency of oscillation of hydrogen in the presence of a magnetic field of 1.5 T is about 63.87 MHz.
+
Picture initially that the protons are precessing in uniform magnetic field. You introduce more energy into the system via an RF signal at 63.87 MHz. This will cause protons at that frequency to resonate. You have basically pumped energy into the system and the way to describe that is that the tip angle of the precession increases. Once you turn it off, the precessing particle will radiate an RF signal. You can locate the source of the protons by detecting this reradiated RF signal.  
designed for particular nucleus species. Larmor constant is unique to each. so the frequency of oscillation is intrinsic to a nuclear species in a given magnetic field. so the scanner has to designed around a particular <math>\omega_0</math> depending on which nucleus you are imaging.
+
  
Larmor frequency of the detected signal is proportional to the applied magnetic field, changing the magnitude of that field produces a different detected frequency. Placing a magnetic field gradient across a sample allows you to locate the source of the proton nuclear magnetic resonance (NMR) signal in the sample. This is used to great advantage in the medical imaging process known as Magnetic Resonance Imaging
+
As we saw in the previous equation, the Larmor frequency of the detected signal, <math>\omega_0</math>, is proportional to the applied magnetic field <math>M</math>. Changing the magnitude of that field will produce a different detected frequency. In MRI, a magnetic field gradient across a sample allows you to pinpoint the source of the proton nuclear magnetic resonance (NMR) signal in the sample.
 
+
precessing in uniform magnetic field. (you pump energy into the system using an RF signal and the particles the oscillate with the radio frequency as long as the RF signal is at the center frequency of the precessing nuclei. once you turn it off, the precessing particle will radiate an RF signal. You can locate the source of the proton by detecting the RF signal.
+
 
+
You transmit an RF signal at 63.87 MHz into the material and it will cause the atoms to precess. you basically pump energy into it. and the way to describe that is that the tip angle increases. and if you remove the excitation signal, the atoms will radiate RF pulses at the same center frequency. this is the underlying phenomena used to perform MRI.
+
  
  
Line 99: Line 96:
 
== The MRI Magnet ==
 
== The MRI Magnet ==
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 5: The MRI magnet]]
+
[[Image:mri_fig05.png|400px|thumb|left|Fig 5: The MRI magnet]]
  
Traditional MR scanners use very high field strengths. 1.5 T and 3 T are standard magnetic field strengths used in MRI are needed to produce high quality images reliably. patients are required to remove clothing items that may contain ferromagnetic materials. most patients with metallic implants such as pacemakers cannot have an MRI done.
+
Traditional MR scanners use very high field strengths on the order of 1.5 T and 3 T. these are standard magnetic field strengths and are needed to produce high quality images reliably. Patients are required to remove clothing items that may contain ferromagnetic materials. Most patients with metallic implants such as pacemakers cannot have an MRI done.
  
You have a large superconducting magnet built around the bore of the scanner. At very low temperatures, close to absolute zero, the superconducting material has zero resistance. A current is passed through the material using a generator. The current continues to pass through it even after the generator is turned off since the material has no resistance as long as the superconducting material is kept below its critical temperature by the liquid helium
+
The machine has a large superconducting magnet built around the bore of the scanner. At very low temperatures, close to absolute zero, the superconducting material has zero resistance. A current is passed through the material using a generator. The current continues to pass through it even after the generator is turned off since the material has no resistance for as long as the superconducting material is kept below its critical temperature by the liquid helium.
  
this perpetual current flow comes at the cost of having to keep the helium cool. An accidental shut-down of the system can trigger an event known as "quench", which involves the rapid boiling of the liquid helium from around the superconducting material. As the temperature rises the magnet develops a resistance and even a small resistance can cause the material to heat up due to the presence of high currents. This will speed up the boiling of the helium even more. If the rapidly expanding helium cannot be dissipated, it may be released into the scanner room, maybe even at an explosive rate. Therefore rooms with scanners must be equipped to handle such an event.
+
This perpetual current flow comes at the cost of having to keep the helium cool. An accidental shut-down of the system can trigger an event known as "quench", which involves the rapid boiling of the liquid helium from around the superconducting material. As the temperature rises the magnet develops a resistance and even a small resistance can cause the material to heat up due to the presence of high currents. This will speed up the boiling of the helium even more. If the rapidly expanding helium cannot be dissipated, it may be released into the scanner room, maybe even at an explosive rate. Therefore rooms with scanners must be equipped to handle such an event.
 
+
has to be in a bath of liquid helium to keep it cool
+
 
+
*Large superconducting magnet
+
** Uniform field within bore
+
** Very large static magnetic field <math>M_0</math>
+
  
 
For the remainder of the notes, we will assume the scanner is designed such that <math>M_0 = 1.5T</math> to image hydrogen ions precessing at 63.8 MHz.
 
For the remainder of the notes, we will assume the scanner is designed such that <math>M_0 = 1.5T</math> to image hydrogen ions precessing at 63.8 MHz.
Line 120: Line 111:
 
==Magnetic Field Gradients==
 
==Magnetic Field Gradients==
  
assume that the direction of the magnetic field within the bore is constant and only its magnitude is changing. This allows us to treat it as a scalar quantity even though in reality it is a vector.
+
Assume that the direction of the magnetic field within the bore is constant and only its magnitude is changing. This allows us to treat it as a scalar quantity even though in reality it is a vector.
  
* Magnetic field magnitude at the location <math>(x,y,z)</math> has the form <br/>
+
The magnetic field magnitude at the location <math>(x,y,z)</math> has the form <br/>
 
<math>M(x,y,z) = M_0 + xG_x + yG_y + zG_z \ </math> <br/>
 
<math>M(x,y,z) = M_0 + xG_x + yG_y + zG_z \ </math> <br/>
 
- <math>G_x</math>, <math>G_y</math> and <math>G_z</math> control magnetic field gradients <br/>
 
- <math>G_x</math>, <math>G_y</math> and <math>G_z</math> control magnetic field gradients <br/>
- <math>M_0</math> is constant. The top sketch visualizes an NMR process with a constant magnetic field applied to the entire sample. The hydrogen spin-flip frequency is then the same for all parts of the sample. then you add gradient coils that introduce a variable magnetic fields that are controlled using amplifiers. they're like coils you can use in speakers. recall from Ampere's law that the magnetic field around an electric current is proportional to the current. The coils are designed so that the magnetic field changes approximately linearly with position, hence the term gradient field.
+
- <math>M_0</math> is constant.  
  
for the inductance <math>L</math> in the coil, we know that <br/>
+
So the equation is basically saying that a constant magnetic field, <math>M_0</math> is applied to the entire sample. The hydrogen spin-flip frequency is then the same for all parts of the sample. Then you add variable magnetic fields using gradient coils that are controlled by amplifiers. These coils are similar to ones in your speaker systems. The coils are designed so that the magnetic field changes approximately linearly with position, hence the term gradient field.  
<math>L\frac{di}{dt} = v(t)</math> <br/>
+
the magnetic field <math>M(t)</math> is proportional to the current, it is also proportional to the integral of the voltage <br/>
+
<math>M(t) = \int v(\tau)d\tau</math>
+
so the amplifier that drives the current through the coil is controlled by a voltage where the current through the coil is proportional to the integral of the voltage and the magnetic field of the coil is proportional to the current.  
+
  
So you have the static uniform magnetic field <math>M_0</math> produced by the superconducting magnet. add to this the gradient magnetic field that varies linearly with space. the gradient field is produced by a current through a coil driven by an amplifier.
+
In other words, you have the static uniform magnetic field <math>M_0</math> produced by the superconducting magnet. Add to this the gradient magnetic field that varies linearly with space. The gradient field is produced by a current through a coil driven by an amplifier. It is important to note that the gradients can be changed with time and that they are small compared to <math>M_0</math>.
  
- Gradients can be changed with time <br/>
+
For the inductance <math>L</math> in the coil, we know that <br/>
- Gradients are small compared to <math>M_0</math>
+
<math>L\frac{di}{dt} = v(t)</math> <br/>
 +
Recall from Ampere's law that the magnetic field around an electric current is proportional to the current. The magnetic field is therefore also proportional to the integral of the voltage across the coil <br/>
 +
<math>M(t) = \int v(\tau)d\tau</math> <br/>
 +
The amplifier that drives the current through the coil is controlled by a voltage where the current through the coil is proportional to the integral of the voltage and the magnetic field of the coil is proportional to the current.
  
* For the time varying gradients,
+
For the time varying gradients, <br/>
 
<math>M(x,y,z,t) = M_0 + xG_x(t) + yG_y(t) + zG_z(t) \ </math>
 
<math>M(x,y,z,t) = M_0 + xG_x(t) + yG_y(t) + zG_z(t) \ </math>
  
The three coils produce gradients along <math>x</math>, <math>y</math> and <math>z</math> (left to right, top to bottom and head to toe respectively). and each of those coils control the magnetic field gradient along its respective axis. So by varying the current through each of those three coils, the gradient field can be varied along each axis.  
+
The three coils produce gradients along <math>x</math>, <math>y</math> and <math>z</math> (left to right, top to bottom and head to toe respectively). Each of those coils control the magnetic field gradient along its respective axis. So by varying the current through each of those three coils, the gradient field can be varied along each axis.  
  
  
Line 148: Line 138:
 
==MRI Slice Select==
 
==MRI Slice Select==
  
Let us consider the <math>z</math> axis along the bore. The graph for <math>M</math> versus <math>z</math> is a straight line with gradient <math>G_z<\math> so as you move from the toes towards the head, the magnetic field increases. Now if you send an RF pulse at 63MHz to excite protons inside the patients body but only for those where the resonant frequency matches the RF frequency.  
+
Let us consider the <math>z</math> axis along the bore. The graph for <math>M</math> versus <math>z</math> is a straight line with gradient <math>G_z</math> so as you move from the toes towards the head, the magnetic field increases. Now if you send an RF pulse at 63MHz you can excite protons inside the patients body but only for those where the resonant frequency matches the RF frequency.
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 6: MRI slice select]]
+
[[Image:mri_fig06.png|400px|thumb|left|Fig 6: MRI slice select]]
 
   
 
   
as shown in the figure, the magnetic field is equal to M_0 at <math>z = 0</math>. therefore, the protons on this plane have precession frequency 63MHz. These protons will resonate with the RF pulse that is transmitted at 63MHz. By varying the frequency of the RF pulse, you could stimulate protons from different slices along the z-axis to precess. in this manner you could specify which slice to stimulate, hence the term slice select.
+
As shown in the figure, the magnetic field is equal to M_0 at <math>z = 0</math> therefore, the protons on this plane have precession frequency 63MHz. These protons will resonate with the RF pulse that is transmitted at 63MHz. RF is not much attenuated by the patient's body. At each position, the atoms are tuned to a different frequency. By varying the frequency of the RF pulse, you could stimulate protons from different slices along the z-axis. In this manner you could specify which slice to stimulate, hence the term slice select.
  
 +
Here is a summary of the strategy behind slice select:
 
Design RF pulse to excite protons in single slice <br/>
 
Design RF pulse to excite protons in single slice <br/>
 
- Turn off <math>x</math> and <math>y</math> gradients  <br/>
 
- Turn off <math>x</math> and <math>y</math> gradients  <br/>
 
- Set <math>z</math> gradient to fix positive value, <math>G_z > 0</math> <br/>
 
- Set <math>z</math> gradient to fix positive value, <math>G_z > 0</math> <br/>
- Use the fact that resonance frequency is given by <br/>
+
- Use the fact that resonance frequency is given by <math>\omega = L(M_0+zG_z)</math>
<math>\omega = L(M_0+zG_z)</math>
+
 
+
RF is not much attenuated by the patients body.
+
 
+
at each position, the atoms are tuned to a different frequency.
+
  
  
Line 169: Line 155:
 
==Slice Select Pulse Design==
 
==Slice Select Pulse Design==
  
so if you took the fourier transform of the RF pulse, that would give you the shape of the response you would get "here" (in the slice?) If this is a sinc function in time modulated at 63.8 MHz, then you would get a slice that is rectangular in frequency and the width of the rectangle is. and the width of the rectangle depends on the width of the sinc. the width of a sinc determines the width of a slice where a wider sinc produces a narrower slice.
+
If the RF pulse is a sinc function modulated at 63.8 MHz, its Fourier transform would be a shifted rect. This would essentially be a slice in the frequency domain whose width is governed by the width of the sinc. A wider sinc would produce a narrower slice. In this manner, you could gather a sequence of slices that fit next to each other to build up a 3 dimensional representation of the volume.
 
+
You would want to gather a sequence of slices that fit next to each other to build up a 3 dimensional representation of the volume.
+
  
*Design parameters  
+
So to summarize, you would need to consider the following parameters in designing your RF pulse:
**Slice center<math> = z_c</math>
+
*Slice center<math> = z_c</math>, governed by the carrier frequency
**Slice thickness <math> = \Delta z</math>
+
*Slice thickness <math> = \Delta z</math>, governed by the width of the sinc function.
  
*Slice centered at <math>z_c</math> pulse frequency <br/>
+
To image the slice centered at <math>z_c</math>, the pulse frequency is given by <br/>
 
<math> f_c = \frac{LM_0}{2\pi}+\frac{z_cLG_z}{2\pi} = f_0 + \frac{z_cLG_z}{2\pi}</math>  
 
<math> f_c = \frac{LM_0}{2\pi}+\frac{z_cLG_z}{2\pi} = f_0 + \frac{z_cLG_z}{2\pi}</math>  
  
* Slice thickness <math>\Delta z</math> pulse bandwidth <br/>
+
The slice thickness <math>\Delta z</math> can be used to calculate the pulse bandwidth <br/>
 
<math>\Delta f = \frac{\Delta z LG_z}{2\pi}</math>
 
<math>\Delta f = \frac{\Delta z LG_z}{2\pi}</math>
  
* Using the parameters. the pulse is given by <br/>
+
Using the parameters, the pulse is given by <br/>
 
<math>s(t) = e^{j2\pi f_ct}sinc(t\Delta f)</math>  
 
<math>s(t) = e^{j2\pi f_ct}sinc(t\Delta f)</math>  
  
Line 194: Line 178:
 
==Imaging the Selected Slice ==  
 
==Imaging the Selected Slice ==  
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 6:]]
+
[[Image:mri_fig07.png|400px|thumb|left|Fig 7: Imaging a selected slice]]
  
* Precessing atoms radiate electromagnetic energy at RF frequencies
 
*Strategy
 
**Vary magnetic gradients along <math>x</math> and <math>y</math> axes
 
**Measure received RF signal
 
**Reconstruct image from RF measurements
 
  
after you've sent the pulse, the excited protons will re-radiate RF as they relax. pick up on antenna. how do you form an image from this signal because otherwise you receive the entire signal over the entire volume but that doesn't give you much information.
+
When the duration of the pulse is over, precessing atoms will reradiate electromagnetic energy at RF frequencies as they relax. Below is an overview of the strategy used to image a slice:
 +
*Vary magnetic gradients along <math>x</math> and <math>y</math> axes. The magnetic field varies approximately linearly with respect to position.
 +
*Measure the received RF signal
 +
*Reconstruct an image from the RF measurements.
  
  
Line 209: Line 191:
 
==Signal from a Single Voxel==
 
==Signal from a Single Voxel==
  
Let us first look at the signal received from one voxel. then we can look at the signal we would get from adding all the voxels together.  
+
Let us first analyze the signal received from one voxel. In our given coordinate system, this voxel is of size <math>dxdydz</math>. Then we can look at the signal we would get from adding all the voxels together. We do this by integrating across all of them to obtain the total signal received at the antenna.
  
so in our coordinate system,this voxel is of size <math>dxdydz</math> and then we will integrate them all together to get the total signal we receive at the antenna.
 
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 6: Signal from a single voxel]]
+
[[Image:mri_fig08.png|500px|thumb|left|Fig 8: Signal from a Single Voxel]]
  
assume that we have selected a slice on the <math>z</math>-axis so the received signal is a function of <math>x</math>, <math>y</math> and time.
+
Assume that we have selected a slice on the <math>z</math>-axis so the received signal is a function of <math>x</math>, <math>y</math> and time.
RF signal from a single voxel has the form <br/>
+
The RF signal from a single voxel has the form <br/>
 
<math>r(x,y,t) = f(x,y)e^{j\phi(t)} \ </math> <br/>
 
<math>r(x,y,t) = f(x,y)e^{j\phi(t)} \ </math> <br/>
  
<math>f(x,y)</math> voxel dependent weight
+
<math>f(x,y)</math> is a voxel dependent weighting where <math>f(x,y)</math>
*Depends on properties of material in voxel  
+
*depends on properties of material in voxel  
*Quantity of interest
+
*is the quantity of interest
*Typically "weighted" by T1, T2, or T3*  
+
*typically "weighted" by T1, T2, or T3*  
  
<math>\phi(t)</math> phase of received signal. this is the phase due tho the fact that you've changed the linear gradients at this point. the real part of <math>f(x,y)e^{j\phi(t)}</math> is what you receive in the signal but it is standard to include the expression for phase in a modulated signal. modulation is when you multiply with a sinusoidal carrier that can be expressed as an exponent.
+
The received signal has phase <math>\phi(t)</math>. This phase terms appears due to the fact that the linear gradients have been changed at this point. The real part of <math>f(x,y)e^{j\phi(t)}</math> is what you receive at the antenna but it is standard to include the expression for phase in a modulated signal. By modulation, I mean that a sinusoidal carrier, which can be expressed as a complex exponential, is multiplied with your original signal
 
   
 
   
*The phase can be modulated using <math>G_x</math> and <math>G_y</math> magnetic field gradients. you could pinpoint a single voxel in a slice this way. If the voxel is at <math>(z=z_0, x=0, y=0)</math> changing the gradient will not matter but elsewhere in the slice, it will matter.
+
The phase can be modulated using <math>G_x</math> and <math>G_y</math> magnetic field gradients. You can employ the gradients to pinpoint a single voxel in a slice. If the voxel is at <math>(z=z_0, x=0, y=0)</math> changing the gradient will not matter but elsewhere in the slice, it will.
* WLOG, we assume that <math>\phi(0) = 0</math>. in doing do, we absorb any complex constant into <math>f(x,y)</math> so that <math>f(x,y)</math> can be a complex number.
+
By changing the gradient along <math>x</math> and <math>y</math>, I can change the oscillation frequency of that voxel.  
+
  
for a signal given by <math>e^{j\phi(t)}</math>, the phase is given by <math>\phi(t)</math>. the instantaneous frequency <math>f(t)</math>, is the derivative of the phase i.e. <br/>
+
Without loss of generality, we assume that <math>\phi(0) = 0</math>. In doing do, we absorb any complex constant into <math>f(x,y)</math> so that <math>f(x,y)</math> can be a complex number.
 +
By changing the gradient along <math>x</math> and <math>y</math>, you can manipulate the oscillation frequency of that voxel.
 +
 
 +
For a signal given by <math>e^{j\phi(t)}</math>, the phase is given by <math>\phi(t)</math>. The instantaneous frequency <math>f(t)</math>, is the time derivative of the phase i.e. <br/>
 
<math>\begin{align}
 
<math>\begin{align}
 
f(t) &= \frac{d\phi(t)}{dt} \\
 
f(t) &= \frac{d\phi(t)}{dt} \\
Line 241: Line 223:
 
==Analysis of Phase==
 
==Analysis of Phase==
  
recall that the oscillation frequency is given by <math>\omega_0 = LM</math>. and since instantaneous frequency is the time derivative of phase, we have that <br/>
+
Recall that the oscillation frequency is given by <math>\omega_0 = LM</math>. And we have also just covered that the instantaneous frequency is the time derivative of phase. Therefore <br/>
 
<math>\begin{align}
 
<math>\begin{align}
 
\frac{d\phi(t)}{dt} &= LM(x,y,t) \\
 
\frac{d\phi(t)}{dt} &= LM(x,y,t) \\
Line 254: Line 236:
 
<math>k_y(t) = \int_0^t LG_y(\tau)d\tau</math> <br/>
 
<math>k_y(t) = \int_0^t LG_y(\tau)d\tau</math> <br/>
  
RF signal from a single voxel has the form <br/>
+
So the phase is the nominal frequency times <math>t</math> plus the <math>xk_x(t)+yk_y(t)</math>, which is the phase shift due to the gradient magnetic fields along <math>x</math> and <math>y</math>.
 +
 
 +
The RF signal reradiated by a single voxel has the form <br/>
 
<math>\begin{align}
 
<math>\begin{align}
 
r(t) &= f(x,y)e^{j\phi(t)} \\
 
r(t) &= f(x,y)e^{j\phi(t)} \\
Line 268: Line 252:
 
==Received Signal from Voxel==
 
==Received Signal from Voxel==
  
from the above analysis of phase, we have that the received RF signal from a single voxel is given by <br/>
+
From the above analysis of phase, we have that the received RF signal from a single voxel is given by <br/>
 
<math>\begin{align}
 
<math>\begin{align}
 
r(t) &= f(x,y)e^{j\phi(t)} \\
 
r(t) &= f(x,y)e^{j\phi(t)} \\
Line 277: Line 261:
 
where <math>e^{j\omega o(t)}</math> is the carrier and <math>e^{j(xkx(t)+yky(t))}</math> is the phase modulation on the carrier. In order to demodulate the signal in the receiver, the signal <math>r(t)</math> is fed into a mixer where it is multiplied with the reciprocal of the carrier and you are then left with the image multiplied with the phase modulator as shown in figure 7.
 
where <math>e^{j\omega o(t)}</math> is the carrier and <math>e^{j(xkx(t)+yky(t))}</math> is the phase modulation on the carrier. In order to demodulate the signal in the receiver, the signal <math>r(t)</math> is fed into a mixer where it is multiplied with the reciprocal of the carrier and you are then left with the image multiplied with the phase modulator as shown in figure 7.
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 7: Demodulating <math>r(t)</math>]]
+
[[Image:intro_fig07.jpeg|400px|thumb|left|Fig 9: Demodulating <math>r(t)</math>]]
  
  
Line 284: Line 268:
 
==Received Signal from Selected Slice ==
 
==Received Signal from Selected Slice ==
  
RF signal from the complete slice is given by the contribution from all the voxels in that slice so we integrate over <math>x</math> and <math>y</math> to get <br/>
+
The RF signal from the complete slice is given by summing the contributions from all the voxels in that slice so we integrate over <math>x</math> and <math>y</math> to get <br/>
 
<math>\begin{align}
 
<math>\begin{align}
 
R(t) &= \int_{\mathbf{R}}\int_{\mathbf{R}}r(x,y,t)dxdy \\
 
R(t) &= \int_{\mathbf{R}}\int_{\mathbf{R}}r(x,y,t)dxdy \\
Line 299: Line 283:
 
----
 
----
  
==K-Space Interpretation of Demodulated Signal==
+
==About K-Space==
  
k refers to the wave number.
+
K-space is simply an array of numbers representing the MR signals. We can use these values to recreate the MR image. The k in k_space refers to the wave number, or the number of wave cycles per meter of linear space. This is a notation commonly used in physics but it is easily converted to frequency if you note that <math>\omega = 2\pi k</math>.
 +
 
 +
k-space is the plot of wave numbers but you can also think about it in frequency. Really the domain of the k-space is a 2 dimensional frequency domain. Signals with the same wave number or frequency must still be distinguishable if they have different phases. For this reason, the range of the k-space is complex.
 +
 
 +
Every value in the array represents a wave of some frequency, amplitude and phase. If we superimpose all these waves we can form the MR image. Contrast information, appearing in large areas of bright an dark, is contained in the lower spatial frequencies. High spatial frequencies contain detail and edge information. This is illustrated in figure 10.
 +
 
 +
 
 +
[[Image:intro_fig11.jpeg|400px|thumb|left|Fig 11: Effects of removing k-space data on a reconstructed phantom image. In A, image was obtained with full k-space. In B, image obtained with the center of k-space missing shows only edges and fine detail, which are defined by high-frequency k-space. In general, the maximum signal is obtained from the center of k-space. In C, image obtained with only the outer portion of central k-space removed is blurred and lacks detail. In B and C, note that removal of portions of k-space leads to ringing artifacts in the image. Jacobs M A et al. Radiographics 2007;27:1213-1229. ©2007 by Radiological Society of North America]]
 +
 
 +
 
 +
 
 +
----
 +
 
 +
==K-Space Interpretation of Demodulated Signal==
  
 
Demodulating the RF signal from the complete slice, we get <br/>
 
Demodulating the RF signal from the complete slice, we get <br/>
Line 337: Line 334:
 
<math>v_x(t)</math> and <math>v_y(t)</math> are like the accelerator peddles for <math>k_x(t)</math> and <math>k_y(t)</math> in the professors force-displacement analogy and <math>G_x(t)</math> and <math>G_y(t)</math> are like analogous to velocity. This concept is further illustrated in figure 8.
 
<math>v_x(t)</math> and <math>v_y(t)</math> are like the accelerator peddles for <math>k_x(t)</math> and <math>k_y(t)</math> in the professors force-displacement analogy and <math>G_x(t)</math> and <math>G_y(t)</math> are like analogous to velocity. This concept is further illustrated in figure 8.
  
Assume that a particle is at rest at position <math>(x=0,y=0)</math> on the grid shown in figure 8. A negative acceleration pulse is applied along the <math>x</math>-axis and a positive acceleration pulse is applied along the <math>y</math>-axis, so that the particle travels to the top left corner of the grid. The particle is brought to a stop with another pulse in the opposite direction. Next a pulse is applied along the positive <math>x</math>-axis and the particle travels to the top right of the grid, where it is stopped and made to travel downward due to a negative acceleration along the <math>y</math>-axis. The pulses are applied so that the particle travels from the top left to the bottom right corner of the grid in a serpentine path. The full sequence is illustrated in figure 8. but really acceleration is an analogy for voltage and the velocity is an analogy for <math>G_x(t)</math> and <math>G_y(t)</math>. and the serpentine path traced out on the grid is really the sequence in which portions of the slice resonate with the rf pulse. the voltage waveforms required to trace such a path are shown in figure 7 (d) and (e).
+
Assume that a particle is at rest at position <math>(x=0,y=0)</math> on the grid shown in figure 8. A negative acceleration pulse is applied along the <math>x</math>-axis and a positive acceleration pulse is applied along the <math>y</math>-axis, so that the particle travels to the top left corner of the grid. The particle is brought to a stop with another pulse in the opposite direction. Next a pulse is applied along the positive <math>x</math>-axis and the particle travels to the top right of the grid, where it is stopped and made to travel downward due to a negative acceleration along the <math>y</math>-axis. The pulses are applied so that the particle travels from the top left to the bottom right corner of the grid in a serpentine path. The full sequence is illustrated in figure 8. but really acceleration is an analogy for voltage and the velocity is an analogy for <math>G_x(t)</math> and <math>G_y(t)</math>. <math>k_x(t)</math> and<math>k_y(t)</math> are analogous to displacement along the <math>x</math> and <math>y</math> axes. the serpentine path traced out on the grid is really the sequence in which data is collected (portions of the slice resonate with the rf pulse). What is the k-space. the voltage waveforms required to trace such a path are shown in figure 7 (d) and (e).
 
+
  
 +
Since the data we have collected is in the frequency domain, we must take the inverse fourier transform to obtain the real image. Recall that stretching in the frequency domain produces higher resolution in the space domain and vice versa. By scanning across a wide area, we can obtain very high resolution images. You may be tempted to speed this up by increasing the spacing between two horizontal lines shown in figure xxx but remember that  but we must take care that the spacing between collected data points is small otherwise your field of view shrinks. So if you are imaging a large object, you must ensure that enough data points are collected in the k-space to produce an image that is of adequate size.
  
 +
the units in the k-space are radians per unit distance, typically centimeters or millimeters. if you want a voxel to be 0.1 cm long on each side, then <math>k_x</math>, the bandwidth along xxx axis,
  
 
----
 
----
Line 347: Line 345:
  
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 7: A commonly used raster scan pattern through K-space]]
+
[[Image:mri_fig10.gif|500px|thumb|left|Fig 10: Echo Planar Imaging Scan Pattern and Corresponding Voltage- and Gradient-Time Graphs]]
 +
 
 +
Note that I have included what the pulse must look like to move the point from its initial position at the origin to the top left corner of the grid.
 +
 
 +
Recall that the gradient is proportional to current, which in turn is proportional to the integral of the voltage with respect to time.
  
 
<math>\begin{align}
 
<math>\begin{align}
Line 357: Line 359:
 
----
 
----
  
==Gradient Waveforms for EPI</math>
+
==Spacing between Readings in EPI Scan Pattern==
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 8: Gradient waveforms in <math>x</math> and <math>y</math>]]
+
If you were trying to image the 60 cm by 30 cm area shown in figure 9, what would the maximum spacing between readings have to be in order to reconstruct the image? Assume that a voxel is 0.1 cm by 0.1 cm by 0.1 cm. This gives you a resolution of 1 mm along each axis.
  
[[Image:intro_fig4.jpeg|400px|thumb|left|Fig 9: Voltage waveforms in <math>x</math> and <math>y</math>]]
+
Notice that the smaller the voxel, the larger the area that needs to be scanned. dual nature of the fourier transform. If you increase the spacing between samples in the space domain, you decrease the bandwidth required to represent the image in the frequency domain and vice versa. If you increase the sample spacing in the frequency domain, your field of view in the space domain decreases.
  
 +
Recall Nyquist's theorem
 +
 +
what is the size of the k-space across which you gather data if you want to ensure a resolution of 1 mm? the highest frequency is 2π/(2 × 0.1) = 10π radians per cm ( From Nyquist's theorem). So your k-space is 20π radians per cm by 20π radians per cm.
 +
 +
For a 30 cm high field of view, your step size along <math>k_x</math> is (1/30 × 1/2 × 2π) = π/30 radians per cm. Using a similar argument, we see that the step size along <math>k_y</math> must be at most (1/60 × 1/2 × 2π) = π/60 radians per cm.
  
  
Line 373: Line 380:
  
 
* C. R. Nave. “Nuclear Magnetic Resonance". Internet: http://hyperphysics.phy-astr.gsu.edu/hbase/nuclear/nmr.html, [June 16, 2013].
 
* C. R. Nave. “Nuclear Magnetic Resonance". Internet: http://hyperphysics.phy-astr.gsu.edu/hbase/nuclear/nmr.html, [June 16, 2013].
 +
 +
* Waisman Laboratory for Brain Imaging and Behaviour. "MRI Facilities". Internet: http://brainimaging.waisman.wisc.edu/facilities/MRI.html, May 14th, 2009, [July 14th, 2013].
  
 
* G. Francis. Psy 200. "Introduction to Cognitive Psychology". Class Lecture Notes. Faculty of Psychological Sciences, Purdue University. Spring 2013.  
 
* G. Francis. Psy 200. "Introduction to Cognitive Psychology". Class Lecture Notes. Faculty of Psychological Sciences, Purdue University. Spring 2013.  
 +
 +
* L. Lejeune. "Linear Estimation in Magnetic Resonance Imaging (MRI) - Comparisons of Reconstruction Methods of Images". in Student Projects, École Polytechnique Fédérale de Lausanne. December 1st, 2009.
 +
 +
* D. M. Higgins, "The '''What is K-Space?''' Tutorial". Internet: http://www.revisemri.com/tutorials/what_is_k_space/, [July 22nd, 2013]
  
  

Revision as of 04:52, 23 July 2013

sLecture

Topic 3: Magnetic Resonance Imaging


The Bouman Lectures on Image Processing

A sLecture by Maliha Hossain

Topic 3: Magnetic Resonance Imaging

© 2013




Excerpt from Prof. Bouman's Lecture


Accompanying Lecture Notes


Magnetic resonance imaging (MRI or MR) is a medical imaging technique that uses the property of nuclear magnetic resonance. We will see later in greater detail that magnetic fields are applied to manipulate the precession of nuclei within the patient's body. As the nuclei return to their previous states, they emit a signal that can be decoded into a mapping of the body's internal structure.

There is, in principal, no upper bound to how high the resolution can be of images produced using MRI. It would of course take a long time to perform such a scan. Generally scans have a spatial resolution in the order of millimeters.

Another advantage of MRI is that it uses no ionizing radiation unlike CT. Additionally, MR is very flexible and programmable. It is basically a software programmable module. MR is however about twice as expensive as CT and the duration of the scan is one reason behind the cost. The machine itself is also acoustically noisy, which can be uncomfortable for the patient and can interfere with your measurements if for example you are trying to image the part of the brain that is stimulated by sound.


Fig 1: The exterior of an MRI scanner


Fig 2: Sagittal plane through the hind-brain obtained using MRI


These notes present a simplified explanation of the physics. A full explanation is beyond the scope of the lecture since it will mainly deal with the signal processing aspect of MRI.


MRI Attributes

  • Based on magnetic resonance effect in atomic species
  • Does not require any ionizing radiation
  • Numerous modalitites
    • Conventional anatomical scans
    • Functional MRI(fMRI)
    • MRI Tagging (tagging makes it possible to capture and store information about the motion of an organ, often of the heart)
  • Image formation
    • RF excitation of magnetic resonance modes
    • Magnetic field gradients modulate resonance frequency
    • Reconstruction computed with inverse Fourier transform
    • Fully programmable
    • Requires an enormous (and very expensive) superconducting magnet
Fig 3: fMRI scan of a patient's brain. It shows the regional cerebral blood volume (rCBV). Different colors indicate different levels of activity in the brain. The patient in the picture has had a stroke



Magnetic Resonance

You put a muclear species that has a magnetic dipole in the presence of a magnetic field and this will cause the particle spin to precess about the external field axis much like how a top spins about its axis. This phenomenon is depicted in figure 4.

Fig 4: Precession of atom in the presence of a magnetic field


Larmor precession is the precession of the magnetic moments of atoms or their particles about an external magnetic field.

An atom or its nuclei will precess at the Larmor frequency, given by
$ \omega_0 = LM \ $
where
$ M $ is the magnitude of the ambient magnetic field in Teslas (T)
$ \omega_0 $ is the frequency of precession in radians per second
$ L $ is the gyromagnetic constant known as the Larmor constant and its value depends on the choice of atom. L has units of radians per second per Tesla (rad/(sT))

The Larmor constant is unique to a nuclear species so the frequency of oscillation is intrinsic to a nuclear species in a given magnetic field. Scanners are designed around a particular $ \omega_0 $ depending on which nucleus you are imaging. Typically they are built to image hydrogen ions because of the abundance of these ions, which are essentially protons, in our bodies. The frequency of oscillation of hydrogen in the presence of a magnetic field of 1.5 T is about 63.87 MHz.

Picture initially that the protons are precessing in uniform magnetic field. You introduce more energy into the system via an RF signal at 63.87 MHz. This will cause protons at that frequency to resonate. You have basically pumped energy into the system and the way to describe that is that the tip angle of the precession increases. Once you turn it off, the precessing particle will radiate an RF signal. You can locate the source of the protons by detecting this reradiated RF signal.

As we saw in the previous equation, the Larmor frequency of the detected signal, $ \omega_0 $, is proportional to the applied magnetic field $ M $. Changing the magnitude of that field will produce a different detected frequency. In MRI, a magnetic field gradient across a sample allows you to pinpoint the source of the proton nuclear magnetic resonance (NMR) signal in the sample.



The MRI Magnet

Fig 5: The MRI magnet

Traditional MR scanners use very high field strengths on the order of 1.5 T and 3 T. these are standard magnetic field strengths and are needed to produce high quality images reliably. Patients are required to remove clothing items that may contain ferromagnetic materials. Most patients with metallic implants such as pacemakers cannot have an MRI done.

The machine has a large superconducting magnet built around the bore of the scanner. At very low temperatures, close to absolute zero, the superconducting material has zero resistance. A current is passed through the material using a generator. The current continues to pass through it even after the generator is turned off since the material has no resistance for as long as the superconducting material is kept below its critical temperature by the liquid helium.

This perpetual current flow comes at the cost of having to keep the helium cool. An accidental shut-down of the system can trigger an event known as "quench", which involves the rapid boiling of the liquid helium from around the superconducting material. As the temperature rises the magnet develops a resistance and even a small resistance can cause the material to heat up due to the presence of high currents. This will speed up the boiling of the helium even more. If the rapidly expanding helium cannot be dissipated, it may be released into the scanner room, maybe even at an explosive rate. Therefore rooms with scanners must be equipped to handle such an event.

For the remainder of the notes, we will assume the scanner is designed such that $ M_0 = 1.5T $ to image hydrogen ions precessing at 63.8 MHz.



Magnetic Field Gradients

Assume that the direction of the magnetic field within the bore is constant and only its magnitude is changing. This allows us to treat it as a scalar quantity even though in reality it is a vector.

The magnetic field magnitude at the location $ (x,y,z) $ has the form
$ M(x,y,z) = M_0 + xG_x + yG_y + zG_z \ $
- $ G_x $, $ G_y $ and $ G_z $ control magnetic field gradients
- $ M_0 $ is constant.

So the equation is basically saying that a constant magnetic field, $ M_0 $ is applied to the entire sample. The hydrogen spin-flip frequency is then the same for all parts of the sample. Then you add variable magnetic fields using gradient coils that are controlled by amplifiers. These coils are similar to ones in your speaker systems. The coils are designed so that the magnetic field changes approximately linearly with position, hence the term gradient field.

In other words, you have the static uniform magnetic field $ M_0 $ produced by the superconducting magnet. Add to this the gradient magnetic field that varies linearly with space. The gradient field is produced by a current through a coil driven by an amplifier. It is important to note that the gradients can be changed with time and that they are small compared to $ M_0 $.

For the inductance $ L $ in the coil, we know that
$ L\frac{di}{dt} = v(t) $
Recall from Ampere's law that the magnetic field around an electric current is proportional to the current. The magnetic field is therefore also proportional to the integral of the voltage across the coil
$ M(t) = \int v(\tau)d\tau $
The amplifier that drives the current through the coil is controlled by a voltage where the current through the coil is proportional to the integral of the voltage and the magnetic field of the coil is proportional to the current.

For the time varying gradients,
$ M(x,y,z,t) = M_0 + xG_x(t) + yG_y(t) + zG_z(t) \ $

The three coils produce gradients along $ x $, $ y $ and $ z $ (left to right, top to bottom and head to toe respectively). Each of those coils control the magnetic field gradient along its respective axis. So by varying the current through each of those three coils, the gradient field can be varied along each axis.



MRI Slice Select

Let us consider the $ z $ axis along the bore. The graph for $ M $ versus $ z $ is a straight line with gradient $ G_z $ so as you move from the toes towards the head, the magnetic field increases. Now if you send an RF pulse at 63MHz you can excite protons inside the patients body but only for those where the resonant frequency matches the RF frequency.

Fig 6: MRI slice select

As shown in the figure, the magnetic field is equal to M_0 at $ z = 0 $ therefore, the protons on this plane have precession frequency 63MHz. These protons will resonate with the RF pulse that is transmitted at 63MHz. RF is not much attenuated by the patient's body. At each position, the atoms are tuned to a different frequency. By varying the frequency of the RF pulse, you could stimulate protons from different slices along the z-axis. In this manner you could specify which slice to stimulate, hence the term slice select.

Here is a summary of the strategy behind slice select: Design RF pulse to excite protons in single slice
- Turn off $ x $ and $ y $ gradients
- Set $ z $ gradient to fix positive value, $ G_z > 0 $
- Use the fact that resonance frequency is given by $ \omega = L(M_0+zG_z) $



Slice Select Pulse Design

If the RF pulse is a sinc function modulated at 63.8 MHz, its Fourier transform would be a shifted rect. This would essentially be a slice in the frequency domain whose width is governed by the width of the sinc. A wider sinc would produce a narrower slice. In this manner, you could gather a sequence of slices that fit next to each other to build up a 3 dimensional representation of the volume.

So to summarize, you would need to consider the following parameters in designing your RF pulse:

  • Slice center$ = z_c $, governed by the carrier frequency
  • Slice thickness $ = \Delta z $, governed by the width of the sinc function.

To image the slice centered at $ z_c $, the pulse frequency is given by
$ f_c = \frac{LM_0}{2\pi}+\frac{z_cLG_z}{2\pi} = f_0 + \frac{z_cLG_z}{2\pi} $

The slice thickness $ \Delta z $ can be used to calculate the pulse bandwidth
$ \Delta f = \frac{\Delta z LG_z}{2\pi} $

Using the parameters, the pulse is given by
$ s(t) = e^{j2\pi f_ct}sinc(t\Delta f) $

and its CTFT is given by
$ S(f) = rect(\frac{f-f_c}{\Delta f}) $



Imaging the Selected Slice

Fig 7: Imaging a selected slice


When the duration of the pulse is over, precessing atoms will reradiate electromagnetic energy at RF frequencies as they relax. Below is an overview of the strategy used to image a slice:

  • Vary magnetic gradients along $ x $ and $ y $ axes. The magnetic field varies approximately linearly with respect to position.
  • Measure the received RF signal
  • Reconstruct an image from the RF measurements.



Signal from a Single Voxel

Let us first analyze the signal received from one voxel. In our given coordinate system, this voxel is of size $ dxdydz $. Then we can look at the signal we would get from adding all the voxels together. We do this by integrating across all of them to obtain the total signal received at the antenna.


Fig 8: Signal from a Single Voxel

Assume that we have selected a slice on the $ z $-axis so the received signal is a function of $ x $, $ y $ and time. The RF signal from a single voxel has the form
$ r(x,y,t) = f(x,y)e^{j\phi(t)} \ $

$ f(x,y) $ is a voxel dependent weighting where $ f(x,y) $

  • depends on properties of material in voxel
  • is the quantity of interest
  • typically "weighted" by T1, T2, or T3*

The received signal has phase $ \phi(t) $. This phase terms appears due to the fact that the linear gradients have been changed at this point. The real part of $ f(x,y)e^{j\phi(t)} $ is what you receive at the antenna but it is standard to include the expression for phase in a modulated signal. By modulation, I mean that a sinusoidal carrier, which can be expressed as a complex exponential, is multiplied with your original signal

The phase can be modulated using $ G_x $ and $ G_y $ magnetic field gradients. You can employ the gradients to pinpoint a single voxel in a slice. If the voxel is at $ (z=z_0, x=0, y=0) $ changing the gradient will not matter but elsewhere in the slice, it will.

Without loss of generality, we assume that $ \phi(0) = 0 $. In doing do, we absorb any complex constant into $ f(x,y) $ so that $ f(x,y) $ can be a complex number. By changing the gradient along $ x $ and $ y $, you can manipulate the oscillation frequency of that voxel.

For a signal given by $ e^{j\phi(t)} $, the phase is given by $ \phi(t) $. The instantaneous frequency $ f(t) $, is the time derivative of the phase i.e.
$ \begin{align} f(t) &= \frac{d\phi(t)}{dt} \\ \Rightarrow \phi(t) &= \int_{-\infty}^t f(\tau) d\tau \end{align} $



Analysis of Phase

Recall that the oscillation frequency is given by $ \omega_0 = LM $. And we have also just covered that the instantaneous frequency is the time derivative of phase. Therefore
$ \begin{align} \frac{d\phi(t)}{dt} &= LM(x,y,t) \\ \Rightarrow \phi(t) &= \int_0^t LM(x,y,\tau)d\tau \\ &= \int_0^t LM_0 + xLG_x(\tau) + yLG_y(\tau)d\tau \\ &= \omega_0t + xk_x(t) +yky(t) \end{align} $

where we define
$ \omega_0 = LM_0 $
$ k_x(t) = \int_0^t LG_x(\tau)d\tau $
$ k_y(t) = \int_0^t LG_y(\tau)d\tau $

So the phase is the nominal frequency times $ t $ plus the $ xk_x(t)+yk_y(t) $, which is the phase shift due to the gradient magnetic fields along $ x $ and $ y $.

The RF signal reradiated by a single voxel has the form
$ \begin{align} r(t) &= f(x,y)e^{j\phi(t)} \\ &= f(x,y)e^{j(\omega_0t + xk_x(t) + yk_y(t))} \\ &= f(x,y)e^{j\omega_0t}e^{j(xk_x(t) + yk_y(t))} \end{align} $

Note that the $ \phi(t) $ is not expressed as a function of $ z $. This is because we have restricted ourselves to one slice on the $ z $ axis so in this analysis, the value of $ z $ does not vary.



Received Signal from Voxel

From the above analysis of phase, we have that the received RF signal from a single voxel is given by
$ \begin{align} r(t) &= f(x,y)e^{j\phi(t)} \\ &= f(x,y)e^{j(\omega_0t+xk_x(t)+yk_y(t))} \\ &= f(x,y)e^{j\omega_0t}e^{j(xk_x(t)+yk_y(t))} \end{align} $

where $ e^{j\omega o(t)} $ is the carrier and $ e^{j(xkx(t)+yky(t))} $ is the phase modulation on the carrier. In order to demodulate the signal in the receiver, the signal $ r(t) $ is fed into a mixer where it is multiplied with the reciprocal of the carrier and you are then left with the image multiplied with the phase modulator as shown in figure 7.

Fig 9: Demodulating $ r(t) $



Received Signal from Selected Slice

The RF signal from the complete slice is given by summing the contributions from all the voxels in that slice so we integrate over $ x $ and $ y $ to get
$ \begin{align} R(t) &= \int_{\mathbf{R}}\int_{\mathbf{R}}r(x,y,t)dxdy \\ &= \int_{\mathbf{R}}\int_{\mathbf{R}} f(x,y)e^{j\omega_0t}e^{j(xk_x(t) + yk_y(t))}dxdy \\ &= e^{j\omega_0t}\int_{\mathbf{R}}\int_{\mathbf{R}} f(x,y)e^{j(xk_x(t) + yk_y(t))}dxdy \\ &= e^{j\omega_0t}F(-k_x(t),-k_y(t)) \end{align} $

where $ F(u,v) $ is the CSFT of $ f(x,y) $, $ u = -k_x(t) $ and $ v = -k_y(t) $

So we have that the demodulated received signal $ R(t)e^{-j\omega ot} $ is the Fourier transform of the object evaluated at $ -k_x(t) $ and $ -k_y(t) $.



About K-Space

K-space is simply an array of numbers representing the MR signals. We can use these values to recreate the MR image. The k in k_space refers to the wave number, or the number of wave cycles per meter of linear space. This is a notation commonly used in physics but it is easily converted to frequency if you note that $ \omega = 2\pi k $.

k-space is the plot of wave numbers but you can also think about it in frequency. Really the domain of the k-space is a 2 dimensional frequency domain. Signals with the same wave number or frequency must still be distinguishable if they have different phases. For this reason, the range of the k-space is complex.

Every value in the array represents a wave of some frequency, amplitude and phase. If we superimpose all these waves we can form the MR image. Contrast information, appearing in large areas of bright an dark, is contained in the lower spatial frequencies. High spatial frequencies contain detail and edge information. This is illustrated in figure 10.


Fig 11: Effects of removing k-space data on a reconstructed phantom image. In A, image was obtained with full k-space. In B, image obtained with the center of k-space missing shows only edges and fine detail, which are defined by high-frequency k-space. In general, the maximum signal is obtained from the center of k-space. In C, image obtained with only the outer portion of central k-space removed is blurred and lacks detail. In B and C, note that removal of portions of k-space leads to ringing artifacts in the image. Jacobs M A et al. Radiographics 2007;27:1213-1229. ©2007 by Radiological Society of North America



K-Space Interpretation of Demodulated Signal

Demodulating the RF signal from the complete slice, we get
$ F(-k_x(t),-k_y(t))=R(t)e^{j\omega_0t} $

where
$ k_x(t) = \int_0^t LG_x(\tau)d\tau $
$ k_y(t) = \int_0^t LG_y(\tau)d\tau $

Strategy

  • Scan partial frequencies by varying $ k_x(t) $ and $ k_y(t) $
  • Reconstruct image by performing the (inverse) CSFT
  • $ G_x(t) $ and $ G_y(t) $ control velocity through K-space



Controlling K-Space Trajectory

Relationships between gradient coil voltage and K-space
$ \begin{align} L_x\frac{di(t)}{dt} &= v_x(t) \quad G_x(t) = M_xi(t) \\ L_y\frac{di(t)}{dt} &= v_y(t) \quad G_y(t) = M_yi(t) \end{align} $
where $ v_x(t) $ and $ v_x(t) $ are the voltage across the respective coils and $ L_x $ and $ L_y $ are their respective inductances.

using this result, we get
$ \begin{align} k_x(t) &= \int_0^t LG_x(\tau)d\tau \\ &= \frac{LM_x}{L_x}\int_0^t\int_0^{\tau}v_x(s)dsd\tau \\ k_y(t) &= \int_0^t LG_x(\tau)d\tau \\ &= \frac{LM_y}{L_y}\int_0^t\int_0^{\tau}v_y(s)dsd\tau \end{align} $

$ v_x(t) $ and $ v_y(t) $ are like the accelerator peddles for $ k_x(t) $ and $ k_y(t) $ in the professors force-displacement analogy and $ G_x(t) $ and $ G_y(t) $ are like analogous to velocity. This concept is further illustrated in figure 8.

Assume that a particle is at rest at position $ (x=0,y=0) $ on the grid shown in figure 8. A negative acceleration pulse is applied along the $ x $-axis and a positive acceleration pulse is applied along the $ y $-axis, so that the particle travels to the top left corner of the grid. The particle is brought to a stop with another pulse in the opposite direction. Next a pulse is applied along the positive $ x $-axis and the particle travels to the top right of the grid, where it is stopped and made to travel downward due to a negative acceleration along the $ y $-axis. The pulses are applied so that the particle travels from the top left to the bottom right corner of the grid in a serpentine path. The full sequence is illustrated in figure 8. but really acceleration is an analogy for voltage and the velocity is an analogy for $ G_x(t) $ and $ G_y(t) $. $ k_x(t) $ and$ k_y(t) $ are analogous to displacement along the $ x $ and $ y $ axes. the serpentine path traced out on the grid is really the sequence in which data is collected (portions of the slice resonate with the rf pulse). What is the k-space. the voltage waveforms required to trace such a path are shown in figure 7 (d) and (e).

Since the data we have collected is in the frequency domain, we must take the inverse fourier transform to obtain the real image. Recall that stretching in the frequency domain produces higher resolution in the space domain and vice versa. By scanning across a wide area, we can obtain very high resolution images. You may be tempted to speed this up by increasing the spacing between two horizontal lines shown in figure xxx but remember that but we must take care that the spacing between collected data points is small otherwise your field of view shrinks. So if you are imaging a large object, you must ensure that enough data points are collected in the k-space to produce an image that is of adequate size.

the units in the k-space are radians per unit distance, typically centimeters or millimeters. if you want a voxel to be 0.1 cm long on each side, then $ k_x $, the bandwidth along xxx axis,


Echo Planar Imaging (EPI) Scan Pattern

Fig 10: Echo Planar Imaging Scan Pattern and Corresponding Voltage- and Gradient-Time Graphs

Note that I have included what the pulse must look like to move the point from its initial position at the origin to the top left corner of the grid.

Recall that the gradient is proportional to current, which in turn is proportional to the integral of the voltage with respect to time.

$ \begin{align} k_x(t) &= L\int_0^t G_x(\tau)d\tau = \frac{LM_x}{L_x}\int_0^t\int_0^{\tau} v_x(s)dsd\tau \\ k_y(t) &= L\int_0^t G_y(\tau)d\tau = \frac{LM_y}{L_y}\int_0^t\int_0^{\tau} v_y(s)dsd\tau \end{align} $



Spacing between Readings in EPI Scan Pattern

If you were trying to image the 60 cm by 30 cm area shown in figure 9, what would the maximum spacing between readings have to be in order to reconstruct the image? Assume that a voxel is 0.1 cm by 0.1 cm by 0.1 cm. This gives you a resolution of 1 mm along each axis.

Notice that the smaller the voxel, the larger the area that needs to be scanned. dual nature of the fourier transform. If you increase the spacing between samples in the space domain, you decrease the bandwidth required to represent the image in the frequency domain and vice versa. If you increase the sample spacing in the frequency domain, your field of view in the space domain decreases.

Recall Nyquist's theorem

what is the size of the k-space across which you gather data if you want to ensure a resolution of 1 mm? the highest frequency is 2π/(2 × 0.1) = 10π radians per cm ( From Nyquist's theorem). So your k-space is 20π radians per cm by 20π radians per cm.

For a 30 cm high field of view, your step size along $ k_x $ is (1/30 × 1/2 × 2π) = π/30 radians per cm. Using a similar argument, we see that the step size along $ k_y $ must be at most (1/60 × 1/2 × 2π) = π/60 radians per cm.



References

  • C. A. Bouman. ECE 637. Class Lecture. Digital Image Processing I. Faculty of Electrical Engineering, Purdue University. Spring 2013.
  • G. Francis. Psy 200. "Introduction to Cognitive Psychology". Class Lecture Notes. Faculty of Psychological Sciences, Purdue University. Spring 2013.
  • L. Lejeune. "Linear Estimation in Magnetic Resonance Imaging (MRI) - Comparisons of Reconstruction Methods of Images". in Student Projects, École Polytechnique Fédérale de Lausanne. December 1st, 2009.



Questions and comments

If you have any questions, comments, etc. please post them on this page



Back to the "Bouman Lectures on Image Processing" by Maliha Hossain

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn