Keywords

1 Introduction

With a reported incidence rate as high as 5 % in recent literature [1], hemorrhagic complications pose a high risk of devastating post-operative neurological deficits in functional image-guided neurosurgery. During the pre-surgical planning stage, patient-specific 3D models of the cerebral vasculature are commonly created to guide the neurosurgeon in identifying vessel-free insertion trajectories. In many centers, this task consists of segmenting the cerebral vasculature, either manually or semi-automatically, from a gadolinium-enhanced T1w MRI dataset. However, these models are often incomplete due to the extent of manual labor required and because gadolinium enhancement decreases rapidly in smaller vessels. This work describes a new framework for the automatic segmentation of susceptibility-weighed imaging (SWI) venography datasets.

Susceptibility weighted imaging (SWI) [2] is a relatively new T2*-weighted gradient echo MRI technique that exploits both the magnitude and phase of the complex MRI signal to increase sensitivity to deoxygenated (venous) blood and to deep brain structures rich in iron content. SWI already provides useful information in a variety of clinical applications including traumatic brain injury, vascular malformations, strokes and neurodegenerative disorders [3]. However, for neurosurgical planning purposes, the reversed vessel contrast imaged by SWI poses new segmentation challenges.

Although several automatic vessel segmentation methods have been proposed in the computer-vision literature [4], techniques that were successfully applied to SWI most often fall under the categories of scale-space analysis or statistical models [5]. Multi-scale “vesselness” filtering methods [6, 7] were shown to produce acceptable results on SWI for deep veins [5, 8], but not for superficial veins [9]. This is due to the absence of a fully defined “tubular-like” 3D contrast between surface veins and surrounding skull. However, surface vein avoidance is essential in functional neurosurgery [10]. Alternatively, statistical methods using local intensity thresholds were investigated [5] but they tend to necessitate post-processing to improve the results.

This paper presents a new statistical segmentation framework based on the Markov Random Field (MRF) theory, and extends the previous work of Hassouna et al. [11] originally applied to time-of-flight (TOF) angiography. MRFs are a key step in many segmentation applications to incorporate spatial dependencies among neighboring voxels. For simplicity, the influence of neighboring voxels is often considered isotropic. While this assumption holds for blob-like regions and may hold for the segmentation of major arteries imaged by TOF, an isotropic assumption does not suffice for preserving thinner vessels imaged by SWI. In this work, we describe the implementation of an anisotropic MRF with spatially varying neighborhood influence.

2 Methods

SWI segmentation is implemented as a labeling problem. Each site in the dataset (i.e. the voxels) is labeled as either vessel (\( V \)) or tissue (\( T \)). Let \( S\, = \,\{ 1,\, \ldots \,,\,N\} \) denote the sites and \( L\, = \,\{ V,\,T\} \) the possible labels. Let \( Y\, = \,\{ \,y_{1\,} ,\, \ldots y_{2} , \ldots ,\,y_{N} \} ,\,X\, = \,\{ \,x_{1\,} ,\, \ldots x_{2} , \ldots ,\,x_{N} \} \) denote respectively the observed voxel intensity and the output classification at each site in S. The segmentation is performed in three steps:

  1. 1.

    An initial labeling X is found based on the observed intensities Y by expectation maximization (EM).

  2. 2.

    This initial segmentation is further refined with an auto-logistic MRF model to integrate spatial dependencies about the classification of neighboring sites.

  3. 3.

    A skull stripping procedure is computed to distinguish between surface veins and dark-appearing skull.

2.1 Statistical Model

Vessel and brain tissue classes are modeled as a mixture of two normal distributions with parameters \( \theta_{l} \, = \,\{ w_{l} ,\,u_{l} ,\,\sigma_{l}^{2} \} ,\,l \in \{ V,\,T\} \), where \( w_{l} \) represents the proportions between the two classes. An EM algorithm is applied iteratively for finding the maximum-likelihood estimate of the parameters \( \theta_{v} \, = \,\{ w_{v} ,\,u_{v} ,\,\sigma_{v}^{2} \} \)and \( \theta_{T} \, = \,\{ w_{T} ,\,u_{T} ,\,\sigma_{T}^{2} \} \). During the E step, the model parameters \( \{ \theta_{v} ,\,\theta_{T} \} \)are held fixed and the posterior probability \( f^{k} \left( {l|y_{i} } \right) \) of voxel \( i \) belonging to class \( l \) given its intensity \( y_{i} \) is calculated. During the M step, the model parameters \( \{ \theta_{v} ,\,\theta_{T} \} \) are updated for the next iteration (\( k\, + \,1 \)). The EM algorithm is applied to brain voxels only (an approximate brain mask is estimated using a co-registered T1w dataset). Proportions \( w_{v}^{0} \) and \( w_{T}^{0} \) are initialized to 0.05 and 0.95 since blood vessels occupy less than 5 % of the whole brain volume. A simple Otsu threshold is sufficient to estimate initial \( \{ \mu_{l}^{0} ,\,\sigma_{l}^{0} \} \) values for the \( V \) and \( T \) classes. Upon EM convergence, the labeling X for all sites in S is assigned to maximize \( f\left( {l|y_{i} } \right) \):

$$ x_{i} \, = \,{\text{arg max}_{l \in \{ V,\,T\}}}\,f\left( {l|y_{i} } \right),\,\forall i \in S, $$
(1)
$$ {\text{with }}f\left( {l |y_{i} } \right) = \frac{{w_{l} f\left( {y_{i} |l} \right)}}{{\mathop \sum \nolimits_{j = 1}^{L} w_{j} f\left( {y_{i} |l} \right)}},\,{\text{and }}f\left( {y_{i} |l} \right) = \left( {\frac{1}{{\sqrt {2\pi \sigma_{l}^{2} } }}} \right)\text{exp}\left( {\frac{{ - \left( {y_{i} - \mu_{l} } \right)^{2} }}{{\sqrt {2\sigma_{l}^{2} } }}} \right). $$
(2)

2.2 Anisotropic Auto-logistic MRF Model

We implemented an auto-logistic MRF model to refine the initial EM classification by taking into account the classification of neighboring voxels \( x_{j} \in \eta_{i} \). In our case, η i is defined to contain all sites x j within a 3 × 3 × 3 neighborhood of x i . In the MRF theory, the unknown classification X is modeled as a random process that, according to the Hammersley-Clifford theorem, must obey a Gibbs distribution of the form: \( P\left( X \right) = Z^{ - 1} { \exp }\left( { - U\left( X \right)} \right) \), where \( Z = \sum { \exp }\left( { - U\left( X \right)} \right) \) is a normalizing constant called the partition function containing all possible configurations of X. Clearly, exact computation of the partition function on 3D volumetric data is an intractable combinatorial problem. However, it can be avoided if all parameters defining U(X) are properly estimated. In the auto-logistic MRF case, the energy function U(X) is expressed as the sum of clique potential over all possible cliques (a clique is a subset of sites S). When only up to pair-site interactions are considered, the energy function takes the form:

$$ U\left( X \right) = \,\sum\nolimits_{i \in S} {{ \log }\left( {f\left( {l |y_{i} } \right)} \right)} \, + \,\,\sum\nolimits_{{i \in S,j \in \eta_{i} }} {\beta_{ij} x_{i} x_{\text{j}} } . $$
(3)

In (3), the first summation describes the unary association between voxel intensity y i and class probabilities (see Sect. 2.1). The second summation describes the interaction between classification of voxel x i and neighboring voxel x j . β ij is a clique potential parameter that encodes the specific interaction between each voxel pair. Similarity between neighboring voxels is favored when β ij  > 0. In the isotropic case, β ij is either proportional to distance between sites i and j, or constant (β ij  = β) to reduce the number of estimated parameters. However, an isotropic MRF configuration applied to SWI will eliminate many thin veins simply because a majority of neighboring voxels would be classified as tissue. Instead, we implemented an anisotropic MRF where potential values β ij are configured to favor the influence of neighboring voxels classified as vessel over those classified as tissue. Since the blood vessels in the dataset do not have the same orientation, the MRF is non-homogeneous, meaning the potential values β ij vary with the spatial location of x i . Since it is impractical to estimate β ij for all possible voxel pairs in the dataset, we limit the potential β ij to take a constant value of either β V or β T such that:

$$ \beta_{ij} \, = \,\beta_{{x_{j} }} = \,\left\{ \begin{gathered} \beta_{V} ,\,x_{j} = \,V \hfill \\ \beta_{T} ,\,x_{j} \, = \,T \hfill \\ \end{gathered} \right.. $$
(4)

When β V  > β T , it takes fewer neighboring voxels x j classified as V, within the local neighborhood η i , to change the classification of voxel x i from T to V then in the isotropic case. Reciprocally, it takes more voxels x j classified as T to change the classification of voxel x i from V to T then in the isotropic case. The relationship between β V and β T was estimated using the maximum pseudo-likelihood (PL) estimation method: \( PL\left( X \right) = \prod\nolimits_{{x_{i} \in S}} {P\left( {x_{i} |x_{{\eta_{i} }} } \right)} \), with

$$ P\left( {x_{i} |x_{{\eta_{i} }} } \right)\, = \,\frac{{\exp \left( {\sum_{{j \in \eta_{i} }} \beta_{{x_{j} }} x_{i} x_{j} } \right)}}{{1\, + \,\exp \left( {\sum_{{j \in \eta_{i} }} \beta_{{x_{j} }} x_{j} } \right)}}. $$
(5)

Thus a ratio \( \beta_{V} /\beta_{T} \) of 3.45 was estimated and used. With β V and β T terms described, the MRF is then solved using the iterated conditional mode method (ICM).

2.3 Surface Veins Extraction

Intensity-based classification does not permit separation between surface veins and skull, both labeled as V due to their similar intensities. As a final step, we model surface vasculature as concavities within the tissue surface. A skull-stripping mask that preserves brain tissue and surface veins is first computed via a binary majority filter applied iteratively to the T class. This filter approximates the convex hull of the T class. Then, vessel concavities are detected using a modified ball filter [12] that measures the local widening within a large neighborhood R i for all surface voxels x i classified as V.

$$ E_{R} \left( i \right)\, = \,E_{R}^{'} \left( {\text{i}} \right)\, + \,x_{j} \sum\nolimits_{{j \in R_{i} }} {E_{R}^{'} \left( {\text{j}} \right)} ,\,{\text{with }}E_{R}^{'} \left( {\text{i}} \right)\, = \,\sum\nolimits_{{j \in R_{i} }} {\chi \left( {x_{j} } \right)} ,\,\chi \left( {x_{j} } \right)\, = \,\left\{ {\begin{array}{*{20}c} 0 & {x_{j} \, = \,T} \\ 1 & {x_{j\,} \, = \,V} \\ \end{array} .} \right. $$
(6)

Vessel concavities are detected by computing the ball measure twice, once with R i  = sphere (a standard sphere shape centered at x i ) and once with \( R_{i} = sheet \)(a local 3D sheet-like shape of the brain surface also centered at x i ), to verify that E R = ball (i) ≫ E R = sheet (i).

3 Results and Discussion

SWI acquisitions were performed on a 3T Siemens TIM Trio scanner with a 32-channel head coil and we used a multi-echo acquisition strategy to increase signal-to-noise ratio [13]. Thus, magnitude and phase datasets were acquired from a 3D gradient echo sequence with transverse orientation, 0.5 × 0.5 × 1-mm resolution, 5 equally spaced echo times (TE) within the range 13–41 ms, a repetition time (TR) of 48 ms and a flip angle (α) of 17° for a total acquisition time of 10:24 min using GRAPPA acceleration (factor of 2). The first echo is fully flow compensated. The third and fifth echoes are flow compensated in the readout direction. Magnitude and phase images from each echo are combined by standard SWI reconstruction [2]. SWI reconstructed images are then averaged. The average dataset is resampled to 0.5-mm isotropic resolution, denoised with a non local means algorithm [14] and corrected for intensity non-uniformity [15].

3.1 Qualitative Evaluation

An example of MRF-based SWI segmentation is illustrated in Fig. 1. Figure 1a shows a 10-mm minimum intensity projection (mIP) slab of raw SWI data taken at the level of the lateral ventricles (deep venous system). Figure 1b show the MRF segmentation output and Fig. 1c shows the output of conventional multi-scale vesselness filtering using Frangi et al.’s [6] method with typical parameters: σ = [0.5−2.5], Δσ = 0.25; α = 0.5, β = 0.5, γ = half the maximal Hessian norm. MRF segmentation provides a good fit to the raw SWI data, even for smaller lower-contrast septal and subependymal veins, and compares well with the vesselness output. Good agreement between the two vessel extraction techniques is observed up to voxels with very low vesselness value.

Fig. 1.
figure 1

Illustrative example of MRF-based segmentation at the level of the lateral ventricles. (a) A 10-mm minimum intensity projection (minIP) transverse slab from a raw SWI dataset (b) MRF segmentation. (c) Comparison to scale-space vesselness filtering. (red boxes) ROIs of the deep venous system and left/right sub-cortical veins used for validation of Sect. 3.2. (Color figure online)

The key advantage of MRF segmentation over conventional vesselness filtering is illustrated in Fig. 2. Figure 2a shows a single SWI slice taken at the brain surface level. Figure 2b, c respectively show the output of EM (Sect. 2.1) and MRF/skull-stripping (Sects. 2.2 and 2.3), in comparison to vesselness segmentation (Fig. 2d). At the brain surface, the MRF method achieves proper segmentation of the superior sagittal sinus (SSS) and of smaller superficial vessels. These vessels are not detected by vesselness filtering (see white circles) because they do not fit the tubular assumption. Furthermore, the SSS is particularly challenging to segment on SWI because of the lower contrast. Consequently, after the EM stage, several voxels belonging to the SSS are misclassified as “tissue”. The integration of spatial dependencies (MRF stage) improves the SSS segmentation (see blue arrow). This regularization is achieved without eliminating thin, transversely oriented, vessels (see green arrows).

Fig. 2.
figure 2

Automatic segmentation of the surface vasculature. (a) A raw SWI slice at native resolution. (b) Output of EM segmentation. (c) Output of MRF segmentation and skull stripping (white contour) (d) Comparison with scale-space vesselness filtering. Vesselness filtering does not segment the SSS and the superficial cerebral veins (see white circles). (blue arrow) MRF regularization of SSS (Green arrows) Examples of thin, transversely oriented, vessels preserved during the MRF stage. (Color figure online)

3.2 Quantitative Evaluation

We also quantitatively compared our MRF segmentation against 16 manually segmented SWI ROIs across 4 subjects. For each subject, these ROIs consist of one 10-mm mIP slab of the deep venous system (medial region of Fig. 1a), two 10-mm mIP slabs of the sub-cortical veins on the left and right hemispheres (e.g. lateral regions of Fig. 1a) and one whole slice taken at the brain surface level (e.g. Fig. 2). The kappa index was computed between the MRF and expert-based segmentations (MRF-manual kappa), and between conventional vesselness (υ) and expert-based segmentations (υ-manual kappa). Since the vesselness segmentation is non-binary, we considered the maximal υ-manual kappa index on a range of possible thresholds. Results of the comparison are shown in Table 1. For sub-cortical and deep veins, the MRF-manual kappa index falls in the range [0.70–0.90] with and median kappa of 0.86. Furthermore, the MRF-manual is higher then the maximal υ-manual kappa index for 11 out of 12 slabs. At brain surface, the maximal υ-manual kappa index drops to the range [0.36–0.56] while the MRF-manual kappa index stays in the range [0.77–0.84].

Table 1. Comparison between MRF-manual and maximal (υ)esselness-manual kappa indexes for 16 ROIs accross four subjects.

3.3 Application to Neurosurgical Planning

As stated in introduction, patient-specific 3D models of the cerebral vasculature (and surface vasculature in particular) are often used to identify vessel-free insertion trajectories in minimally invasive functional neurosurgery. Figure 3 shows some examples of cerebrovascular models created from SWI and Gadolinium-enhanced MRI. Four patients who underwent deep brain stimulation (DBS) surgery were scanned with both MRI protocols. The SWI datasets (top row) were segmented using the automatic MRF method. The gadolinium-enhanced datasets (bottom row) were manually segmented on the Medtronic StealthStation® platform by the clinical neuronavigation team and used for planning the actual DBS intervention. The manually processed clinical models may qualitatively appear smoother but are limited to the main vasculature only and the clinical model for subject 4 is particularly incomplete. Automatically processed SWI datasets result in denser models of the surface veins and more side branches can be observed.

Fig. 3
figure 3

(top row) Automatic reconstruction of surface veins by MRF on SWI. (bottom row) Comparison to manual segmentation on gadolinium enhanced MRI, created using the Medtronic StealthStation® platform, and used clinically for DBS planning.

4 Conclusion

Avoiding the cerebral vasculature is essential in functional neurosurgery to minimize risks of post-operative neurological deficits. Due to the high inter-subject variability, the cerebral vasculature must be imaged and segmented for each patient individually. For this purpose, SWI provides more detailed imaging of cerebral veins in comparison to conventional gadolinium protocols without requiring injection of contrast agent. However, automatic segmentation of SWI vasculature is challenging, especially at brain surface, due to the reversed venous contrast. In this work, we presented an anisotropic MRF framework to segment both sub-cortical and the surface vasculature on SWI data. To our knowledge, this is the first method that applies MRF for SWI segmentation and, most importantly, to demonstrate adequate SWI segmentation of the surface vasculature. Future work will concentrate on extending this MRF approach for segmenting SWI veins at the basal ganglia level and distinguishing them from other hypo-intense (iron-rich) nuclei present in this area.