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).
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.
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