Search bioRxiv⌕ Search

Biology subjects

Makeig, S.

Publications and source records attributed to Makeig, S..

10 recordsLinked to original sources

Secure LSL: A Unified Encryption Architecture for the Lab Streaming Layer

ObjectiveThe Lab Streaming Layer (LSL) protocol, widely adopted for synchronized multimodal biosignal recording in neuroscience research, transmits all data in plaintext, exposing sensitive neural and physiological recordings to interception and tampering and creating regulatory liability for clinical and commercial deployments across most major international jurisdictions. We present Secure LSL, the unified encryption architecture for the protocol: a novel security layer that authenticates devices and encrypts biosignal streams through transparent, drop-in modifications to the core library, requiring no application changes and no recompilation for dynamically linked clients. ApproachWe implement encryption at the liblsl core library level using a shared keypair authorization model with ChaCha20-Poly1305 authenticated encryption. All authorized devices share a common Ed25519 keypair, and public key verification during connection establishment ensures only authorized devices communicate. The architecture enforces network-wide security consensus, requiring all connected devices to operate in either secure or insecure mode, eliminating vulnerable mixed environments, and operates transparently with zero code changes to existing applications. Main ResultsThe architecture preserves application programming interface (API) transparency, so existing applications need no code changes (legacy devices must update to connect to secured outlets). Across five hardware platforms spanning x86 desktop, Apple Silicon laptop, embedded ARM single-board, and Xtensa microcontroller targets, encryption adds sub-millisecond latency in all desktop and embedded ARM configurations, with overhead in the single-digit percent range (approximately 4 to 9%, the lowest values within measurement noise of zero) for typical 64-channel, 1000-Hz configurations. A clean-room ESP32 implementation extends transparent encryption to dual-core microcontrollers with no measurable push-path overhead and approximately 2 kB additional static random-access memory (SRAM) consumption, enabling secured wearable and ambulatory biosensor deployments. SignificanceBy implementing security within the protocol core rather than requiring application-level changes, we transform LSL from a research-only protocol to a security-capable platform for clinical settings, multi-institution collaborations, and commercial products, while preserving its zero-configuration philosophy.

neuroscience↗

Sensory Entrained TMS (seTMS) enhances motor cortex plasticity

Neural excitability fluctuates with sensory events, creating windows of opportunity to enhance brain stimulation. Repetitive transcranial magnetic stimulation (TMS), including intermittent theta burst stimulation (iTBS), is a promising treatment for neurological and psychiatric disorders, but does not account for fluctuations in neural excitability, likely contributing to variable outcomes. Sensory Entrained TMS (seTMS) leverages sensorimotor oscillations to enhance corticospinal responses, but the sustained effects as a repetitive protocol are unknown. We extended seTMS to iTBS measuring motor-evoked potentials (MEPs) as a physiological readout in a randomized crossover study comparing standard iTBS with sensory entrained iTBS (se-iTBS, n=20). se-iTBS more than doubled the MEP effect (55% vs. 26% MEP enhancement) and persisted for at least 30 minutes. Notably, more than 80% of participants showed larger responses with se-iTBS at all time points. se-iTBS may provide a robust and practical framework for optimizing TMS that bridges electrophysiological mechanisms and clinical applications.

neuroscience↗

Simulating Scalp EEG from Ultrahigh-Density ECoG Data Illustrates Cortex to Scalp Projection Patterns

Ultrahigh-density electrocorticography (ECoG) provides unprecedented spatial resolution for recording cortical electrical activity. This study uses simulated scalp projections from an ECoG recording to challenge the assumption that channel-level electroencephalography (EEG) reflects only local field potentials near the recording electrode. Using a 1024-electrode ECoG array placed on the primary motor cortex during finger movements, we applied Adaptive Mixture Independent Component Analysis (AMICA) to decompose activity into maximally independent grid activity components and projected these to 207 simulated EEG scalp electrode channels using a high-definition MR image-based electrical forward-problem head model. Our findings demonstrate how cortical surface-recorded potentials propagate to scalp electrodes both far from and near to the generating location. This work has significant implications for interpreting both EEG and ECoG data in clinical and research applications. Clinical RelevanceThis study provides insights for interpreting scalp EEG data, demonstrating that scalp channel activity represents a complex mixture of distributed cortical source activities rather than primarily activity generated nearest to the scalp electrodes. These findings may hopefully spur improvement in EEG-based diagnostics for neurological disorders.

neuroscience↗

Sensory Entrained TMS (seTMS) enhances motor cortex excitability

Transcranial magnetic stimulation (TMS) applied to the motor cortex has revolutionized the study of motor physiology in humans. Despite this, TMS-evoked electrophysiological responses show significant variability, due in part to inconsistencies between TMS pulse timing and ongoing brain oscillations. Variable responses to TMS limit mechanistic insights and clinical efficacy, necessitating the development of methods to precisely coordinate the timing of TMS pulses to the phase of relevant oscillatory activity. We introduce Sensory Entrained TMS (seTMS), a novel approach that uses musical rhythms to synchronize brain oscillations and time TMS pulses to enhance cortical excitability. Focusing on the sensorimotor alpha rhythm, a neural oscillation associated with motor cortical inhibition, we examine whether rhythm-evoked sensorimotor alpha phase alignment affects primary motor cortical (M1) excitability in healthy young adults (n=33). We first confirmed using electroencephalography (EEG) that passive listening to musical rhythms desynchronizes inhibitory sensorimotor brain rhythms (mu oscillations) around 200 ms before auditory rhythmic events (27 participants). We then targeted this optimal time window by delivering single TMS pulses over M1 200 ms before rhythmic auditory events while recording motor-evoked potentials (MEPs; 19 participants), which resulted in significantly larger MEPs compared to standard single pulse TMS and an auditory control condition. Neither EEG measures during passive listening nor seTMS-induced MEP enhancement showed dependence on musical experience or training. These findings demonstrate that seTMS effectively enhances corticomotor excitability and establishes a practical, cost-effective method for optimizing non-invasive brain stimulation outcomes.

neuroscience↗

HBN-EEG: The FAIR implementation of the Healthy Brain Network (HBN) electroencephalography dataset

The Child Mind Institute (CMI) Healthy Brain Network (HBN) project has recorded phenotypic, behavioral, and neuroimaging data from [~]5,000 children and young adults between the ages of 5 and 21. Here, we present HBN-EEG, the "analysis-ready" data from its high-density (128-channel) electroencephalographic (EEG) recording sessions formatted as Brain Imaging Data Structure (BIDS) datasets. HBN-EEG also includes behavioral and task-condition events annotated using Hierarchical Event Descriptors (HED), making the datasets analysis-ready for many purposes without forensic search for unreported details. We also ensured data consistency and event integrity and marked inconsistencies. HBN-EEG sessions include six tasks, three with no participant behavioral input (passive tasks) and three including button press responses following task instructions (active tasks). Openly available participant information includes age, gender, and four psychopathology dimensions (internalizing, externalizing, attention, and p-factor) derived from a bifactor model of questionnaire data. Currently, HBN-EEG data from more than 2,600 participants is freely available on NEMAR (nemar.org) and OpenNeuro in the form of nine dataset releases, with further dataset releases to follow.

neuroscience↗

The Lab Streaming Layer for Synchronized Multimodal Recording

Accurately recording the interactions of humans or other organisms with their environment and other agents requires synchronized data access via multiple instruments, often running independently using different clocks. Active, hardware-mediated solutions are often infeasible or prohibitively costly to build and run across arbitrary collections of input systems. The Lab Streaming Layer (LSL) framework offers a software-based approach to synchronizing data streams based on per-sample time stamps and time synchronization across a common local area netowrk (LAN). Built from the ground up for neurophysiological applications and designed for reliability, LSL offers zero-configuration functionality and accounts for network delays and jitters, making connection recovery, offset correction, and jitter compensation possible. These features can ensure continuous, millisecond-precise data recording, even in the face of interruptions. In this paper, we present an overview of LSL architecture, core features, and performance in common experimental contexts. We also highlight practical considerations and known pitfalls when using LSL, including the need to take into account input device throughput delays that LSL cannot itself measure or correct. The LSL ecosystem has grown to support over 150 data acquisition device classes and to establish interoperability between client software written in several programming languages including C/C++, Python, MATLAB, Java, C#, JavaScript, Rust, and Julia. The resilience and versatility of LSL have made it a major data synchronization platform for multimodal human neurobehavioral recording, now supported by a wide range of software packages including major stimulus presentation tools, real-time analysis envirnoments, and brain-computer interface applications. Beyond basic science, research, and development, LSL has been used as a resilient and transparent back-end in deployment scenarios including interactive art installations, stage performances, and commercial products. In neurobehavioral studies and other neuroscience applications, LSL facilitates the complex task of capturing organismal dynamics and environmental changes occurring within and across multiple data streams on a common timeline.

neuroscience↗

Capturing the nature of events and event context using Hierarchical Event Descriptors (HED)

Event-related data analysis plays a central role in EEG and MEG (MEEG) and other neuroimaging modalities such as fMRI. Choices about which events to report and how to annotate their full natures significantly influence the value, reliability, and reproducibility of neuroimaging datasets for further analysis and meta- or mega-analysis. A powerful annotation strategy using the new third-generation formulation of the Hierarchical Event Descriptors (HED) framework and tools (hedtags.org) combines robust event description with details of experiment design and metadata in a human-readable as well as machine-actionable form, making event annotation relevant to the full range of neuroimaging and other time series data. This paper considers the event design and annotation process using as a case study the well-known multi-subject, multimodal dataset of Wakeman and Henson made available by its authors as a Brain Imaging Data Structure (BIDS) dataset (bids.neuroimaging.io). We propose a set of best practices and guidelines for event annotation integrated in a natural way into the BIDS metadata file architecture, examine the impact of event design decisions, and provide a working example of organizing events in MEEG and other neuroimaging data. We demonstrate how annotations using HED can document events occurring during neuroimaging experiments as well as their interrelationships, providing machine-actionable annotation enabling automated within- and across-experiment analysis and comparisons. We discuss the evolution of HED software tools and have made an accompanying HED-annotated BIDS-formatted edition of the MEEG data of the Wakeman and Henson dataset (openneuro.org, ds003645).

neuroscience↗

Unsupervised Learning of Brain State Dynamics during Emotion Imagery using High-Density EEG

Here we assume that emotional states correspond to functional dynamic states of brain and body, and attempt to characterize the appearance of these states in high-density scalp electroencephalographic (EEG) recordings acquired from 31 participants during 1-2 hour sessions, each including fifteen 3-5 min periods of self-induced emotion imagination using the method of guided imagery. EEG offers an objective and high-resolution measurement of whatever portion of cortical electrical dynamics is resolvable from scalp recordings. Despite preliminary progress in EEG-based emotion decoding using supervised machine learning methods, few studies have applied data-driven, unsupervised decomposition approaches to investigate the underlying EEG dynamics by characterizing brain temporal dynamics during emotional experience. This study applies an unsupervised approach - adaptive mixture independent component analysis (adaptive mixture ICA, AMICA) that learns a set of ICA models each accounted for portions of a given multi-channel EEG recording. We demonstrate that 20-model AMICA decomposition can identify distinct EEG patterns or dynamic states active during each of the fifteen emotion-imagery periods. The transition in EEG patterns revealed the time-courses of brain-state dynamics during emotional imagery. These time-courses varied across emotions: "grief" and "happiness" showed more abrupt transitions while "contentment" was nearly indistinguishable from the preceding rest period. The spatial distributions of independent components (ICs) of the AMICA models showed higher similarity within-subject across emotions than within-emotion across subjects. No significant differences in IC distributions were found between positive and negative emotions. However, significant changes in IC distributions during emotional imagery compared to rest were identified in brain areas such as the left prefrontal cortex, the posterior cingulate cortex, the motor cortex, and the visual cortex. The study demonstrates the feasibility of AMICA in modeling high-density and nonstationary EEG and its utility in providing data-driven insights into brain state dynamics during self-paced emotional experiences, which have been difficult to measure. This approach can advance our understanding of highly dynamical emotional processes and improve the performance of EEG-based emotion decoding for affective computing and human-computer interaction.

neuroscience↗

Reduced Medial Frontal Positivity During the Stimulus-Response Interval Precedes Action Errors and Explains Task Deficits in Attention-Deficit Hyperactivity Disorder

Brain mechanisms responsible for errors during cognitive tasks are poorly understood, particularly in adolescents with attention-deficit hyperactivity disorder (ADHD). Using subject-specific multimodal imaging (EEG, MRI, behavior) during flanker task performance by a sample of 94 human adolescents (mean age = 15.5 years, 50% female) with varying degrees of ADHD symptomatology, we examined the degree to which amplitudes of source-resolved event-related potentials (ERPs) from brain independent components within a critical (but often ignored) period in the action selection process, the stimulus-response interval, predicted motor response errors (across trials) and error rates (across individuals). Reduced amplitudes of Frontocentral P3 (peaking at approximately 390 milliseconds in stimulus-locked ERPs) and Pre-Movement Positivity (PMP, peaking at approximately 110 milliseconds pre-response in response-locked ERPs) in projections from posterior medial frontal cortex (pMFC) predicted erroneous responses, and reduced amplitude of PMP predicted a larger participant error rate. After regressing stimulus-from response-locked ERPs, we concluded that errors primarily depended upon response selection processes reflected in PMP amplitude. Finally, mediation analyses showed that smaller PMPs on correct response trials was associated with the higher frequency of errors committed by adolescents with more ADHD symptoms. These results bolster the importance of pMFC in action selection and support the possible value of using PMP as an intervention target to remediate performance deficits in ADHD.

neuroscience↗

The Invisible Maze Task (IMT): Interactive Exploration of Sparse Virtual Environments to Investigate Action-Driven Formation of Spatial Representations

The neuroscientific study of human navigation has been con-strained by the prerequisite of traditional brain imaging studies that re-quire participants to remain stationary. Such imaging approaches neglect a central component that characterizes navigation -the multisensory ex-perience of self-movement. Navigation by active movement through space combines multisensory perception with internally generated self-motion cues. We investigated the spatial micro genesis during free ambulatory exploration of interactive sparse virtual environments using motion cap-ture synchronized to high resolution electroencephalographic (EEG) data as well psychometric and self-report measures. In such environments, map-like allocentric representations must be constructed out of transient, egocentric first-person perspective 3-D spatial information. Considering individual differences of spatial learning ability, we studied if changes in exploration behavior coincide with spatial learning of an environment. To this end, we analyzed the quality of sketch maps (a description of spatial learning) that were produced after repeated learning trials for differently complex maze environments. We observed significant changes in active exploration behavior from the first to the last exploration of a maze: a decrease in time spent in the maze predicted an increase in subsequent sketch map quality. Furthermore, individual differences in spatial abilities as well as differences in the level of experienced immersion revealed an impact on the quality of spatial learning. Our results demonstrate the feasibility to observe behavioral changes associated with spatial learning, opening the way to the study of cortical dynamics of navigation.

neuroscience↗