HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1....

15

Transcript of HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1....

Page 1: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

EE290T/BIOE265, Spring 2010Principles of MRI Miki Lustig

HW2 Solution

1. Nishimura 3.3

Answer

1

mlustig
Rectangle
mlustig
Text Box
EE225E/BIO265, Spring 2011 Principles of MRI
Page 2: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

2

Page 3: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

3

Page 4: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

2. Precession in Tops (Double Points: brain teasers)

(a) Explain why only spinning tops precess. That is, explain why static tops will not.Answer

(b) Suppose you wanted to create an approximate macro version of the precessing quantum nuclearmagnetic moment. Dr. Bore thinks you could do this by embedding a permanent magnetic(PM) moment within a toy top. Would you embed the PM perpendicular or parallel to the

4

Page 5: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

rotation axis? If you altered the applied external magnetic �eld, do you believe you would alterthe mechanical precession frequency of the top� that is, the precession would change from thatdetermined merely by gravity? Could you create both positive and negative gyromagnetic ratios?

5

mlustig
Text Box
To approximate a spin, the magnetic moment must be pointing at the same direction of the angular momentum. Therefore the magnet should be aligned with the top. Altering an external field can either contribute of subtract from the gravitational force. The magnetic field can be altered to contradict the effect of gravity, thus stopping the precession. If the magnetic field becomes a dominating factor, precession will change direction, effectively alternating the gyromagnetic ratio.
Page 6: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

3. Magnetic �eld steps

Suppose you placed two test tubes (each 50 mL) at 1.5 T and one test tube (50 mL) at 1.6 T. Supposeboth coils were visible with equal sensitivity to the RF coil. Sketch the intensity of the received signalas a function of frequency.Answer

6

Page 7: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

4. RF Field

(a) Find the amplitude of an RF pulse that performs a 90 degree excitation in exactly 1 ms at 1.5T.

(b) Find the amplitude of an RF pulse that performs a 90 degree excitation in exactly 1 ms at 3T.

Answer

7

Page 8: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

5. Gradient �eld bandwidth

Sketch the spectrum of received signal on a 1.5 T MRI scanner versus frequency for an object ofdiameter = 25 cm with a gradient �eld of peak ampitude 4 G/cm.Answer

8

Page 9: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

6. RF Excitation. If we apply an RF waveform in addition to a gradient G, we can excite a slicethrough an object. Assume that the RF envelope B1(t) is the 6 ms segment of a sinc(), as shown

1 2 3 4 5 6

1

t, ms

Write an expression for B1(t), and its Fourier transform. Assuming a gradient G of 0.94 G/cm, howwide is the excited slice?

Answer The RF waveform may be written

B1(t) = sinc(2(t− 3))rect((t− 3)/6)

where times are in ms. The Fourier transform is

F{B1(t)} = e−j2π3f[

1

2rect(f/2) ∗ 6 sinc(6f)

]The phase term doesn't e�ect the slice width, so we'll ignore it. The Fourier transform is a 2 kHzwide rect convolved with a 1/6 kHz wide sinc. The result will be about 2 kHz wide. This is illustratedbelow, where the normalized functions are plotted,

−4 −2 0 2 4−0.5

0

0.5

1

1.5

f, kHz

rect(f/2)

−4 −2 0 2 4−0.5

0

0.5

1

1.5

f, kHz

sinc(6f)

−4 −2 0 2 4−0.5

0

0.5

1

1.5

f, kHz

rect(f/2)*6sinc(6f)

To �nd the width of the slice this pulse excites, �rst note that a gradient of 0.94 G/cm produces alinear frequency variation of

γ

2πG = (4.257 kHz/G)(0.94 G) = 4 kHz/cm

The RF pulse has a spectrum that is 2 kHz wide, so the excited slice will be

2 kHz/(4 kHz/cm) = 0.5 cm

in width. This is a typical slice width.

9

Page 10: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

8. Non-Linear gradients. One of the key elements in MRI is the use of a gradient �eld G whichestablishes a linear relationship between resonance frequency and position. While the linear model isconvenient for analysis, real gradients are seldom exactly linear. In this problem we will look at someof the consequences of gradient non-linearity. This is a REAL situation in every scanner!

(a) Consider a gradient system with the response shown by the solid line. A linear model is shownas the dashed line.

Actual Gradient

Linear Model

-20 -10 0 10 20Position, z, cm

020

10-1

0-2

0

Fre

quen

cy, k

Hz

Assume the object is a sequences of rectangles of uniform intensity.

-20 -10 10 200

M0

4cm

4cm

Position, z, cm

Sketch the one dimensional image we would get if we encode using the real gradient (solid line)but use the linear approximation (dashed line) when we resconstruct the data (i.e. assign spa-tial positions to di�erent frequencies.) Things to look for are spatial distortion, and intensityvariations.

Answer We can solve this graphically. First, the non-linear gradient encodes position as fre-quency. If we can use the plotted curve to �gure out the frequency that corresponds to the edgesof each of the rectangles.

12

mlustig
Text Box
7
mlustig
Text Box
10
Page 11: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

Actual Gradient

Linear Model

-20 -10 0 10 20Position, z, cm

020

10-1

0-2

0Fr

eque

ncy,

kHz

Then we decode each of these frequencies, assuming that the gradients were the ideal lineargradients. Here we go from the actual frequency generated by the non-linear gradient, and mapthat back to space using the linear gradient assumption

Actual Gradient

Linear Model

-20 -10 0 10 20Position, z, cm

020

10-1

0-2

0Fr

eque

ncy,

kHz

What happens is that as the slope of the gradient waveform falls o�, the image becomes morecompressed. At the edges of the image the rectangles are much narrower. However, each has tohave the same area (there is the same number of water molecules producing signal) so that theamplitude has to go up inversely with the width.

(b) The non-linearity in the gradient can be measured, and then used to more accurately reconstructthe data. Assume that the gradient �eld produces a frequency

ω(z) = γ(Gidealz +Hz3) (1)

where Gideal = 0.235 G/cm, and H = −1.9× 10−4 G/(cm3), and z ranges from ±20 cm. If wehave a data acquisition window of 10 ms, we can resolve frequencies of 100 Hz. What spatialresolution does this provide at z = 0, 10, and 20 cm?

13

mlustig
Text Box
11
Page 12: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

Answer The question is, what spatial distance corresponds to 100 Hz at these di�erent positions.The slope of the non-linear gradient is

dz= γ(Gideal + 3Hz2)

This means thatdz

dω=

1

γ(Gideal + 3Hz2)

The approximate spatial distance that corresponds to 100 Hz is

∆z = ∆ωdz

dω=

2π100

γ(Gideal + 3Hz2)

Substituting in for Gideal, H and z, we get ∆z is 1 mm at z =0, 1.32 mm at z=10 cm, and 33.6mm at z=20 cm.

(c) Would this gradient pro�le work for spatial encoding for MRI? Why or why not? Assume thatthe object extends from -20 cm to 20 cm.

-20 -10 0 10 20Position, z, cm

020

10-1

0-2

0Fr

eque

ncy,

kHz

Answer Since the non-linear gradient is not monotonic, two spatial locations encode to the samefrequency. Then we can't tell where the signal came from by looking at its spectrum. We can'tuse this non-linear gradient to unambiguously encode spatial information, so we can't use it forimaging, at least not over the entire FOV. It would work �ne if the object were limited, say to+/- 10 cm.

14

mlustig
Text Box
12
Page 13: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

8. Design of Time-Optimal Gradient WaveformsA key element in pulse sequence design in MRI is the design of the gradient waveforms. A verycommon problem is to design a gradient waveform with a certain desired area. To minimize theduration of the sequence, we often would like the waveform to be as short as possible. However, thegradient pulse has to be realizable by the system and therefore must satisfy the system constraintsof maximum gradient amplitude and slew-rate.

Solution: A minimum time solution is always either limited by the slew-rate or by the maximumgradient amplitude. There are two cases we should consider depending on the desired gradient area:

t= 2Gmax / Smax

area=Gmax2

/Smax

area<Gmax2

/Smax

area>Gmax2

/Smax

When the desired area is smaller than G2max

Smaxthen the gradient magnitude is never maxed out, so the

solution is a triangle. For an area larger than G2max

Smaxthe solution is a trapezoid.

t=2[area/Smax]1/2

G=[area Smax]1/2

Δt= Gmax / Smax

t1 t2 t3

Δt= area/Gmax - Gmax/Smax

Δt= Gmax / Smax

For a triangle we define t1 =√area Smax and get:

G(t) =

{Smaxt , 0 ≤ t ≤ t12√area Smax − Smaxt , t1 ≤ t ≤ 2t1

For a trapezoid we define t1 = GmaxSmax

, t2 = areaGmax

and t3 = areaGmax

+ GmaxSmax

and get,

G(t) =

Smaxt , 0 ≤ t ≤ t1Gmax , t1 ≤ t ≤ t2(

areaGmax

+ GmaxSmax

)Smax − Smaxt , t2 ≤ t ≤ t3

Given that the system is limited to maximum gradient amplitude Gmax = 4G/cm and a slew-rate of

Smax = dG(t)dt = 15000G/cm/s

(a) Find the shortest gradient waveform that has an area of∫tG(τ)dτ =8e-4 G*s/cm. Draw the

waveform. Point out the maximum gradient, and its duration. What is the shape of thewaveform?

4

mlustig
Text Box
13
Page 14: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

Solution:For the parameters we get that the desired area is smaller than G2

maxSmax

=10.67e-4, so the solution

is a triangle. The maximum gradient is G =√area Smax = 3.464G/cm and the duration is

T = 2√area Smax = 0.462ms.

(b) Find the shortest gradient waveform that has an area of∫tG(τ)dτ =16e-4 G*s/cm. Draw the

waveform. Point out the maximum gradient, and its duration. What is the shape of the wave-form?Solution:Now, the desired area is bigger than G2

maxSmax

=10.67e-4, so the waveform is a trapezoid with maxi-

mum gradient of 4G/cm and a duration of T = areaGmax

+ GmaxSmax

= 0.6667ms.

(c) Matlab assignment: In this part, we will write a matlab function to design minimum-timegradient waveforms. This function will be used later in class, so make sure you get it right.Write a function that accepts the desired gradient area (in G*s/cm), the maximum gradientamplitude (in G/cm), the maximum slew-rate (in G/cm/s) and sampling interval (in s). Thefunction will return (a discrete) shortest gradient waveforms that satisfy the constraints:

g = minTimeGradientArea(area, Gmax, Smax, dt);

Solution: There are many ways to implement this. Here’s an example of sampling the contin-uous function of the analytic gradient waveform solution.

function g = minTimeGradientArea(area, Gmax, Smax, dt)

% g = minTimeGradientArea(area, Gmax, Smax, dt)

A_triang = Gmax^2/Smax;

if area <= A_triang

disp(’Triangle’)

t1 = sqrt(area/Smax);

T = 2*t1;

N = floor(T/dt);

t = [1:N]’*dt;

idx1 = find(t < t1);

idx2 = find(t >= t1);

g = zeros(N,1);

g(idx1) = Smax*t(idx1);

g(idx2) = 2*sqrt(area*Smax)-Smax*t(idx2);

else

5

mlustig
Text Box
14
Page 15: HW2 Solution - University of California, Berkeleyee225e/sp12/hw/hw2_sol.pdf · HW2 Solution 1. Nishimura 3.3 Answer 1 ... Sketch the intensity of the received signal ... Consider

disp(’Trapezoid’)

t1 = Gmax/Smax;

t2 = area/Gmax;

t3 = area/Gmax + Gmax/Smax;

T = t3;

N = floor(T/dt);

t = [1:N]’*dt;

idx1 = find(t < t1);

idx2 = find((t>=t1) & (t < t2));

idx3 = find(t>=t2);

g = zeros(N,1);

g(idx1) = Smax*t(idx1);

g(idx2) = Gmax;

g(idx3) = (area/Gmax + Gmax/Smax)*Smax - Smax*t(idx3);

end

disp(sprintf(’Maximum gradient:%fG/cm\nDuration:%fms\n’,max(g(:)),t(end)*1000));

• Plot the result of the function for area=6e-4, Gmax=4, Smax = 15000, dt=4e-6;

• Plot the result of the function for area=6e-4, Gmax=1, Smax = 5000, dt=4e-6;Solution: As seen below, gradients with higher slew-rate and maximum amplitude canproduce the same gradient area faster.

6

mlustig
Text Box
15