Abstract
Intra-operative brain shift is a well-known phenomenon that describes non-rigid deformation of brain tissues due to gravity and loss of cerebrospinal fluid among other phenomena. This has a negative influence on surgical outcome that is often based on pre-operative planning where the brain shift is not considered. We present a novel brain-shift aware Augmented Reality method to align pre-operative 3D data onto the deformed brain surface viewed through a surgical microscope. We formulate our non-rigid registration as a Shape-from-Template problem. A pre-operative 3D wire-like deformable model is registered onto a single 2D image of the cortical vessels, which is automatically segmented. This 3D/2D registration drives the underlying brain structures, such as tumors, and compensates for the brain shift in sub-cortical regions. We evaluated our approach on simulated and real data composed of 6 patients. It achieved good quantitative and qualitative results making it suitable for neurosurgical guidance.
Keywords: 3D/2D Non-rigid registration, Physics-based Modelling, Augmented Reality, Image-guided Neurosurgery, Shape-from-template
1. Introduction
Brain shift is a well-known intra-operative phenomenon that occurs during neurosurgical procedures. This phenomenon consists of deformation of the brain that changes the location of structures of interest from their locations in pre-operative imaging [2] [17]. Neurosurgical procedures are often based on pre-operative planning. Therefore, estimating intra-operative brain shift is important since it may considerably impact the surgical outcome. Many approaches have been investigated to compensate for brain shift, either using additional intra-operative imaging data [14] [20] [11] [21] or advanced brain models to predict intra-operative outcome pre-operatively [3] [8] [7]. The latter approach has the advantage of being hardware-independent and does not involve additional imaging in the operating room. However, even sophisticated brain models have difficulty modeling events that occur during the procedure. Additional data acquisition is then necessary to obtain a precise brain shift estimation. Various types of imaging techniques have been proposed to acquire intra-operative information such as ultra-sound [11] [21] [20], Cone-Beam Computed Tomography [19] or intra-operative MRI [14].
During a craniotomy, the cortical brain surface is revealed and can be used as an additional source of information. Filipe et al. [16] used 3 Near-Infrared cameras to capture brain surface displacement which is then registered to MRI scans using the coherent point drift method by considering vessel centerlines as strong matching features. A new deformed MRI volume is generated using a thin plate spline model. The approach presented by Luo et al. [15] uses an optically tracked stylus to identify cortical surface vessel features; a model-based workflow is then used to estimate brain shift correction from these features after a dural opening. Jiang et al. [12] use phase-shifted 3D measurement to capture 3D brain surface deformations. This method highlights the importance of using cortical vessels and sulci to obtain robust results. The presence of a stereo-miscroscope in the operating room makes it very convenient to deploy such methods clinically. Sun et al. [23] proposed to pre-compute brain deformations to build an atlas from a sparse set if image-points extracted from the cortical brain surface. These image-points are extracted using an optically tracked portable laser range scanner. Haouchine et al. [9] proposed to use a finite element model of the brain shift to propagate cortical deformation captured from the stereoscope to substructures. In a similar way Mohammadi et al. [18] proposed a projection-based stereovision process to map brain surface with a pre-operative finite element model. A pre-defined pattern is used to recover the 3D brain surface. In order to build a dense brain surface and gather more precise positions, Ji et al. [10] proposed a stereo-based optical flow shape reconstruction. The 3D shapes are recovered at different surgical stages to obtain undeformed and deformed surfaces. These surfaces can be registered to determine the deformation of the exposed brain surface during surgery.
Contribution: We propose a novel method to register pre-operative scans onto intra-operative images of the brain surface during the craniotomy. As shown in the pipeline of figure 1, our method uses images from a surgical microscope (or possibly a ceiling mounted camera), rather than intra-operative ultrasound or MRI which requires significant cost and time. Unlike previous methods, we rely solely on a single image to avoid tedious calibration of the stereo camera, laser range finder or optical stylus. Our method considers cortical vessels centerlines as strong features to drive the non-rigid registration. The intra-operative centerlines are automatically extracted from the image using convolutional deep neural networks, while the pre-operative centerlines are modelled as a network of linked beams capable of handling non-linear deformations. Our approach is formulated as a force-based shape-from-template problem to register the undeformed pre-operative 3D centerlines onto the deformed intra-operative 2D centerlines. This problem is solved by satisfying a combination of physical and projective constraints. We present our results through the microscope occulars using Augmented Reality view by overlaying the tumor model in the miscropcic view after accounting for the estimated brain shift deformation.
2. Method
2.1. Extracting 2D Cortical Brain Vessels
To extract the vessels from microscopic images we rely on a deep convolutional network following a typical U-Net architecture [22]. The input is a single RGB image of size 256 × 256 × 3 and the final layer is a pixel-wise Softmax classifier that predicts a class label {0, 1} for each pixel. The output image is represented as a binary image of size 256 × 256 as illustrated in Figure 2. the segmentation can suffer from class imbalance because microsopic images of the cortical surface are composed of veins, arteries and parenchyma of different sizes. We thus rely on a weighted cross-entropy loss L to account for imbalanced depths [6], formulated as follows:
(1) |
where n is the number of pixels, C is the set of classes, is the ground truth label of pixel i, ci is the probability of classifying pixel i with class ci. (zi, ci) is the output of the response map and is the class-balanced weight for class ci, with being the frequencies of class ci and med(·) the median. Once segmented, the vessel centerlines are extracted from the binary image by skeletonization. We denote v, the vector of 2D points corresponding to the intra-operative centerlines.
2.2. 3D Vascular Network Modelling
Let us denote u the vector of 3D vertices representing the vessel centerlines derived from MRI scans. This set of vertices is used to build a non-rigid wire-like model that represents the behaviour of cortical vessels. More precisely, the vessels are modeled with serially linked beam elements that can handle geometric non-linearities while maintaining real-time computation. This model has previously been used to simulate guide wires and catheters [4]. Each beam element is delimited by two nodes each having 3 spatial and angular degrees of freedom. These node positions relate to the forces applied to them thanks to a stiffness matrix Ke and account for rotational degrees of freedom through a rotational matrix Re. At each node i, the internal forces fi generated by the deformation of the structures is formulated as:
(2) |
where e is the index of the two beams connected to this ith node. ui−1, ui and ui+1 are the degrees of freedom vectors of the three nodes (respectively i − 1, i, i + 1) and belong to the two beams in the global frame. uej denotes the middle frame of the jth beam that is computed as an intermediate between the two nodes of the beam, where urest corresponds to the degrees of freedom at rest in the local frame. The global force f emanating from the 3D vessels can be computed as , with nu being the number of nodes of the vascular tree.
2.3. Force-based Shape-from-Template
A shape-from-template problem is defined as finding a 3D deformed shape from a single projected view knowing the 3D shape in rest configuration [1]. In our case, the 3D shape at rest consists of the pre-operative 3D centerlines u. The single projected view consists of the 2D intra-operative centerlines v. The unknown 3D deformed shape δu is the displacement field induced by a potential brain shift. As in most registration methods, an initial set of nc correspondences c between the image points and the model points has to be established. We thus initialise our non-rigid registration with a rough manual rigid alignment. Once aligned, a vector c is built so that if a 2D point vi corresponds to a 3D point uj then ci = j for each point of the two sets. Assuming that the camera projection matrix P is known and remains constant, registering the 3D vessels to their corresponding 2D projections amounts to minimize the re-projection error for i ∈ nc. However, minimizing this error does not necessarily produces a correct 3D representation since many 3D shapes may have identical 2D projections. To overcome this issue, we add to the re-projection constraints the vessels’ physical priors following the beams model introduced in Eq. 2. This will force the shape of the vascular tree to remain consistent in 3D while minimizing the reprojection error in 2D. This leads to the following force minimization expression:
(3) |
where κ is the stiffness coefficient that permits the image re-projection error to be translated to an image bending force. Note the subscript ci that denotes the correspondence indices between the two point sets. This minimization can be seen as enforcing 3D vessel centerlines to fit sightlines from the camera position to 2D vessels centerlines while maintaining a coherent 3D shape.
2.4. Mapping Tumors with Cortical Vessels Deformation
In order to propagate the surface deformation to tumors and other sub-cortical structures, we use a linear geometrical barycentric mapping function. We restrict the impact of the cortical vessel deformations to the immediate underlying structures (see Figure 6).
Formally speaking, if we denote the vector of vertices representing a 3D tumor by t, we can express each vertex ti using barycentric coordinates of facet vertices u, such that , where ϕ(x, y, z) = a + bx + cy with (a, b, c) being the barycentric coordinates of the triangle composed of nodal points uj, with 1 ≤ j ≤ 3. This mapping is computed at rest and remains valid during the deformation.
3. Results
We tested our method on simulated data of a 3D synthetic human brain. The 3D vessel centerlines were extracted from the vessels mesh surface using a mean curvature skeletonization technique. The number of centerline nodes to build the wire-like model is set in a range between 12 and 30 nodes (only a subset of the vascular network has been considered). The stiffness matrix of the vessels is built with a Young’s modulus set to 0.6 MPa and Poisson’s ratio to 0.45 to simulate a quasi-elastic and incomprehensible behaviour where vessels thickness is set to 0.5 mm [5]. We used the Sofa framework (www.sofa-framework.org) to build the 3D beam-elements model.
We quantitatively evaluated our method by measuring the target registration error (TRE) on different locations. We considered four in-depth locations from 0 mm to 45 mm, 0 mm being the cortical surface. We simulated a brain shift to mimic a protrusion deformation that can occur due to brain swelling after the craniotomy. The deformations were of increasing amplitudes: Def1 = 1.7 mm, Def2 = 4 mm, Def3 = 6 mm and Def4 = 10 mm. We extracted 2D centerlines of each deformation by projecting the deformed 3D centerlines w.r.t a known virtual camera. We added Gaussian noise with a standard deviation of 5 mm and a 5 clustering decimation on the set of 2D points composing the centerlines. The results reported in Figure 3 suggest that using our method achieves small TRE ranging from 0.53 mm to 1.93 mm, on the cortical surface and the immediate sub-cortical structures (≤ 15 mm). Since the TRE depends on the amount of brain shift, we also quantify the brain-shift compensation by measuring the difference between the initial and the corrected error (normalized by the initial error). Brain shift compensation of up to 68.2 % is achieved, and at least a 24.6 % compensation is reported for the worst configuration. We can also observe that errors and compensation at the cortical surface are very close to the immediate sub-cortical location (≤ 15 mm). They increase when the targets are located deeper in the brain (≥ 30 mm) or the amount of deformation increases (≥ 6 mm).
Our craniotomy dataset was composed of 1630 microscopic image patches with labels obtained through manual segmentation. The model is trained on mini-batches of size 32 for 200 epochs using Adam optimizer [13] with a learning rate of 0.001 that is decreased by a factor of 10 each 100 epochs. We used the Tensorflow framework (www.tensorflow.org) on an NVidia GeForce GTX 1070.
We tested our method on 6 patient data sets retrospectively. The cortical vessels, brain parenchyma, skull and tumors were segmented using 3D Slicer (www.sliced.org). The miscroscopic images were acquired with a Carl Zeiss surgical microscope. We only used the left image of the sterescopic camera.
The pre-operative vessels are first aligned manually on the image to obtain the rigid transform, then the 3D/2D non-rigid registration was performed, and used to drive deformation of the underlying tumors. Figure 4 shows the resulting Augmented Reality rendering and exhibits good mesh-to-image overlay. Figure 5 shows the measured deformation amplitude on each vessel after non-rigid registration. The deformations range from 0 to 3 mm and are non-uniformly distributed on the vascular trees which suggest a non-rigid deformation.
Finally, we show in Figure 6 the ability of our method to rectify tumor positions through their mapping with the cortical vessels. We can clearly see that tumor positions are corrected according to the brain shift estimated from the cortical vessels registration.
4. Conclusion and Discussion
We proposed here a brain-shift aware Augmented Reality method for craniotomy guidance. Our method follows a 3D/2D non-rigid process between pre-operative and intra-operative cortical vessel centerlines using a single image instead of a stereo pair. Restricting our method to a single image makes it more acceptable in operating rooms but turns the registration process into an ill-posed problem. To tackle this issue we proposed a force-based shape-from-template formulation that adds physical constraints to the classical reprojection minimization. In addition, our pipeline takes advantage of recent advances in deep learning to automatically extract vessels from microscopic images. Our results show that low TRE can be obtained at cortical and sub-cortical levels and compensation for brain shift with up to 68% can be achieved. Our method is however sensitive to the outcome of the cortical vessels segmentation. A fragmented segmentation may lead to discontinuous centerlines and thus produce aberrant vascular trees that can affect the whole pipeline. One solution could be the use of the complete vessels segmentation in addition to centerlines to make advantage of the use of more featured such as radii, curves and bifurcations. Future work will consist of developing a learning-based method to perform the non-rigid registration without manual initialisation, with the aim of facilitating its usage by surgeons in clinical routines.
5. Acknowledgements
The authors were supported by the following funding bodies and grants: NIH: R01 EB027134-01, NIH: R01 NS049251 and BWH Radiology Department Research Pilot Grant Award.
References
- 1.Bartoli A, Gérard Y, Chadebecq F, Collins T, Pizarro D: Shape-from-template. IEEE Transactions on Pattern Analysis and Machine Intelligence 37(10), 2099–2118 (October 2015) [DOI] [PubMed] [Google Scholar]
- 2.Bayer S, Maier A, Ostermeier M, Fahrig R: Intraoperative imaging modalities and compensation for brain shift in tumor resection surgery. International Journal of Biomedical Imaging 2017, 1–18 (06 2017) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Bilger A, Dequidt J, Duriez C, Cotin S: Biomechanical simulation of electrode migration for deep brain stimulation. In: Medical Image Computing and Computer-Assisted Intervention – MICCAI 2011. pp. 339–346. Springer Berlin Heidelberg, Berlin, Heidelberg: (2011) [DOI] [PubMed] [Google Scholar]
- 4.Cotin S, Duriez C, Lenoir J, Neumann P, Dawson S: New approaches to catheter navigation for interventional radiology simulation. MICCAI 2005. 8, 534–542 [DOI] [PubMed] [Google Scholar]
- 5.Ebrahimi A: Mechanical properties of normal and diseased cerebrovascular system. Journal of vascular and interventional neurology 2, 155–62 (04 2009) [PMC free article] [PubMed] [Google Scholar]
- 6.Eigen D, Fergus R: Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In: Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV). p. 2650–2658. ICCV ‘15, IEEE Computer Society, USA: (2015) [Google Scholar]
- 7.Essert C, Haegelen C, Lalys F, Abadie A, Jannin P: Automatic computation of electrode trajectories for deep brain stimulation: A hybrid symbolic and numerical approach. International journal of computer assisted radiology and surgery 7, 517–32 (08 2011) [DOI] [PubMed] [Google Scholar]
- 8.Hamzé N, Bilger A, Duriez C, Cotin S, Essert C: Anticipation of brain shift in deep brain stimulation automatic planning. In: 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). pp. 3635–3638 (2015) [DOI] [PubMed] [Google Scholar]
- 9.Haouchine N, Juvekar P, Golby S, Wells W, Cotin S, Frisken S: Alignment of cortical vessels viewed through the surgical microscope with preoperative imaging to compensate for brain shift. SPIE Image-Guided Procedures, Robotic Interventions, and Modeling 60(10), 11315–60 (February 2020) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Ji S, Fan X, Roberts DW, Hartov A, Paulsen KD: Cortical surface shift estimation using stereovision and optical flow motion tracking via projection image registration. Medical Image Analysis 18(7), 1169 – 1183 (2014) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Ji S, Wu Z, Hartov A, Roberts DW, Paulsen KD: Mutual-information-based image to patient re-registration using intraoperative ultrasound in image-guided neurosurgery. Medical Physics 35(10), 4612–4624 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Jiang J, Nakajima Y, Sohma Y, Saito T, Kin T, Oyama H, Saito N: Marker-less tracking of brain surface deformations by non-rigid registration integrating surface and vessel/sulci features. International journal of computer assisted radiology and surgery 11 (03 2016) [DOI] [PubMed] [Google Scholar]
- 13.Kingma DP, Ba J: Adam: A method for stochastic optimization (2014), published as a conference paper at the 3rd International Conference for Learning Representations, San Diego, 2015 [Google Scholar]
- 14.Kuhnt D, Bauer MHA, Nimsky C: Brain shift compensation and neurosurgical image fusion using intraoperative mri: Current status and future challenges. Critical Reviews and trade in Biomedical Engineering 40(3), 175–185 (2012) [DOI] [PubMed] [Google Scholar]
- 15.Luo M, Frisken SF, Narasimhan S, Clements LW, Thompson RC, Golby AJ, Miga MI: A comprehensive model-assisted brain shift correction approach in image-guided neurosurgery: a case study in brain swelling and subsequent sag after craniotomy. In: Fei B, Linte CA (eds.) Medical Imaging 2019: Image-Guided Procedures, Robotic Interventions, and Modeling. vol. 10951, pp. 15 – 24. International Society for Optics and Photonics, SPIE; (2019) [Google Scholar]
- 16.Marreiros FMM, Rossitti S, Wang C, Smedby Ö: Non-rigid deformation pipeline for compensation of superficial brain shift. In: MICCAI 2013. pp. 141–148. Springer Berlin Heidelberg, Berlin, Heidelberg: (2013) [DOI] [PubMed] [Google Scholar]
- 17.Miga MI, Sun K, Chen I, Clements LW, Pheiffer TS, Simpson AL, Thompson RC: Clinical evaluation of a model-updated image-guidance approach to brain shift compensation: experience in 16 cases. International Journal of Computer Assisted Radiology and Surgery 11(8), 1467–1474 (August 2016) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Mohammadi A, Ahmadian A, Azar AD, Sheykh AD, Amiri F, Alirezaie J: Estimation of intraoperative brain shift by combination of stereovision and doppler ultrasound: phantom and animal model study. International Journal of Computer Assisted Radiology and Surgery 10(11), 1753–1764 (November 2015) [DOI] [PubMed] [Google Scholar]
- 19.Pereira VM, Smit-Ockeloen I, Brina O, Babic D, Breeuwer M, Schaller K, Lovblad KO, Ruijters D: Volumetric Measurements of Brain Shift Using Intraoperative Cone-Beam Computed Tomography: Preliminary Study. Operative Neurosurgery 12(1), 4–13 (08 2015) [DOI] [PubMed] [Google Scholar]
- 20.Reinertsen I, Lindseth F, Askeland C, Iversen DH, Unsgård G: Intra-operative correction of brain-shift. Acta Neurochirurgica 156(7), 1301–1310 (2014) [DOI] [PubMed] [Google Scholar]
- 21.Rivaz H, Collins DL: Deformable registration of preoperative mr, pre-resection ultrasound, and post-resection ultrasound images of neurosurgery. International Journal of Computer Assisted Radiology and Surgery 10(7), 1017–1028 (July 2015) [DOI] [PubMed] [Google Scholar]
- 22.Ronneberger O, Fischer P, Brox T: U-net: Convolutional networks for biomedical image segmentation. In: MICCAI. vol. 9351, pp. 234–241 (2015) [Google Scholar]
- 23.Sun K, Pheiffer T, Simpson A, Weis J, Thompson R, Miga M: Near real-time computer assisted surgery for brain shift correction using biomechanical models. IEEE Translational Engineering in Health and Medicine 2, 1–13 (2014) [DOI] [PMC free article] [PubMed] [Google Scholar]