$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
These components were previously validated using a combination of MRI visualizations and 3D-printed anatomical models. By comparing the automated craniotomy visualization to the 3D printed craniotomy and the MRI at the location of the craniotomy, it is evident that the virtual craniotomy representation accurately reflects the region of the brain that can be accessed with the specified craniotomy location (Figure 2A-F). Additionally, the accuracy of the automated craniotomy visualization was further evaluated by comparing the virtual representation to existing craniotomies from implantation surgeries (Figure 2E,G). The 3D printed model, automated visualization, MRI, and actual craniotomy highlight the same region, showing the major sulci at the same location and with proportional consistency. The process of brain and skull isolation and subsequent craniotomy visualization takes under 15 min to complete, allowing for several locations to be tested in under 1 h.
The efficacy of the brain isolation procedure was confirmed by comparing the virtual craniotomy to the MRI representation of the craniotomy location (Figure 2B,C,E,F). The similarities indicated that the brain isolation procedure has the capability to represent the correct size, location, and shape of anatomical structures on the brain that are being targeted, such as the sulci.
The combined 3D-printed brain and skull were used as an anatomically accurate model to validate the chamber and headpost designs. Prior to investing in titanium parts, the chamber and headpost were 3D printed in plastic. It was confirmed that the implants fit into the skull and that they were not overlapping with one another or obstructing important anatomical markers. The chamber and headpost design process produced components that matched the curvature of the skull (Figure 3G,I, Figure 4E, Figure 6, Figure 7). The artificial dura was also confirmed to fit adjacent to the inner walls of the chamber with a minor gap to account for adjustments made during implantation. Custom chambers were implanted in two macaques. Contrary to previous chamber design methods9, every screw that was attempted to be inserted was able to be screwed in. This is due to the drastic reduction of gaps between the chamber and the skull with the custom fit in comparison to the chamber designed from MRI curvature approximations9 (Figure 6A-F). One custom-fit chamber has been implanted for over 2 years, and the other a year and a half. With proper maintenance, there has been no screw loss, infection, or stability issues that have arisen due to these implants (Figure 3I).
The custom headpost and chamber design processes prevent the need for manual adjustments during surgery, which could otherwise add hours to the surgery duration. These techniques also decrease the 1-2 mm gaps that result from curvature approximations29, fostering better implant health and improving experimental outcomes. The refinements prevent complications with the implant and extend implant longevity, therefore also improving animal welfare.

Figure 1: Brain and skull isolation. (A) Layered magnetic resonance image (MRI) coronal slices. (B) Layered binary mask from skull thresholding. (C) Layered slices of the isolated skull from an inverted binary mask. (D) Reconstructed 3D skull. (E) Layered binary mask from brain thresholding. (F) Layered MRI slices of isolated brain. (G) Reconstructed 3D brain. Please click here to view a larger version of this figure.

Figure 2: Craniotomy planning. (A) Craniotomy visualization with 3D printed brain and skull model for Monkey B. (B) Craniotomy visualization in computational software for Monkey B. (C) Craniotomy visualization in magnetic resonance (MR) image for Monkey B. (D) Craniotomy visualization with 3D printed brain and skull model for Monkey H. (E) Craniotomy visualization in computational software for Monkey H. (F) Craniotomy visualization in Magnetic Resonance (MR) image for Monkey H. (G) Image of craniotomy in Monkey H. Please click here to view a larger version of this figure.

Figure 3: Chamber implant design. (A) Skull region (gray) used for STL resolution reduction. (B) Skull STL resolution reduction in SOLIDWORKS. (C) Chamber inner ring, highlighted. (D) Chamber Skirt Design in SOLIDWORKS. (E) Connecting chamber skirt and top. (F) Chamber STL in SOLIDWORKS. (G) 3D printed brain, skull, and chamber. (H) Titanium chamber. (I) Implanted chamber in Monkey H. Please click here to view a larger version of this figure.

Figure 4: Headpost design. (A) Headpost bottom outline on skull STL resolution reduction. (B) Custom-fit headpost footprint. (C) Headpost bottom. (D) Headpost design in SOLIDWORKS. (E) 3D printed headpost on the skull. (F) Titanium headpost. Please click here to view a larger version of this figure.

Figure 5: Artificial dura fabrication. (A) Clamping of silicone mixture using mold. (B) Artificial Dura. This figure has been adapted with permission from Griggs et al.11. Please click here to view a larger version of this figure.

Figure 6: Custom-fit versus skull curvature fit chamber. Chamber designed from MRI curvature estimations on skull9 from an (A) anterior view, (B) side view, and (C) posterior view. Custom designed chamber from a (D) anterior view, (E) side view, and (F) posterior view. Please click here to view a larger version of this figure.

Figure 7: Chamber, headpost, and artificial dura on overlaid brain and skull Please click here to view a larger version of this figure.
Supplementary Figure 1: Thresholding and craniotomy location planning. (A) Example binary mask with a suitable threshold. (B) Coronal slice on MRI for identifying craniotomy location. Please click here to download this file.
Supplementary Figure 2: Process of STL File Reduction in MATLAB for the chamber design. Please click here to download this file.
Supplementary Figure 3: Visual representation of a hole in the skull STL resolution reduction. Please click here to download this file.
Supplementary Figure 4: Chamber skirt software screenshots. (A) Inner ring of the chamber skirt and the inner surface of the chamber top as concentric mates. (B) Translating chamber skirt downwards. Please click here to download this file.
Supplementary Figure 5: Chamber skirt and chamber top with and without overlap. (A) Under-view example of overlap between the chamber skirt and the chamber top (Modifies the lower surface of the chamber skirt). (B) Example of no overlap between chamber skirt and chamber top. Please click here to download this file.
Supplementary Figure 6: Planes obstructing screw holes and elimination of obstruction. (A) Example of planes obstructing the screw holes following screw hole placement. (B) Outline of extruded cut to eliminate surfaces inside of screw holes. Please click here to download this file.
Supplementary Figure 7: Point selection and the axial plane of the skull. (A)Point selection for headpost design. (B) Upper view of the plane parallel to the axial plane of the skull. (C) Side view of the plane parallel to the axial plane of the skull. Please click here to download this file.
Supplementary Figure 8: Example of mates. (A) First mate - Top surface of the circular headpost platform and the bottom surface of the headpost top as concentric mates. (B) Second mate - Edge of the top surface of circular headpost platform and edge of the bottom surface of the headpost top as concentric mates. (C) Third mate - A line going vertically along the back leg of the headpost and a line running horizontally along the back of the headpost top as perpendicular mates. Please click here to download this file.
Supplementary Figure 9: Fixing holes procedure. (A) Knitted surfaces surrounding the gap in the imported surface. (B) Axis on each point at the edge of the knitted surface. (C) End result of fixing holes procedure. Please click here to download this file.
Supplementary Figure 10: Performing extruded cut. (A) Extruded cut surrounding extrusions from fixing holes procedure. (B) Example extruded cut to a plane on the top surface of the chamber bottom. Please click here to download this file.
Supplemental Coding File 1: Coding files for the protocol. Please click here to download this file.