bioRxiv Science⌕ Search

Biology subjects

Siljamo, O.

Publications and source records attributed to Siljamo, O..

2 recordsLinked to original sources

TMS timed to interictal epileptiform discharges

Interictal epileptiform discharges (IEDs) are pathological hypersynchronous bursts of electrical brain activity that occur between seizures in patients with epilepsy. IEDs are caused by transient brain states that are difficult to predict, making them a challenging neurophysiological and technological case for brain-state-dependent stimulation. Administering stimulation at IED onset may provide insight into the epileptic network and optimize neurostimulation therapies. Here, we assessed the feasibility of IED-triggered transcranial magnetic stimulation (TMS) in two children with self-limited epilepsy with centrotemporal spikes (SeLECTS), a common pediatric epilepsy in which IEDs emerge from the motor cortex. A convolutional neural network (CNN) was trained on the participants pre-recorded electroencephalography (EEG) data with IEDs annotated by an epileptologist. The CNN was integrated into an EEG-processing pipeline that classified EEG segments as "IED" or "non-IED" in real time. With this pipeline, TMS pulses were administered during IED or non-IED periods in an interleaved, randomized design. We stimulated both the motor cortex generating the IEDs and the contralateral motor cortex and tested the impact of IEDs on TMS-evoked potentials (TEPs). Our study demonstrated that TMS can be timed to IEDs and that there is a site-specific increase in TEP amplitude when stimulating during IEDs. Out of the TMS pulses aimed at an IED, 39% and 19% were successfully delivered during an IED for the two participants, respectively. For future research, we propose ways to address the methodological challenges of IED-timed TMS, enabling brain-state-dependent TMS for epilepsy research and treatment.

neuroscience↗

NeuroSimo: an open-source software for closed-loop EEG- or EMG-guided TMS

ObjectiveOur goal was to create open-source software for closed-loop EEG-TMS that allows researchers to rapidly prototype and develop novel stimulation paradigms in a high-level programming language. This addresses the limitations of current solutions, which often rely on proprietary hardware and software, limiting their accessibility and customizability, or comprise ad-hoc pipelines tailored to specific use cases. ApproachWe developed NeuroSimo, a software platform that enables arbitrary EEG-TMS stimulation protocols written in Python, leveraging Pythons ecosystem of scientific, neuroimaging, and machine learning libraries. The core software is written in C++ with an embedded Python interpreter and employs the Robot Operating System (ROS 2) for inter-process communication. NeuroSimo runs on real-time-enabled Linux Ubuntu, using LabJack T4 for pulse triggering, and supports two EEG device models (Bittium NeurOne, BrainProducts actiCHamp) and TMS devices that deliver pulses via trigger signals. The software includes a graphical user interface for configuration and performance monitoring, and supports GPU processing for neural network computations. Main resultsIn brain-state-dependent stimulation using the Phastimate algorithm, which targets TMS pulses to the trough of sensorimotor -rhythm, NeuroSimo achieved a median timing error of 0.2 ms (95% CI: 0.2-0.2 ms), a 99th-percentile of 0.6 ms (0.6-0.6 ms), and a maximum of 1.4 ms. SignificanceAs an open-source platform combining Pythons flexibility with real-time closed-loop EEG-TMS, NeuroSimo enables researchers to develop and implement novel therapeutic approaches, marking a significant advance in personalized brain stimulation.

bioengineering↗