Abstract
Purpose:
Low-cost and application-specific scanners with unconventional designs can entail substantial inhomogeneities of the main magnetic field and non-linearities of the gradient fields, which challenge assumptions made in MRI simulators. This work aims to develop a simulation framework that captures the encoding effects of strong field variations, accurately and efficiently, to enable the assessment of effects such as geometrical distortions, signal dropout, and foldover artifacts.
Methods:
Like many other MRI simulators, ours discretizes magnetic fields in space. However, we extend the MR signal simulation at each grid point from the 0th-order approximation, which assumes piecewise constant fields, to a 1st-order approximation, which assumes piecewise linear fields. We solve the signal equation by analytically integrating over each grid cube, assuming linear field variations, and then summing over all cubes. We provide analytical integrals for several pulse sequences.
Results:
The 1st-order approximation captures strongly varying fields and associated intravoxel dephasing more accurately, avoiding severe “ringing” artifacts present in the usual 0th-order simulations. This enables simulations on a much coarser grid, facilitating computational feasibility.
Conclusion:
The first-order simulator enables the evaluation of unconventional scanner designs with strongly varying magnetic fields.
Keywords: simulations, accessible MRI, spatial encoding, inhomogeneous fields
1 |. INTRODUCTION
The goal to expand MRI’s reach has driven recent efforts to build low-cost and application-specific scanners,1 including scanners specialized for point-of-care imaging with unconventional scanner geometries, such as single-sided or open-access magnets.2,3 These designs utilize flexible field configurations, where the patient is positioned adjacent to rather than inside the magnet, which typically requires weaker and less homogeneous magnetic fields. Magnetic field inhomogeneities complicate spatial encoding, and our work aims to enable the assessment of the spatial encoding properties of scanner designs with strong field variations in silico.
Most current simulation tools rely on mostly homogeneous magnetic fields.4–7 They discretize the imaged object (e.g., a body model or a high-quality MR image) and the magnetic fields, assuming constant magnetic fields within each cube. This assumption is adequate for sufficiently homogeneous and linear gradient fields (see Fig. 1). In the following, we will demonstrate that this assumption is inadequate in the presence of strong magnetic field variations. We propose to improve the simulations by approximating the and gradient field variation as linear within each cube, which allows a more accurate estimation of intravoxel dephasing. For several pulse sequences, we derive analytical solutions to the MR signal equation integrated over locally linear fields, which then become new base elements for summation over the grid. We demonstrate the efficacy of this approach in two test cases: 1) a saddle shape field distribution as a simple test bed, and 2) more realistic magnetic fields resulting from simulations of a prostate scanner design. Our simulation platform captures the effects of strong variations of magnetic fields on spatial encoding considerably better than the common piecewise constant approximation.
FIGURE 1.

Sketch of the total magnetic field variations () when superimposing a saddle-shaped main magnetic field with a nominal field strength and a strictly linear gradient field of strength , which represents a typical field during k-space readout. The main magnetic field is aligned along and its strength is given by where is the nominal field and introduces a saddle-shaped inhomogeneity. As indicated by the central cube, the magnetic field in the isocenter is well-described by the 0th-order approximation. In contrast, the 0th-order approximation is insufficient in areas with strong field variations, as indicated by the cube on the top-right.
2 |. METHODS
2.1 |. Signal equations
Our simulation framework focuses on accurately modeling intravoxel dephasing arising from highly non-linear fields and ignores contrast-generating effects such as relaxation and diffusion. Therefore, we scale the longitudinal magnetization , where denotes space, to match the intensity of an input MR image. This effectively imprints the contrast of the input image (here, a 3T clinical -weighted image) on the output image, neglecting differences in relaxation characteristics between different field strengths.
After exciting the longitudinal magnetization with a radio frequency (RF) pulse and assuming no initial transversal magnetization, the MR signal is given by the integral of the excited magnetization over space:
| (1) |
where denotes the nominal flip angle, and the transmit RF field, which is assumed to be real-valued and is normalized to 1 at the isocenter (variations in the phase of the transmit field correspond to changes in flip axis, and can be easily incorporated as a starting phase distribution ). For simplicity, we assume instantaneous RF pulses, which ignores subtle variations of spin relaxation during the pulse. Dephasing during excitation pulses is much more pronounced and we use the small-flip angle approximation to describe dephasing with the spectral response function , where is the spatially varying Larmor frequency at the time of the excitation pulse, here defined as 0. Throughout this paper, we operate in the rotating frame, i.e., denotes the laboratory Larmor frequency minus the RF operating frequency . We note that we ignore dephasing during refocusing pulses. denotes the complex-valued RF receive coil sensitivity.
The phase is accrued between the time of the excitation pulse and the time at which the signal is acquired, through spin evolution in the spatially varying field as well as the spatially and temporally varying gradient fields :
| (2) |
Here is the gyromagnetic ratio. Note that the vectors , and account for the directions of the fields and, thus, also for concomitant fields, by taking the vector sum of fields in Eq. (2). Thereafter, however, we take the -norm of the total field, which is equivalent to neglecting the—usually small—spatial variations of the magnetization’s precession axis.
Toward the periphery of k-space, the phase contains high-frequency oscillations over space, which challenge the numerical solutions of the integral in Eq. (1).8 Many MRI simulators overcome this issue by approximating the integral with a discrete sum:4–7
| (3) |
where the index runs over all simulation grid elements and points to the center of respective element. Replacing Eq. (1) with Eq. (3) entails the approximations that , , and are piecewise constant—approximations we will maintain throughout this paper. It also approximates as piecewise constant, which we will discuss in more detail below. Lastly, it approximates the magnetic fields, including the gradient fields, as piecewise constant—a limitation we aim to overcome with the proposed approach.
For a homogeneous field and linear gradients, the impact of the last assumption can be estimated straightforwardly. In this case, the accumulated phase is just , where indicates a particular location in k-space associated with the application of corresponding gradients. Assuming piecewise constant fields ignores the integration of actual field variations over each grid element:
| (4) |
where indicates an integral over the volume of the grid element, assumed to be a cube of side length . Thus, a 0th-order approximation of a constant and linear gradient fields equates to neglecting a simple k-space filter. The relative approximation error varies smoothly from zero in the center of k-space to at the k-space periphery (assuming 3D k-space encoding). For many applications, this error is acceptable and Eq. (3) provides a reasonable approximation of Eq. (1).
inhomogeneities and non-linear gradients introduce a dependency of the approximation error in Eq. (3) on space, time, and the pulse sequence: the stronger the spatial variations of within a simulation cube, the less accurate is the 0th-order approximation, as illustrated in Fig. 1. For a grid cube positioned in the isocenter, the visualized field is well-approximated as piecewise constant. In contrast, the example cube towards the top right contains a steep gradient of the magnetic field, which is poorly approximated by a constant field. To reduce the error, we propose to use a 1st-order approximation that models the and gradient fields as piecewise linear, i.e., linear over the limited spatial extent of each grid cube:
| (5) |
A numerical solution of the integral in Eq. (5) faces the same issues as Eq. (1): at the periphery of k-space, contains high-frequency oscillations, which prohibit an efficient solution. Under certain circumstances, however, we can derive an analytical solution. In this study, we examine two imaging scenarios for which we were able to find analytic solutions.
2.1.1 |. 3D imaging
First, we consider 3D imaging, assuming
a piecewise linear main magnetic field ()
piecewise linear gradient fields ()
non-selective RF pulses
- a piecewise constant spectral profile of the transmit RF coil:
a piecewise constant magnetization ()
piecewise constant transmit () and receive () RF fields
Under these assumptions, the signal contribution of the grid-cube in a 3D pulse sequence is given by
| (6) |
This integral has the following analytical solution:
| (7) |
2.1.2 |. 2D multi-slice imaging
Second, we consider 2D (multi-slice) imaging, assuming
a piecewise linear main magnetic field ()
piecewise linear gradient fields ()
-
a Gaussian excitation pulse with the spectral response
where is the RF-pulse bandwidth associated with the nominal slice thickness
a spectral profile of the transmit RF field much broader than the RF-pulse bandwidth.
- the small tip-angle approximation:
a piecewise constant magnetization ()
piecewise constant transmit () and receive () RF fields
The approximate signal contribution of the grid-cube in a 2D pulse sequence under these conditions is
| (8) |
We note that all simulations of 2D and 3D imaging in this paper entail 3D integrals over the entire volume. The solution to Eq. (8) is rather unwieldy and can be found in the Supplementary Material. To provide some intuition into the results, we provide the result for the corresponding 1D integral here:
| (9) |
where erf denotes the error function, and denotes the partial derivative of with respect to , evaluated at .
2.2 |. Simulations
Fig. 2 outlines the simulation process. 3D maps of the main magnetic field , gradient fields , transmit RF field , and receive RF field are loaded, along with a high-quality input image volume which is used as . The fields are interpolated linearly and the image is interpolated with cubic b-splines to provide access to the values at any . The interpolation package further provides access to the gradients of each field, which will be used to calculate the 1st-order approximation.
FIGURE 2.

Overview of the proposed simulation process. 1. The inputs of the simulation consisting of source image volumes and 3D maps for the main magnetic , the three gradient fields , , and transmit/receive fields. 2. Slice (or non-selective) excitation and the phase evolution are simulated for a particular sequence. 3. For each k-space data point and each receive RF coil, the signal contributions of each cube are calculated with Eq. (8) for 2D sequences or Eq. (6) for 3D sequences. 4. The total signal for each k-space data point is calculated by summing over all grid cubes. This process is repeated for all k-space data points of the sequence and the final image is obtained using a fast Fourier transform (FFT) for each coil signal, followed by a root sum of squares coil combination.
We implemented simulations of 6 pulse sequences:
2D multi-slice gradient echo (FLASH)
2D multi-slice spin echo (Supplemental Material)
2D multi-slice turbo spin echo
2D multi-slice spin echo EPI
2D multi-slice gradient echo EPI (Supplemental Material)
3D gradient echo (FLASH)
The simulations are written such that the sequence timing can be flexibly calculated for a given set of protocol parameters, such as image resolution, field of view (FOV), readout bandwidth, and slice position. We note that the current implementation of our simulator assumes instantaneous switching of gradient fields. In other words, gradient pulses are simulated as boxcars instead of trapezoids. Furthermore, all RF pulses are associated with a spectral response function that is calculated separately by taking the Fourier transform of the pulse shape, and are otherwise assumed to be instantaneous.
The simulations assume perfect spoiling, i.e., each excitation pulse exclusively excites longitudinal magnetization. Further, we assume thermal equilibrium or, equivalently, steady-state longitudinal magnetization before each RF pulse, i.e., we neglect any transition into the steady state. Last, simulations of spin echo pulse sequences assume perfect, instantaneous, and non-selective refocusing pulses, i.e., the pulses have a 180-degree refocusing flip angle regardless of , spectral profile, or slice profile.
For each grid-cube, k-space point, and receive RF coil, we calculate with Eq. (2). The gradient is calculated by taking the derivative of Eq. (2), assuming that the derivative and the integral commute. The signal contribution of each grid cube is calculated with Eq. (7) and Eq. (8) for 3D and 2D pulse sequences, respectively. The overall measured signal is calculated by taking the sum over all grid cubes. The process is repeated for all measured k-space points and all receive RF coil elements.
All simulated pulse sequences utilize Cartesian k-space sampling and Nyquist sampling, where the Nyquist sampling rate was calculated for nominal fields. Image reconstruction is performed with a fast Fourier transform of each coil signal, followed by a root sum of squares coil combination.
2.3 |. Validation
We validated the 1st-order approximation with error analyses and simulations of different pulse sequences. All simulations were based on a standard clinical -weighted 3T prostate MR image, which was interpolated using a cubic b-spline algorithm and used as . In the superior-inferior direction, the image was extrapolated with a constant value to compensate for the limited coverage of about 90 mm. For simplicity, we analyzed the imaging properties of a saddle-shaped field, followed by a more realistic field distribution resulting from a prostate scanner design, as described in the following sections.
2.3.1 |. Saddle-shaped field
In this pictorial (and un-physical) example, the main magnetic field is aligned along and its strength is given by where is the nominal field and introduces a saddle-shaped inhomogeneity (Fig. 1). The maximum field inhomogeneity is 1876.86 ppm over a 10 cm diameter spherical volume (DSV).
In this example, we assume linear imaging gradients with a maximum strength of 28 mT/m, as well as perfectly homogeneous RF transmit and receive fields, i.e., and .
2.3.2 |. Prostate scanner
This scanner design is tailored to imaging the prostate. The magnet has a simulated field strength of 99 mT in the isocenter, and the design emphasizes homogeneity within a small spherical volume (~5 cm radius) at the expense of severe inhomogeneities outside of this volume. The maximum field inhomogeneity is 471.27 ppm over a 10 cm DSV. The imaging gradients, with cardinal directions and field distribution illustrated in Fig. 3, have maximum strengths ranging between 21 mT/m (x- and y-gradients) and 36 mT/m (z-gradient) in the isocenter. Combining the inhomogeneous field and the gradient fields results in non-bijective behavior outside the small homogeneous sphere, which commonly results in aliasing (Fig. 3).
FIGURE 3.

Sketch of the magnetic field variations when superimposing the main magnetic field and the readout gradient field of the prostate scanner design. Here, the coordinate system was rotated by 45 degrees from the inferior-superior direction. The two line plots on the right show the magnetic fields along the lines indicated in the heatmap and demonstrate the non-bijective imaging properties of these fields. The circles indicate a 10 cm diameter spherical volume that was used as the target homogeneity region during the magnet design.
For RF transmit and receive, we simulated two loop-butterfly quadrature surface coils. One was positioned on the anterior of the subject as if on their lap, and the other on their posterior. Each coil is configured with a 90-degree bend to contour to the shape of the subject. The size of each element was optimized for maximal SNR at the typical position of the prostate.9 and fields of each coil element were simulated with the HFSS (Ansys, Canonsburg, PA) software. For transmission, we assume a single RF amplifier with quadrature splitters that drives both coils. The fields are scaled to achieve the nominal flip angle in the isocenter.
Since of this scanner design is rotated by 45 degrees from the inferior-superior direction, we rotate the coordinate system accordingly (Fig. 3), and assume slice selection along the angled -direction.
For 2D pulse sequences, we assume that the transmit coil’s bandwidth is broader than the bandwidth of the RF pulse, and the former is neglected. For the 3D pulse sequences, where we assume non-selective RF pulses, we model the transmit coil’s spectral response as a Lorentzian curve with a 42 kHz bandwidth at FWHM, emulating the response curve obtained in RF coil simulations.
2.3.3 |. Analysis
We validated the 1st-order approximation with an error analysis for both field configurations. To this end, we calculated the signal of two individual k-space points with the 0th- and 1st-order approximation and various grid-cube sizes ranging between 0.2 mm and 10 mm. In the absence of a ground truth (a numerical solution of Eq. (1) is unfeasible), we considered the 1st-order approximation at 0.2 mm as a reference and calculated the relative error of all simulations with respect to this reference. The error analysis was performed at the example of a 2D gradient echo sequence with a readout duration , an in-plane resolution of 3 mm, a FOV = 420 mm, and a 5 mm slice cutting through the isocenter.
Next, we compared images resulting from simulations with 0th- and 1st-order approximation, using 1 mm and 3 mm grid-cube sizes for the simulation, while keeping the imaging resolution at 3 mm in-plane and the slice thickness at 5 mm. For this analysis, we also used a 2D gradient echo sequence. The corresponding k-space plots for these simulated images can be found in the Supplemental Material.
For the prostate scanner design, we additionally simulated other commonly used sequences, namely 3D gradient echo, 2D turbo spin echo (turbo factor = 2), and 2D single-shot spin-echo EPI sequences. For the 2D sequences we use FOV = 420 mm, , slice thickness = 5 mm, slice z location = 0 mm (isocenter), in-plane resolution = 3 mm. For the 3D sequence, we used an isotropic resolution = 3 mm and the same parameters otherwise. The corresponding k-space plots for these simulated images can be found in the Supplemental Material.
Last, we used reduced-FOV imaging to highlight the 1st-order approximation’s ability to capture intravoxel dephasing, which attenuates the signal in regions of strong magnetic field gradients. We used the example of a 2D gradient echo sequence with the FOVs of 420 mm and 120 mm, respectively, and the above-described parameters otherwise.
3 |. RESULTS
3.1 |. Saddle-shaped field
The error analysis in Fig. 4 indicates that the 0th-order approximation requires a grid size of 0.3 mm or smaller for a simulation of the k-space center with a relative error smaller than 0.1 (10%). For coarser grids, the error is around 1 and above. By contrast, the relative error for the 1st-order approximation is below 0.1 for grid-cube sizes up to 3 mm, and it stays below 1 for grid-cube sizes up to 10 mm. The limitations of the 0th-order approximation are even more pronounced for signals in the periphery of k-space, where the relative error is well above 1 at all grid sizes. In contrast, the relative error for the 1st-order approximation remains around 1 or less for all grid-cube sizes.
FIGURE 4.

Relative error of the simulated k-space signal for the saddle-shaped field. The relative error is given by where is the signal computed using the 1st-order approximation with 0.2 mm grid-cube size, which we use as a reference. Here, we simulated a 2D gradient echo sequence with a 3 ms readout, 5 mm slice thickness, 3 mm in-plane resolution, and a 420 mm isotropic FOV. Note the logarithmic scaling.
Images reconstructed from the full set of simulated k-space data (Fig. 5) further confirm these trends. Using the 0th-order approximations at a cube size of 1 mm results in noise-like artifacts that obscure the prostate area. These artifacts are amplified when simulating the signal with a 3 mm grid-cube size. The 1st-order approximation resolves these artifacts, and the resulting images are characterized by a marked reduction of signal outside the central homogeneous field area due to intravoxel dephasing. In this particular example, the images with both cube sizes are very similar, which suggests that it is sufficient to use a grid-cube size equal to the imaging resolution when using the 1st-order approximation.
FIGURE 5.

Effect of grid-cube size on simulated images at the example of the saddle-shaped field. Here, we simulated a 2D gradient echo sequence that encodes an axial slice that cuts through the isocenter. The imaging resolution is 3 mm in plane with a 5 mm slice thickness.
3.2 |. Prostate scanner
Fig. 6 repeats the error analysis for the prostate scanner. In the center of k-space, the relative error of the 0th-order approximation exceeds 1 (100%) for grid sizes of 0.6 mm and coarser. By contrast, the 1st-order approximation has a relative error below 0.1 for all grid-cube sizes tested. Once again, the error of the 0th-order approximation is even larger at the periphery of k-space, exceeding 1 even at a grid size of 0.2 mm, and 10 for grid sizes above 0.6 mm. The 1st-order approximation has a relative error of less than 0.1 for grid sizes below 3 mm, and less than or equal to 1 up to a grid size of 10 mm.
FIGURE 6.

Relative error of the simulated k-space signal for the prostate scanner design. The relative error is given by where is the signal computed using the 1st-order approximation with 0.2 mm grid-cube size, which we use as a reference. Here, we simulated a 2D gradient echo sequence with a 3 ms readout, 5 mm slice thickness, 3 mm in-plane resolution, and a 420 mm isotropic FOV. Note the logarithmic scaling.
Images reconstructed from the full set of simulated k-space data (Fig. 7) confirm these trends. Using the 0th-order approximations at a cube size of 1 mm results in noise-like artifacts that are substantially amplified when simulating the signal with a 3 mm grid-cube size. The 1st-order approximation resolves these artifacts and the resulting images are characterized by marked intravoxel dephasing outside of the central sphere. Similar to the previous result in Fig. 5, the images with both cube sizes are virtually identical, which suggests that it is sufficient to use a grid-cube size equal to the imaging resolution when using the 1st-order approximation.
FIGURE 7.

Effect of grid-cube size on simulated images using the prostate scanner design. The imaged slice cuts through the isocenter at a 45-degree angle (axial to coronal) in anatomical coordinates. We simulated the same 2D gradient echo pulse sequence (cf. Fig. 5).
Fig. 8 translates the above findings to a few exemplary pulse sequences (additional results from the 2D Spin Echo and 2D Gradient Echo EPI are in the Supplemental Material, Fig. S1). Using the 0th-order approximation consistently results in noise-like artifacts. The 1st-order approximation overcomes these artifacts and reveals key properties of each pulse sequence and their manifestation in the presence of severe field inhomogeneities. For example, the spin echo sequence refocuses the outer-volume signal, which results in strong artifacts, including both geometrical distortion and aliasing associated with the non-bijective encoding fields. The 1st-order simulation of a spin echo EPI sequence exhibits severe blurring along the phase encoding direction, which reflects dephasing and signal attenuation while acquiring the outer lines of k-space.
FIGURE 8.

Comparison of different pulse sequences, simulated for the prostate scanner design. Here, we depict a slice that cuts through the isocenter at a 45-degree angle (axial to coronal) in anatomical coordinates. The 2D sequences were simulated with a 3 mm in-plane resolution, a 5 mm slice thickness, and a 3 mm simulation grid-cube size. The 3D gradient echo was simulated with a 3 mm isotropic resolution and the same parameters otherwise. Simulations of a 2D spin echo and gradient echo EPI sequence can be found in the Supporting Fig. 1.
Fig. 9 demonstrates that the outer-volume suppression observed in gradient echo pulse sequences can be utilized for reducing the field of view in the pulse sequence without fold-over artifacts. While the 1st-order approximation allows for an assessment of the minimal FOV, the noise-like artifacts in the 0th-order approximation hamper such an assessment substantially.
FIGURE 9.

Simulations of zoomed-FOV imaging experiments with the prostate scanner. We simulated a 2D gradient echo sequence with a 3 mm in-plane resolution, a 5 mm slice thickness, and a 3 mm simulation grid-cube size.
4 |. DISCUSSION
In this work, we expand established MRI simulation approaches to efficiently capture the effects of strong magnetic field variations. We showed that the presence of highly inhomogeneous magnetic fields and non-linear gradients results in severe artifacts when approximating the magnetic fields to the 0th-order (piecewise constant). The 0th-order approximation does not capture the severe intravoxel dephasing in regions with steep field gradients. Instead, it entails spurious constructive interference of signals from neighboring voxels, manifesting as “ringing” or noise-like artifacts in the simulated images. Importantly, these artifacts are not expected to appear in actual MR images; they are merely a consequence of an oversimplified simulation. In contrast, the 1st-order approximation models the signal more adequately, capturing intravoxel dephasing and yielding simulations with physically plausible outer-volume signal suppression (cf. Figs. 5 and 7).
When using the 0th-order approximation, the errors in the simulated k-space signal can be substantial: in the prostate scanner example, over 100-fold relative error was observed for the signal at the edge of k-space when simulated with a 2 mm cube size. Finer grids entail a severe computational burden, which grows with the cubic inverse of the grid size. For example, our simulations with 3 mm resolution, a 3 mm grid size, and using the 0th-order approximation, took approximately 6 CPU-hours. At a 1 mm grid size, they took approximately 158 CPU-hours, which corresponds to the expected 33-fold increase. Extrapolating to a grid size of 0.2 mm results in 820 CPU-days. Parallelizing, for example, on 400 CPUs, the simulation of a single image would require approximately 20 days, rendering accurate simulations with the 0th-order approximation infeasible for many applications.
We overcome this challenge by approximating the and gradient fields to 1st order (piecewise linear). We showed that the signal equation for each grid cube has an analytic solution under certain conditions (cf. Section 2.1). The 1st-order approximation captures intravoxel dephasing and allows for a more accurate simulation of spatial encoding in the presence of significant magnetic field variations. In the analyzed examples, the 1st-order approximation with a grid size equal to the imaging resolution (here 3 mm) had a lower error than the 0th-order approximation with a 0.2 mm grid size (Fig. 6). Further, we observed no visible image degradation in the 1st-order approximation between 1 mm and 3 mm grid size (Fig. 7). The latter took approximately 7.6 CPU-hours (11 minutes on a 40-core server), i.e., approximately 25% longer compared to the 0th-order approximation at the same grid size.
Previous Bloch-based simulators that included a first-order approximation of intravoxel variation demonstrated signal mismapping and dephasing near air-tissue interfaces, but did not explore signal behavior in the presence of highly inhomogeneous applied magnetic fields and non-linear gradient fields, or non-standard field configurations10,11. Although they allow for the additional simulation of contrast and/or the calculation of specific absorption rate (SAR), these simulations focus on inhomogeneities due to the imaging object itself, demonstrated for inhomogeneities up to 116 ppm.10,11 Our simulations were built specifically for simulating spatial encoding effects due to highly inhomogeneous fields and nonlinear gradients that could be present in nonstandard, accessible scanners, and we demonstrate their feasibility for inhomogeneities up to 1870 ppm. The recently proposed phase distribution graph12 framework also allows for the simulation of intravoxel dephasing, capturing the key features of our 3D imaging solution (Eq. 6) where non-selective RF pulses are assumed. The phase distribution graph is, however, currently not capable of capturing selective excitation pulses, which lie at the core of our signal equation for multi-slice 2D imaging (Eq. 8).
4.1 |. Applications
The proposed simulation framework and the provided code (cf. Section 6) have a number of potential applications. First, the 1st-order approximation allows for an in silico assessment of novel magnet and gradient designs. Capturing intravoxel dephasing effects is essential for avoiding spurious noise-like artifacts that can overshadow true image features and encoding artifacts.
Second, the 1st-order approximation can be used to test pulse sequences for hardware configurations with severe field inhomogeneities. For example, our results for the prostate scanner design show that a gradient echo sequence results in sufficient signal dropout to enable imaging with a field of view smaller than the body dimensions. In contrast, the spin echo sequence refocuses some of the signal, requiring a larger field of view to avoid aliasing. Using the standard 0th-order approximation, the difference between the gradient- and spin echo sequences is obscured since intravoxel dynamics are not captured.
Third, our simulator can be used to degrade existing clinical MR images and explore machine-learning approaches for the reconstruction, processing, and interpretation of low-cost MR images.13 Building low-cost scanners includes challenges in spatial encoding in addition to reduced SNR. Our simulator uses existing images as inputs instead of body models to predict the effects on spatial encoding. This choice enables us to leverage existing databases of MR images rather than building large sets of labor-intensive and generally resolution-limited body models. As a result, the simulator can be used to generate training datasets of appreciable size and diversity, for machine learning and other applications. Such datasets have the advantage of being derived from a clinical population with natural anatomic variation as well as a realistic prevalence of pathology, which can be challenging to simulate accurately in purely synthetic body models. While our framework, as presented here, does not explicitly include SNR effects associated with low-field operation, such effects have been studied extensively and are comparatively straightforward to include in an additional simulation step.2,13
4.2 |. Limitations
The proposed 1st-order approximation would be comparatively easy to incorporate into a range of existing sequence simulators that currently employ the 0th-order approximation. While the 1st-order approximation substantially improves accuracy by better capturing intravoxel dynamics, its efficiency currently relies upon the existence of analytic solutions to the signal equation. This requirement limits the scope of the simulations by requiring some approximations and certain assumptions about the pulse sequence. Here we provided practical solutions for two cases. For 2D sequences, we found an analytic solution for Gaussian excitation pulses, and an analytic solution for more widespread pulses, such as filtered sinc pulses, might be unattainable. Further, the solution requires either a small-tip angle approximation (used here for gradient echo pulse sequences) or a uniform excitation field (used here for the refocusing pulses in spin echo pulse sequences). For 3D sequences with non-selective excitation pulses, the analytic solution has fewer requirements, the most important being the assumption of a piecewise constant spectral response of the RF coil. This approximation is sufficient in many cases, given the inherent smoothness of RF fields and the comparatively slow variations of RF sensitivities in space and frequency.
Our simulation framework ignores contrast-generating effects and, instead, we use existing, high-quality MR images with a predefined contrast as inputs. We note that some contrast-generating effects might manifest differently in inhomogeneous magnetic fields. Foremost, diffusion in strong gradient fields could result in further outer-volume suppression, in particular in the spin echo pulse sequences where we currently assume perfect refocusing. (cf. Fig. 8). In order to provide an order of magnitude for the diffusion effects, we can extract a representative gradient amplitude of 0.3 T/m from the right panel in Fig. 3 (dotteted line between −20 cm and −15 cm) and assume this gradient to be constant over time. In a spin echo sequence with , this would equate to a b-value of approximately 650 s/mm2.
While we capture the effect of concomitant fields14–19 on the Larmor frequency, we currently neglect spatial and temporal variations in the precession axis by taking the -norm in Eq. (2). Such variations could be incorporated with a vector notation of and by projecting this vector onto the precession axis (cf. Eq. (2)). Note that temporal variations of the axis entail the necessity of a time-dependent projected .
Further, we assume gradient switching and RF pulses are instantaneous, and we assume perfect spoiling after each TR, i.e., we do not simulate coherence pathways. Such sequence details foremost affect the contrast and have only a secondary effect on spatial encoding, which motivated us to neglect them. Last, we do not simulate changes in the SNR. However, noise at the appropriate level can simply be added to the simulated k-space signal.
Lastly, while the 1st-order approximation substantially improves accuracy compared to the conventional 0th-order approximation, we note that actual magnetic–field distributions——especially in nonstandard configurations or fringe fields—may exhibit significant higher-order terms. In principle, extending the model to 2nd-order terms would further improve the accuracy. However, such an extension renders the signal equation analytically intractable for most practical pulse sequences.
5 |. CONCLUSION
We presented a novel method simulating the spatial encoding with highly variable and gradient fields. We derived analytical solutions to the MR signal equation under the assumption of piecewise linear fields, as opposed to the conventional piecewise constant approximation. We demonstrated improved accuracy in capturing intravoxel dynamics and exemplified the benefits with the example of two magnetic field configurations. Our results underscore that accounting for intravoxel field variation facilitates simulations on a coarser grid, which can improve computational feasibility.
Supplementary Material
Funding Information
This work was supported by the NIH/NIBIB; grant P41 EB017183. JA acknowledges support from NIH/NINDS; grant R01 NS131948.
6 |. DATA AVAILABILITY STATEMENT
The simulation software presented in this work is available on https://github.com/radhikatibrewala/1stOrderMRISims. The package is implemented in the Julia language. The repository includes the saddle-shape field configuration and the prostate image file used in this work.
REFERENCES
- 1.Wald Lawrence L, McDaniel Patrick C, Witzel Thomas, Stockmann Jason P, Cooley Clarissa Zimmerman. Low-cost and portable MRI. Journal of Magnetic Resonance Imaging. 2020;52(3):686–696. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Arnold Thomas Campbell, Freeman Colbey W, Litt Brian, Stein Joel M. Low-field MRI: Clinical promise and challenges. Journal of Magnetic Resonance Imaging. 2023;57(1):25–44. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Marques José P, Simonis Frank FJ, Webb Andrew G. Low-field MRI: An MR physics perspective. Journal of magnetic resonance imaging. 2019;49(6):1528–1542. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Stöcker Tony, Vahedipour Kaveh, Pflugfelder Daniel, Shah N Jon. High-performance computing MRI simulations. Magnetic resonance in medicine. 2010;64(1):186–193. [DOI] [PubMed] [Google Scholar]
- 5.Xanthis Christos G, Aletras Anthony H. coreMRI: A high-performance, publicly available MR simulation platform on the cloud. PLoS One. 2019;14(5):e0216594. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Liu Fang, Velikina Julia V, Block Walter F, Kijowski Richard, Samsonov Alexey A. Fast realistic MRI simulations based on generalized multi-pool exchange tissue model. IEEE transactions on medical imaging. 2016;36(2):527–537. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Benoit-Cattin Hugues, Collewet Guylaine, Belaroussi Boubakeur, Saint-Jalmes H, Odet Catherine. The SIMRI project: a versatile and interactive MRI simulator. Journal of Magnetic Resonance. 2005;173(1):97–115. [DOI] [PubMed] [Google Scholar]
- 8.Olver Sheehan. On the quadrature of multivariate highly oscillatory integrals over non-polytope domains. Numerische Mathematik. 2006;103:643–665. [Google Scholar]
- 9.Kumar Ananda, Bottomley Paul A. Optimized quadrature surface coil designs. Magnetic Resonance Materials in Physics, Biology and Medicine. 2008;21:41–52. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Cao Zhipeng, Oh Sukhoon, Sica Christopher T, et al. Bloch-based MRI system simulator considering realistic electromagnetic fields for calculation of signal, noise, and specific absorption rate. Magnetic resonance in medicine. 2014;72(1):237–247. [DOI] [PubMed] [Google Scholar]
- 11.Jochimsen Thies H, Schäfer Andreas, Bammer Roland, Moseley Michael E. Efficient simulation of magnetic resonance imaging with Bloch–Torrey equations using intra-voxel magnetization gradients. Journal of Magnetic Resonance. 2006;180(1):29–38. [DOI] [PubMed] [Google Scholar]
- 12.Endres Jonathan, Weinmüller Simon, Dang Hoai Nam, Zaiss Moritz. Phase distribution graphs for fast, differentiable, and spatially encoded Bloch simulations of arbitrary MRI sequences. Magnetic Resonance in Medicine. 2024;92(3):1189–1204. [DOI] [PubMed] [Google Scholar]
- 13.Arnold T Campbell, Baldassano Steven N, Litt Brian, Stein Joel M. Simulated diagnostic performance of low-field MRI: Harnessing open-access datasets to evaluate novel devices. Magnetic resonance imaging. 2022;87:67–76. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Yablonskiy Dmitriy A, Sukstanskii Alexander L, Ackerman Joseph JH. Image artifacts in very low magnetic field MRI: the role of concomitant gradients. Journal of Magnetic Resonance. 2005;174(2):279–286. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Myers Whittier R, Mößle Michael, Clarke John. Correction of concomitant gradient artifacts in experimental microtesla MRI. Journal of magnetic resonance. 2005;177(2):274–284. [DOI] [PubMed] [Google Scholar]
- 16.Hsu Yi-Cheng, Vesanen Panu T, Nieminen Jaakko O, et al. Efficient concomitant and remanence field artifact reduction in ultra-low-field MRI using a frequency-space formulation. Magnetic resonance in medicine. 2014;71(3):955–965. [DOI] [PubMed] [Google Scholar]
- 17.Volegov PL, Mosher JC, Espy MA, Kraus RH Jr. On concomitant gradients in low-field MRI. Journal of Magnetic Resonance. 2005;175(1):103–113. [DOI] [PubMed] [Google Scholar]
- 18.Tao Shengzhen, Weavers Paul T, Trzasko Joshua D, et al. The effect of concomitant fields in fast spin echo acquisition on asymmetric MRI gradient systems. Magnetic resonance in medicine. 2018;79(3):1354–1364. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Vos Bart, Remis Rob F, Webb Andrew G. Characterization of concomitant gradient fields and their effects on image distortions using a low-field point-of-care Halbach-based MRI system. Magnetic Resonance in Medicine. 2024;91(2):828–841. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The simulation software presented in this work is available on https://github.com/radhikatibrewala/1stOrderMRISims. The package is implemented in the Julia language. The repository includes the saddle-shape field configuration and the prostate image file used in this work.
