BrainStereo: clinical application and efficiency evaluation of an open-source stereotactic planning tool

Zhongjie Shi, Dongfeng Li, Sifang Chen, Xin Gao, Hongjia Li, Xiyao Liu, Zhangyu Li, Zhanxiang WangActa 2025

Abstract

BrainStereo is an open-source stereotactic planning tool that provides neurosurgeons and researchers with a flexible alternative to proprietary software. Integrated within 3D Slicer, it allows for adjustable parameters and modular functionality, addressing some of the limitations commonly associated with commercial solutions, such as hardware restrictions and limited adaptability. By offering open-source access, BrainStereo fosters transparency, collaboration, and broader accessibility, potentially advancing the field of stereotactic neurosurgery.

Introduction

Stereotactic neurosurgery—essential for high-precision procedures like Deep Brain Stimulation (DBS), biopsies, and stereoelectroencephalography (SEEG)—relies on rigid head frames to target millimeter-scale brain structures. Historically, the software used for planning these trajectories has been dominated by expensive, proprietary systems that are often hardware-locked and lack interoperability. This creates significant barriers for resource-limited institutions and stifles research innovation.

To address these gaps, the authors developed BrainStereo, a fully open-source, flexible planning tool built on the 3D Slicer platform. BrainStereo aims to match the clinical accuracy of proprietary systems while providing a customizable environment for clinicians and engineers.

System Architecture and Methodology

BrainStereo functions as an extension module for 3D Slicer. Its core technical requirement is the precise transformation of coordinates from the anatomical space (Right-Anterior-Superior, or RAS) to the Cartesian system of the Leksell frame (XYZ).

BrainStereo coordinate system mapping (RAS to XYZ) and virtual frame registration model.

A standout feature of the toolkit is the Layerwise Max Intensity Tracking (LMIT) algorithm for frame registration. Rather than relying on fully manual or brittle fully-automated methods, LMIT uses a semi-automated approach. The user selects four points near the frame's N-shaped fiducial markers on a single CT slice; the algorithm then automatically tracks the highest CT intensity voxels upward through the slices to locate the frame's vertices. The Kabsch algorithm is then employed to compute the optimal rigid transformation matrix, aligning the virtual frame with the patient's imaging data.

Clinical Validation and Results

The toolkit was evaluated using a retrospective dataset of 86 clinical CT scans from two hospitals, covering a variety of procedures including intracerebral hemorrhage treatments and DBS. An independent neurosurgeon compared BrainStereo’s output against a medically certified commercial standard.

Comparison of physical Leksell frame components with virtual trajectory planning parameters (Arc and Ring angles).

The results confirmed that BrainStereo is clinically viable, achieving sub-millimeter precision:

  • Target Accuracy: The mean Euclidean distance between target points calculated by BrainStereo and the commercial software was 0.82 ± 0.21 mm.
  • Angular Deviation: Trajectory angles were highly accurate, with deviations of only 0.47° ± 0.37° for the arc and 0.15° ± 0.17° for the ring.
  • Registration Error: The Root Mean Square Error (RMSE) for frame registration remained consistent at 0.56 ± 0.23 mm.

While BrainStereo was slightly slower than the commercial tool (averaging 5.54 minutes vs. 4.75 minutes), the semi-automated LMIT process was found to eliminate subjective human error and ensure high consistency.

Discussion and Conclusion

BrainStereo demonstrates that open-source tools can meet the strict precision requirements of neurosurgery, challenging the necessity of expensive proprietary software. By allowing users to adjust frame fiducial parameters, the tool breaks the hardware-software lock-in typical of the medical device industry.

Currently, BrainStereo is intended for research and educational purposes as it lacks regulatory medical certification. However, its transparency and accuracy provide a foundation for future multi-center validation and broader clinical adoption. Future work will focus on optimizing the manual initialization process to further improve planning speed.

Summary updated

BibTeX
@inproceedings{shi2025brainstereo,
  author = {Zhongjie Shi and Dongfeng Li and Sifang Chen and Xin Gao and Hongjia Li and Xiyao Liu and Zhangyu Li and Zhanxiang Wang},
  title = {{BrainStereo: clinical application and efficiency evaluation of an open-source stereotactic planning tool}},
  booktitle = {Acta},
  year = {2025},
  doi = {10.1007/s00701-025-06564-x},
}
Figure