Coregistration of transcranial magnetic stimulation (TMS) and electroencephalography (EEG) allows non-invasive probing of brain circuits: TMS induces brain activation due to the generation of a properly oriented focused electric field (E-field) using a coil placed on a selected position over the scalp, while EEG captures the effects of the stimulation on brain electrical activity. Moreover, the combination of these techniques allows the investigation of several brain properties, including brain functional connectivity. The choice of E-field parameters, such as intensity, orientation, and position, is crucial for eliciting cortex-specific effects. Here, we evaluated whether and how the spatial pattern, i.e., topography and strength of functional connectivity, is modulated by the stimulus orientation. We systematically altered the E-field orientation when stimulating the left pre-supplementary motor area and showed an increase of functional connectivity in areas associated with the primary motor cortex and an E-field orientation-specific modulation of functional connectivity intensity.
State-dependent non-invasive brain stimulation (NIBS) informed by electroencephalography (EEG) has contributed to the understanding of NIBS inter-subject and inter-session variability. While these approaches focus on local EEG characteristics, it is acknowledged that the brain exhibits an intrinsic long-range dynamic organization in networks. This proof-of-concept study explores whether EEG connectivity of the primary motor cortex (M1) in the pre-stimulation period aligns with the Motor Network (MN) and how the MN state affects responses to the transcranial magnetic stimulation (TMS) of M1. One thousand suprathreshold TMS pulses were delivered to the left M1 in eight subjects at rest, with simultaneous EEG. Motor-evoked potentials (MEPs) were measured from the right hand. The source space functional connectivity of the left M1 to the whole brain was assessed using the imaginary part of the phase locking value at the frequency of the sensorimotor μ-rhythm in a 1 s window before the pulse. Group-level connectivity revealed functional links between the left M1, left supplementary motor area, and right M1. Also, pulses delivered at high MN connectivity states result in a greater MEP amplitude compared to low connectivity states. At the single-subject level, this relation is more highly expressed in subjects that feature an overall high cortico-spinal excitability. In conclusion, this study paves the way for MN connectivity-based NIBS.
The brain is a highly complex physical system made of assemblies of neurons that work together to accomplish elaborate tasks such as motor control, memory and perception. How these parts work together has been studied for decades by neuroscientists using neuroimaging, psychological manipulations, and neurostimulation. Neurostimulation has gained particular interest, given the possibility to perturb the brain and elicit a specific response. This response depends on different parameters such as the intensity, the location and the timing of the stimulation. However, most of the studies performed so far used previously established protocols without considering the ongoing brain activity and, thus, without adaptively targeting the stimulation. In control theory, this approach is called open-loop control, and it is always paired with a different form of control called closed-loop, in which the current activity of the brain is used to establish the next stimulation. Recently, neuroscientists are beginning to shift from classical fixed neuromodulation studies to closed-loop experiments. This new approach allows the control of brain activity based on responses to stimulation and thus to personalize individual treatment in clinical conditions. Here, we review this new approach by introducing control theory and focusing on how these aspects are applied in brain studies. We also present the different stimulation techniques and the control approaches used to steer the brain. Finally, we explore how the closed-loop framework will revolutionize the way the human brain can be studied, including a discussion on open questions and an outlook on future advances.
Objective Our 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. Approach We developed NeuroSimo, a software platform that enables arbitrary EEG–TMS stimulation protocols written in Python, leveraging Python’s 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 results In 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. Significance As an open-source platform combining Python’s 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.
Determining the optimal stimulation target for motor responses (motor hotspot) and the required intensity for reliably eliciting said responses (motor threshold) are common procedures in transcranial magnetic stimulation (TMS) research and treatments. However, the procedures for determining them are user-dependent, slow, and lack standardization, leading to long stimulation sessions with potentially inadequate outcomes. Partially automated algorithms for determining the motor threshold have been developed, but the motor hotspot is still largely mapped by hand. Automating the hotspot mapping will accelerate the process and improve standardization and accuracy. We developed a fully automated algorithm for finding the motor hotspot with multi-locus TMS and Bayesian optimization. Tested online in five healthy participants, the algorithm located motor hotspots with (mean ± 95% CI) 2.1 ± 0.7 mm and 6 ± 2° difference from the global best target with only (mean) 47 stimuli. This is a significant improvement from previous motor-mapping algorithms, which do not optimize for stimulation location and orientation simultaneously. This accurate, fast, and user-independent procedure paves the way for faster experimental processes and more streamlined clinical applications.