Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

iEEG-recon: A Fast and Scalable Pipeline for Accurate Reconstruction of Intracranial Electrodes and Implantable Devices

View ORCID ProfileAlfredo Lucas, View ORCID ProfileBrittany H. Scheid, Akash R. Pattnaik, Ryan Gallagher, Marissa Mojena, Ashley Tranquille, Brian Prager, View ORCID ProfileEzequiel Gleichgerrcht, Ruxue Gong, View ORCID ProfileBrian Litt, View ORCID ProfileKathryn A. Davis, View ORCID ProfileSandhitsu Das, View ORCID ProfileJoel M. Stein, Nishant Sinha
doi: https://doi.org/10.1101/2023.06.12.23291286
Alfredo Lucas
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Alfredo Lucas
Brittany H. Scheid
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
2Department of Bioengineering, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Brittany H. Scheid
Akash R. Pattnaik
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
2Department of Bioengineering, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ryan Gallagher
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Marissa Mojena
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ashley Tranquille
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Brian Prager
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ezequiel Gleichgerrcht
3Department of Neurology, Medical University of South Carolina, Charleston, SC
4Emory University, Atlanta, GA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Ezequiel Gleichgerrcht
Ruxue Gong
4Emory University, Atlanta, GA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Brian Litt
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
2Department of Bioengineering, University of Pennsylvania
5Department of Neurology, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Brian Litt
Kathryn A. Davis
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
5Department of Neurology, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Kathryn A. Davis
Sandhitsu Das
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
5Department of Neurology, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sandhitsu Das
Joel M. Stein
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
5Department of Neurology, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Joel M. Stein
Nishant Sinha
1Center for Neuroengineering and Therapeutics, University of Pennsylvania
2Department of Bioengineering, University of Pennsylvania
5Department of Neurology, University of Pennsylvania
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: nishants{at}seas.upenn.edu
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Background Collaboration between epilepsy centers is essential to integrate multimodal data for epilepsy research. Scalable tools for rapid and reproducible data analysis facilitate multicenter data integration and harmonization. Clinicians use intracranial EEG (iEEG) in conjunction with non-invasive brain imaging to identify epileptic networks and target therapy for drug-resistant epilepsy cases. Our goal was to promote ongoing and future collaboration by automating the process of “electrode reconstruction,” which involves the labeling, registration, and assignment of iEEG electrode coordinates on neuroimaging. These tasks are still performed manually in many epilepsy centers. We developed a standalone, modular pipeline that performs electrode reconstruction. We demonstrate our tool’s compatibility with clinical and research workflows and its scalability on cloud platforms.

Methods We created IEEG-recon, a scalable electrode reconstruction pipeline for semi-automatic iEEG annotation, rapid image registration, and electrode assignment on brain MRIs. Its modular architecture includes three modules: a clinical module for electrode labeling and localization, and a research module for automated data processing and electrode contact assignment. To ensure accessibility for users with limited programming and imaging expertise, we packaged iEEG-recon in a containerized format that allows integration into clinical workflows. We propose a cloud-based implementation of iEEG-recon, and test our pipeline on data from 132 patients at two epilepsy centers using retrospective and prospective cohorts.

Results We used iEEG-recon to accurately reconstruct electrodes in both electrocorticography (ECoG) and stereoelectroencephalography (SEEG) cases with a 10 minute running time per case, and ∼20 min for semi-automatic electrode labeling. iEEG-recon generates quality assurance reports and visualizations to support epilepsy surgery discussions. Reconstruction outputs from the clinical module were radiologically validated through pre- and post-implant T1-MRI visual inspections. Our use of ANTsPyNet deep learning approach for brain segmentation and electrode classification was consistent with the widely used Freesurfer segmentation.

Discussion iEEG-recon is a valuable tool for automating reconstruction of iEEG electrodes and implantable devices on brain MRI, promoting efficient data analysis, and integration into clinical workflows. The tool’s accuracy, speed, and compatibility with cloud platforms make it a useful resource for epilepsy centers worldwide. Comprehensive documentation is available at https://ieeg-recon.readthedocs.io/en/latest/

Figure
  • Download figure
  • Open in new tab

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

AL and KAD received support from NINDS (R01NS116504). NS received support from American Epilepsy Society (953257) and NINDS (R01NS116504). The authors would also like to thank the Thornton Foundation for their generous support. Brian Litt acknowledges funding from the Pennsylvania Tobacco Fund, NINDS R56099348, NIH DP1NS122038, the Mirowski Family Foundation, Jonathan Rothberg, and Neil and Barbara Smit.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

Patients were enrolled serially between 2015 and 2023 after providing written informed consent for iEEG data analysis, in line with the University of Pennsylvania's IRB-approved protocol (reference number 821778).

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

Our pipeline, with example data, is available here: https://ieeg-recon.readthedocs.io

https://ieeg-recon.readthedocs.io

https://github.com/penn-cnt/ieeg-recon

Data Availability

Our pipeline, with example data, is available here: https://ieeg-recon.readthedocs.io

https://ieeg-recon.readthedocs.io

https://github.com/penn-cnt/ieeg-recon

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license.
Back to top
PreviousNext
Posted June 13, 2023.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
iEEG-recon: A Fast and Scalable Pipeline for Accurate Reconstruction of Intracranial Electrodes and Implantable Devices
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
iEEG-recon: A Fast and Scalable Pipeline for Accurate Reconstruction of Intracranial Electrodes and Implantable Devices
Alfredo Lucas, Brittany H. Scheid, Akash R. Pattnaik, Ryan Gallagher, Marissa Mojena, Ashley Tranquille, Brian Prager, Ezequiel Gleichgerrcht, Ruxue Gong, Brian Litt, Kathryn A. Davis, Sandhitsu Das, Joel M. Stein, Nishant Sinha
medRxiv 2023.06.12.23291286; doi: https://doi.org/10.1101/2023.06.12.23291286
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
iEEG-recon: A Fast and Scalable Pipeline for Accurate Reconstruction of Intracranial Electrodes and Implantable Devices
Alfredo Lucas, Brittany H. Scheid, Akash R. Pattnaik, Ryan Gallagher, Marissa Mojena, Ashley Tranquille, Brian Prager, Ezequiel Gleichgerrcht, Ruxue Gong, Brian Litt, Kathryn A. Davis, Sandhitsu Das, Joel M. Stein, Nishant Sinha
medRxiv 2023.06.12.23291286; doi: https://doi.org/10.1101/2023.06.12.23291286

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Neurology
Subject Areas
All Articles
  • Addiction Medicine (349)
  • Allergy and Immunology (668)
  • Allergy and Immunology (668)
  • Anesthesia (181)
  • Cardiovascular Medicine (2648)
  • Dentistry and Oral Medicine (316)
  • Dermatology (223)
  • Emergency Medicine (399)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (942)
  • Epidemiology (12228)
  • Forensic Medicine (10)
  • Gastroenterology (759)
  • Genetic and Genomic Medicine (4103)
  • Geriatric Medicine (387)
  • Health Economics (680)
  • Health Informatics (2657)
  • Health Policy (1005)
  • Health Systems and Quality Improvement (985)
  • Hematology (363)
  • HIV/AIDS (851)
  • Infectious Diseases (except HIV/AIDS) (13695)
  • Intensive Care and Critical Care Medicine (797)
  • Medical Education (399)
  • Medical Ethics (109)
  • Nephrology (436)
  • Neurology (3882)
  • Nursing (209)
  • Nutrition (577)
  • Obstetrics and Gynecology (739)
  • Occupational and Environmental Health (695)
  • Oncology (2030)
  • Ophthalmology (585)
  • Orthopedics (240)
  • Otolaryngology (306)
  • Pain Medicine (250)
  • Palliative Medicine (75)
  • Pathology (473)
  • Pediatrics (1115)
  • Pharmacology and Therapeutics (466)
  • Primary Care Research (452)
  • Psychiatry and Clinical Psychology (3432)
  • Public and Global Health (6527)
  • Radiology and Imaging (1403)
  • Rehabilitation Medicine and Physical Therapy (814)
  • Respiratory Medicine (871)
  • Rheumatology (409)
  • Sexual and Reproductive Health (410)
  • Sports Medicine (342)
  • Surgery (448)
  • Toxicology (53)
  • Transplantation (185)
  • Urology (165)