Background of the Invention
1. Field of the Invention
This invention is related to nuclear magnetic resonance (NMR) techniques and, more specifically, to shimming the magnet of an NMR system to compensate for inhomogeneities in the field of the magnet.
2. Description of Related Art
A homogeneous magnetic field is critical for NMR experiments. Imaging experiments such as gradient echo-based techniques, localized spectroscopy and echo-planar imaging are a few experiments that can fail if the homogeneity of the magnetic field within a sample being tested is poor. While spin-echo imaging is more tolerant of inhomogeneities, a homogeneous magnet will nonetheless give better results.
In conventional NMR systems, the field of the magnet is "shimmed" by locating "shim-field" coils at various positions relative to the field of the magnet. As appropriate currents are passed through the shim field coils, they produce characteristic fields which compensate for the inhomogeneities of the magnet. However, achieving the appropriate characteristic fields in the shim coils often requires adjusting the current through the coils manually. This procedure can be tedious and time-consuming. In high-resolution systems, it is not unusual to shim a magnet for hours, or even days, to achieve a certain homogeneity specification. This procedure can be automated by employing a simplex procedure, but that too can be time consuming, and may not always give the optimum results.
A more analytical solution to the problem is to determine the inhomogeneous field distribution of the magnet, and calculate the currents of the shim coils necessary to compensate for the inhomogeneities. The field of the magnet can be measured by using a small NMR probe which is moved through the magnetic field by a special mechanical device. However, this method is also time-consuming. Furthermore, the probe itself causes a distortion in the field, and the measurement does not correspond to the actual field that would influence a sample being tested.
A number of automated shimming procedures have been reported which make use of NMR imaging. These methods are beneficial because: 1) the field measurements are done while a sample of interest is present in the field of the magnet, and the field inhomogeneity seen by the sample is directly measured and compensated for; 2) knowing the field or frequency distribution within the sample allows the specification of an arbitrary shimming region of interest; 3) shim field maps are calibrated using the same measurement methods and, therefore, and misregistration in the image caused by misalignments, non-linearities and imperfections in the gradient or shim coils are self-compensated; and 4) the shimming procedures can be fully automated.
Three-dimensional (3D), two-dimensional (2D) and one-dimensional (1D) image-based autoshimming methods have been demonstrated in the past. The field-mapping techniques used involve imaging pulse sequences and therefore require special three-axis field gradient hardware for performing the imaging experiments in high resolution NMR spectrometers. The field mapping experiments are specially designed to measure small residual field inhomogeneities in the magnet.
One disadvantage of the field-mapping techniques of the past is that pulsed field gradients can induce eddy currents in the metal components of the magnet which result in additional, time-varying (eddy current) fields. Unless the residual fields caused by the eddy currents are kept to a negligible level, the shimming procedure will produce erroneous results. Shielded gradient coils have been used in the past which are specially designed to minimize eddy current effects by restricting the stray field to within the bore of the coils. However, in high-resolution applications, non-negligible eddy currents may be generated even when using shielded coils.
The actively-shielded gradient coils currently in existence for use with modern gradient-enhanced spectroscopy experiments are ideally suited for field mapping experiments. However, the current design of these gradient coils are such that they are an integral part of a particular radio frequency (RF) probe, which limits their use for shimming. Limited space in many existing narrow-bore, high-resolution magnets makes it impractical to design a single, universal gradient set that can be used with the various RF probes that are used in a spectrometer. Furthermore, installing gradients on each RF probe may not be a practical solution because of cost considerations.
All NMR spectrometers are equipped with a set of linear gradient coils (unshielded) positioned along the x, y and z axes, respectively. However, these coils are not suitable for existing imaging experiments involving pulsed field gradients, mainly because of the slow response (rise and fall) times of the coils, and the eddy currents which would be induced during the process.
Summary of the Invention
The present invention overcomes the problems of eddy currents by controlling the switching of the gradient field. The method of the present invention may be used with any type of gradient coil, shielded or unshielded but, in the preferred embodiment, makes use of the unshielded linear shim coils of an NMR system. Because the magnitude of eddy currents induced in the magnet components is proportional to the rate of change of the gradient field, the magnitude of the gradient field is changed gradually enough that induced eddy currents are negligible.
In the preferred embodiment, the gradient field magnitude is gradually increased to a maximum desired magnitude. Once the gradient reaches the desired maximum value, an RF pulse is generated which is incident on the sample and excites the spins of the sample nuclei. Following a specified delay time, t.sub.1, a single data point is sampled. The spins are then allowed to relax and, during this time, the gradient strength is changed gradually to the next desired gradient level. The magnitude change is gradual enough that the magnitude of any induced eddy current is negligible, that is, a field generated by any induced eddy current is below a minimum desired homogeneity of the magnet during the sampling time (i.e. between the RF pulse and the sampling of the data point). Another RF pulse is then generated to again excite the sample nuclei. The next data point is then sampled after the time period t.sub.1, and the spins are again allowed to relax and the gradient strength again changed down. This process continues until all of the t.sub.1 data points are collected.
After the collection of the t.sub.1 data points, the next desired gradient pulse sequence is ramped up to its maximum value. An RF pulse is generated to excite the nuclei spins and, after a delay time, t.sub.2, a single data point is sampled. The spins are then allowed to relax and the gradient strength is then changed to the next gradient level. Another RF pulse is then generated, and the next data point is sampled after the time delay t.sub.2.
Once both data sets have been collected (i.e. for time delay t.sub.1 and for time delay t.sub.2), any one of a number of data processing techniques may be used to obtain the desired frequency distribution. In the preferred embodiment, a technique involving multiple 1D projections is used in which the phases of the datasets are unwrapped to prevent aliasing. The gradient strengths of the two gradient sequences are related by the relative time delays used. In particular, the area of each gradient is the same, such that, for a stepped gradient function which remains constant during each of the sampling time periods t.sub.1 and t.sub.2, the gradient functions G.sub.1 (x,y,z) (corresponding to time delay t.sub.1) and gradient function G.sub.2 (x,y,z) (corresponding to time delay t.sub.2) satisfy the relation:
In this way the two datasets maintain the same spatial encoding. This relationship corresponds to the gradient function of the preferred embodiment, in which the gradient magnitude is ramped gradually from one temporarily constant gradient value to the next. However, a constant gradient level during data sampling is not necessary.
In an alternative embodiment, the gradient magnitudes change continuously as a function of time, and are represented as G.sub.1 (t) and G.sub.2 (t). Some examples of such gradient functions include a linear ramp function or a sinusoidal function. These functions are not stepped, but are changing continuously, even during the delay times t.sub.1 and t.sub.2, respectively. As with the ramping of the gradient levels for the stepped gradient functions, the rate of change of the gradient magnitude is gradual enough that any eddy currents induced in surrounding conductive materials are negligible during the sampling period between the RF pulse and the time at which the sample point is taken at either t.sub.1 or t.sub.2. The gradient area during the sampling time of t.sub.1 is also kept equal to the gradient area during sampling time t.sub.2 for each spatial point. This relationship may be expressed as: ##EQU1## By maintaining this relationship between the two gradient functions, the gradient areas for the two sampling times remain equal.
Brief Description of the Drawings
FIGS. 1A and 1B depict the gradient functions used for a first dataset and a second dataset, respectively, acquired with the method of the present invention.
FIG. 2 is a diagram showing the sequence of steps in acquiring the desired frequency map from the sampled datasets of the present invention.
FIG. 3 is a diagram showing the sequence of steps for obtaining the optimum shim currents for shimming an NMR magnet using the frequency maps acquired with the method of the present invention.
Detailed Description of a Preferred Embodiment
Depicted in FIGS. 1A and 1B are the gradient pulse sequences for an autoshimming method according to the present invention. In the preferred embodiment of the present invention, the desired gradient pulse sequences are generated using the linear X, Y and Z shim coils. Thus, the field generated by each of the shim coils is a combination of the necessary shim field for that direction, and the desired gradient field for that direction. However, those skilled in the art will recognize that the method of the present invention may be used with any coil which might be generating the gradient field. Since even shielded gradient field coils may generate non-negligible eddy currents under certain circumstances, the method of the present invention may be used when shielded coils are used as well.
Because the magnitude of eddy currents induced in the magnet are proportional to the rate of change of the gradient field, the gradient field G.sub.1 (x,y,z) for the pulse sequence of FIG. 1A is ramped up slowly at the beginning of the experiment, as shown in section 10 of the gradient curve. This slow ramping of the gradient voltage minimizes the eddy current generation during the increase in the gradient voltage. Once the gradient voltage has reached a maximum gradient value, an RF pulse 14 is generated which excites the spins of the sample. This pulse is usually set to a small flip angle so that the sequence can be repeated rapidly.
Referring to FIG. 1A, after the RF pulse 14, a first data point is sampled at time t.sub.1. The delay time t.sub.1 is the phase encoding time. The spins are then allowed to relax before the next RF pulse 14 is applied. During this relaxation time, the gradient is changed to the next phase encoding value gradually (i.e. is ramped down along section 12 of the gradient curve of FIG. 1A). In this way the eddy current effects are minimized. Another RF pulse 14 is then generated to excite the spins at the next gradient level. The next data point is then sampled. This process continues until all of the data points for the first gradient are sampled.
The gradual ramping of the gradient field magnitude prevents non-negligible eddy current from being induced in surrounding conductive materials, particularly the metal portions of the NMR magnet. What constitutes "non-negligible" for a particular experiment depends on a number of variables, including the strength of the magnet fields being used, the structure of the magnet, and the desired sensitivity or resolution of the experiment. In general, however, the ramping (or slew rate) of the gradient field magnitude from one gradient level to the next should be sufficiently gradual that any fields resulting from induced eddy currents are below a minimum desired resolution (for shimming, below a minimum desired magnetic field homogeneity) during the sampling period between the RF pulse and the time at which the NMR signal is sampled at time t.sub.1, so that the results of the experiment are unaffected by the eddys.
The image which is obtained at time t.sub.1 is independent of the effects of magnet inhomogeneity. In order to generate the desired field maps, the inhomogeneity information must be encoded into the image data. This is done by initiating another gradient sequence having sampling at a time t.sub.2, as shown in FIG. 1B.
The gradient of FIG. 1B is similar to that of 1A in that the signal is ramped up to the initial maximum gradient value, as shown in section 16 of the gradient curve. While the gradient level and the data acquisition time is different than in the data acquisition of FIG. 1A, the values are selected so that, if the gradient strength is lower, the data acquisition time is longer. That is, the gradient areas during t.sub.1 and t.sub.2 are kept equal, as is discussed in more detail below. The manner of data acquisition for the gradient of FIG. 1B, however, is essentially the same as that of the gradient shown in FIG. 1A. An RF pulse 14 is generated for each gradient strength to excite the spins, and the gradient strength is reduced gradually, as shown in the portion 18 of the gradient curve of FIG. 1B.
As mentioned above, it is important to maintain the same spatial encoding (field of view) in the second data collection as existed in the first data collection. For this reason, the gradient strength during the second data collection is selected such that:
In other words, the area, G.sub.1 (x,y,z).multidot.t.sub.1, of each step of the first gradient equals the area, G(x,y,z).multidot.t.sub.2, of each corresponding step of the second gradient. By maintaining this relationship between the two data collections, the same spatial profile will be maintained between the two and, if Fourier transformed, they will have the same spatial image profile.
In the preferred embodiment, the gradient field is started at a maximum level, and ramped down step by step to a minimum value. In this way, a continuous set of data points is acquired, while minimizing the necessary change in magnitude of the gradient field from one data point to the next. It would be equally efficient to start the gradient at a minimum level (typically a negative value), and ramp it up step by step, acquiring a new data point while the gradient magnitude is temporarily constant at each step. However, it should be noted that other gradient sequences may also be used, provided the ramping from one gradient level to the next is gradual enough to keep the eddy currents to a negligible level.
In the broadest sense of the invention, the gradient magnitude need not be stepped from level to level, but may be change according to any function, provided the changes are gradual enough to avoid the induction of eddy currents which cause non-negligible magnetic fields during the sampling periods. It should be noted that non-negligible eddy currents may be generated, as long as non-negligible fields resulting therefrom are not present during the sampling periods. In other words, if a non-negligible eddy current-induced field decays to a negligible level before the end of the RF pulse, the effect of that field on the data sampling is negligible.
As an example of different possible gradient functions, an alternative embodiment uses a gradient field in which the gradient magnitude is not stepped from level to level, but is a continuously changing linear function which ramps over time from either a maximum value to a minimum value, or from a minimum value to a maximum value. As in the ramped portions of the stepped gradient, the slew rate of the ramping is gradual enough that any fields generated by induced eddy currents are negligible during the sampling period. As with the embodiment of FIGS. 1A and 1B, however, the gradient areas for t.sub.1 and t.sub.2 are still kept equal for each spatial point. This is accomplished by preserving the following relationship for each spatial point of the sample: ##EQU2## This ensures that the gradient area for each of the sampling times t.sub.1 and t.sub.2 remains equal.
The result of the method of the present invention is two image datasets which are essentially equivalent to the datasets that are collected at the two echo times in a 1D echo-based shimming method. The available subsequent data processing and the shimming protocols are also similar. For example, one such protocol is described in a co-pending patent application entitled "SHIMMING METHOD FOR NMR MAGNET HAVING LARGE MAGNETIC FIELD INHOMOGENEITIES," which may be identified by Bookstein & Kudirka, P.C. Attorney Docket No. B0002/7029 and which is assigned to the assignee of the present invention. In that application is described, in detail, a shimming procedure using a plurality of 1D images, as summarized below.
A plurality of projections are taken through the sample volume, with a data collection method as described above being used for each projection. For each of the projections, the desired data points (i.e. the frequency distributions), relative to the time delays t.sub.1 and t.sub.2 are collected. The data is then processed as shown in the diagram of FIG. 2.
After acquisition of the time-domain signals s(t.sub.r).sub.1 and s(t.sub.r).sub.2 (step 20), the signals are converted to the frequency domain by a 1D Fourier (typically fast Fourier) transform (step 22). The resulting phase sensitive images, s(r).sub.1, s(r).sub.2, which are in Cartesian coordinates, are then converted to polar coordinate signals, where P.sub.w (r).sub.1 and P.sub.w (r).sub.2 refer to the phase component (step 24). These phase images, which may suffer from phase wrapping, or "aliasing", are then "unwrapped" to remove discontinuities in the phase signals and obtain phase unwrapped signals P(r).sub.1 and P(r).sub.2 (step 26). The frequency distribution for this projection is then obtained by calculating:
Once a frequency distribution for each of the desired projection directions is acquired, the base field map is assembled. In an alternative form of this method the phase difference P(r).sub.1 -P(r).sub.2 may be acquired before the phase unwrapping is performed, after which the frequency is obtained by dividing by the time difference t.sub.2 -t.sub.1.
A shim-base field map may be acquired for each of the shim coils by energizing a subject coil with a predetermined current, and repeating the field measurement method described above. This measurement method is performed for each of the shim coils so that a plurality of shim-base field maps are acquired, each of which is indicative of the frequency distribution due to the field of the subject shim coil in combination with the inhomogeneities of the field of the magnet. Each shim field map is then obtained by subtracting the base field map from the shim-base field map, such that the remaining frequency distribution is due only to the effects of the subject shim coil.
The calculation of the appropriate shim currents is the done by relating the shim field maps and the base field map. The steps of this shimming procedure are shown in FIG. 3. The measured base field map, F.sub.B, 40 is combined with the shim field map F.sub.S, 42 (and appropriate input parameters 44 not particular to the present invention) and used to calculate the appropriate shim currents (step 46). These currents are calculated using an available algorithm (such as the function "SVDCMP" described in Section 2.6 of W. H. Press, et al., Numerical Recipes in C, Cambridge University Press) to perform a "Singular Value Decomposition" and acquire an optimum set of shim currents. The shim currents are then loaded (step 48), and the calculation repeated, if necessary. As shown in FIG. 3, multiple iterations of the data processing steps may be used to further optimize the shim currents.
The image-based autoshimming method of the present invention makes use of the linear shim coils for performing the experiments. The gradient fields are specially designed to minimize eddy current effects, and to encode the field inhomogeneity information for mapping the field. The use of the readily available X, Y and Z shim coils for field mapping has a number of advantages. Some of these advantages are described below.
Since all spectrometers are equipped with linear X, Y and Z shim coils, the image based shimming procedure can be easily implemented without the need for special (e.g., actively shielded) gradient coils and associated hardware, which tend to be expensive. The method can be implemented on a spectrometer so that multiple probes can be shimmed using a common shimming procedure and hardware. The shim field map only needs to be measured once, with just a single field map being necessary for the shimming process. Because there are only a few standard shim coil designs, the shimming procedure can be easily standardized. For example, it may be possible to use a common shim reference field map for a given type of shim coil/amplifier configuration, thereby simplifying the installation or testing of NMR systems and probes.
Because the shim coils are unshielded, the danger of eddy currents, which can be disastrous to field map experiments, always exists. However, the present invention avoids the rapid switching of the gradient fields, and thereby avoids this danger. Scan times in the present invention may be minimized by restricting the field maps to 1D or a set of 1D projections, as opposed to a complete 3D field mapping. In general, the present invention provides a cost savings and ease of implementation with existing current NMR spectrometers.
While the invention has been shown and described with reference to a preferred embodiment thereof, it will be understood by those skilled in the art that various changes in form and detail may be made herein without departing from the spirit and scope of the invention as defined by the appended claims.