| Literature DB >> 34955721 |
Tyler S Davis1, Rose M Caston2, Brian Philip2, Chantel M Charlebois2, Daria Nesterovich Anderson1,3, Kurt E Weaver4,5, Elliot H Smith1, John D Rolston1,2.
Abstract
Accurate anatomical localization of intracranial electrodes is important for identifying the seizure foci in patients with epilepsy and for interpreting effects from cognitive studies employing intracranial electroencephalography. Localization is typically performed by coregistering postimplant computed tomography (CT) with preoperative magnetic resonance imaging (MRI). Electrodes are then detected in the CT, and the corresponding brain region is identified using the MRI. Many existing software packages for electrode localization chain together separate preexisting programs or rely on command line instructions to perform the various localization steps, making them difficult to install and operate for a typical user. Further, many packages provide solutions for some, but not all, of the steps needed for confident localization. We have developed software, Locate electrodes Graphical User Interface (LeGUI), that consists of a single interface to perform all steps needed to localize both surface and depth/penetrating intracranial electrodes, including coregistration of the CT to MRI, normalization of the MRI to the Montreal Neurological Institute template, automated electrode detection for multiple types of electrodes, electrode spacing correction and projection to the brain surface, electrode labeling, and anatomical targeting. The software is written in MATLAB, core image processing is performed using the Statistical Parametric Mapping toolbox, and standalone executable binaries are available for Windows, Mac, and Linux platforms. LeGUI was tested and validated on 51 datasets from two universities. The total user and computational time required to process a single dataset was approximately 1 h. Automatic electrode detection correctly identified 4362 of 4695 surface and depth electrodes with only 71 false positives. Anatomical targeting was verified by comparing electrode locations from LeGUI to locations that were assigned by an experienced neuroanatomist. LeGUI showed a 94% match with the 482 neuroanatomist-assigned locations. LeGUI combines all the features needed for fast and accurate anatomical localization of intracranial electrodes into a single interface, making it a valuable tool for intracranial electrophysiology research.Entities:
Keywords: MATLAB; anatomical localization; electrocorticography (ECoG); graphical user interface (GUI); intracranial electrode localization; software; stereotactic electroencephalography (SEEG)
Year: 2021 PMID: 34955721 PMCID: PMC8695687 DOI: 10.3389/fnins.2021.769872
Source DB: PubMed Journal: Front Neurosci ISSN: 1662-453X Impact factor: 4.677
FIGURE 1Flow chart of processing steps. (A) Image selection and saving (left) with ACPC alignment for MRI images (right). AC, PC and mid-sagittal (MS) points are shown in green, red, and blue, respectively. (B) Results after coregistration, segmentation, and MNI normalization steps (left). Gray and white segmented tissue types are used to generate a 3D brain surface. Automatic electrode detection results using coregistered CT (right). The opacity of the MRI image can be decreased to show the CT image with superimposed electrodes. The brain surface can be made transparent or hidden to visualize electrodes in 3D display. (C) User interface for electrode labeling and channel assignment (left). Assignments are color coded for visual clarity. Selected table values and corresponding assigned electrodes are shown in red. Assignments are populated into the main LeGUI interface after closing the assignment interface window (right). Inline projection of selected SEEG leads allows visualization of the entire lead relative to a single MRI slice plane.
FIGURE 2Image processing and electrode assignment times for 48 datasets in LeGUI. (A) Histogram of image processing times per dataset. Total time includes image selection, rotation to ACPC space, coregistration of CT to MRI, segmentation of MRI, normalization to MNI space, and surface generation. (B) Electrode label assignment times grouped by vendor and electrode type. Each boxplot shows the median (red line), interquartile range (blue box), and extremes (whiskers). The number of datasets per group is shown below each boxplot. (C) Electrode label assignment times normalized by number of electrodes per dataset. ECoG electrodes take a significantly (pairwise rank-sum test, p < 0.01) longer time to assign a label than SEEG. Asterisks indicate significance.
FIGURE 3Automatic electrode detection results from 48 datasets containing 4695 total electrode contacts including ECoG and SEEG. (A) True-positive detections (left) and false positive detections (right) grouped by electrode type. Ad-Tech SEEG electrodes performed the best, with a median detection sensitivity of 1 and false-positive count of 0. Values under each boxplot indicate number of datasets included. Asterisks indicate significance (pairwise rank-sum, p < 0.01). (B) Example of false positives (FP) and false negatives (FN) for a dataset that included Dixi SEEG. Electrode locations relative to the brain surface (left) and CT image (right) are shown. (C) Histogram of optimal thresholds in Hounsfield units (HU) for all 48 datasets demonstrates a bimodal distribution with two peaks at 2200 and 3400 HU. (D) Examples showing the number of detected electrodes as a function of threshold for two datasets with both a low (left) and a high (right) optimal threshold (red circle). The overall median threshold (2365 HU) for all 48 datasets is indicated with a red vertical line.
FIGURE 4Electrode projection and alignment results. (A) Example showing electrodes before (left) and after (right) projection using the “manual” projection method. An 8×8 ECoG grid and multiple strips (10-mm spacing) along with an 8×8 mini-ECoG grid (3-mm spacing) are visible. Projection vectors (red lines) are shown for 4 selected electrode contacts (red spheres) that represent the normal vector to the “projection” surface (not shown). (B) Projection distances for 10 datasets (764 electrodes) for the “grid” (Hermes et al., 2010) and “manual” projection methods are shown (left). The median and ranges were 4.07 (0.00–17.95) and 3.88 (0.00–11.17) mm, respectively. No differences were found between the two methods (KW test, df = 1, χ2 = 3.14, p = 0.076). Intercontact spacings were measured for unprojected electrode contacts, as well as for the two projection methods (right). The median and ranges were found to be 1.00 (0.45–1.78), 1.02 (0.38–1.93), and 1.04 (0.44–1.99) mm, respectively. Asterisks indicate significance (pairwise rank sum, p < 0.01). Separations for the “grid” and “manual” methods were both higher than unprojected “none,” indicating expansion during the projection process. (C) Example showing electrodes before (left) and after (right) alignment process. Corrections to electrode positions were small but can be visualized in the right insular lead (red ellipse). (D) Correction magnitudes for 38 datasets (365 leads, 3726 contacts). The median and range were 0.23 (0.00–1.37). The median correction magnitude of 0.23 mm was less than the voxel resolution (0.4 mm/vox), suggesting that most corrections are for rounding errors due to the voxelization of the image.
FIGURE 5Comparison of gray and white segmentation results using electrophysiology recordings. (A) Patient-specific example showing SEEG electrodes (AdTech BF08R-SP05X-000, 5-mm spacing) in left hippocampus transitioning to white matter (left to right) with corresponding LFP data (1-kHz sampling rate, 0.3-Hz high-pass filter). Each data plot spans 1.5 s along the x-axis and 1.5 mV along the y-axis and displays 415 overlaid time segments distributed throughout an approximately 50-min recording session. Standard deviations from left to right were 95 (gray), 38 (gray), 23 (white), and 21 (white) μV, respectively. (B) Comparison of recording amplitude (standard deviation) from 17 patients for a total of 1066 gray/white classified electrode contacts (456 white, 610 gray). Gray electrodes recorded higher amplitudes compared with white (pairwise rank sum, p < 0.001). Asterisk indicates significance.
FIGURE 6Corticocortical evoked potentials (CCEPs) demonstrate a connection between the inferior frontal lobe (IFL) and the inferior parietal lobule (IPL). Single-pulse stimulation was applied to an ECoG electrode in area 45 of IFL (white lightning bolts), and CCEPs were recorded in areas PF and PFm of IPL (blue traces) demonstrating functional connectivity between these areas. These traces are overlaid for the purposes of this figure and are not a feature of LeGUI. Locations were determined using a cytoarchitectural atlas (SPM Anatomy toolbox) by selecting electrodes and viewing the corresponding anatomical locations in LeGUI (upper right). A custom colormap was used to color electrodes based on CCEP size (red = largest, blue = smallest). The colormap was loaded using a dropdown menu provided in LeGUI (red arrow).
FIGURE 7Anatomical electrode labels generated by LeGUI closely match electrodes labeled by hand by an experienced neuroanatomist (K.W.). (A) Percent match of LeGUI labels with hand labels grouped by NMM label type. Left and right hemisphere labeling was removed for clarity. Circles indicate percent match for LeGUI labels generated using a 1.3-mm radius sphere around each electrode. Asterisks indicate percent match for labels generated using a 1-cm sphere (see Materials and Methods). Numbers above each label indicate count. (B) Example of SEEG electrode labels for a lead placed into the left temporal lobe. Electrodes are shown relative to the MRI (LeGUI inline projection feature) with the hand labels indicated above and LeGUI labels below (left). Electrodes are also shown relative to the NMM atlas (right). A mismatch can be seen between the hand (STG) and LeGUI (MTG) labels for the 5 lateral contacts. These electrodes closely follow the border between STG and MTG in the NMM atlas (right). ACgG, anterior cingulate gyrus; AIns, anterior insula; Amyg, amygdala; WM, white matter; Ent, entorhinal area; Hipp, hippocampus; ITG, inferior temporal gyrus; ILV, inferior lateral ventricle; LV, lateral ventricle; MCgG, middle cingulate gyrus; MPoG, medial postcentral gyrus; MPrG, medial precentral gyrus; MTG, middle temporal gyrus; PCgG posterior cingulate gyrus; PIns, posterior insula; SCA, subcallosal area; STG, superior temporal gyrus; TMP, temporal pole; TTG, transverse temporal gyrus.
Comparison of intracranial electrode localization packages.
| Name | URL | Features | Testing/Performance | Platform/Dependencies |
| LeGUI |
| – MR/CT coregistration | – Tested on 51 datasets (5089 electrode contacts) | – Windows, Mac, Linux |
| iElvis |
| – MR/CT coregistration | – Tested on 5–8 datasets | – Mac, Linux |
| ALICE |
| – MR/CT coregistration | – Tested on 17 datasets | – Mac, Linux |
| iElectrodes |
| – MR/CT coregistration | – Tested on 22 datasets (1242 electrode contacts) | – Mac, Linux |
| iELU |
| – MR/CT coregistration | – Tested on 12 datasets | – Mac, Linux |
| iEEGView |
| – MR/CT coregistration | – Tested on 28 datasets (3756 electrode contacts) | – Mac only |