Abstract
Purpose:
To investigate a computationally efficient method for optimizing the Cramér-Rao Lower Bound (CRLB) of quantitative sequences without using approximations or an analytical expression of the signal.
Methods:
Automatic differentiation was applied to Bloch simulations and used to optimize several quantitative sequences without the need for approximations or an analytical expression. The results were validated with in vivo measurements and comparisons to prior art. Multi-echo spin echo and DESPOT1 were used as benchmarks to verify the CRLB implementation. The CRLB of the Magnetic Resonance Fingerprinting (MRF) sequence, which has a complicated analytical formulation, was also optimized using automatic differentiation.
Results:
The sequence parameters obtained for multi-echo spin echo and DESPOT1 matched results obtained using conventional methods. In vivo MRF scans demonstrate that the CRLB optimization obtained with automatic differentiation can improve performance in presence of white noise. For MRF, the CRLB optimization converges in 1.1 CPU hours for NT R = 400 and has O(NT R) asymptotic runtime scaling for the calculation of the CRLB objective and gradient.
Conclusion:
Automatic differentiation can be used to optimize the CRLB of quantitative sequences without using approximations or analytical expressions. For MRF, the runtime is computationally efficient and can be used to investigate confounding factors as well as MRF sequences with a greater number of repetitions.
Keywords: Quantitative Imaging, Cramér-Rao Lower Bound, Optimal Experiment Design, Magnetic Resonance Fingerprinting, Automatic Differentiation
1 |. INTRODUCTION
Quantitative imaging sequences have attracted significant interest due to their ability to identify the early onset of disease and track its progression [1]. The accuracy of the quantitative estimate depends on noise and the sequence’s sensitivity to both confounding factors and the parameter of interest. The sequence’s acquisition parameters must be carefully chosen for the parameter quantification to be accurate, and are often chosen to target a single or small number of tissues, or parameter ranges [2].
The Cramér-Rao Lower Bound (CRLB) is a natural objective function for optimizing the performance of a quantitative sequence against noise. It provides a lower bound on the variance of a parameter estimate for an unbiased maximum likelihood estimator. When an analytical expression for the magnetization is available, the bound can be calculated and optimized as has been shown in multiple works [3, 4, 5, 6, 7, 8]. An analytical expression for the magnetization is available for a wide range of parameter mapping sequences, including but not limited to: DESPOT1 (Variable Flip Angle T1 Mapping) and DESPOT2 [9], Inversion-Recovery T1 Mapping, multi-echo spin echo T2 mapping, Diffusion Weighted Imaging, and quantitative Double-Echo in Steady-State (DESS) [10]. Analytical expressions are often valid only within a limited range of assumptions, are inflexible with respect to sequence modifications such as adding or removing spoiler gradients, become more complicated as the number of parameters increase, and make confounding variables such as B0 and B1 inhomogeneities inconvenient to consider.
For sequences without a simple analytical expression for the steady-state, such as Magnetic Resonance Fingerprinting (MRF) [11], the CRLB objective is more challenging to calculate. Zhao et al. [6] expressed the signal at each echo as a cascade of affine transformations governed by the Bloch equation. Each transformation was differentiated analytically with respect to the tissue parameters M0, T1, and T2. The CRLB was recursively calculated for different tissues and used as an objective to optimize the flip angles and repetition times of the MRF IR-FISP [12] sequence. Although it is natural to simulate spoiled sequences using the Extended Phase Graphs (EPG) formalism [13], the CRLB calculations were done by dividing the voxel into separate isochromats. Simulating individual isochromats can be computationally inefficient and makes it difficult to incorporate relevant signal effects such as diffusion and magnetization transfer, which can be simulated using EPG [14, 15].
We propose a method for optimizing the CRLB of all sequences that can be expressed as a Bloch simulation. Since the CRLB is calculated using the derivative of the signal equation, it can be quickly computed using automatic differentiation. Automatic differentiation has attracted significant interest due to its prevalence in machine learning. We leverage two Python libraries: autograd [16] and TensorFlow [17], to compute the CRLB objective and the gradient of the CRLB objective. The Python library of basic Bloch operations that was written to obtain the results in this paper is publicly available1 Using automatic differentiation for optimizing CRLB objectives was proposed by Su et al. [18] but their implementation required an equation for the steady-state.
In this paper we discuss advantages of automatic differentiation compared to existing optimal control methods which also forgo explicit analytical expressions, and provide background on the CRLB and automatic differentiation. We demonstrate the flexibility of this method by optimizing the CRLB of three different sequences: multiple-echo spin echo T2 mapping, DESPOT1 and the MRF IR-FISP sequence. We optimize the CRLB using automatic differentiation and verify the results with in vivo measurements and comparisons to prior work. Although multiple-echo spin echo T2 mapping and DESPOT1 have an analytic formulation that can be optimized with heuristic examination of a Bloch simulation [9], we use these as benchmarks to verify our CRLB implementation. Sequences with an analytic expression may still benefit from automatic differentiation of the CRLB. For example, automatic differentiation can be used to optimize over additional sequence parameters such as echo and repetition times, or to quantify the effect of confounding variables.
2 |. THEORY
2.1 |. Motivation for Automatic Differentiation in Optimal Control of Spin Dynamics
Optimal control methods have been applied to the design of RF pulses [19, 20, 21, 22, 23] and sequences [7, 24, 25]. These methods do not require an analytic expression for the magnetization and apply the Bloch equation directly using approximations to efficiently obtain the gradient of the control objective.
For RF pulse design, Gradient Ascent Pulse Engineering (GRAPE) [20] discretizes the RF pulse and determines RF amplitudes that drive a spin state to the desired profile. The objective is to maximize the inner product of the desired spin state and the realized state. Assuming that each timestep is small, the gradient of the objective with respect to the RF amplitudes can be efficiently computed using a first or second order approximation of the control step [20, 21, 22]. Reeth et al. [23] applied GRAPE to the design of preparation pulses by discretizing the pulse into N blocks with different flip angles, phases, and TRs, and maximizing contrast between two tissues. Maidens et al. [7] designed a flip angle schedule for hyperpolarized Carbon-13 MRI with an analytic expression of the CRLB, but used finite differences to obtain the gradient for the optimization.
Existing approaches for optimizing the MRF acquisition include Ansel et al. [25], who applied the GRAPE algorithm to the fingerprinting spin system by maximizing separation between two tissues. Zhao et al. [6] selected flip angles and TRs to minimize the CRLB of the MRF IR-FISP sequence calculated using analytical differentiation. Kara et al.[26] selected flip angles to maximize a quality factor dependent on the variance of the T1 and T2 estimates. Assländer et al. [24] minimized the CRLB of a balanced Pseudo Steady-State Free Precession (pSSFP) MRF sequence over the flip angles. The CRLB and its derivative with respect to control parameters was efficiently calculated under the assumption that the magnetization changes sign between consecutive TRs, and that the TEs and TRs produce the Pseudo Steady-State condition [27].
Automatic differentiation can be used to compute gradients without approximations or finite differences and is especially useful when optimizing an objective that requires a derivative with respect to T1 or T2. In the aforementioned methods, Zhao et al. obtained an analytical expression for the CRLB, but used finite differences to obtain the gradient of the CRLB objective with respect to the control variables. Kara et al. assumed short repetition times to linearize the relaxation step and obtain an analytical expression for the T1 and T2 variances. A derivative-free genetic algorithm was used to minimize the quality factor of a relatively short MRF sequence with 250 TRs. Assländer et al. analytically calculated the CRLB and its gradient for the pSSFP sequence, but this is valid only for balanced sequences with constraints on the dephasing between TRs, TR ≪ T1, T2, and restrictions on the sign of the magnetization. Overall, these approaches may face difficulty when applied to MRF sequences with gradient spoiling [12], RF-spoiling [28, 29], additional parameter estimates such as fat fraction[30] or T2*[28, 31], or long repetition times [32].
Automatic differentiation allows us to jointly optimize over flip angles and TRs with high computational efficiency in MRF, where finite differences would be infeasible due to the number of control variables. Since the CRLB itself depends on a derivative, automatic differentiation can be used to calculate both the CRLB and the derivative of the CRLB with respect to the control variables. This is discussed in detail in Section 2.3. The use of the forward Bloch simulation in the optimization permits physical effects such as B0 and B1 inhomogeneities, or diffusion and magnetization transfer to be easily incorporated.
2.2 |. Sequence Optimization with the Cramér-Rao Lower Bound
The Cramér-Rao Lower Bound is the minimum achievable variance of a parameter estimate for an unbiased maximum likelihood estimator [33]. The CRLB has been used as an optimization objective for many MRI sequences [3, 4, 5, 6, 7, 8].
The CRLB of the ith parameter estimate , in a vector of unknown parameters with p as the number of parameters, can be expressed as:
| (1) |
where V (θ) is the CRLB matrix and I (θ) is the Fischer Information Matrix (FIM) defined by:
| (2) |
where x is the signal observations, is the expectation, and ℓ(x; θ) is the log-likelihood. Under white Gaussian noise, the FIM can be simplified to:
| (3) |
where is the Jacobian matrix of the signal at echo m[n] with respect to the unknown parameters.
For sequence optimization, a tissue is chosen and the variances of the parameters to be estimated are weighted by the diagonal matrix W. The objective becomes [34]:
| (4) |
This objective is non-linear and non-convex but can be solved using a variety of constrained non-linear optimization methods [35].
2.3 |. Automatic Differentiation
Automatic differentiation has become an integral part of machine learning and is prominently used for training neural networks. It is an efficient method of calculating the gradient of a scalar loss with respect to the model’s tunable weights and can be computed without explicitly forming a Jacobian [36], which is essential due to the large number of parameters in machine learning models.
Automatic differentiation is different from symbolic differentiation, which manipulates mathematical expressions directly [37], and numerical differentiation, which approximates derivatives by comparing the function value at different points. In automatic differentiation, the computation is expressed as a composition of elementary operations to form a graph [36]. The derivative is then calculated using the chain rule.
The result from automatic differentiation is identical to analytically implementing the chain rule, but does not require manual expression of the chain rule since automatic differentiation frameworks provide the derivatives of elementary operations. An example of reverse and forward mode differentiation for the analytical multiple-echo spin echo signal is shown in Figure 1. While calculating the derivative of the signal at each echo is straightforward, there are many phenomena in MRI that are easy to simulate but difficult to examine analytically. Automatic differentiation can also be used to compute higher order derivatives. This allows us to compute the gradient of the CRLB with respect to sequence parameters, which has a complex expression that is difficult to express analytically.
FIGURE 1.

The derivative of a multiple-echo spin echo signal is calculated using automatic differentiation shown in a graph form. The expression is split into elementary operations, each with a simple derivative. Performing reverse mode automatic differentiation requires an evaluation of the graph in the forward direction. Evaluation of the forward direction creates temporary variables U, V, W, X, Y. Forward automatic differentiation is shown with red arrows, where the derivative is accumulated at each step. Likewise, backpropagation is shown by blue arrows in the graph. At each blue arrow, the chain rule of the respective forward operation is applied.
In reverse mode differentiation, often referred to as backpropagation, the computation starts at the end of the graph and propagates towards the variables to be differentiated. Performing reverse mode automatic differentiation requires a forward execution of the graph, which in our case corresponds to the forward Bloch simulation. Reverse differentiation is most efficient when calculating the gradient for a function , where m ≪ n. If the output is scalar (m = 1), then the runtime for computing the gradients is invariant with the number of input variables and scales with the time required for a forward pass [38]. The chain rule can also be calculated using forward mode differentiation, which begins at the input of the graph and accumulates the derivatives for each parameter as the forward pass is executed. Forward mode differentiation is most efficient for computing the gradient of f where n ≪ m [36].
Since the CRLB depends on the derivative of the signal with respect to the parameters to be estimated, automatic differentiation makes calculating the CRLB for a variety of sequences simple. The automatic differentiation scheme used to optimize the CRLB is shown in Figure 2. Forward mode differentiation is used to obtain the Jacobian with respect to tissue parameters at each echo, which is efficient if Nechos >> p. The Jacobians are combined to calculate the FIM (Eq. 3) and CRLB objective (Eq. 4). The gradient of the objective with respect to the sequence parameters is obtained using reverse mode differentiation, which backpropagates through the FIM calculation (Eq. 3), the forward mode differentiation, and the Bloch simulation.
FIGURE 2.

The automatic differentiation scheme used to obtain the CRLB and gradient of the CRLB with respect to sequence parameters is shown. a) A forward Bloch simulation is performed which generates the vector of echos Mechos for a tissue θ. b) Foward mode automatic differentiation is used to calculate the Jacobian at each echo, which is assembled to obtain the CRLB cost function. A dashed line connects Mechos with the Jacobian since the derivative of the signal with respect to M0 is equal to the echo amplitude. c) Reverse mode automatic differentiation is performed through the graph operations generated in the forward mode calculation and the Bloch simulation to obtain the derivative of the cost function with respect to sequence parameters. Provided an implementation of the forward Bloch simulation as in (a), automatic differentiation frameworks obtain the derivatives in (b) and (c).
2.4 |. Cramér-Rao Lower Bound Optimization of DESPOT1 and Magnetic Resonance Fingerprinting Sequences
This section presents how DESPOT1 and the MRF sequence can be optimized using the CRLB.
2.4.1 |. DESPOT1
DESPOT1 is an RF-spoiled gradient echo sequence for estimating T1 [39]. To estimate T1, a minimum of two images with different flip angles (α1, α2) must be acquired. The standard approach to selecting two flip angles is to determine the flip angles that produce the magnetization equal to the magnetization of the Ernst angle [9]. In this work, we instead minimize the CRLB of the DESPOT1 sequence using automatic differentiation. To calculate the CRLB of the DESPOT1 T1 estimate, the Jacobian of the [S1 S2] signal vector formed from the steady-state of each flip angle must be evaluated with respect to both unknown parameters M0 and T1. Including M0 in the Jacobian is likewise required for CRLB minimization of T2 DESS, which also uses a ratio image to estimate T2 [10], and is discussed in Supporting Information Figure S3.
2.4.2 |. Magnetic Resonance Fingerprinting
MRF performs a highly undersampled acquisition using a pseudo-random series of flip angles and TRs. The signal evolutions between common tissues differ, which allows them to be separated during a dictionary matching step from which tissue parameters such as T1 and T2 can be derived. For MRF, the CRLB matrix is computed by calculating the FIM at each echo, summing across the echos and inverting the resulting matrix [6]. No transformations to the signal need to be made since each echo is corrupted by Gaussian noise.
In a fully-sampled Cartesian experiment, the maximum likelihood estimate is a Fourier transform followed by dictionary matching [40, 41], since a least-squares estimate is equivalent to a maximum likelihood estimator assuming Gaussian noise [42]. In our analysis, we ignore the colouring of noise in the spatial domain due to the non-Cartesian k-space trajectory.
3 |. METHODS
Basic Bloch and EPG functions were implemented as graph operations in TensorFlow and autograd. These libraries were chosen over PyTorch due to its limited support of complex numbers. The DESPOT1 and MRF IR-FISP sequences were simulated using the EPG functions and optimized for a single tissue. Additional sequence optimizations for quantitative DESS and an example reproduced from Reeth et al. [23] which uses the basic Bloch functions are presented in the Supporting Information. Sequences were optimized using the SLSQP implementation provided by SciPy [43] until an accuracy of ϵ = 1 × 10−4 was achieved.
3.1 |. Multiple-Echo Spin Echo T2 Mapping
As a simple test of the CRLB obtained via automatic differentiation, we calculated the CRLB of a multiple-echo spin echo sequence with a 90-degree excitation and full recovery between TRs. The results can be verified analytically using Eq. 3, and the derivative of the multiple-echo spin echo signal obtained in Figure 1. We plotted the CRLB for a tissue with a fixed T2 for different echo spacing times (ESP), defined as ESP = 2TE, over the range 0.1T2 < ESP < 2T2. This was done for the case where S0 is known and T2 must be estimated, and for the case where S0 and T2 are jointly estimated. The numbers of echos ranged from 1 to 6. This example has limited applicability since the ESP is generally chosen to maximize the number of echos for a given time but is used primarily for illustration.
3.2 |. DESPOT1
For DESPOT1, the CRLB of the simulated steady-state magnetization was calculated using TensorFlow. We simulated the steady-state signal of DESPOT1 for two flip angles using EPG and applied automatic differentiation to calculate ∂Si/∂T1 and ∂Si/∂M0. The echo at the last TR was used as the steady-state signal. RF spoiling was achieved with an RF phase angle of ϕ = 58.5k2, where k is the TR index. We optimized over α1 and α2 for a tissue with T1/T2 = 1645/ 50 ms and TE/TR = 5/10 ms. We compared the result to optimal flip angles obtained using methods previously reported in literature [44]. 400 TRs were simulated using 10 EPG states which was chosen based on the duration of the longest coherence pathway. With 10 EPG states, the length of the first coherence pathway that is neglected is 18 × TR or 180 ms (for TR = 10 ms). The number of TRs was chosen to allow the magnetization to reach a steady-state while restricting the number of nodes in the graph.
Since the sequence is simulated for two flip angles α1 and α2, this resulted in a large graph with 2 × 400 = 800 TR blocks. The flip angles were constrained to be between 1 and 25 degrees. The SLSQP optimization was performed for 25 different initializations over the grid α1 = [1:4:17], α2 = [7:4:23] degrees. Flip angles were offset to avoid the unbounded α1 = α2 line. The gradient of the CRLB was approximated using finite differences due to the large number of nodes in the graph. For TensorFlow, calculating the derivative of the CRLB with automatic differentiation is limited by the number of nodes in the forward pass of the sequence, since the graph size can become prohibitively large when creating nodes for a second backwards pass. This is discussed in detail in the Supporting Information.
3.3 |. MR Fingerprinting Sequence
The CRLB calculation was implemented in autograd which supports both forward and reverse mode differentiation.
To calculate the FIM we employ forward mode differentiation, which is computationally efficient since we are calculating the derivative of a function that maps a vector , where p is the number of tissue parameters, to NT R , the number of echos where NT R >> p. The FIM is then transformed to a scalar loss dependent on the CRLB. To calculate the derivative of the scalar loss (Eq. 4) with respect to the sequence parameters, we employ reverse mode differentiation. This allows us to calculate the derivative of the loss in a single computationally efficient backpropagation pass.
The sequence was simulated using EPG with 10 states. The flip angles and TRs were chosen to target grey matter at 3T (T1/T2= 1330/80 ms) [45] for NT R = 400 with an inversion delay of 20 ms. The optimization was initialized with the flip angle and TR schedule from Jiang et al. The constraints were: 10 < α < 60 degrees, 11 < TR < 16 ms. A smoothness constraint on the flip angles was added to promote a gradual magnetization evolution: |αi+1 − αi | < 1 degrees [6].
The matrix W was chosen to weight the relative CRLB (rCRLB) of each parameter equally. The CRLB of each parameter is divided by the square of its parameter value to obtain the rCRLB: with θ = [M0, T1, T2].
To verify the sequence parameters from the CRLB optimization, the brain of a consenting volunteer was scanned at 3T under IRB approval. The acquisition was performed once with the CRLB optimized sequence parameters, and once with the sequence parameters used to initialize the optimization. A single fully sampled slice was acquired using a uniform density spiral with FOV = 22 × 22 cm, resolution = 1.2mm, slice thickness = 5 mm, 36 interleaves, matrix size 184 × 184 with an 8-channel head coil. A 10 second pause was added between each interleave to allow the magnetization to recover to equilibrium. The total time for each scan was approximately 10:30 minutes. The data was reconstructed using a NUFFT, and dictionary matching was performed for T1 = [200:4:2600], T2 = [10:0.5:300] ms. Grey and white matter regions were manually segmented and used to compare the normalized standard deviation of the parameter estimate defined as σROI /μROI , where σROI and μROI are the standard deviation and mean of the parameter estimate.
4 |. RESULTS
4.1 |. Multiple-Echo Spin Echo T2 Mapping
Figure 3 shows the T2 CRLB of the multiple-echo spin echo signal obtained using automatic differentiation. In Figure 3a, the T2 was fixed and the CRLB was plotted on a logarithmic scale for different echo times assuming S0 is known. For a sequence with a single echo, the CRLB is minimized when the TE is equal to the T2. For multiple echos, the optimal echo spacing time (ESP) samples points near T = T2. Figure 3b assumes that S0 and T2 are estimated jointly, which is the case in practice. As expected, the CRLB increases when estimating additional parameters.
FIGURE 3.

a) The CRLB of a multiple-echo spin echo plotted on the log-scale for different numbers of echos. The T2 is fixed and plotted for different echo spacing times (ESP). The optimal ESP decreases as the number of echos increases to ensure that the exponential is sampled near Ts = T2. b) When estimating S0 and T2 jointly, the CRLB is increased, meaning the T2 estimation has higher variance. The case for a single echo is not plotted because at least two measurements are required to estimate two variables. Having fewer than the required number of measurements causes the FIM to be singular.
4.2 |. DESPOT1
CRLB optimizations were performed on a Linux workstation with 256GB of RAM and 2 Intel Xeon E5–2670, 2.3 GHz processors.
The obtained flip angle solution for DESPOT1 using SLSQP optimization was α1 = 2.5, α2 = 14.9 degrees. This is similar to flip angles that provide a magnetization value of given by α1 = 2.6, α2 = 14.8 degrees [44]. The optimization took 107 minutes on a single CPU using 25 different initializations. We evaluated the CRLB for a range of α1 and α2 values in Figure 4a to show the function profile. The CRLB is unbounded at the line α1 = α2 and the flip angle pair that minimizes the CRLB has been correctly identified.
FIGURE 4.

a) The CRLB of the difference-ratio signal for DESPOT1 is plotted for a range of 1 < α1 < 20 degrees on the log-scale. The optimal solution is marked in red. The α1 = α2 line is undefined and the plot is symmetrical about that line. This plot corresponds roughly to the plot by Deoni et al. [9] of Dynamic Range × Fractional Signal. b) The steady-state signal achieved for flip angles using the analytical equation assuming perfect transverse spoiling (blue) overestimates the signal when compared with the steady-state signal of a Bloch simulation with RF spoiling (red). The signal is shown as the dashed line. Simulation parameters were different from those used in the CRLB optimization: TE/TR = (2.5/5.0 ms), T1/T2 = (1645/50 ms), and 4000 repetitions to reach steady-state.
We observed that for some sequence parameters (TE/TR), the larger α of the flip angle pair obtained using CRLB optimization tended to be smaller than the larger α obtained using . We attributed this to the analytical steady-state expression (which assumes perfect RF spoiling) overestimating the signal when compared to RF spoiling with quadratic phase, shown in Figure 4b.
4.3 |. MR Fingerprinting Sequence
The sequence parameters obtained by the CRLB optimization and the CRLB objective at each iteration are plotted in Figure 5. The optimization for NT R = 400 converged in 250 iterations which took 64 minutes on a single CPU. The loss of each CRLB component throughout the optimization shows that the reduced cost function is due to an improvement in the relative CRLB for T2.
FIGURE 5.

Top: The optimal FA and TR values from CRLB minimization are compared to the initialization. The TRs, and to a lesser extent the flip angles, exhibit a bang nature, taking on their minimum and maximum values. Inset: The loss curve shows that the optimization has converged and that the improvement is mainly from T2, which reduces the total objective by approximately 60%. The rCRLB of M0 and T1 exhibit small absolute changes. Bottom: The CRLB optimized fingerprint for grey matter has higher overall signal intensity compared to the initialization. This is predicted by the decrease in the M0 component of the rCRLB.
Also shown in Figure 5 are the grey matter fingerprints for the initialization and CRLB optimized sequence parameters. The fingerprint obtained by CRLB optimization has higher overall signal intensity than the conventional sequence parameters. This can be attributed to the M0 term in the FIM being equal to the signal at each echo time [24]. Furthermore, greater signal intensities at each echo increases the Fischer Information with respect to T1 and T2 due to scalar amplification. The FIM of each echo with respect to the T1 and T2 relaxation times at different stages of the optimization are shown in Supporting Information Figure S5.
The flip angle and TR solution are diametric opposites (when the flip angle is large, the TR is small and vice versa) and match the bang behaviour observed by Zhao et al. A possible explanation for the bang behaviour is that the optimization is choosing a relaxation experiment which consists of different series of short exponential decays, which have high relative SNR efficiency for short cycle times, as suggested by Assländer et al. in Figure 3 of [46]. The length and order of the segments is dependent on the initialization, but we observed that the objective values at convergence were similar regardless of initialization.
Reconstructed parameter maps from the in vivo scan are shown in Figure 6. Zoomed areas of the parameter maps show that the spatial variation in the white and grey matter tissue regions is reduced in the CRLB optimized sequence. Normalized standard deviations and measured means in the tissue ROIs are shown in Figure 7 and Table 1. Minor improvements in the M0 and T1 estimates are observed across both tissues. The greatest improvement is in the T2 estimate, which is consistent with the individual rCRLB components shown in Figure 5.
FIGURE 6.

Top: Parameter maps from the fully sampled MRF acquisition for the CRLB optimized and conventional sequences are shown. White and grey matter ROIs are outlined in red. T1 and T2 maps from the CRLB optimized sequence exhibit some bias due to unmodelled phenomena in the dictionary. The CRLB optimized sequence has different sensitivity to off-resonance, evidenced by the T2 estimates outside the skull. The white and grey matter ROIs have 64 and 48 voxels respectively. Bottom: Zoomed versions of the ROIs outlined in blue show that the spatial variation of the parameter estimate is reduced in the CRLB optimized sequence. The effect is most prominent in the T2 maps.
FIGURE 7.

Normalized standard deviation (σROI /μROI) of the parameter estimates are shown as bar plots. The CRLB optimized sequence reduces the normalized standard deviation for all parameter estimate with the most significant improvements from T2, consistent with the improved rCRLB objective during the optimization.
Table 1.
The mean and standard deviations of parameter values within the ROIs shows the T1 and T2 bias between the CRLB optimized and conventional sequences.
| T1 [ms] | T2 [ms] | ||||
|---|---|---|---|---|---|
| Conventional | CRLB optimized | Conventional | CRLB optimized | ||
| WM | 917 ± 32 | 949 ± 22 | WM | 67 ± 3.5 | 79 ± 2.5 |
| GM | 1288 ± 67 | 1384 ± 69 | GM | 76 ± 5.0 | 85 ± 2.6 |
Parameter maps show bias in the CRLB optimized measurement, possibly due to unmodelled phenomena in the dictionary. A simulated dictionary matching experiment, shown in Supporting Information Figure S7 demonstrates that the CRLB optimized sequence has increased sensitivity to off-resonance and B1 inhomogeneities when unaccounted for in the dictionary. Additional characterizations of the bias of the CRLB optimized sequence are provided in Supporting Information Figures S8 and S9. The presence of a bias between different schedules is in line with other works performing pattern matching after changing the flip angle, TR, or TE schedules [26, 31, 28, 47].
5 |. DISCUSSION
We have demonstrated that automatic differentiation of a Bloch simulation can be used to calculate the CRLB as an objective for sequence optimization. Our approach has increased flexibility compared to Su et al. who applied automatic differentiation to analytical expressions of the magnetization.
This is best exemplified by our application of EPG to the MRF optimization which is difficult to differentiate analytically. In EPG, applying spoiler gradients requires matrix multiplications for shifting F states, masking to separate positive and negative F states, and direct conjugation for calculating F0+ or F0−. With automatic differentiation, calculating the Jacobian of a spoiler gradient application is simple. It would also be possible to incorporate effects such as diffusion or magnetization transfer, which can be simulated using EPG, in the CRLB calculation.
Other applications for automatic differentiation of a Bloch simulation include calculating the sensitivity of a parameter estimate with respect to system imperfections [48, 49], predicting minimal temperature variation in MR thermometry [50], analyzing propagation of error from parameter constraints [51], or optimizing over objective functions that consider total scan time such as SNR efficiency [52].
For MRF, applying automatic differentiation to the CRLB objective allowed our optimization over a single tissue to converge in 1.1 CPU hours for NT R = 400 using EPG. This is significantly faster than the implementation by Zhao et al. which converged in 56 CPU hours for three tissues (~ 19 CPU hours per tissue).
Using automatic differentiation to calculate the objective and gradient with respect to sequence parameters grants linear runtime scaling with NT R , compared to the scaling when approximating the gradient of the CRLB with finite differences. To verify the asymptotic runtime of the optimization with respect to NT R , we plotted the time required to compute a single iteration for different NT R . The time for a single iteration is defined as the time required to compute the objective function and gradients, ignoring the solution update on the SLSQP solver. Figure 8 shows that the runtime for a single iteration scales linearly with NT R when calculating the CRLB gradient using reverse mode differentiation.
FIGURE 8.

The runtime required for a single iteration of the MRF optimization (computation of gradient and objective) on a single CPU for different NT R is plotted for Nstates = 10. Time for computation of the CRLB gradient is compared for reverse mode differentiation and finite differences (plotted on different scales). Applying reverse mode differentiation grants more than an order of magnitude reduction in computation time, dependent on the number of repetitions. The plot shows that the trend is linear for reverse mode differentiation and quadratic for finite differences over the range of repetition times. This measurement ignores the time required for the solution update.
The improved runtime performance could be applied to analyze the effect of slice profiles [53], different MRF sequence configurations, diffusion and magnetization transfer, or the total number of TRs. We note that calculation of the objective and gradients is only one portion of an optimization step, and that different optimization algorithms have varying time complexities for the solution update [35]. For example, the optimization for NT R = 1000, shown in Supporting Information Figure S6, took approximately 350 iterations and 16 CPU hours to converge.
In the following section, we discuss considerations regarding the runtime of the optimization for CRLB optimization in autograd. Runtime considerations for TensorFlow are provided in Supporting Information Figures S1, S2, S4, and Tables S1, S2.
5.1 |. CRLB Optimization of MR Fingerprinting Sequence Using Autograd
The CRLB calculation for the MRF IR-FISP sequence was implemented with autograd using forward mode differentiation, which has an asymptotic runtime of O(NT R). Using reverse mode differentiation to calculate the CRLB has an inefficient runtime scaling of since a backwards pass is required for each echo. This is illustrated in Supporting Information Figure S10. The runtime of each CRLB evaluation grows with the number of EPG states according to O(Nstates) due to the increased number of variables. Furthermore, maintaining complex valued states increases the runtime by a factor of two.
Regarding the runtime of the entire optimization, the number of sequence parameters also increases with the number of TRs. If the gradient is calculated using finite differences, the total time required to perform a single iteration of the optimization grows with since approximation of the gradient via finite differences would require O(NT R) calls to the CRLB objective which grows with O(NT R). Applying reverse mode differentiation to the objective allows us to calculate the gradients in a single backwards pass, which makes the total asymptotic runtime for objective and gradient calculation O(NT R).
The runtime could be further improved with automatic differentiation libraries in C++, which have been shown to be orders of magnitude faster than the Python autograd implementation [54, 55]. Constructing Bloch operations in tools such as Adept [56] or ADOL-C [57] would provide added computational efficiency and permit exploration of different initialization strategies, objective functions, or optimization of additional variables such as TE or RF phase.
6 |. CONCLUSION
We have presented a framework for automatic differentiation of the Bloch equation and validated its ability to optimize the Cramér-Rao Lower Bound of quantitative sequences without approximations or an analytical formulation. For Magnetic Resonance Fingerprinting, we demonstrated that the Cramér-Rao Lower Bound optimization can be performed efficiently using automatic differentiation which will permit further experimentation with a variety of Magnetic Resonance Fingerprinting sequence configurations.
Supplementary Material
FIGURE S1 Left: The overall graph structure for DESPOT1. Arrows represent the flow of tensors within the graph. The ‘alpha1’, and ‘alpha2’ blocks are scalar tensors that are variable inputs to the graph. Each of the ‘despot1_acq’ blocks perform the forward Bloch simulation. The ‘estimate_T1’ block estimates T1 from the linearized steady-state signal and requires inputs from each of the Bloch simulations, as well as the flip angles used to acquire that steady-state signal. The ‘crb’ block contains nodes that backpropagate through the forward Bloch simulation. All tensors flow to the ‘crb’ block, since the forward pass is required to compute backpropagation. Right: Visualization of the TR in the DESPOT1 simulation. The magnetization tensor undergoes an RF pulse, one relaxation to calculate the echo, one relaxation to reach the next TR, followed by a spoiler gradient. The ‘concat_echo’ block appends the magnetization at the echo time to a list for debugging purposes.
FIGURE S2 Left: The overall structure of the DESS graph is the same as the DESPOT1 graph shown above. Only one forward Bloch simulation is necessary. The ‘bloch_operator’ block computes relaxation and RF matrices that can be reused between TRs to reduce the total number of nodes in the graph. Right: A single TR Bloch in the DESS simulation. This block has an additional relaxation operation and different ordering compared to DESPOT1 since two echoes are acquired in a single TR.
FIGURE S3 A slice from the ISMRM/NIST T2 phantom is shown. The S2 images have different contrast when compared to the S1 images due to the longer second effective echo time. The histograms for the T2 values estimated in the cartilage-like and meniscus-like vials (indicated by arrows), with the true T2 values denoted by the vertical line, are shown. For the cartilage-like vial, the variance in the cartilage-optimized scan (blue) is reduced compared to the meniscus-optimized scan. For the meniscus-like species, the T2 values (orange) exhibit mean shift and increased variance in the cartilage-optimized scan due to low SNR and Gibbs ringing in the second echo.
FIGURE S4 A sample TensorFlow graph for MRF using 10 TRs is shown. This graph demonstrates the quadratic runtime scaling when computing the CRLB using reverse differentiation. Autograd was used to compute the CRLB for MRF with forward differentiation.
FIGURE S5 Top: The Fisher Information (FIM) at each echo for different iterations is shown. Although the CRLB depends on the orthogonality of the FIM due to the matrix inversion, a scalar increase in the FIM at each echo will improve (reduce) the CRLB. Bottom: The mean squared T1 and T2 FIM at each iteration of the optimization is shown. The T1 FIM is reduced by a small amount, while the T2 FIM approximately doubled. This is reflective of the improvement in the relative T1 and T2 CRLB components shown in the main manuscript.
FIGURE S6 Convergence progression of the SLSQP optimization at different iterations for MRF IR-FISP with 400 TRs (left) and 1000 TRs (right). For the 1000 TR case, the TRs converge at around iteration 100 and cease to update after they have converged. This suggests that a greedy optimization approach may achieve a reasonable solution. A greedy heuristic would lock variables that have converged at the bounds set by the constraint after a minimum number of iterations, reducing the step update time which would improve runtimes for large numbers of parameters. For the 1000 TR case, the optimization took roughly 16 CPU hours for 350 iterations.
FIGURE S7 Top: The result of the imperfect fingerprint matched to the ideal dictionary demonstrates greater sensitivity of the CRLB optimized fingerprint to off-resonance and B1 effects. The conventional schedule has little sensitivity to off-resonance. The true value of the tissue of T1/T2 = 1330/80 ms is marked as the dashed black line. Bottom: Conventional and CRLB optimized fingerprints for different values of off-resonance. In the conventional sequence, there is no visible deviation of the fingerprint. In the CRLB optimized sequence, deviations are apparent at TR index 200 and 350.
FIGURE S8 Left: Mean parameter estimates obtained in the ISMRM NIST T2 phantom are compared for the CRLB optimized and conventional MRF schedules. The CRLB optimized schedule overestimates T1 across the range of sample values. The T2 estimate from the CRLB optimized schedule is marginally underestimated compared to the conventional schedule for the 50 – 200ms range, which is opposite to what is observed in vivo. The discrepancy between the two schedules increases at larger T2 values. Right: The mean normalized standard deviation across each sample for the repeated undersampled acquisition is shown. Similar to the fully sampled in vivo measurements, the performance of the T1 estimate is unchanged. The error in the T2 estimate is improved across the samples, but the magnitude of the improvement is reduced compared to the fully sampled in vivo case. This may be due to increased off-resonance in the ISMRM NIST phantom, since the samples are small and have a plastic shell to separate it from water.
FIGURE S9 T2 maps from the 1000 TR undersampled conventional acquisition and CRLB optimized acquisitions are shown in the left and right columns respectively. T2 maps from undersampled in vivo scans exhibit the same bias trend as the fully sampled in vivo scan where T2 is overestimated when using the CRLB optimized acquisition. Visually, the CRLB optimized acquisition provides T2 maps that are more uniform with less noise.
FIGURE S10 The computation graph for the MRF sequence and the backpropagation steps required to calculate the CRLB is shown. Since reverse mode differentiation propagates to the first node of the graph, T RK must backpropagate through K TR blocks. The total number of operations to compute the CRLB is therefore . In MRF, the number of parameters in the optimization also scales with O(NT R) If the gradient of the CRLB is approximated using finite differences, this results in O(NT R3) runtime scaling for a single evaluation of the objective and gradient. Using forward automatic differentiation to calculate the CRLB reduces its runtime to O(NT R) resulting in runtime scaling for a single evaluation of the objective and gradient when using finite differences. Calculating the gradient of the CRLB with respect to sequence parameters using backpropagation further reduces the asymptotic runtime of the gradient and CRLB calculation to O(NT R).
TABLE S1 This table shows the number of nodes in a TensorFlow graph for different Bloch operations. The number of nodes affects the compilation and runtime of the graph. For example, applying an arbitrary RF rotation in EPG requires 47 nodes, but this can be reduced to 23 if it is assumed that only real EPG states are used (ϕ = 90 degrees).
TABLE S2 This table shows the total number of nodes in the graph for the DESS and DESPOT1 sequences shown in SI Figures 1 and 2. Reusing precomputed matrix operators greatly reduces the number of nodes, and hence the runtime of the graph. Backpropagating through the CRLB calculation in TensorFlow greatly increases the number of nodes in the graph and the memory overhead.
ACKNOWLEDGEMENTS
The authors thank Dr. Rolf Schulte for assistance with the fingerprinting acquisition.
Funding information
NIH: R01 AR0063643, R01 EB017739, P41
EB015891, NSERC: PGS-D, and GE Healthcare
Footnotes
Code available at https://web.stanford.edu/~pkllee/adbs
REFERENCES
- [1].Abramson RG, Burton KR, Yu JPJ, Scalzetti EM, Yankeelov TE, Rosenkrantz AB, et al. Methods and Challenges in Quantitative Imaging Biomarker Development. Academic Radiology 2015;22(1):25–32. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [2].Keenan KE, Ainslie M, Barker AJ, Boss MA, Cecil KM, Charles C, et al. Quantitative magnetic resonance imaging phantoms: A review and the need for a system phantom. Magnetic Resonance in Medicine 2018;79(1):48–61. [DOI] [PubMed] [Google Scholar]
- [3].Brihuega-Moreno O, Heese FP, Hall LD. Optimization of Diffusion Measurements Using Cramer-Rao Lower Bound Theory and Its Application to Articular Cartilage. Magnetic Resonance in Medicine 2003;50(5):1069–1076. [DOI] [PubMed] [Google Scholar]
- [4].Gras V, Farrher E, Grinberg F, Shah NJ. Diffusion-weighted DESS protocol optimization for simultaneous mapping of the mean diffusivity, proton density and relaxation times at 3 Tesla. Magnetic Resonance in Medicine 2017;78(1):130–141. [DOI] [PubMed] [Google Scholar]
- [5].Liu Y, Buck JR, Ikonomidou VN. Generalized min-max bound-based MRI pulse sequence design framework for widerange T1 relaxometry: A case study on the tissue specific imaging sequence. PLoS ONE 2017;12(2). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [6].Zhao B, Haldar JP, Liao C, Ma D, Griswold MA, Setsompop K, et al. Optimal Experiment Design for Magnetic Resonance Fingerprinting: Cramer-Rao Bound Meets Spin Dynamics. arXiv 2017;. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [7].Maidens J, Sciences C. Optimal Control for Learning with Applications in Dynamic. PhD thesis, University of California at Berkeley; 2017. [Google Scholar]
- [8].Teixeira RPAG, Malik SJ, Hajnal JV. Joint system relaxometry (JSR) and Crámer-Rao lower bound optimization of sequence parameters: A framework for enhanced precision of DESPOT T1and T2estimation. Magnetic Resonance in Medicine 2018;79(1):234–245. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Deoni SCL, Rutt BK, Peters TM. Rapid combined T1 and T2 mapping using gradient recalled acquisition in the steady state. Magnetic Resonance in Medicine 2003;49(3):515–526. [DOI] [PubMed] [Google Scholar]
- [10].Sveinsson B, Chaudhari AS, Gold GE, Hargreaves BA. A simple analytic method for estimating T2 in the knee from DESS. Magnetic Resonance Imaging 2017;38:63–70. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [11].Ma D, Gulani V, Seiberlich N, Liu K, Sunshine JL, Duerk JL, et al. Magnetic resonance fingerprinting. Nature 2013;495(7440):187–192. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [12].Jiang Y, Seiberlich N, Gulani V, Griswold MA. MR fingerprinting using fast imaging with steady state precession (FISP) with spiral readout. Magnetic Resonance in Medicine 2015;74(6):1621–1631. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [13].Weigel M, Extended phase graphs: Dephasing, RF pulses, and echoes - Pure and simple; 2015. [DOI] [PubMed]
- [14].Pedro R, Teixeira AG, Malik SJ, Hajnal JV. Controlled Saturation of Magnetization Transfer in MRF. In: ISMRM Workshop on Magnetic Resonance Fingerprinting; 2017. 10.5281/zenodo.840023. [DOI] [Google Scholar]
- [15].Weigel M, Schwenk S, Kiselev VG, Scheffler K, Hennig J. Extended phase graphs with anisotropic diffusion. Journal of Magnetic Resonance 2010;205(2):276–285. [DOI] [PubMed] [Google Scholar]
- [16].Modeling Maclaurin D., Inference and Optimization with Composable Differentiable Procedures. PhD thesis, Harvard University; 2016. [Google Scholar]
- [17].Abadi M, Agarwal A, Barham P, Brevdo E, Chen Z, Citro C, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:160304467 2016;p. 1603.04467. www.tensorflow.org. [Google Scholar]
- [18].Su J, Rutt B. Optimal Unbiased Steady-State Relaxometry with Phase-Cycled Variable Flip Angle (PCVFA) by Automatic Computation of the Cramér-Rao Lower Bound. In: Proc. Intl. Soc. Mag. Reson. Med 22; 2014.. [Google Scholar]
- [19].Conolly S, Nishimura D, Macovski a. Optimal control solutions to the magnetic resonance selective excitation problem. IEEE transactions on medical imaging 1986;5(2):106–115. [DOI] [PubMed] [Google Scholar]
- [20].Khaneja N, Reiss T, Kehlet C, Schulte-Herbrüggen T, Glaser SJ. Optimal control of coupled spin dynamics: Design of NMR pulse sequences by gradient ascent algorithms. Journal of Magnetic Resonance 2005;172(2):296–305. [DOI] [PubMed] [Google Scholar]
- [21].Neves JL, Heitmann B, Khaneja N, Glaser SJ. Heteronuclear decoupling by optimal tracking. Journal of Magnetic Resonance 2009;201(1):7–17. 10.1016/j.jmr.2009.07.024. [DOI] [PubMed] [Google Scholar]
- [22].De Fouquieres P, Schirmer SG, Glaser SJ, Kuprov I. Second order gradient ascent pulse engineering. Journal of Magnetic Resonance 2011;212(2):412–417. [DOI] [PubMed] [Google Scholar]
- [23].Reeth EV, Ratiney H, Tse Ve Koon K, Tesch M, Grenier D, Beuf O, et al. A simplified framework to optimize MRI contrast preparation. Magnetic Resonance in Medicine 2018;(May):1–15. http://doi.wiley.com/10.1002/mrm.27417. [DOI] [PubMed] [Google Scholar]
- [24].Assländer J, Lattanzi R, Sodickson DK, Cloos MA. Relaxation in Spherical Coordinates: Analysis and Optimization of pseudo-SSFP based MR-Fingerprinting 2017;p. 1–22. http://arxiv.org/abs/1703.00481. [Google Scholar]
- [25].Ansel Q, Tesch M, Glaser SJ, Sugny D. Optimizing fingerprinting experiments for parameter identification: Application to spin systems. Physical Review A 2017;96(5):1–9. [Google Scholar]
- [26].Kara D, Fan M, Hamilton J, Griswold M, Seiberlich N, Brown R. Parameter map error due to normal noise and aliasing artifacts in MR fingerprinting. Magnetic Resonance in Medicine 2019;. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [27].Assländer J, Glaser SJ, Hennig J. Pseudo Steady-State Free Precession for MR-Fingerprinting. Magnetic Resonance in Medicine 2017;77(3):1151–1161. [DOI] [PubMed] [Google Scholar]
- [28].Wang CY, Coppo S, Mehta BB, Seiberlich N, Yu X, Griswold MA. Magnetic resonance fingerprinting with quadratic RF phase for measurement of T2* simultaneously with δf, T1 , and T2. Magnetic Resonance in Medicine 2018;(August):1–14. http://doi.wiley.com/10.1002/mrm.27543. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [29].Körzdörfer G, Jiang Y, Speier P, Pang J, Ma D, Pfeuffer J, et al. Magnetic resonance field fingerprinting. Magnetic Resonance in Medicine 2018;(June):1–13. http://doi.wiley.com/10.1002/mrm.27558. [DOI] [PubMed] [Google Scholar]
- [30].Cencini M, Biagi L, Buonincontri G, Kaggie JD, Schulte RF, Tosetti M. Magnetic resonance fingerprinting with dictionary-based fat and water separation (DBFW MRF): A multi-component approach. Magnetic Resonance in Medicine 2018;(July):1–14. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [31].Wyatt CR, Smith TB, Sammi MK, Rooney WD, Guimaraes AR. Multi-parametric T2* magnetic resonance fingerprinting using variable echo times. NMR in Biomedicine 2018;31(9):e3951. [DOI] [PubMed] [Google Scholar]
- [32].Rieger B, Zimmer F, Zapp J, Weingärtner S, Schad LR. Magnetic resonance fingerprinting using echo-planar imaging: Joint quantification of T1 and T2-Star relaxation times. Magnetic Resonance in Medicine 2017;78(5):1724–1733. http://doi.wiley.com/10.1002/mrm.26561. [DOI] [PubMed] [Google Scholar]
- [33].Kay SM. Fundamentals of statistical signal processing. Prentice Hall Signal Processing Series; 1993;p. 303. [Google Scholar]
- [34].Pukelsheim F Optimal Design of Experiments; 2006. http://epubs.siam.org/doi/book/10.1137/1.9780898719109.
- [35].Nocedal J, Springer SJW. Numerical Optimization; 1999. [Google Scholar]
- [36].Baydin AG, Pearlmutter BA, Radul AA, Siskind JM. Automatic differentiation in machine learning: a survey. arXiv 2015;http://arxiv.org/abs/1502.05767. [Google Scholar]
- [37].Davenport JH, Siret Y, Tournier E. Computer algebra. SCIENTIFIC AMERICAN 1981;p. 136–152. [Google Scholar]
- [38].Griewank A, Walther A. Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation. 2 ed.; 2008.p. 31–59. https://epubs.siam.org/doi/book/10.1137/1.9780898717761?mobileUi=0. [Google Scholar]
- [39].Christensen KA, Grant DM, Schulman EM, Walling C. Optimal determination of relaxation times of fourier transform nuclear magnetic resonance. Determination of spin-lattice relaxation times in chemically polarized species. The Journal of Physical Chemistry 1974;78(19):1971–1977. http://pubs.acs.org/doi/abs/10.1021/j100612a022. [Google Scholar]
- [40].Hernando D, Haldar JP, Sutton BP, Ma J, Kellman P, Liang ZP. Joint estimation of water/fat images and field inhomogeneity map. Magnetic Resonance in Medicine 2008;59(3):571–580. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [41].Zhao B, Setsompop K, Ye H, Cauley SF, Wald LL. Maximum Likelihood Reconstruction for Magnetic Resonance Fingerprinting. IEEE Transactions on Medical Imaging 2016;35(8):1812–1823. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [42].Boyd S, Vandenberghe L. Convex Optimization; 2010. https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf.
- [43].Jones E, Oliphant T, Peterson P, Others, SciPy: Open source scientific tools for Python;. http://www.scipy.org/.
- [44].Schabel MC, Morrell GR. Uncertainty in T1mapping using the variable flip angle method with two flip angles. Physics in Medicine and Biology 2009;54(1). [DOI] [PubMed] [Google Scholar]
- [45].Bojorquez JZ, Bricq S, Acquitter C, Brunotte F, Walker PM, Lalande A. What are normal relaxation times of tissues at 3 T? Magnetic Resonance Imaging 2017;35:69–80. 10.1016/j.mri.2016.08.021. [DOI] [PubMed] [Google Scholar]
- [46].Assländer J, Novikov DS, Lattanzi R, Sodickson DK, Cloos MA. Hybrid-State Free Precession in Nuclear Magnetic Resonance. arXiv 2018;p. 1–12. http://arxiv.org/abs/1807.03424. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [47].Sommer K, Amthor T, Doneva M, Koken P, Meineke J, Börnert P. Towards predicting the encoding capability of MR fingerprinting sequences. Magnetic Resonance Imaging 2017;. [DOI] [PubMed] [Google Scholar]
- [48].Cheng HM, Wright GA. Rapid high-resolution T1 mapping by variable flip angles: Accurate and precise measurements in the presence of radiofrequency field inhomogeneity. Magnetic Resonance in Medicine 2006;55(3):566–574. [DOI] [PubMed] [Google Scholar]
- [49].Funai A, Fessler JA. Cramer Rao bound analysis of joint B1/T1 mapping methods in MRI. Biomedical Imaging: From Nano to Macro 2010;p. 712–715. [Google Scholar]
- [50].Wyatt C, Soher BJ, Arunachalam K, MacFall J. Comprehensive analysis of the Cramer-Rao bounds for magnetic resonance temperature change measurement in fat-water voxels using multi-echo imaging. Magnetic Resonance Materials in Physics, Biology and Medicine 2012;25(1):49–61. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [51].Lankford CL, Does MD. Propagation of error from parameter constraints in quantitative MRI: Example application of multiple spin echo T2mapping. Magnetic Resonance in Medicine 2018;79(2):673–682. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [52].Saranathan M, Tourdias T, Bayram E, Ghanouni P, Rutt BK. Optimization of white-matter-nulled magnetization prepared rapid gradient echo (MP-RAGE) imaging. Magnetic Resonance in Medicine 2015;73(5):1786–1794. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [53].Buonincontri G, Sawiak SJ. MR fingerprinting with simultaneous B1 estimation. Magnetic Resonance in Medicine 2016;76(4):1127–1135. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [54].Srajer F, Kukelova Z, Fitzgibbon A, A benchmark of selected algorithmic differentiation tools on some problems in computer vision and machine learning; 2018.
- [55].Narayanan SHK, Hovland P, Kulshrestha K, Nagarkar D, Macintyre K, Wagner R, et al. Comparison of two gradient computation methods in Python. In: 31st Conference on Neural Information Processing Systems; 2017.. [Google Scholar]
- [56].Hogan RJ. Fast Reverse-Mode Automatic Differentiation using Expression Templates in C++. ACM Transactions on Mathematical Software 2014;. [Google Scholar]
- [57].Walther A, Griewank A. Getting Started with ADOL-C. Combinatorial scientific computing 2009;p. 181–202. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
FIGURE S1 Left: The overall graph structure for DESPOT1. Arrows represent the flow of tensors within the graph. The ‘alpha1’, and ‘alpha2’ blocks are scalar tensors that are variable inputs to the graph. Each of the ‘despot1_acq’ blocks perform the forward Bloch simulation. The ‘estimate_T1’ block estimates T1 from the linearized steady-state signal and requires inputs from each of the Bloch simulations, as well as the flip angles used to acquire that steady-state signal. The ‘crb’ block contains nodes that backpropagate through the forward Bloch simulation. All tensors flow to the ‘crb’ block, since the forward pass is required to compute backpropagation. Right: Visualization of the TR in the DESPOT1 simulation. The magnetization tensor undergoes an RF pulse, one relaxation to calculate the echo, one relaxation to reach the next TR, followed by a spoiler gradient. The ‘concat_echo’ block appends the magnetization at the echo time to a list for debugging purposes.
FIGURE S2 Left: The overall structure of the DESS graph is the same as the DESPOT1 graph shown above. Only one forward Bloch simulation is necessary. The ‘bloch_operator’ block computes relaxation and RF matrices that can be reused between TRs to reduce the total number of nodes in the graph. Right: A single TR Bloch in the DESS simulation. This block has an additional relaxation operation and different ordering compared to DESPOT1 since two echoes are acquired in a single TR.
FIGURE S3 A slice from the ISMRM/NIST T2 phantom is shown. The S2 images have different contrast when compared to the S1 images due to the longer second effective echo time. The histograms for the T2 values estimated in the cartilage-like and meniscus-like vials (indicated by arrows), with the true T2 values denoted by the vertical line, are shown. For the cartilage-like vial, the variance in the cartilage-optimized scan (blue) is reduced compared to the meniscus-optimized scan. For the meniscus-like species, the T2 values (orange) exhibit mean shift and increased variance in the cartilage-optimized scan due to low SNR and Gibbs ringing in the second echo.
FIGURE S4 A sample TensorFlow graph for MRF using 10 TRs is shown. This graph demonstrates the quadratic runtime scaling when computing the CRLB using reverse differentiation. Autograd was used to compute the CRLB for MRF with forward differentiation.
FIGURE S5 Top: The Fisher Information (FIM) at each echo for different iterations is shown. Although the CRLB depends on the orthogonality of the FIM due to the matrix inversion, a scalar increase in the FIM at each echo will improve (reduce) the CRLB. Bottom: The mean squared T1 and T2 FIM at each iteration of the optimization is shown. The T1 FIM is reduced by a small amount, while the T2 FIM approximately doubled. This is reflective of the improvement in the relative T1 and T2 CRLB components shown in the main manuscript.
FIGURE S6 Convergence progression of the SLSQP optimization at different iterations for MRF IR-FISP with 400 TRs (left) and 1000 TRs (right). For the 1000 TR case, the TRs converge at around iteration 100 and cease to update after they have converged. This suggests that a greedy optimization approach may achieve a reasonable solution. A greedy heuristic would lock variables that have converged at the bounds set by the constraint after a minimum number of iterations, reducing the step update time which would improve runtimes for large numbers of parameters. For the 1000 TR case, the optimization took roughly 16 CPU hours for 350 iterations.
FIGURE S7 Top: The result of the imperfect fingerprint matched to the ideal dictionary demonstrates greater sensitivity of the CRLB optimized fingerprint to off-resonance and B1 effects. The conventional schedule has little sensitivity to off-resonance. The true value of the tissue of T1/T2 = 1330/80 ms is marked as the dashed black line. Bottom: Conventional and CRLB optimized fingerprints for different values of off-resonance. In the conventional sequence, there is no visible deviation of the fingerprint. In the CRLB optimized sequence, deviations are apparent at TR index 200 and 350.
FIGURE S8 Left: Mean parameter estimates obtained in the ISMRM NIST T2 phantom are compared for the CRLB optimized and conventional MRF schedules. The CRLB optimized schedule overestimates T1 across the range of sample values. The T2 estimate from the CRLB optimized schedule is marginally underestimated compared to the conventional schedule for the 50 – 200ms range, which is opposite to what is observed in vivo. The discrepancy between the two schedules increases at larger T2 values. Right: The mean normalized standard deviation across each sample for the repeated undersampled acquisition is shown. Similar to the fully sampled in vivo measurements, the performance of the T1 estimate is unchanged. The error in the T2 estimate is improved across the samples, but the magnitude of the improvement is reduced compared to the fully sampled in vivo case. This may be due to increased off-resonance in the ISMRM NIST phantom, since the samples are small and have a plastic shell to separate it from water.
FIGURE S9 T2 maps from the 1000 TR undersampled conventional acquisition and CRLB optimized acquisitions are shown in the left and right columns respectively. T2 maps from undersampled in vivo scans exhibit the same bias trend as the fully sampled in vivo scan where T2 is overestimated when using the CRLB optimized acquisition. Visually, the CRLB optimized acquisition provides T2 maps that are more uniform with less noise.
FIGURE S10 The computation graph for the MRF sequence and the backpropagation steps required to calculate the CRLB is shown. Since reverse mode differentiation propagates to the first node of the graph, T RK must backpropagate through K TR blocks. The total number of operations to compute the CRLB is therefore . In MRF, the number of parameters in the optimization also scales with O(NT R) If the gradient of the CRLB is approximated using finite differences, this results in O(NT R3) runtime scaling for a single evaluation of the objective and gradient. Using forward automatic differentiation to calculate the CRLB reduces its runtime to O(NT R) resulting in runtime scaling for a single evaluation of the objective and gradient when using finite differences. Calculating the gradient of the CRLB with respect to sequence parameters using backpropagation further reduces the asymptotic runtime of the gradient and CRLB calculation to O(NT R).
TABLE S1 This table shows the number of nodes in a TensorFlow graph for different Bloch operations. The number of nodes affects the compilation and runtime of the graph. For example, applying an arbitrary RF rotation in EPG requires 47 nodes, but this can be reduced to 23 if it is assumed that only real EPG states are used (ϕ = 90 degrees).
TABLE S2 This table shows the total number of nodes in the graph for the DESS and DESPOT1 sequences shown in SI Figures 1 and 2. Reusing precomputed matrix operators greatly reduces the number of nodes, and hence the runtime of the graph. Backpropagating through the CRLB calculation in TensorFlow greatly increases the number of nodes in the graph and the memory overhead.
