Weighted tissue thickness

Nicolas Cedilnik, PhD; Jean-Marc Peyrat, PhD
inHEART

This is the online version of an article presented at Function Imaging and Modeling of the Heart 2023. A pre-print is available on HAL.

Abstract

Measuring the thickness of a tissue can provide valuable clinical information; anatomical structures segmented on medical images can include sub-structures (“inclusions”) corresponding to a different biological tissue. This article presents a method, based on partial differential equations, to measure the thickness of one specific tissue in this particular configuration.

After describing the mathematical formulation of our “weighted thickness” definition, we show on synthetic geometries in one, and two dimensions that it outputs the expected results. We then present three possible applications of our method on cardiac imaging data: measuring the muscular thickness of a ventricle with fat infiltration; measuring the thickness of an infarct scar; visualising the transmural extent of an infarct scar.

Introduction

Measuring the thickness of an anatomical structure is a common task for radiologists. More specifically, in the field of cardiology, it is often needed to measure the thickness of the myocardial muscle, as it convey information about its health status, which has been shown to be related to its electrophysiological properties (Ghannam Michael et al. (2018),Takigawa et al. (2019)).

The visible myocardium segmented on medical images can have inclusions of non-muscle tissue such as fat infiltration, calcifications, or fibrosis. It can happen that we are interested in measuring the thickness of the actual muscle fibers, ignoring these inclusions (fig. 1). In this article we describe a method to perform this task, and show that it can reciproqually be used to measure the thickness of the inclusion.

Figure 1: Illustration of the problem adressed by our method. We want to measure the thickness of R, excluding the thickness of the inclusions, ie the length of the thickness line, exclusing the dotted part. \partial_0 R: inner boundary. \partial_1 R: outer boundary.

Methodology

Our method is an extension of the method described by Yezzi and Prince (Yezzi and Prince (2003)).

Correspondence trajectories

Briefly, Yezzi and Prince define thickness at each point \(x\) of the tissue region \(R\) as the total arclength of a unique curve, passing through \(x\). This curve originates on the the inner boundary of the tissue region \(\partial_0 R\), and terminates on its outer boundary \(\partial_1 R\) (see fig. 1)

Such curves can be obtained by solving the Laplace equation over R:

\[ \Delta u = 0 \](1)

with the Dirichlet boundary conditions:

\[ u(\partial_0 R) = 0 \textnormal{~and~} u(\partial_1 R) = 1\](2)

\(u\) defines a scalar field in \(R\) and is used to define curves within \(R\) with the tangent field \(\overrightarrow{T}\):

\[ \overrightarrow{T} = \frac{\nabla u}{|| \nabla u ||} \](3)

For didactic purposes, in fig. 1 the curve is represented as a straight dotted line (“thickness”), but \(\overrightarrow{T}\) actually defines curvy trajectories for complex shapes of \(R\).

Arclength computation

Yezzi and Prince (Yezzi and Prince (2003)) define the length functions \(L_0\), where \(L_0(x)\) gives the arclength of the correspondence trajectory between \(\partial_0 R\) and \(x\) (reciprocally, \(L_1\)(x) between \(\partial_1 R\) and \(x\)).

\[ \nabla L_0 \cdot \overrightarrow{T} = 1, \textnormal{~with~} L_0(\partial_0 R) = 0 \](4)

\[ -\nabla L_1 \cdot \overrightarrow{T} = 1, \textnormal{~with~} L_1(\partial_1 R) = 0 \](5)

Thickness at every point \(x\) is then defined by summing these length functions:

\[ W(x) = L_0(x) + L_1(x) \](6)

Weighted arclength

To account for the inclusion of tissue which thickness we want to exclude, we propose to replace the right term (constant) of eq. 4 and eq. 5 by a function \(f\) varying over the tissue region.

\[ \nabla L_0 \cdot \overrightarrow{T} = f(x) \](7)

\[ -\nabla L_1 \cdot \overrightarrow{T} = f(x) \](8)

We call \(f\) the arclength weight function and it has the following properties:

\(f(x)\) can also take any value in the \([0, 1]\) interval. This can be useful to account for partial volume effects by using a transfer function between the intensity (eg, Hounsfield Units) of the medical image and \(f\).

Ray-tracing as a possible alternative

Another approach to achieve comparable measurements is to use ray-tracing. In such framework, one needs to define straight lines emanating from one surface and measure the length of the segment between the two surfaces \(\partial_0 R\) and \(\partial_1 R\). Typically, these lines would be normal to the surface of the considered anatomical structure at the point where they emanate. The measured distance (ie, the tissue thickness) could be similarly weighted with the weight function \(f\).

However, our methodology presents several advantages over this approach:

Implementation

Algorithm

It has been shown (Yezzi and Prince (2003)) that computing eq. 4 and eq. 5 over \(R\), in 3D amounts to solving (equations (8) and (9) of Yezzi and Prince (2003))

\[ L_0[i, j, k]=\frac{f(x)+\left|T_x\right| L_0[i \mp 1, j, k]+\left|T_y\right| L_0[i, j, \mp 1, k]+\left|T_z\right| L_0[i, j, k \mp 1]}{\left|T_x\right|+\left|T_y\right|+\left|T_z\right|} \]

\[ L_1[i, j, k]=\frac{f(x)+\left|T_x\right| L_1[i \pm 1, j, k]+\left|T_y\right| L_1[i, j, \pm 1, k]+\left|T_z\right| L_1[i, j, k \pm 1]}{\left|T_x\right|+\left|T_y\right|+\left|T_z\right|} \]

NB: in Yezzi and Prince (2003), \(f(x)\) is a constant equal to 1.

Numerical solving

Results can be obtained by the same methods described by Yezzi et Prince (Yezzi and Prince (2003)). Iterative approaches until convergence are possible, but a fast-marching-like algorithm is more efficient (computational resource-wise), especially in a single-threaded context, since it requires a single pass over \(R\), in theory. However we want to note here, than unlike Yezzi and Prince (2003) describe, our experiments showed that this fast-marching-like approach does not reach convergence in a single pass. We propose an iterative/fast-marchine-like combined approach where the traversal order of the first pass is memorized for subsequent passes, reaching convergence more rapidly than a naive iterative approach.1

Results on toy geometries

One dimension

Figure 2: Toy example in 1D. From top to bottom, each row has an inclusion with a increasing weight. From left to right: scalar field u (“diffusion”) from eq. 1 and tangent field \overrightarrow{T} (eq. 3); weight function f; weighted arclengths L0 and L1 (eq. 4, eq. 5) and the resulting weighted thickness.

We conducted experiments in one dimension to verify that the results were those expected. We set correspondence trajectories to straight horizontal lines and set a 4-element wide “hole” along these trajectories where the weight function values ranged from 0 to 1 (fig. 2).

As expected, the resulting weighted thickness \(W_p(x)\) equals to the number of elements \(n\) in R along the horizontal line when the weight function \(f(x)\) is set to 1 along the line, corresponding to the non-weighted thickness computation. When \(f(x_{\textnormal{holes}}) = 0\), \(W_p(x) = n - n_{\textnormal{holes}}\). For \(0 < f(x_{\textnormal{holes}}) < 1\), \(n < W_p(x) < - n_{\textnormal{holes}}\).

Two dimensions

Figure 3: Toy example in 2D. Refer to the legend of fig. 2 for details.

For illustrative purposes, before showing applications on clinical data in 3D, we also present a 2 dimensional toy geometry (fig. 3). It resembles a radiological “short-axis view” of a human heart, in which the myocardium presents inclusion of pixels where \(f(x) < 1\). As can be seen on fig. 3 (rightmost picture), the parts of the (toy) myocardium on the left where such inclusions are present present a smaller weighted thickness values compared to the surrounding, “non-weighted” regions.

Applications

In this section we present possible applications of our method on clinical data.

Workflow

For all clinical applications, the preliminary step is a segmentation of the structure that we want to measure. For the myocardium, this is typically done by segmenting the blood pool inside the cardiac cavities to create an endocardial binary mask, and the outer layer of the myocardial wall to create an epicardial mask (Komatsu et al. (2013)).

One then has to define the weight function \(f\). The way it is defined varies depending on the application, as shown in the following sections.

Muscle-only thickness

Figure 4: Myocardium-only thickness. From left to right: (top) CT image showing fat inclusions in the left myocardium (red arrows); (bottom) result of f(x); non-weighted thickness; weighted thickness showing more severe thinning. The thicknesses are shown both on a 2D slice (top) and projected on a surfacic mesh of the ventricular wall.

Fat and calcification inclusions in the myocardium are common. Evaluating the thickness of the muscle fibers excluding these inclusions is the most straightforward application of our method.

The Houndsfield units (HU) of muscle and fat are close, especially in the context of iodine-injected CT. After segmentation, we performed a histogram analysis of HU values within the myocardium to determine the peak value \(P\), and standard deviation \(\delta\). We define a transfer function to set \(f(x)\) depending on the HU such that:

An example result is shown on fig. 4.

Scar thickness

Figure 5: Scar thickness. From left to right: MR image with late gadolinium enhancement typical of scar tissue (outlined in red); scar thickness visualise overlayed on a MR slice; scar thickness projected on a surfacic mesh

Our method can also be used to quantify the local thickness of an infarct scar. To achieve this, after segmentation of the endocardial and epicardial masks, one has to segment the scar mask (how to obtain such segmentation is outside the scope of this article).

The weight function \(f\) is then defined such that \(f(x) = 0\) in the myocardium and \(f(x) = 1\) in the scar. This can be used to visually assess the thickness of the fibrosis, as shown on fig. 5

Scar transmurality

Figure 6: Scar transmurality. From left to right, total, total wall thickness, scar thickness, scar transmurality. Top images are overlay of the thickness values over the original MR image, bottom images are projections of the values on a surfacic mesh.

Instead of the absolute thickness of the scar, in millimeters, our method can also be used to visualise the local proportion of fibrosis in the myocardial wall, a ratio we call scar transmurality. A value of 1 would mean that an area of the myocardial wall is pure fibrosis and reciproqually, a value of 0 must be interpreted as the absence of fibrosis in this area, ie. no ischemic scar.

To obtain such measure, a possible approach is to:

  1. Compute the non-weighted thickness of the wall, ie, setting \(f(x) = 1\) all over the myocardial wall.
  2. Perform the voxel-wise ratio of scar thickness (see previous section) over the total thickness.

The transmural extent, i.e., the scar transmurality is defined for every voxel of the myocardial wall. See fig. 6 for an example result.

Conclusion

In this article, we defined a measure we named weighted thickness, suited to measure the thickness of a tissue on medical images, when it presents inclusions of a different tissue that we want to exclude from the measure. It does so by giving voxels different weights depending on a weight function that must be defined accordingly to the considered application. Like other partial differential equation-based thickness measures, it outputs a scalar map of the same dimensions as the input segmentation, in which each pixel (or voxel) has a thickness value, coherent from the inner to the outer boundary of the measured structure.

The main limitation of our article is that we do not evaluate the clinical relevance of the weighted thickness measure. In particular, the transfer function described in \(\ref{sec:muscle}\) has been arbitratily defined and would require tuning and validation for the implied application, ie defining the health status of the myocardial on CT images. Our future work will focus on such validation.

Cedilnik, Nicolas, Josselin Duchateau, Rémi Dubois, Pierre Jaïs, Hubert Cochet, and Maxime Sermesant. 2017. VT Scan: Towards an Efficient Pipeline from Computed Tomography Images to Ventricular Tachycardia Ablation.” In Functional Imaging and Modelling of the Heart, 271–79. Lecture Notes in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-59448-4_26.
Ghannam Michael, Cochet Hubert, Jaïs Pierre, Sermesant Maxime, Patel Smita, Siontis Konstantinos C., Morady Fred, and Bogun Frank. 2018. “Correlation Between Computer Tomography-Derived Scar Topography and Critical Ablation Sites in Postinfarction Ventricular Tachycardia.” Journal of Cardiovascular Electrophysiology 29 (3): 438–45. https://doi.org/10.1111/jce.13441.
Komatsu, Y., H. Cochet, A. Jadidi, F. Sacher, A. Shah, N. Derval, D. Scherr, et al. 2013. “Regional Myocardial Wall Thinning at Multidetector Computed Tomography Correlates to Arrhythmogenic Substrate in Postinfarction Ventricular Tachycardia: Assessment of Structural and Electrical Substrate.” Circulation: Arrhythmia and Electrophysiology 6 (2): 342–50. https://doi.org/10.1161/CIRCEP.112.000191.
Rapaka, Saikiran, Tommaso Mansi, Bogdan Georgescu, Mihaela Pop, G. Wright, Ali Kamen, and Dorin Comaniciu. 2012. LBM-EP: Lattice-Boltzmann Method for Fast Cardiac Electrophysiology Simulation from 3D Images.” Medical Image Computing and Computer-Assisted Intervention–MICCAI 2012, 33–40. http://www.springerlink.com/index/N8426P481PW1KQ14.pdf.
Takigawa, Masateru, Ruairidh Martin, Ghassen Cheniti, Takeshi Kitamura, Konstantinos Vlachos, Antonio Frontera, Claire A. Martin, et al. 2019. “Detailed Comparison Between the Wall Thickness and Voltages in Chronic Myocardial Infarction.” Journal of Cardiovascular Electrophysiology 30 (2): 195–204. https://doi.org/10.1111/jce.13767.
Yezzi, A. J., and J. L. Prince. 2003. “An Eulerian PDE Approach for Computing Tissue Thickness.” IEEE Transactions on Medical Imaging 22 (10): 1332–39. https://doi.org/10.1109/TMI.2003.817775.

  1. An informal benchmark with a real left ventricular wall geometry of 363268 voxels (voxel spacing = 0.8 mm), on an AMD Ryzen 9 3950X CPU, single-threaded, took 11.2 ± 0.2 seconds for the iterative approach vs 7.5 ± 0.2 seconds for the semi-ordered approach over 10 runs.↩︎