Introduction

Since its discovery in the forties, Nuclear Magnetic Resonance (NMR) has become a powerful tool1,2 to study the state of matter in a variety of domains extending from biology and chemistry3 to solid-state physics and quantum computing4,5. The power of NMR techniques is maybe best illustrated by medical imaging6, where it is possible e.g. to produce a three-dimensional picture of the human brain. NMR spectroscopy and Magnetic Resonance Imaging (MRI) involve the manipulation of nuclear spins via their interaction with magnetic fields. All experiments in liquid phase can be described in a first approach as follows. A sample is held in a strong and uniform longitudinal magnetic field denoted B0. The magnetization of the sample is then manipulated by a particular sequence of transverse radio-frequency magnetic pulses B1 in order to prepare the system in a particular state. The analysis of the radio-frequency signal that is subsequently emitted by the nuclear spins leads to information about the structure of the molecule and its spatial position. One deduces from this simple description that the crucial point of this process is the initial preparation of the sample, i.e. to design a corresponding pulse sequence to reach this particular state with maximum efficiency. The maximum achievable efficiency can be determined for the transfer between well defined initial and target states7 if relaxation effects can be neglected. In imaging applications, where relaxation forms the basis for contrast, a very large number of different strategies have been proposed and implemented so far with the rapid improvement of NMR and MRI technology2,6. However, there was no general approach to provide the maximum possible performance and the majority of these pulse sequences have been built on the basis of intuitive and qualitative reasonings or on inversion methods such as the Shinnar-Le Roux algorithm8. Note that this latter can be applied only in the case where there is no relaxation effect and radio-frequency inhomogeneity.

A completely different point of view emerges if this problem is approached from an optimal control perspective. Optimal control theory was created in its modern version at the end of the 1950s with the Pontryagin Maximum Principle (PMP)9,10,11. Developed originally for problems in space mechanics, optimal control has become a key tool in a large spectrum of applications including engineering, biology and economics. Solving an optimal control problem leads to the determination of a particular trajectory, that is a solution of an associated Hamiltonian system constructed from the PMP and satisfying given boundary conditions. This approach has found remarkable applications in quantum computing and NMR spectroscopy, but its application to MRI has been limited to the numerical design of slice-selective 90° and 180° pulses12.

Despite the efficiency of MRI techniques currently used in clinics, some aspects still pose fundamental problems of both theoretical and practical interest. The enhancement of contrast remains one of the crucial questions for improving image quality and the corresponding medical diagnosis. The use of particular pulse sequences to generate image contrast based on relaxation rates is not new in MRI, since this question was raised at the beginning of the development of MRI in the 1970s. Different strategies have been proposed, such as the Inversion Recovery sequence13,14 for T1 contrast and pulses for ultra short echo time experiments for T2 contrast15 (See Eq. (1) for the definition of T1 and T2 parameters). Here, we go beyond such intuitive methods by using the powerful machinery of optimal control, which provides in this case not just an improved performance but an estimate of the global optimum, i.e. the best possible contrast within the experimental constraints (see the supplementary material for mathematical details). This optimized contrast is demonstrated in a laboratory benchmark experiment.

In its simplest form, the contrast problem can be stated by assuming that the signal is composed of two different contributions. We consider as a benchmark example the case of (a) oxygenated vs. (b) deoxygenated blood, where the spins that are probed are the ones of the hydrogen atoms of water (H2O). This is e.g. an important issue in functional studies of the human brain. These spins have different relaxation rates due to the interaction with other molecules such as hemoglobin in its oxygenated or non-oxygenated form, leading thus to two different signatures of the relaxation dynamics of the magnetization, which is governed by the Bloch equations:

where is the magnetization vector considered with i = (a, b), M0 is the equilibrium magnetization, and the longitudinal and transverse relaxation rates, ω the resonance offset and ωx and ωy the components in a rotating frame of the transverse magnetic field along the x- and y- directions. While different definitions of contrast exist in the literature6, here we consider a particular case that we call the saturation contrast, where the objective of the control problem is to find the pulse sequence which completely suppresses the contribution of one of the two magnetization vectors while maximizing the modulus of the other. If such a pulse module can be found, it can be used in combination with a large number of possible host sequences for imaging and spectroscopy (see Chapter 14 of Ref. [6] for details).

Results

In this section, we first analyze the ideal situation of a homogeneous ensemble of spin 1/2 particles irradiated on resonance, which is described by Eq. (1) with ω = 0. We introduce the normalized vectors with coordinates (Xi, Yi, Zi) to eliminate the equilibrium magnetization M0. Based on numerical computations (see also16,17,18 for analytical details), we restrict, without loss of generality, the dynamics to a meridian plane by assuming ωy = 0. Using advanced techniques of geometric optimal control theory10,19, it is possible to find the desired control field ωx(t) which provides the optimum contrast by a direct solution of the PMP. The details of the theoretical approach are given in Section 1 of the supplementary material.

As a test case, we chose the typical relaxation parameters for (a) oxygenated and (b) deoxygenated blood with identical T1 values but different T2 values (, ). Note that in this situation, the conventional Inversion Recovery experiment, which relies on T1 differences cannot provide useful contrast. However, applying the optimal control approach for these parameters the maximum of the modulus of (under the condition that ) is found to be , representing the maximum achievable saturation contrast in this system. Note that a similar computation can be done to saturate the spin (a) and maximize , with a final result of . We underline that this saturation contrast is optimal in the sense that it is the physical upper limit that can be reached within the experimental constraints given here by the values of the relaxation rates. The shape of the optimal pulse is shown in Fig. 1a. For our demonstration experiments, we did not use actual blood samples but prepared two different solutions with similar physical characteristics (see the Methods section). As the experimental values2 of the test sample were only about 2/3 of the T2 values assumed for the optimized pulse, the pulse duration and amplitude were scaled by 2/3 and 3/2, respectively, resulting in a scaled pulse duration of 0.214 s and a maximum pulse amplitude of the order of 10 Hz (see Fig. 1a). Within the experimental accuracy, we have checked that, in this case, this scaling procedure provides the same contrast as the optimal solution. The optimal control field was implemented experimentally as a shaped pulse on a standard Bruker Avance III 600 MHz spectrometer and the experimental trajectories were measured using two different samples in different test tubes in order to approach ideal experimental conditions with negligible magnetic field inhomogeneities. Under these conditions, the dynamics is described with high accuracy by the Bloch equations (1). The simulated and experimental trajectories of the two magnetization vectors and are shown in Fig. 1b and a good match is found between theory and experiment.

Figure 1
figure 1

Optimal pulse sequence and trajectories for negligible B0 and B1 inhomogeneities.

(a), The control amplitude ux(t) = ωx(t)/(2π) is shown for the optimal pulse sequence to maximize under the condition that . (b), Corresponding simulated (solid curves) and experimental (open diamonds) trajectories of (red) and (blue) in the (Y,Z) plane for a homogeneous ensemble of spin particles.

So far, we assumed that there is no experimental imperfection due to magnetic field inhomogeneities, which are however not negligible in realistic imaging experiments and have therefore to be taken into account. Nevertheless, it is important to point out that the analytical PMP-based optimal solution in the absence of experimental imperfections gives an estimate of a previously unavailable physical upper limit of the maximum achievable saturation contrast, the inhomogeneities having a detrimental effect on the final result. This bound, which can be determined for any set of relaxation parameters, is thus relevant for any imaging contrast problem. Hence, it gives a fundamental benchmark to assess the performance of standard methods and numerically optimized pulse sequences in this domain.

To perform a realistic imaging experiment, we designed a test sample consisting of a small test tube in a larger tube with an outer diameter of 8 mm, forming two compartments filled with solutions (a) and (b) corresponding to the relaxation rates of deoxygenated and oxygenated blood, see Fig. 2 for a schematic representation. The experiments were performed using the same spectrometer as described above, equipped with a micro-imaging unit. The details are given in Section 2 of the supplemental material. Figure 3 shows the experimentally measured spatial B0 and B1 distributions in the central slice of the sample. The variation of B0 corresponds to resonance frequency shifts ω between 0 and −30 Hz, while the experimental scaling of the B1 field (which is proportional to the control amplitude) is ±20%.

Figure 2
figure 2

Geometry of the test sample used for the imaging experiments.

In the micro imaging experiments, the sample consists of two test tubes with outer diameters of 5 mm and 8 mm. The outer and inner volumes were respectively filled with the two solutions corresponding to (a) oxygenated and (b) deoxygenated blood. The two slices represent the experimental results after the saturation of the samples (a) (top) and (b) (bottom). (see also the results of Fig. 4)

Figure 3
figure 3

Experimental spatial B0 and B1 distributions.

Spatial distributions of the B0 (a) and B1 (b) amplitudes in the central slice of the sample. The B0 variation is represented by the corresponding 1H frequency offsets in units of Hz as a function of the spatial position, while the B1 variation is described by a dimensionless scaling factor.

In general, the frequency offsets created by the B0 inhomogeneities are negligible if they are dominated by the amplitude of the control field (in units of Hz). However, the control amplitude of the analytically optimal pulse sequence shown in Fig. 1a is less than 10 Hz, which is smaller than the resonance offset variation due to B0 inhomogeneities (see Fig. 3a) and therefore, the optimal sequence derived analytically for an ideal case is not expected to work in the experimental micro imaging setting. In addition, the experimental variation of B1 scaling was not considered in the analytical solution and is also expected to have detrimental effects on the pulse performance.

In order to take into account the experimentally measured B0 and B1 distributions, numerically optimized pulse sequences were computed with the GRAPE algorithm20, which is a standard iterative algorithm to solve the optimization equations. The pulses are designed to work for an ensemble of spins approximately within the range of the B0 and B1 inhomogeneities experimentally measured. In the numerical optimizations, we fixed the pulse duration to the duration of the corresponding analytical pulse. Compared to the fundamental contrast benchmark (|Va| = 0.47 and |Vb| = 0) provided by the PMP-based analytical solution, the minimum value (worst case) of |Va| for the considered range of B0 and B1 inhomogeneities is 0.37 (that is 79% of the physically maximum saturation contrast achievable) while the maximum value (worst case) of the incompletely suppressed |Vb| is 0.054. Conversely, when the goal is to saturate spin (a) and to maximize the magnetization vector of spin (b), the optimal pulse sequence yields and . Figure 4 shows resulting experimental images which are in good agreement with simulated data (see the supplementary material for the details of the computation).

Figure 4
figure 4

Experimental implementation of the robust optimal pulse.

Optimization of the contrast when the deoxygenated (b) or the oxygenated (c) blood is saturated. Figure (a) displays the reference image after the application of a 90 degree pulse.

Discussion

We demonstrated to which extend saturation contrast based on different relaxation times T1 and T2 can be maximized in magnetic resonance imaging within given experimental constraints. Starting from the analytic optimal solution of the homogeneous case, we have then designed a particular pulse sequence using numerical tools of optimal control theory to approach in a realistic experiment this physical limit. We emphasize that one of the main advantages of this contrast enhancement is its general character since the optimal control fields can be computed with standard routines published in the literature and implemented on a standard NMR spectrometer without requiring specific materials and process techniques.

The efficiency of this approach was shown in a laboratory experiment using a model system for the relaxation parameters of deoxygenated and oxygenated blood. The presented method fully exploits the differences of both T1 and T2 to create the maximum possible saturation contrast as opposed to conventional approaches based on T1 or T2 differences. The combined analytical and numerical optimal control approach is not limited to the definition of saturation contrast (motivated by typical magnitude mode imaging experiments) used here for demonstration, but can also be applied to more general definitions of relaxation-based contrast, e.g. for phase-sensitive images and for a wide variety of possible host imaging sequences that can be applied after the contrast pulse module6. Furthermore, the flexibility of the optimal control approach makes it possible to include experimental constraints such as bounds on the control amplitude or pulse energy or non-linear effects such as radiation damping21.

We expect that the presented principles will find practical applications in MRI and in particular in medical imaging, where increased contrast and sensitivity could not only help in the diagnosis but could also reduce the required concentration of commonly used contrast agents, which could be beneficial to the patient.

Methods

Experimental sample

The relaxation properties of oxygenated blood were approached by solution (a) consisting of 90% D2O, 10% glycerol and doped with CuSO4 with relaxation times , (as determined from CPMG-experiment) and (as determined from the experimental line width). Deoxygenated blood was modeled by solution (b) consisting of 70% D2O, 30% glycerol and doped with CuSO4 with , and .

Measurement method of the B0 and B1 field maps

Mapping of local B0 offsets was accomplished by evaluating the signal phase evolution between two echoes acquired in a dual-echo gradient pulse sequence6. The echo times of the 3D image acquisition were TE1 = 1.5 ms and TE2 = 11.5 ms. Figure 3a of the main text shows the B0 field map in the central axial slice. The amplitude of the B1 excitation field was measured by using the cosine-like dependence of the remaining signal after a saturation pulse and fitting to a curve measured with multiple saturation flip angles22. The applied saturation flip angles were 10°, 20°, … , 300°. Robust B1 mapping was achieved by fitting a signal model to the acquired slice-selective gradient echo signal in a linear least-squares sense.

Application of the optimized pulse sequence

For the imaging experiment, the H2O content was increased in the sample in order to have a sufficient signal-to-noise ratio. The outer and inner volumes of the sample were filled with the following solutions: “oxy sample II” (80% D2O, 10% H2O, 10% glycerol doped with CuSO4 with relaxation times of T1 = 2.6 s and ) and “deoxy sample II” (60% D2O, 10% H2O, 30% glycerol doped with CuSO4 with relaxation times of T1 = 1.4 s and ). The optimal pulses were implemented into a gradient echo pulse sequence23 without slice selection. The experiments were performed with a 600 MHz Bruker Avance III spectrometer equipped with a micro-imaging unit. The field of view (FOV) was 15mm ×15 mm and in the third dimension it was limited to approximately 10 mm by coil sensitivity. The repetition time (TR) is 7 s and the echo time (TE) is 2 ms with the matrix size 128×128. Figures S1 and S2 of the supplementary material show simulated (d) and experimental (e) images using the optimized pulse to saturate the “deoxy sample II” in the inner cylinder (Fig. S1) and for the optimized pulse to saturate the “oxy sample II” in the outer cylinder (Fig. S2).