
This study developed a method to approximate the covariance matrix associated with the simulation of water molecular diffusion inside the brain tissue. The computation implements the Discontinuous Galerkin method of the diffusion equation. A physically consistent numerical flux is applied to model the interaction between the axon walls and extracellular regions. This numerical flux yields an efficient GPU-CUDA implementation. We consider the two-dimensional case of high axon pack density, valid, for instance, in the brain's corpus callosum region.
Citation: Daniel Cervantes, Miguel angel Moreles, Joaquin Peña, Alonso Ramirez-Manzanares. A computational method for the covariance matrix associated with extracellular diffusivity on disordered models of cylindrical brain axons[J]. Mathematical Biosciences and Engineering, 2021, 18(5): 4961-4970. doi: 10.3934/mbe.2021252
[1] | Abdulhamed Alsisi, Raluca Eftimie, Dumitru Trucu . Non-local multiscale approach for the impact of go or grow hypothesis on tumour-viruses interactions. Mathematical Biosciences and Engineering, 2021, 18(5): 5252-5284. doi: 10.3934/mbe.2021267 |
[2] | Marco Scianna, Luigi Preziosi, Katarina Wolf . A Cellular Potts model simulating cell migration on and in matrix environments. Mathematical Biosciences and Engineering, 2013, 10(1): 235-261. doi: 10.3934/mbe.2013.10.235 |
[3] | Thomas Hillen, Kevin J. Painter, Amanda C. Swan, Albert D. Murtha . Moments of von mises and fisher distributions and applications. Mathematical Biosciences and Engineering, 2017, 14(3): 673-694. doi: 10.3934/mbe.2017038 |
[4] | Benjamin Steinberg, Yuqing Wang, Huaxiong Huang, Robert M. Miura . Spatial Buffering Mechanism: Mathematical Model and Computer Simulations. Mathematical Biosciences and Engineering, 2005, 2(4): 675-702. doi: 10.3934/mbe.2005.2.675 |
[5] | Yuelin Yuan, Fei Li, Jialiang Chen, Yu Wang, Kai Liu . An improved Kalman filter algorithm for tightly GNSS/INS integrated navigation system. Mathematical Biosciences and Engineering, 2024, 21(1): 963-983. doi: 10.3934/mbe.2024040 |
[6] | Abdulhamed Alsisi, Raluca Eftimie, Dumitru Trucu . Nonlocal multiscale modelling of tumour-oncolytic viruses interactions within a heterogeneous fibrous/non-fibrous extracellular matrix. Mathematical Biosciences and Engineering, 2022, 19(6): 6157-6185. doi: 10.3934/mbe.2022288 |
[7] | Alessandro Bertuzzi, Antonio Fasano, Alberto Gandolfi, Carmela Sinisgalli . Interstitial Pressure And Fluid Motion In Tumor Cords. Mathematical Biosciences and Engineering, 2005, 2(3): 445-460. doi: 10.3934/mbe.2005.2.445 |
[8] | Chayu Yang, Jin Wang . Computation of the basic reproduction numbers for reaction-diffusion epidemic models. Mathematical Biosciences and Engineering, 2023, 20(8): 15201-15218. doi: 10.3934/mbe.2023680 |
[9] | Nalin Fonseka, Jerome Goddard Ⅱ, Alketa Henderson, Dustin Nichols, Ratnasingham Shivaji . Modeling effects of matrix heterogeneity on population persistence at the patch-level. Mathematical Biosciences and Engineering, 2022, 19(12): 13675-13709. doi: 10.3934/mbe.2022638 |
[10] | Aníbal Coronel, Fernando Huancas, Ian Hess, Alex Tello . The diffusion identification in a SIS reaction-diffusion system. Mathematical Biosciences and Engineering, 2024, 21(1): 562-581. doi: 10.3934/mbe.2024024 |
This study developed a method to approximate the covariance matrix associated with the simulation of water molecular diffusion inside the brain tissue. The computation implements the Discontinuous Galerkin method of the diffusion equation. A physically consistent numerical flux is applied to model the interaction between the axon walls and extracellular regions. This numerical flux yields an efficient GPU-CUDA implementation. We consider the two-dimensional case of high axon pack density, valid, for instance, in the brain's corpus callosum region.
Diffusion in complex media is a perennial research topic, whose underlying model is a partial differential equation (PDE) of parabolic type. Our motivation comes from the simulation of water diffusion inside the brain tissue (white and grey matter) problem in medical sciences [1].
Simulation of the water diffusion inside the brain tissue is motivated by the analysis of the diffusion magnetic resonance images (dMRI). The diffusion simulation is performed using Monte Carlo methods [2]. This study provides insightful novel theories on the diffusion properties with analytical representations [3] and generates useful data for the validation of model fitting [4]. In this problem, the domain is composed of cell bodies (soma, axons, neurites, glial cells, vessels, etc). Despite some of the cell structures can be approximated with simple geometries, the domains are geometrically complex. In particular, the extracellular spaces present arbitrary shapes (similar to a "gruyere-cheese shape"), hence numerical approximations are required to simulate the molecular diffusivity.
The approximation of the extracellular diffusivity profile on a disordered model of cylindrical brain axons, with the diameters computed from a Gamma distribution, is the focus of this study [2]. The distribution of diameters has been empirically observed in histological studies on ex vivo samples of the brain [5].
The extracellular diffusion process is characterized by the corresponding 3D covariance matrix Σ [6] of a Gaussian Ensemble Average Propagator, i.e., the Spatio-temporal displacement distribution of the water molecules P(x,t) [7]. The Σ eigenvalues (matched with the corresponding eigenvectors) indicate the magnitude and orientational dependency, such that, it is possible to infer extracellular microstructure features like the main orientation of the axon bundles, percentage of the volume occupied by neurons (intracellular signal fraction), amount of diffusion anisotropy of the tissue (fractional anisotropy), and axial and radial diffusivity. Those descriptors computed from Σ have been correlated with several brain damage and diseases [1].
In the Diffusion Weighted Magnetic Resonance (DWMR) medical literature, the covariance matrix is computed using the zeppellin model from the extracellular MR signal, i.e., a limited diffusion tensor model with two equal eigenvalues [6,8]. The estimated Σ is also used to compute synthetic MR signals when the Short-Gradient-Pulse approximation is assumed [7].
The approximation of the covariance matrix is essential to correlate its properties to the microstructural features and their change, respectively, due to, tissue damages associated with brain diseases [1]. The covariance matrix can be obtained from a Gaussian density, which is the average density resulting from the solution of diffusion equations. We contribute by solving these diffusion equations using an ad hoc implementation of the Discontinuous Galerkin (DG) method [9].
In applications, the numerical solution of the PDE is part of the research process. This is performed in tandem, a model is first proposed, then a numerical method for simulation. This work applies the DG method to accomplish both objectives simultaneously.
Our implementation takes advantage of the underlying physical and geometric properties of the problem as posed by the clinicians. The so-called substrates are squared pixel domains that allow a uniform mesh. Also, we suppose that no diffusivity occurs between the axons and the extracellular region (impermeability) [6]. The usual approximation solves the diffusion equation in the extracellular region imposing a zero Neumann condition. The numerical fluxes then model the interaction between the axon walls and the extracellular region. This interaction corresponds to solving the diffusion equation in the whole domain. Thus, null computations are performed in axons. This redundant strategy not only circumvents the computationally expensive task, in Galerkin-type methods, of handling the boundary conditions, but more importantly, it allows the full strength of the DG method, to conduct the time update of the solution in parallel for all elements. A small ODE problem is solved in each element with no communication. Consequently, a GPU-CUDA implementation is appropriate.
The actual problem of water diffusion inside the brain tissue is in 3D. We highlight the modeling and computational features of the DG method. We present computational results only in 2D, but our theoretical framework will be in 3D. The complex extracellular 2D domains used for our simulations are from the assumption that intracellular spaces (axons) can be modeled as cylinders such that the diffusion parallel to the main axon bundle orientation is unhindered, while the study focuses on the estimation of the diffusion properties perpendicular to the axons [10]. The aforementioned assumption is a well-known approximation when the axon pack density is high, as in the brain's corpus callosum region, and employed in various studies [3,4]. The outline is as follows:
Section 2 introduces the initial boundary value problem (IVBP) of the diffusion equation associated with the phenomenon. Next, the basics of the DG method are discussed to present the numerical fluxes modeling the interaction between the axons and the intercellular region. Then, the computational model for GPU-CUDA implementation is described. We complete the methodology with the scheme for computing the covariance matrix. Section 3 provides two numerical examples of the proposed method. First, the analytical solution of a free diffusion problem is considered to gauge the introduced DG-CUDA method and a classical Monte Carlo approach. Second, a benchmark type substrate associated with an ex vivo experiment is introduced to test the computational methodology. A computational comparison using the execution time is also described. We close with conclusions and a brief discussion on future work in Section 4.
We model a substrate occupying a domain (medium) comprised of two regions, the axons, and extracellular complement. The former is nondiffusive and the latter a diffusive region. We assume that the boundary between both regions is reflecting. Initial pulses are prescribed in the extracellular region, far away from the outer boundary which is modeled as a perfect absorber.
Let Ω be the domain occupied by the substrate. This domain is the union of two intertwined adjacent regions, Ωa and Ωe representing the axon and extracellular regions, respectively.
The IVBP consists of finding u that solves the diffusion equation
∂u∂t=∇⋅(k(x)∇u),(x,t)∈Ωe×(0,T), | (2.1) |
given Cauchy data
u(x,0)=u0(x),x∈Ωe, | (2.2) |
and boundary values
∂u∂n=0,(x,t)∈∂Ωe×(0,T), | (2.3) |
u(x,t)=0,(x,t)∈∂Ω×(0,T). | (2.4) |
Here n is the outer unit normal to Ωe.
The Neumann boundary condition (2.3) corresponds to a reflecting boundary, whereas the Dirichlet boundary condition (2.4) to that of a perfect barrier.
The discontinuous diffusion is given by
k(x)={0,x∈Ωak0,x∈Ωe | (2.5) |
for a positive constant k0.
Let Ωe be partitioned into nonoverlapping polygonal elements, e.g. a triangulation. Denote by K≡K−, one of such elements, see Figure 1.
A striking characteristic of the DG method is that it reduces the PDE to a first-order system. Consequently, consider
{q=∇u∂u∂t=∇⋅(kq). | (2.6) |
Multiplying (2.6) by the test functions v=(v1,v2), and v, we obtain after integrating by parts,
∫K−q⋅vdx=∫K−(∇u)⋅vdx=∫∂K−v⋅(un)ds−∫K−u∇⋅vdx |
∫K−utvdx=∫K−∇⋅(kq)vdx=∫∂K−v(kq⋅n)ds−∫K−kq⋅∇vdx |
Continuity is not enforced at the boundary of adjacent elements. Therefore, the boundary terms u, kq are replaced with boundary numerical fluxes u∗≡u∗(u−,u+), (kq)∗≡(kq)∗(k−,q−,k+,q+). As customary, the − superscript denotes limits from the interior of K−, and the + superscript, limits from the exterior.
This yields in element K−
∫K−q⋅vdx=∫∂K−v⋅(u∗n−)ds−∫K−u⋅∇vdx∫K−utvdx=∫∂K−v(kq)∗⋅n−ds−∫K−kq∇⋅vdx | (2.7) |
These numerical fluxes chosen below model the underlying physical phenomena.
Another characteristic of the DG method, is the element-wise approximation of the unknown q and u.
Suppose w is an approximation of any scalar functions q1, q2, u. Then, the approximation within K− is given by
w(x,t)=p∑j=0wj(t)Nj(x). | (2.8) |
For a triangulation, choosing the functions Nj follows the Finite Element Method with Lagrangian interpolation.
We assume that u+ and q+ are known in (2.7). Hence, we solve a differential-algebraic system for u− and q−. The solution in time is advanced by a Runge-Kutta method.
Remark. The solution of the p+1 differential-algebraic system (2.7), is solved independently for each element. In practice p≤3 suffices. Thus, we have small systems, that do not exchange information on each time step, to solve.
No preferred direction of propagation in diffusion phenomena exists, thus for u, a central flux is considered, namely,
u∗=u−+u+2. |
A physical assumption is that there is no flow between axons and the extracellular region. Consequently, for q, we propose the numerical flow
(kq)∗=2k−k+(k−)2+(k+)212(q−+q+). |
This is coined for the problem under consideration. If k−>0 and k+=0, the harmonic mean forces a zero Neumann condition, hence there is no flow trough the boundary of the element K− as required.
The meshing is time-consuming in Galerkin-type methods, as it is boundary conditions handling when assembling the local systems. Here, the domain is divided into square pixels. For meshing, we consider the simplest triangular mesh by separating these squares through the diagonals.
Also in this MRI application, the heat equation is solved in the extracellular region Ωe with Cauchy conditions. No consideration is given to the axon region, Ωa. Nevertheless, we solve the heat equation in elements contained in Ωa where the contribution to the solution is null.
We balance computations on every element. From the remark above, the calculations in (2.7) are element-independent when updating the time. Consequently, the main ingredients for parallel processing using GPUs are met and include small balanced computations with no exchange of information between processors.
Let (xi,yi)∈Ωe, i=1,2,…,m randomly and uniformly in Ωe. Set a final time T.
● For i=1,2,…,m, let Ui(x,y,T) be the solution of the IVBP (2.1)−(2.4), where the Cauchy condition is the Dirac delta function supported in (xi,yi).
● For i=1,2,…,m, let ui(x,y,T) be obtained from Ui(x,y,T) by centering and normalization to yield a density function.
● Construct the mixture model given as
u(x,y)=1mm∑i=1ui(x,y,T). |
● Fit a Gaussian density to u. That is, determine a covariance matrix Σ, such that
u(x,y;Σ)≈12π√|Σ|exp(−12[((x,y)−(μx,μy))TΣ−1((x,y)−(μx,μy))]), |
The covariance matrix is given by,
Σ=(E[(X−μx)(X−μx)]E[(X−μx)(Y−μy)]E[(Y−μy)(X−μx)]E[(Y−μy)(Y−μy)]). |
It is computed by quadrature rules using uij, the values of the numerical solution at the nodes (xi,yj) in the mesh.
In this example, we solve the heat equation with the Cauchy condition as the Dirac delta supported at the origin. The uniform diffusion coefficient is k0=450μm/s2.
We compare the free diffusion approximation (without axons), versus the analytical solution. The latter is a bivariate Gaussian function f(x,y;Σ) defined in (2.4), and the covariance matrix is
Σ=(2Tk002Tk). |
Taking k=450μm/s2 and T=0.036s, the non-zero coefficients in the covariance matrix are equal to 32.4.
Graphical results are shown in Figure 2. The DG-CUDA Gaussian matrix fit for 400×400 is
(32.530.000380.0003832.53) |
An alternative construction of the covariance matrix is using Monte Carlo diffusion simulation [2]. We give the list of the corresponding data in their notation.
Diffusion constant D=4.5e−10, ts=0.036 duration of the diffusion simulation. T=5000 is the number of time steps in the simulation. The step length l is obtained using the relation
l=√4DtsT≈0.11μm. |
The obtained MC Gaussian matrix is
(32.487358329−0.075889940−0.07588994032.378282498) |
Remark. To gauge the approximations we compute the least squares residual
∑i∑j[u(xi,yi;Σ)−uij]2. | (3.1) |
In both cases, the approximation of the Gaussian function is accurate. The least squares residual (3.1) is of the order O(10−8). In practice, the Gaussian density functions coincide. However, the DG-CUDA approximation is structurally more consistent. The matrix is symmetric, the diagonal values coincide and the other terms are two orders of magnitude smaller than those obtained from MC.
We consider a substrate consisting of 1901 nonoverlapping circles, which represent the axons, and consider the regions only within a square, the domain Ω, that measures 50μm on the side (Figure 3). The radius of the circles ranges from 0.150μm to 1.141μm. The extracellular region is the exterior of the circles and the diffusion coefficient is set to k0=450μm/s2.
The ex vivo coefficient oscillates between 450 and 600, depending on the temperature and substance of the medium [11]. The smaller substrate is used.
The substrate under study occupies a square domain of side 50μm. Cauchy condition is given within a centered box of side 20μm and observation time t=0.036s. At this given time, the outer boundary is not reached by diffusion. In all cases, a square grid of K×L≡400×400 mesh is used.
The axon region Ωa is defined by 1901 axons. The diffusion coefficient as in (2.5). The scheme above is applied to a mixture of m=37 densities. We show one PDE solution in Figure 4.
The covariance matrix by the DG-CUDA algorithm is
(19.50−0.0088−0.008819.50) |
and the corresponden one obtained MC Gaussian matrix is
(19.590.0270.02719.50) |
where the relative error between entries is smaller than 0.5%.
Remark. The choice of the sample size, m, for the Gaussian mixture is heuristic. From our experiments, m need not be large. In two dimensions O(10) will suffice.
We summarize the execution time in the following table
K×L | Time stps | No. Deltas | CPU | GPU |
400× 400 | 5184 | 1 | 6585.47 sec. | 5.13649 sec. |
400 × 400 | 5184 | 37 | 21877.252 sec. | 188.597 sec. |
Regardless of the diffusion coefficient, the GPU processing is more than 1000 times faster for the solution of the heat equation with a single delta as Cauchy condition.
For the prototype computation, we implement parallel processing using GPUs in the CUDA language of a DELL laptop with hardware:
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70 GHz
GPU: NVIDIA Corporation GM107GLM [Quadro M1000M]
This study proposed a methodology for the efficient computation of the covariance matrix associated with the extracellular diffusivity profile on a disordered model of cylindrical brain axons. The methodology relies on two strategies; introducing physical numerical fluxes in the Discontinuous Galerkin method and null computations on the axon region for straightforward GPU implementation.
We present satisfactory results on two-dimensional examples that show the proposed methodology outperforms sequential implementations and is more structurally consistent than a Monte Carlo approach.
Presently, we are working toward extending our methodology to the three-dimensional case. We contend that our methodology can include the corresponding complexities in a 3D extension. We mention that the choice of the sample size, m, for the Gaussian mixture is heuristic and as such, an in-depth analysis is required. These issues make up our current and future work.
M. A. Moreles acknowledges partial support from the project CONACYT A1-S-17634. The authors would like to thank Enago (www.enago.com) for the English language review.
All authors declare no conflicts of interest in this paper.
[1] | D. Jones, Diffusion MRI theory methods and applications, Oxford University Press, (2011). |
[2] |
M. G. Hall, D., C. Alexander, Convergence and parameter choice for monte-carlo simulations of diffusion MRI, IEEE Trans. Med Imaging, 28 (2009), 1354-1364. doi: 10.1109/TMI.2009.2015756
![]() |
[3] |
L. M. Burcaw, E. Fieremans, D. S. Novikov, Mesoscopic structure of neuronal tracts from time-dependent diffusion, NeuroImage, 114 (2015), 18-37. doi: 10.1016/j.neuroimage.2015.03.061
![]() |
[4] |
E. Fieremans, D. S. Novikov, J. H. Jensen, J. Helpern, Monte Carlo study of a two-compartment exchange model of diffusion, NMR Biomed., 23 (2010), 711-724. doi: 10.1002/nbm.1577
![]() |
[5] | F. Aboitiz, A. B. Scheibel, R. S. Fisher, E. Zaidel, Fiber composition of the human corpus callosum, Brain Res., 143 (1992), 143-153. |
[6] |
E. Panagiotaki, T. Schneider, B. Siow, M. G. Hall, M. F. Lythgoe, D. C. Alexander, Compartment models of the diffusion mr signal in brain white matter: A taxonomy and comparison, NeuroImage, 59 (2012), 2241-2254. doi: 10.1016/j.neuroimage.2011.09.081
![]() |
[7] | W. S. Price, Pulsed-field gradient nuclear magnetic resonance as a tool for studying translational diffusion: Part 1, Basic theory, Concepts Magn. Reson., (1997), 299-336. |
[8] | C. Pierpaoli, P. Jezzard, P. J. Basser, A. Barnett, G. Di Chiro, Diffusion tensor MR imaging of the human brain, Radiology, (1996), 637-648. |
[9] | B. Cockburn, G. E. Karniadakis, C. W. Shu, Discontinuous Galerkin methods: Theory, computation and applications, volume 11, Springer Science & Business Media, (2012). |
[10] | A. Szafer, J. Zhong, J. C. Gore, Theoretical model for water diffusion in tissues, Magn. Reson. Med., (1995), 697-712. |
[11] |
T. B. Dyrby, L. V. Sogaard, M. G. Hall, M. Ptito, D. C. Alexander, Contrast and stability of the axon diameter index from microstructure imaging with diffusion MRI, Magn. Reson. Med., 70 (2013), 711-721. doi: 10.1002/mrm.24501
![]() |
K×L | Time stps | No. Deltas | CPU | GPU |
400× 400 | 5184 | 1 | 6585.47 sec. | 5.13649 sec. |
400 × 400 | 5184 | 37 | 21877.252 sec. | 188.597 sec. |