3778

EPTlib: an open-source C++ library of electric properties tomography methods
Alessandro Arduino1, Umberto Zanovello1, Luca Zilberti1, and Oriano Bottauscio1
1Istituto Nazionale di Ricerca Metrologica (INRIM), Torino, Italy

Synopsis

This abstract introduces EPTlib, an open-source, extensible C++ library collecting electric properties tomography (EPT) methods. Currently, the library implements three methods (Helmholtz-EPT, convection reaction–EPT and gradient-EPT), but the list will be updated in the future. EPTlib comes along with a console application that allows to run all the implemented methods. After a brief description of the software architecture and of the EPT methods, an example of usage of each implemented method with simulated input data is provided.

INTRODUCTION

Electric properties tomography (EPT) is a quantitative imaging technique based on MRI conceived to measure, in a non-invasive way, the electric properties (EPs), conductivity $$$\sigma$$$ and permittivity $$$\varepsilon$$$, of human body tissues. Despite being a relatively novel technique, a plethora of methods1,2,3,4,5 have been proposed for its practical implementation.
EPTlib6 is an open-source C++ library shared on github, that collects EPT methods to facilitate their comparison and to attract new scientists, that could be discouraged by the large number of proposed methods, to contribute in EPT development.
Three methods are currently implemented in EPTlib: Helmholtz-EPT (H-EPT),1 convection reaction–EPT (CR-EPT)2,3 and gradient-EPT (G-EPT).4 However, the design of the library is such that it can be easily extended by implementing new methods.

SOFTWARE ARCHITECTURE

The EPT methods are implemented in EPTlib as C++ classes derived from a common abstract class collecting the basic features of EPT methods. The abstract class guarantees that all implemented methods receive the transmit sensitivity and/or the transceive phase, solve the reconstruction problem and return the conductivity and/or permittivity according to the same set of rules. The option to post-process the results by applying a median filter, whose window is possibly deformed according to the anatomical geometry of the tissues in a reference image, is managed by the abstract class, as well.
Along with the C++ library, EPTlib comes with a console application that allows to run all the methods implemented in the library. The application is set-up by a configuration file in toml format and handles binary input and output files in hdf5 format.

IMPLEMENTED METHODS

H-EPT1 retrieves the EPs according to$$\varepsilon-\text{i}\frac{\sigma}{\omega}=-\frac{\nabla^2B_1^+}{\omega^2\mu_0B_1^+}\,,$$where $$$\omega$$$ is the angular frequency, $$$\text{i}$$$ is the imaginery unit, $$$\mu_0$$$ is the magnetic permeability of vacuum and $$$B_1^+$$$ is the measured complex transmit sensitivity, whose phase is approximated by half the transceive phase $$$\varphi^\pm$$$. If only the transmit sensitivity $$$|B_1^+|$$$ or the transceive phase are provided to EPTlib, the magnitude- or phase-based approximation of H-EPT1$$\varepsilon=-\frac{\nabla^2|B_1^+|}{\omega^2\mu_0|B_1^+|}\,,\quad\text{and}\quad\sigma=\frac{\nabla^2\varphi^\pm}{\omega\mu_0}\,,$$is applied to retrieve one EP.
CR-EPT2 estimates the EPs by solving the partial differential equation (PDE) in conservative form$$\nabla\cdot\left(\gamma\left(\nabla{}B_1^+-\text{i}\nabla\times(B_1^+\hat{z})\right)\right)=-\omega^2\mu_0B_1^+\,,$$where $$$\gamma=(\varepsilon-\text{i}\sigma/\omega)^{-1}$$$ is the unknown and $$$z$$$ is the longitudinal direction. The PDE is solved numerically with a second order finite difference scheme. An artificial diffusion term can be added to stabilize the procedure. If only the transceive phase $$$\varphi^\pm$$$ is provided to EPTlib, the phase-based approximation of CR-EPT3 is applied. The approximation solves, with a stable numerical method based on an upwind finite difference scheme, the real-valued PDE$$\nabla\cdot\left(\rho\nabla\varphi^\pm\right)=2\omega\mu_0\,,$$where $$$\rho=\sigma^{-1}$$$ is the unknown. Artificial diffusion can be introduced as a further stabilization. If the longitudinal variation of the EPs is negligible, the computational burden can be reduced by solving the PDE in two dimensions.
G-EPT4 is implemented in two steps. First, the gradient of the logarithm of the EPs, $$$\boldsymbol{g}=\nabla\text{log}(\varepsilon-\text{i}\sigma/\omega)$$$, is computed by solving for each voxel a linear system of equations like$$-\text{i}2\nabla{}B_{1,i}^{+,\text{r}}\cdot\nabla\varphi^+_0+\nabla{}B_{1,i}^{+,\text{r}}\cdot\left(g_+,-\text{i}g_+,g_z\right)+B_{1,i}^{+,\text{r}}\vartheta^+=\nabla^2B_{1,i}^{+,\text{r}}\,,$$with respect to the unknowns $$$\nabla\varphi_0^+$$$, $$$g_+$$$, $$$g_z$$$ and $$$\vartheta^+$$$. In the latter, $$$\varphi^+_0$$$ is the reference transmit phase, $$$B_{1,i}^{+,\text{r}}=|B_{1,i}^+|\text{exp}(\text{i}(\varphi_i^\pm-\varphi_0^\pm))$$$ is the measurable part of the transmit sensitivity of the $$$i$$$-th transmit channel, $$$g_+=g_x+\text{i}g_y$$$ and $$$\vartheta^+=-\omega^2\mu_0(\varepsilon-\text{i}\sigma/\omega)+|\nabla\varphi_0^+|^2-\text{i}\nabla^2\varphi_0^++\text{i}\nabla^2\varphi_0^+\cdot(g_+,-\text{i}g_+,g_z)$$$. Then, the gradient is inverted by solving the minimization problem$$\varepsilon-\text{i}\frac{\sigma}{\omega}=\text{argmin}_u\left(\|g_+[u]-g_+\|^2+\|g_z[u]-g_z\|^2\right)\,,$$with the EPs constrained to a given value in a seed point selected by the user. The minimization is performed by solving the associated Euler equation with the finite element method. Also in this case the computational cost can be reduced by solving the problem in two dimensions. The implementation of G-EPT in EPTlib is still under development in order to remove the need of a seed point selected in advance by the user.
For all the implemented methods, the spatial derivatives are evaluated using the Savitzky-Golay filter7 with a kernel whose shape and size are arbitrarily chosen by the user. All the methods accept only one receive channel, whilst G-EPT needs more than 4 transmit channels.

EXAMPLE OF USAGE

The implemented methods are tested on noiseless virtual measurements obtained by simulating the head of Duke8 radiated by a 1.5 T low-pass body coil and a 7 T 8-channel head coil. H-EPT and CR-EPT are applied with phase-approximation to the 1.5 T data according to the configuration files in Figure 1. CR-EPT has more operative parameters than H-EPT, precisely the boundary condition $$$\sigma=0.4$$$ S/m (skin conductivity), the choice of a three-dimensional evaluation and the absence of artificial diffusion. The results are shown in Figure 2. G-EPT is applied to the 7 T data according to the configuration file in Figure 3, where a two-dimensional reconstruction is selected and a seed point is defined. Figure 4 reports the result. Savitzky-Golay filter is applied on a minimal cross-shaped kernel for all the methods.

CONCLUSION

EPTlib is a newborn library with the ambition of growing to collect all the EPT methods proposed in literature. Contributors are welcomed to join in EPTlib development.

Acknowledgements

The results here presented have been developed in the framework of the 18HLT05 QUIERO project. This project has received funding from the EMPIR programme co-financed by the Participating States and from the European Union’s Horizon 2020 research and innovation programme.

References

1. Voigt T, Katscher U, and Doessel O. Quantitative conductivity and permittivity imaging of the human brain using electric properties tomography. Magn Reson Med. 2011; 66:456–466.

2. Hafali FS, Oran OF, Gurler N, and Ider YZ. Convection-reaction equation based magnetic resonance electrical properties tomography (cr-MREPT). IEEE Trans Med Imag. 2014; 33:777–793.

3. Gurler N, and Ider YZ. Gradient-based electrical conductivity imaging using MR phase. Magn Reson Med. 2017; 77:137–150.

4. Liu J, Zhang X, Schmitter S, et al. Gradient-based electrical properties tomography (gEPT): a robust method for mapping electrical properties of biological tissues in vivo using magnetic resonance imaging. Magn Reson Med. 2015; 74:634–646.

5. Katscher U, Kim D-H, Seo JK. Recent progress and future challenges in MR electric properties tomography. Computational and mathematical methods in medicine. 2013; 546562.

6. Arduino A. EPTlib. https://eptlib.github.io/, 2020. Accessed: 2020-12-07.

7. Savitzky A, Golay MJE. Smoothing and differentiation of data by simplified least squares procedures. Analytical chemistry. 1964; 36:1627–1639.

8. Christ A, Kainz W, Hahn EG, et al. The Virtual Family – development of surface-based anatomical models of two adults and two children for dosimetric simulations. Phys Med Biol. 2010; 55:N23–N38.

Figures

Configuration files in toml format for the H-EPT and CR-EPT examples. The latter has additional parameters with respect to the former. Since only the transceive phase is defined as input, the phase-based approximation of the methods is used.

Distribution of the electric conductivity at 64 MHz (corresponding to 1.5 T) in a section of the head of Duke and its estimation obtained with H-EPT and CR-EPT.

Configuration file in toml format for the G-EPT example.

Distribution of the electric conductivity at 300 MHz (corresponding to 7 T) in a section of the head of Duke and its estimation obtained with G-EPT.

Proc. Intl. Soc. Mag. Reson. Med. 29 (2021)
3778