Abstract
Stereoelectroencephalography (SEEG) is a neurosurgical method to survey electrophysiological activity within the brain to treat disorders such as Epilepsy. In this stereotactic approach, leads are implanted through straight trajectories to survey both cortical and sub-cortical activity.
Visualizing the recorded locations covering sulcal and gyral activity while staying true to the cortical architecture is challenging due to the folded, three-dimensional nature of the human cortex.
To overcome this challenge, we developed a novel visualization concept, allowing investigators to dynamically morph between the subjects’ cortical reconstruction and an inflated cortex representation. This inflated view, in which gyri and sulci are viewed on a smooth surface, allows better visualization of electrodes buried within the sulcus while staying true to the underlying cortical architecture.
Clinical relevance—
These visualization techniques might also help guide clinical decision-making when defining seizure onset zones or resections for patients undergoing SEEG monitoring for intractable epilepsy.
I. INTRODUCTION
Behavior emerges from complex interactions between functionally specialized regions in the brain. Uncovering these regional specializations and the complex networks required to produce behavior have been of scientific and clinical interest for decades. For example, electrode grids placed directly on the surface of the human cortex (Electrocardiography; ECoG) are used to determine the optimal treatment for patients with epilepsy while creating a unique opportunity to investigate human visual, motor, and auditory networks [1], [2], [3].
In recent years, Stereoelectroencephalography (SEEG) has started to replace ECoG in the United States. In the SEEG approach, leads are implanted through straight trajectories, surveying both cortical and sub-cortical areas. Therefore, the electrodes placed along the trajectory will pass through the highly folded human cortex (Figure 1), opening up the possibility of investigating the functional differences between electrodes recording sulcal and gyral activity with high fidelity. This paradigm shift requires us to rethink how we localize, visualize and analyze the activity recorded through this approach, creating a new set of challenges.
First, visualizing the location of electrodes within the sulcus is difficult. Investigators and clinicians have to look either at (1) 2-D slice stacks or (2) semi-transparent 3D models, which are both impractical for different reasons. While looking at electrode locations on the anatomical 2-D slices provides an accurate anatomical description for a specific contact, it is impractical to investigate widespread network activity, as there is no conceivable way to visualize all electrodes simultaneously. This issue can be somewhat addressed by viewing the electrode locations on a semi-transparent reconstructed 3D model. However, two electrodes that appear close to each other in the semi-transparent brain might be considered far apart if the folded nature of the cortex is taken into account. (Figure 1).
Secondly, the recorded activity needs to be viewed in a space that allows accurate association between the recorded data and the anatomical and functional architecture of the brain. There is mounting evidence that sulcal and gyral cortical grey matter are functionally distinct [4], [5]. Understanding the temporal spread of activation across gyri and sulci, therefore, depends on an accurate representation of the folded cortex. [6], [7], [8].
To address these issues, we developed a novel approach for localizing, visualizing, and analyzing SEEG data. In this approach, we morph the 3D surface, and associated electrode locations from its gyrated 3D model to an inflated model [9], [10] through models created by Freesurfer. In the inflated model, the cortical surface is smooth, allowing visualization of sulci and gyri while maintaining their topological structure.
This approach allows visualization of electrode locations in the original anatomically accurate 3D space with the ability to slowly morph the model into a view representing the position of electrodes on the inflated model, enabling a better view from a more functional perspective.
II. METHODS
Surface Reconstruction
The surface and the inflated surface were reconstructed from the subjects’ T1-weighted MRI using Freesurfer. In short, the intensity of the T1-weighted MRI is normalized, and non-cerebral voxels are removed. The resulting image is then processed further to remove subcortical components, and finally, a surface mesh of the cortex is created. Next, Freesurfer calculates the inflated model by minimizing the number of folds on the surface. The resulting surface meshes have a 1:1 vertex identity, allowing a surface vertex to be identified in the inflated surface.
Implementation
The visualization is available in MATLAB and Python, using Freesurfers’ reconstructed surface and inflated model. Both implementations are freely available on GitHub. The Matlab version was implemented as a standalone package[11] and subsequently integrated into the Versatile Electrode Localization Framework (VERA) [12]. The implementation can also be used independently of VERA, allowing integration into existing workflows. In addition to the 3D model morphing, points (through scatter3) or text can also be morphed. The implementation enables linking these different visualizations to ensure that morphing one object results in correct morphs of all linked objects. Furthermore, the code is easily extendable to create additionally linked visualizations.
The Python version was implemented as part of the MNE-Python package [13]. The MNE-Python implementation can be seen here (https://mne.tools/dev/auto_tutorials/clinical/20_seeg.html).
Electrode Locations
Electrode locations were reconstructed from a post-op CT using VERA. The CT was first co-registered with the T1-weighted MRI used for surface reconstruction. Next, we use VERA’s fully-automated segmentation algorithm to determine the electrode locations from the CT, followed by manual correction.
Algorithm
We morph between the surface and inflated model using a morphing parameter 0 ≤ σ ≤ 1. Assuming the ith vertex pci of the cortical surface corresponds to the vertex ith vertex pii on the inflated model, the morphed vertex location pmi is calculated as
Next, we determined which electrodes are within the cortical surface matter versus those in subcortical structures or white matter. This can be achieved through multiple avenues. The simplest method is to define a distance threshold d so that only electrodes ej remain, which satisfies the condition
In our case, the distance threshold was set to d = 4mm. Therefore, any electrode ej close enough to the cortical surface will be visualized. However, cortical thickness varies across the cortex as well as between subjects. An alternative method is to determine electrode locations through volume-derived labels.
Finally, for each electrode location ej, we determine the closest cortical vertex pcij and its associated inflated vertex location piij. The inflated vertex location piij is then used to determine the morphed electrode location emj.
III. RESULTS
To illustrate the issues solved by our implementation, we present four scenarios. The first scenario is the classical view of the cortex on a non-transparent cortical reconstruction. Without transparency, only a few of the 138 contacts (The patient was implanted with 231 electrodes, and 138 passed our 4mm distance criteria) are visible in Figure 2 A. However, after morphing the surface and electrode locations, we can determine the anatomical identity of all cortical electrodes (Figure 2 A, σ=1).
In the second scenario, we use a semi-transparent surface to illustrate the issue of three-dimensional representations. While in this view (Figure 2 B), all electrodes are visible, without morphing, it is hard to determine their anatomical identity.
Representing the same subject but color-code sulci and gyri helps illustrate the issue of identifying recording locations buried within the sulci. As expected, sulci cannot be visualized without morphing, and electrodes recording activity within these sulci cannot be observed (Figure 2 C).
Lastly, we overlapped the sulcus map with visual field areas identified via the neuropythy package [14]. Without the inflated model, identifying the electrodes which are probable to record activity from V1v (neon green) and PHC1 (dark blue) would not be possible (Figure 2 D).
IV. CONCLUSIONS
Here we present a novel method to visualize the relationship between electrode locations and their anatomical recording location for patients implanted with SEEG electrodes.
The shift from ECoG to SEEG has opened up new clinical and research opportunities but also requires us to rethink the methods we use to visualize and analyze said activity. These opportunities span a wide range of active research areas, all of which will benefit from the additional information provided by SEEG.
One of these active research areas investigates the temporal dynamics of auditory processing. While some research suggests a caudal to rostral spread of cortical activity during auditory information processing, others refute this hypothesis [15], [16], [17]. However, evidence for this hypothesis of human auditory processing in humans was primarily investigated via ECoG grids, which do not record sulcal activity. SEEG activity, combined with the presented visualization method, might elucidate current debates by taking to account the complex underlying cytoarchitectural differences between sulci and gyri in the auditory cortex [18].
Similarly, visual processing is distributed smoothly across specific gyral and sulcal locations [19], [20], [21]. Therefore, knowledge of the location of a recording electrode is of paramount importance.
And lastly, the proposed visualization could help understand the underlying mechanism of traveling waves. These spatially organized electrophysiological patterns have been identified as essential patterns, organizing information flow across the cortex[22], [23], [24], [25]. However, the idea of traveling waves is based on a flat cortical surface on which the wave propagates, necessitating an inflated brain model to examine traveling waves truthfully.
ACKNOWLEDGMENT
Research reported in this publication was supported by the National Institute Of Mental Health of the National Institutes of Health under Award Numbers R01-MH122258 (DH, PB), R01-EB026439 (PB), P41-EB018783 (PB), U24-NS109103 (PB), U01-NS108916 (PB) and U01-NS128612 (PB, DH). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. Figure 1 was created with BioRender.com.
References
- [1].Crone N. E., Sinai A., and Korzeniewska A., “High-frequency gamma oscillations and human brain mapping with electrocorticography,” in Progress in Brain Research. Elsevier, 2006, pp. 275–295. [Online]. Available: 10.1016/s0079-6123(06)59019-3 [DOI] [PubMed] [Google Scholar]
- [2].Miller K. J., denNijs M., Shenoy P., Miller J. W., Rao R. P., and Ojemann J. G., “Real-time functional brain mapping using electrocorticography,” NeuroImage, vol. 37, no. 2, pp. 504–507, Aug. 2007. [Online]. Available: 10.1016/j.neuroimage.2007.05.029 [DOI] [PubMed] [Google Scholar]
- [3].Swift J., Coon W., Guger C., Brunner P., Bunch M., Lynch T., Frawley B., Ritaccio A., and Schalk G., “Passive functional mapping of receptive language areas using electrocorticographic signals,” Clinical Neurophysiology, vol. 129, no. 12, pp. 2517–2524, Dec. 2018. [Online]. Available: 10.1016/j.clinph.2018.09.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [4].Deng F., Jiang X., Zhu D., Zhang T., Li K., Guo L., and Liu T., “A functional model of cortical gyri and sulci,” Brain Structure and Function, vol. 219, no. 4, pp. 1473–1491, Jul. 2014. [Online]. Available: 10.1007/s00429-013-0581-z [DOI] [PMC free article] [PubMed] [Google Scholar]
- [5].Jiang X., Zhang T., Zhang S., Kendrick K. M., and Liu T., “Fundamental functional differences between gyri and sulci: implications for brain function, cognition, and behavior,” Psychoradiology, vol. 1, no. 1, pp. 23–41, Mar. 2021. [Online]. Available: 10.1093/psyrad/kkab002 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [6].Crowther L. J., Brunner P., Kapeller C., Guger C., Kamada K., Bunch M. E., Frawley B. K., Lynch T. M., Ritaccio A. L., and Schalk G., “A quantitative method for evaluating cortical responses to electrical stimulation,” Journal of Neuroscience Methods, vol. 311, pp. 67–75, Jan. 2019. [Online]. Available: 10.1016/j.jneumeth.2018.09.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [7].Moheimanian L., Paraskevopoulou S. E., Adamek M., Schalk G., and Brunner P., “Modulation in cortical excitability disrupts information transfer in perceptual-level stimulus processing.” NeuroImage, vol. 243, p. 118498, Nov. 2021. [Online]. Available: 10.1016/j.neuroimage.2021.118498 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [8].Coon W. and Schalk G., “A method to establish the spatiotemporal evolution of task-related cortical activity from electrocorticographic signals in single trials,” Journal of Neuroscience Methods, vol. 271, pp. 76–85, Sep. 2016. [Online]. Available: 10.1016/j.jneumeth.2016.06.024 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Dale A. M., Fischl B., and Sereno M. I., “Cortical Surface-Based Analysis: I. Segmentation and Surface Reconstruction,” NeuroImage, vol. 9, no. 2, pp. 179–194, Feb. 1999. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1053811998903950 [DOI] [PubMed] [Google Scholar]
- [10].Fischl B., Sereno M. I., and Dale A. M., “Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System,” NeuroImage, vol. 9, no. 2, pp. 195–207, Feb. 1999. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1053811998903962 [DOI] [PubMed] [Google Scholar]
- [11].Adamek M., Brunner P., and Hermes D., “Dynamic Visualization of Gyral and Sulcal Stereoelectroencephalographic GitHub Repository,” 1 2023. [Online]. Available: https://github.com/neurotechcenter/InflatedBrain [DOI] [PMC free article] [PubMed] [Google Scholar]
- [12].Adamek M., Swift J., and Brunner P., “VERA - A Versatile Electrode Localization Framework,” 12 2022. [Online]. Available: https://github.com/neurotechcenter/VERA [Google Scholar]
- [13].Gramfort A., Luessi M., Larson E., Engemann D. A., Strohmeier D., Brodbeck C., Goj R., Jas M., Brooks T., Parkkonen L., and Hämäläinen M. S., “MEG and EEG data analysis with MNE-Python,” Frontiers in Neuroscience, vol. 7, no. 267, pp. 1–13, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [14].Benson N. C. and Winawer J., “Bayesian analysis of retinotopic maps,” eLife, vol. 7, p. e40224, dec 2018. [Online]. Available: 10.7554/eLife.40224 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [15].Hamilton L. S., Edwards E., and Chang E. F., “A spatial map of onset and sustained responses to speech in the human superior temporal gyrus,” Current Biology, vol. 28, no. 12, pp. 1860–1871.e4, Jun. 2018. [Online]. Available: 10.1016/j.cub.2018.04.033 [DOI] [PubMed] [Google Scholar]
- [16].Nourski K. V., Steinschneider M., McMurray B., Kovach C. K., Oya H., Kawasaki H., and Howard M. A., “Functional organization of human auditory cortex: Investigation of response latencies through direct recordings,” NeuroImage, vol. 101, pp. 598–609, Nov. 2014. [Online]. Available: 10.1016/j.neuroimage.2014.07.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [17].Camalier C. R., D’Angelo W. R., Sterbing-D’Angelo S. J., de la Mothe L. A., and Hackett T. A., “Neural latencies across auditory cortex of macaque support a dorsal stream supramodal timing advantage in primates,” Proceedings of the National Academy of Sciences, vol. 109, no. 44, pp. 18168–18173, Oct. 2012. [Online]. Available: 10.1073/pnas.1206387109 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [18].Zachlod D., Rüttgers B., Bludau S., Mohlberg H., Langner R., Zilles K., and Amunts K., “Four new cytoarchitectonic areas surrounding the primary and early auditory cortex in human brains,” Cortex, vol. 128, pp. 1–21, Jul. 2020. [Online]. Available: 10.1016/j.cortex.2020.02.021 [DOI] [PubMed] [Google Scholar]
- [19].Swisher J. D., Halko M. A., Merabet L. B., McMains S. A., and Somers D. C., “Visual topography of human intraparietal sulcus,” Journal of Neuroscience, vol. 27, no. 20, pp. 5326–5337, May 2007. [Online]. Available: 10.1523/jneurosci.0991-07.2007 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [20].Wandell B. A., Dumoulin S. O., and Brewer A. A., “Visual field maps in human cortex,” Neuron, vol. 56, no. 2, pp. 366–383, Oct. 2007. [Online]. Available: 10.1016/j.neuron.2007.10.012 [DOI] [PubMed] [Google Scholar]
- [21].Wandell B. A. and Winawer J., “Imaging retinotopic maps in the human brain,” Vision Research, vol. 51, no. 7, pp. 718–737, Apr. 2011. [Online]. Available: 10.1016/j.visres.2010.08.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [22].Ermentrout G. and Kleinfeld D., “Traveling electrical waves in cortex,” Neuron, vol. 29, no. 1, pp. 33–44, Jan. 2001. [Online]. Available: 10.1016/s0896-6273(01)00178-7 [DOI] [PubMed] [Google Scholar]
- [23].Muller L., Chavane F., Reynolds J., and Sejnowski T. J., “Cortical travelling waves: mechanisms and computational principles,” Nature Reviews Neuroscience, vol. 19, no. 5, pp. 255–268, Mar. 2018. [Online]. Available: 10.1038/nrn.2018.20 [DOI] [PMC free article] [PubMed] [Google Scholar]
- [24].Das A., Zabeh E., and Jacobs J., “How can we detect and analyze traveling waves in human brain oscillations?” PsyArXiv, Aug. 2022. [Online]. Available: 10.31234/osf.io/jhnpr [DOI] [Google Scholar]
- [25].Bhattacharya S., Brincat S. L., Lundqvist M., and Miller E. K., “Traveling waves in the prefrontal cortex during working memory,” PLOS Computational Biology, vol. 18, no. 1, p. e1009827, Jan. 2022. [Online]. Available: 10.1371/journal.pcbi.1009827 [DOI] [PMC free article] [PubMed] [Google Scholar]