bioRxiv Science⌕ Search

bioRxiv · 10.1101/2025.08.13.670238

A Practical Preprocessing Pipeline for Concurrent TMS-iEEG: Critical Steps and Methodological Considerations

Abstract

Transcranial magnetic stimulation combined with intracranial EEG (TMS-iEEG) has emerged as a powerful approach for probing the causal organization and dynamics of the human brain. Despite its promise, the presence of TMS-induced artifacts poses significant challenges for accurately characterizing and interpreting evoked neural responses. In this study, we present a practical preprocessing pipeline for single pulse TMS-iEEG data, incorporating key steps of re-referencing, filtering, artifact interpolation, and detrending. Using both real and simulated data, we systematically evaluated the effects of each step and compared alternative methodological choices. Our results demonstrate that this pipeline effectively attenuated various types of artifacts and noise, yielding cleaner signals for the subsequent analysis of intracranial TMS-evoked potentials (iTEPs). Moreover, we showed that methodological choices can substantially influence iTEPs outcomes. In particular, referencing methods might strongly affect iTEP morphology and amplitude, underscoring the importance of tailoring the referencing strategy to specific signal characteristics and research objectives. For filtering, we recommend a segment-based strategy, i.e., applying filters to data segments excluding the artifact window, to minimize distortion from abrupt TMS-related transients. Overall, this work represents an important step toward establishing a general preprocessing framework for TMS-iEEG data. We hope it encourages broader adoption and methodological development in concurrent TMS-iEEG research, ultimately advancing our understanding of brain organization and TMS mechanisms. HighlightsO_LIWe presented a practical preprocessing pipeline for single pulse TMS-iEEG data, incorporating key steps of re-referencing, filtering, artifact interpolation, and detrending. C_LIO_LIThe pipeline effectively attenuates multiple types of artifacts and noise, enabling accurate characterization of evoked neural responses. C_LIO_LIMethodological alternatives for each preprocessing step were evaluated using real and/or simulated datasets. C_LIO_LIRe-referencing substantially affects the morphology and amplitude of intracranial TMS-evoked potentials and requires careful consideration. C_LIO_LIA segment-based filtering strategy is recommended to better minimize distortion from TMS-related artifacts. C_LI

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Li, Z., Liu, X., Tatz, J., Hassan, U., Wang, J. B., Keller, C. J., Trapp, N. T., Boes, A. D., Jiang, J.. 2025-08-18. A Practical Preprocessing Pipeline for Concurrent TMS-iEEG: Critical Steps and Methodological Considerations. https://doi.org/10.1101/2025.08.13.670238

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

CoReg, tracking-based motion compensation for in vivo calcium imaging

In vivo calcium imaging enables the observation of neural activity with high spatial and temporal resolution. However, recordings are frequently affected by motion artifacts caused by animal movement, physiological processes, tissue drift, or instability of the imaging setup. These artifacts make signal extraction harder and reduce the consistency of downstream analyses. Current registration methods can correct rigid and non-rigid motion, but often estimate motion from individual frames or image patches and make limited use of temporal information. In addition, activity-driven fluorescence changes can make it difficult to distinguish changes in image appearance from actual motion. Here, we treat motion correction in calcium imaging as a point tracking problem and introduce CoReg, an open-source Python- based software tool with a graphical user interface. We benchmark CoReg against established registration methods using fluorescence imaging datasets from multiple species. CoReg performs competitively with or better than existing approaches across several settings. We further show that its performance is robust to the choice of tracked points, making the method straightforward to apply. CoReg includes implementations of both our method and the evaluated established methods. Our results show that tracking-based registration provides a simple and reliable approach for motion correction in vivo calcium imaging.

neuroscience↗

A shared slowing axis and phenotype-specific rhythms link clinical EEG to FDG-PET dementia phenotypes

Early and accurate identification of neurodegenerative disorders has notable implications for treatment and quality of life. Whereas neuroimaging-based biomarkers can accurately identify neurodegenerative subtypes, EEG represents a low-cost alternative that could expand access to dementia care. Here, we investigated whether six data-driven EEG latent factors, derived by nonnegative tensor decomposition of clinical EEGs, differ systematically across FDG-PET-defined neurodegenerative phenotypes. In 455 patients with EEG and FDG-PET acquired within one year of each other, factor expression was compared across 14 diagnostic classes assigned by StateViewer, a validated artificial intelligence framework for FDG-PET interpretation. To separate disease-general severity from phenotype-specific topography, each factor was also regressed on a subject-level slowing index. Finally, we related the factors to regional FDG uptake and to neuropsychological performance (n = 98) and assessed their potential utility for single-subject classification. Four factors reflecting neurophysiological oscillations (posterior alpha, Rolandic beta, frontotemporal delta-theta and posterior theta-slow alpha) varied significantly across phenotypes, with attenuation of faster and augmentation of slower rhythms most pronounced in dementia with Lewy bodies (DLB), dysexecutive Alzheimer disease (AD) and posterior cortical atrophy, whereas factors dominated by eye-movement and muscle artifact showed no robust phenotypic association. Alpha and beta effects were largely attributable to overall slowing, whereas posterior theta-slow alpha became more phenotype-specific after adjustment (eta-squared 0.082 to 0.147), dissociating the Alzheimer disease spectrum from frontotemporal syndromes. The slowing index tracked with an FDG-PET pattern highly associated with DLB across the cohort, irrespective of assigned phenotype (r = 0.51, P < 0.001). Consistent with a model in which dementia phenotypes reflect altered hippocampal-neocortical oscillatory coupling (stochastic latent oscillatory diffusion), frontotemporal delta-theta tracked a limbocortical axis of metabolic pattern expression, rising with neocortical and falling with limbic-predominant involvement, independent of overall slowing and phenotype. Each factor mapped onto a distinct metabolic topography, with frontotemporal delta-theta resembling Alzheimer-type hypometabolism and posterior theta-slow alpha the medial occipital hypometabolism of DLB. In terms of neuropsychological performance, Rolandic beta was associated with executive functions, and frontotemporal delta-theta with memory, visuospatial and global performance. Using these four factors alone, an exploratory logistic regression classifier separated cognitively unimpaired participants from DLB, posterior cortical atrophy, typical AD, and dysexecutive AD (area under the curve > 0.8) but poorly discriminated frontotemporal dementia phenotypes canonically associated with 4-repeat tau. Thus, data-driven decomposition of clinical EEG separates oscillatory activity from artifact into factors that track metabolic phenotype, regional metabolism and cognition, capturing both overall slowing and phenotype-specific patterns. This work informs the further development of scalable, biology-informed EEG-based phenotyping of neurodegenerative disease.

neuroscience↗

An application of fNIRS for the prediction of hearing thresholds in sleeping infants: a proof of principle

This study applied a two-component-response modelling approach to fNIRS recordings obtained from naturally sleeping infants presented with auditory stimuli at different sound intensities. We investigated whether the relationship between fNIRS response measures and stimulus intensity could be modelled to estimate individual auditory hearing thresholds. In the normal-hearing group, 75% of infants had threshold estimates for the sound /ba/ within the expected normal-hearing range, with an estimated mean equivalent normal loudness (ENL) of 10.72 dB HL (SD 8.64 dB HL). A case study further explored the potential application of this approach in an infant with hearing impairment, highlighting the importance of reliable responses at lower stimulus intensities and appropriate regression model selection. These findings provide preliminary evidence that cortical haemodynamic responses can be quantitatively related to sound intensity for estimating auditory sensitivity.

neuroscience↗