Search bioRxiv⌕ Search

Biology subjects

Millan, J. d. R.

Publications and source records attributed to Millan, J. d. R..

14 recordsLinked to original sources

Postprocessing-Enhanced Machine Learning for Reliable Real-Time Sleep Staging in Closed-Loop Neuromodulation

Real-time sleep stage classification is important for closed-loop neuromodulation at certain stages during sleep, yet current models often yield noisy and unstable outputs that risk false triggers. These fluctuations, especially near stage boundaries, can compromise the safety and reliability of stimulation. Existing methods frequently rely on model-specific architectures or require extensive tuning to maximize precision, which limits their generalizability and hinders deployment in real-time systems. To address this, we propose a lightweight, classifier-independent post-processing pipeline that stabilizes predictions without modifying the underlying classifier. Our method first applies temporal smoothing to predicted sleep-stage probabilities, followed by conservative control logic to enhance stimulation precision. We evaluate four smoothing techniques: Moving Average (MA), Exponential Smoothing (ES), Kalman Filtering (KF), and a novel Weighted Exponential Smoothing (WES), on a 29-subject open-source sleep dataset. To capture the trade-offs between stability and responsiveness, we introduce new real-time evaluation metrics. We identify an optimal smoothing intensity range and assess three control strategies: probability thresholding, naive waiting, and entropy constraint, as well as a hybrid method combining high confidence and low uncertainty. Smoothing improves generalization and robustness: under both low and high synthetic noise ({sigma} > 0.2), smoothed outputs retain 10-15% higher precision and recall across all stages. Control logic further enhances reliability: our hybrid method achieves 80% (Wake), 96% (N2), 98% (N3), and 86% (REM) precision. Finally, we introduce a stage-transition constraint matrix to suppress biologically implausible transitions (e.g., REM[->] N3), to further stabilize outputs during evidence accumulation, with potential applications in objective sleep quality assessment. To our knowledge, this is the first study to systematically characterize real-time trade-offs between smoothing, latency, and control logic in sleep staging. Overall, our generalizable framework is expected to improve safety, interpretability, and deployment feasibility of real-time sleep classification for both clinical and wearable closed-loop neuromodulation systems.

bioengineering↗

Stretchable, hair-compatible, and long-term stable wearable EEG system

Electroencephalography (EEG) is a cornerstone in both neuroscience research and clinical diagnostics. However, conventional EEG monitoring faces hardware limitations, particularly its adaptability and stability. Headsets either require complicated wiring or do not have enough stretchability and wearability to comply with the diverse head anthropometry and hair conditions of the user population. Additionally, there is an inherent tradeoff between wet and dry electrodes in capturing high-fidelity signals from hair-covered scalp regions while ensuring continuous and long-term recording quality. Here, we present a Mesh-integrated, Stretchable, and Hair-compatible EEG system engineered to overcome these limitations. By incorporating a kirigami-inspired mesh design and stretchable eutectic Gallium-Indium interconnects, MindStretcH adapts to various head sizes and allows for easy wearing and removal. Moreover, its uniquely designed porous, conical, soft 3D-printed mold, embedded with hydrogel electrodes, effectively penetrates hair layers to deliver low impedance and sustained signal integrity with minimal discomfort. We validate MindStretcH through offline and online EEG-based brain-computer interface tasks over a month, demonstrating its exceptional stability in continuous monitoring and dynamic applications. These results mark a promising advance toward non-invasive neural interfaces in both clinical and everyday use.

bioengineering↗

Brain-computer interface training fosters perceptual skills to detect errors

Accurate perception of visuo-motor errors is essential for perceptual and sensorimotor learning so that corrective actions are performed timely to maintain stability and goal-directed behavior. However, a key challenge remain: conventional, behavioral perceptual training -- typically based on response accuracy feedback-- is limited in improving sensitivity to small, subtle errors. While prior approaches have focused on modulating sensory regions to enhance perceptual learning, we propose an alternative approach: targeting a cognitive neural marker, namely the error positivity (Pe), a component of the error-related potential (ErrP) that primarily originates in the anterior cingulate cortex (ACC), a key region involved in decision-making. We hypothesize that the Pe, which reflects conscious awareness of errors, serves as a modifiable neural correlate of error perception. To address the performance bottlenecks seen in conventional, behavioral perceptual training, we show that real-time feedback on ErrP presence or absence during perceptual training over five longitudinal days enhances the Pe component and improves participants ability to detect small visuo-motor errors --an outcome not achieved through conventional, behavioral perceptual training. These findings offer new neurophysiological insights into error perception and learning, and establish ErrP-based BCI interventions as a promising tool for accelerating perceptual learning, particularly in contexts where subtle error detection is critical.

bioengineering↗

Alternative EEG pre-processing pipelines can lead to conflicting conclusions regarding cortical excitation/inhibition ratio

Confluent recent evidence indicates that the spectral slope of 1/f neurophysiological recordings is correspondent to cortical excitation/inhibition (E/I) ratio. In this framework, a steeper power spectrum (i.e., one with a larger spectral exponent {beta}) is indicative of stronger inhibitory tone and thus lower E/I ratio, and vice versa. While the tools commonly utilized for estimating {beta} are mostly consistent, there appears to be a lack of standardization among data processing protocols for slope analysis. In this work our goal is to draw attention to a fundamental consequence of this issue, namely that even in a confined, comparative research environment, applying different pre-processing steps to electroencephalography (EEG) data can lead to conflicting conclusions in terms of the E/I ratio. To this end, we analyzed resting-state EEG recordings in two independent datasets, containing data collected with eyes open (EO) and eyes closed (EC), with the latter considered as a physiological state with stronger inhibitory tone. Our analyses confirmed consistently in both cohorts that applying different spatial filtering schemes in an otherwise identical analytical pipeline indicated a decrease in E/I ratio over the prefrontal cortex in one case, but not the other when transitioning from EO to EC. In contrast, this same pattern was apparent over the occipital cortex regardless of the pre-processing scheme. This empirical evidence calls for the development of a standardized data processing protocol for EEG-based analyses of the E/I ratio. HighlightsO_LITwo EEG spatial filtering schemes - CAR and SL - are compared regarding E/I ratio C_LIO_LICAR and SL are shown to substantially affect aperiodic spectral slope estimates C_LIO_LICAR and SL yield opposite conclusions about frontal E/I ratio on the same data C_LIO_LISL reverses the common {beta}lo < {beta}hi bimodal pattern over frontal cortex C_LIO_LISpatial filtering effects are confirmed on two independent datasets C_LI

neuroscience↗

Personalized whole-brain activity patterns predict human corticospinal tract activation in real-time

BACKGROUNDTranscranial magnetic stimulation (TMS) interventions could feasibly treat stroke-related motor impairments, but their effects are highly variable. Brain state-dependent TMS approaches are a promising solution to this problem, but inter-individual variation in lesion location and oscillatory dynamics can make translating them to the poststroke brain challenging. Personalized brain state-dependent approaches specifically designed to address these challenges are therefore needed. METHODSAs a first step towards this goal, we tested a novel machine learning-based EEG-TMS system that identifies personalized brain activity patterns reflecting strong and weak corticospinal tract (CST) output (strong and weak CST states) in healthy adults in real-time. Participants completed a single-session study that included the acquisition of a TMS-EEG-EMG training dataset, personalized classifier training, and real-time EEG-informed single pulse TMS during classifier-predicted personalized CST states. RESULTSMEP amplitudes elicited in real-time during personalized strong CST states were significantly larger than those elicited during personalized weak and random CST states. MEP amplitudes elicited in real-time during personalized strong CST states were also significantly less variable than those elicited during personalized weak CST states. Personalized CST states lasted for [~]1-2 seconds at a time and [~]1 second elapsed between consecutive similar states. Individual participants exhibited unique differences in spectro-spatial EEG patterns between personalized strong and weak CST states. CONCLUSIONOur results show for the first time that personalized whole-brain EEG activity patterns predict CST activation in real-time in healthy humans. These findings represent a pivotal step towards using personalized brain state-dependent TMS interventions to promote poststroke CST function.

neuroscience↗

EEG error-related potentials encode magnitude of errors and individual perceptual thresholds

Error-related potentials (ErrP) are a prominent electroencephalogram (EEG) correlate of performance monitoring, and so crucial for learning and adapting our behavior. Although there exists an agreement that ErrP signal awareness to errors, it remains poorly understood whether they encode further information. Here we report an experiment with sixteen participants during three recording sessions in which occasional visuomotor rotations of varying magnitude occurred during a cursor reaching task. We designed a brain-computer interface (BCI) to detect ErrP in single trials that provided real-time feedback to participants by changing the color of the cursor upon ErrP detection. The individual ErrP-BCI decoders exhibited good transfer across recording sessions and scalability over the varying magnitude of errors. Our results indicate that ErrPs encode not only the conscious perception of errors, but also their magnitude, in their amplitude and latency. Furthermore, a non-linear relationship between the ErrP-BCI output and the magnitude of errors predicts individual perceptual thresholds to detect rotations. The uncovered relationship is consistent with non-human primate studies, which found a similar relationship between the size of errors and simple spike activity of Purkinje cells, and we conjecture a cerebellar contribution to ErrP. Our experimental setup and findings open new avenues to probe and extend current theories of performance monitoring, which are based on response conflict tasks, by incorporating continuous human-interaction tasks as well as analysis of the ErrP complex as a whole rather than individual peaks.

neuroscience↗

EEG signature of breaks in embodiment in VR

The brain mechanism of embodiment in a virtual body has grown a scientific interest recently, with a particular focus on providing optimal virtual reality (VR) experiences. Disruptions from an embodied state to a less- or non-embodied state, denominated Breaks in Embodiment (BiE), are however rarely studied despite their importance for designing interactions in VR. Here we use electroencephalography (EEG) to monitor the brains reaction to a BiE, and investigate how this reaction depends on previous embodiment conditions. The experimental protocol consisted of two sequential steps; an induction step where participants were either embodied or non-embodied in an avatar, and a monitoring step where, in some cases, participants saw the avatars hand move while their hand remained still. Our results show the occurrence of error-related potentials linked to observation of the BiE event in the monitoring step. Importantly, this EEG signature shows amplified potentials following the non-embodied condition, which is indicative of an accumulation of errors across steps. These results provide neurophysiological indications on how progressive disruptions impact the expectation of embodiment for a virtual body.

neuroscience↗

Stopping vs Resting state during motor imagery paradigm

Current non-invasive Brain Machine interfaces commonly rely on the decoding of sustained motor imagery activity (MI). This approach enables a user to control brain-actuated devices by triggering predetermined motor actions. One major drawback of such strategy is that users are not trained to stop their actions. Indeed, the termination process involved in BMI is poorly understood with most of the studies assuming that the end of an MI action is similar to the resting state. Here we hypothesize that the process of stopping MI (MI termination) and resting state are two different processes that should be decoded independently due to the exhibition of different neural pattens. We compared the detection of both states transitions of an imagined movement, i.e. rest-to-movement (onset) and movement-to-rest (offset). Our results shows that both decoders show significant differences in term of performances and latency (N=17 Subjects) with the offset decoder able to detect faster and better MI termination. While studying this difference, we found that the offset decoder is primarily based on the use of features in Beta band which appears earlier. Based on this finding, we also proposed a Random Forrest based decoder which enable to distinguish three classes (MI, MI termination and REST).

neuroscience↗

Beta-driven closed-loop deep brain stimulation can compromise human motor behavior in Parkinson’s Disease

Closed-loop or adaptive deep brain stimulation (DBS) for Parkinsons Disease (PD) has shown comparable clinical improvements to continuous stimulation, yet with less stimulation times and side effects. In this form of control, stimulation is driven by pathological beta oscillations recorded from the subthalamic nucleus, which have been shown to correlate with PD motor symptoms. An important consideration is that beta activity is itself modulated during volitional movements, yet it is unknown the impact that these volitional modulations may have on the efficacy of closed-loop systems. Here, three PD patients performed a functional reaching task during closed-loop stimulation while we measured their motor behavior. Our results show that closed-loop stimulation can alter motor performance at distinct movement intervals. Of particular relevance, closed-loop DBS compromised behavior during the returning period by increasing the amount of submovements executed, and in turn delayed movement termination. Following these findings, we hypothesize that the use of machine learning decoding different movement intervals to fully switch off the stimulator may be beneficial, and present here an exemplary approach decoding the initiation of the movement returning interval above chance level. These findings highlight the importance of evaluating these systems during functional tasks, and the need of extracting more robust biomarkers encoding ongoing symptoms or tasks execution intervals.

neuroscience↗

Real-time Detection of Driver’s Movement Intention in Response to Traffic Lights

Movements are preceded by certain brain states that can be captured through various neuroimaging techniques. Brain-Computer Interfaces can be designed to detect the movement intention brain state during driving, which could be beneficial in improving the interaction between a smart car and its driver, by providing assistance in-line with the drivers intention. In this paper, we present an Electroencephalogram based decoder of such brain states preceding movements performed in response to traffic lights in two experiments: in a car simulator and a real car. The results of both experiments (N=10: car simulator, N=8: real car) confirm the presence of anticipatory Slow Cortical Potentials in response to traffic lights for accelerating and braking actions. Single-trial classification performance exhibits an Area Under the Curve (AUC) of 0.71{+/-}0.14 for accelerating and 0.75{+/-}0.13 for braking. The AUC for the real car experiment are 0.63{+/-}0.07 and 0.64{+/-}0.13 for accelerating and braking respectively. Moreover, we evaluated the performance of real-time decoding of the intention to brake during online experiments only in the car simulator, yielding an average accuracy of 0.64{+/-}0.1. This paper confirm the existence of the anticipatory slow cortical potentials and the feasibility of single-trial detection these potentials in driving scenarios.

neuroscience↗

Disentangling the origins of confidence in speeded perceptual judgments through multimodal imaging

The human capacity to compute the likelihood that a decision is correct - known as metacognition - has proven difficult to study in isolation as it usually co-occurs with decision-making. Here, we isolated post-decisional from decisional contributions to metacognition by combining a novel paradigm with multimodal imaging. Healthy volunteers reported their confidence in the accuracy of decisions they made or decisions they observed. We found better metacognitive performance for committed vs. observed decisions, indicating that committing to a decision informs confidence. Relying on concurrent electroencephalography and hemodynamic recordings, we found a common correlate of confidence following committed and observed decisions in the inferior frontal gyrus, and a dissociation in the anterior prefrontal cortex and anterior insula. We discuss these results in light of decisional and post-decisional accounts of confidence, and propose a generative model of confidence in which metacognitive performance naturally improves when evidence accumulation is constrained upon committing a decision.

neuroscience↗

Differential contributions of subthalamic beta rhythms and neural noise to Parkinson motor symptoms

BackgroundExcessive beta oscillatory activity in the subthalamic nucleus (STN) is linked to Parkinsons disease and associated motor symptoms. However, the relationship between beta activity and motor symptoms has been inconsistent, which may influence the efficacy of closed-loop deep brain stimulation.\n\nHypothesisWe hypothesized that this variability is due to the degree of neural noise in STN recordings. Recent evidence has shown that neural noise is influenced by multiple factors, such as development, aging and disease, and could confound measures of beta activity. In this work, we propose a model that disentangles beta oscillatory activity and neural noise in the STN power spectrum.\n\nMethodsWe investigated the impact of neural noise on estimations of beta activity and motor symptoms from data recorded bilaterally from the subthalamic nuclei of thirteen Parkinsonian patients.\n\nResultsResults showed that the relationship between beta oscillatory amplitude and motor symptoms (bradykinesia and rigidity) significantly improved when neural noise was removed from the estimation of beta activity.\n\nConclusionThese findings emphasize the importance of modeling neural components independently for understanding physiological processes associated with Parkinsons disease, and identifying better biomarkers for characterizing symptom severity. Subsequently, we predict that our findings can have a direct application for closed-loop deep brain stimulation on Parkinsons Disease.

neuroscience↗

Brain-Computer Interfaces for Post-Stroke Motor Rehabilitation: A Meta-Analysis

ObjectiveBrain-computer interfaces (BCIs) can provide sensory feedback of ongoing brain oscillations enabling stroke survivors to modulate their sensorimotor rhythms purposefully. A number of recent clinical studies indicate that repeated use of such BCIs might trigger neurological recovery and hence improvement in motor function. Here we provide a first meta-analysis evaluating the clinical effectiveness of BCI-based post-stroke motor rehabilitation.\n\nMethodsTrials were identified using MEDLINE, CENTRAL, PEDro and by inspection of references in several review articles. We selected randomized controlled trials that used BCIs for post-stroke motor rehabilitation and provided motor impairment scores before and after the intervention. A random-effects inverse variance method was used to calculate the summary effect size.\n\nResultsWe initially identified 524 articles and, after removing duplicates, we screened titles and abstracts of 473 articles. We found 26 articles corresponding to BCI clinical trials, of these, there were nine studies that involved a total of 235 post-stroke survivors fulfilling the inclusion criterion (randomized controlled trials that examined motor performance as an outcome measure) for the meta-analysis. Motor improvements, mostly quantified by the upper limb Fugl-Meyer Assessment (FMA-UE), exceeded the minimal clinical important difference (MCID=5.25) in six BCI studies, while such improvement was reached only in three control groups. Overall, the BCI training was associated with a standardized mean difference (SMD) of 0.79 (95% CI: 0.37 to 1.20) in FMA-UE compared to control conditions, which is in the range of medium to large summary effect size. In addition, several studies indicated BCI-induced functional and structural neuroplasticity at a sub-clinical level.\n\nInterpretationWe found a medium to large effect size of BCI therapy compared to controls. This suggests that BCI technology might be an effective intervention for post-stroke upper limb rehabilitation. However, more studies with larger sample size are required to increase the reliability of these results.

neuroscience↗

Neural Encoding of Auditory Features during Music Perception and Imagery: Insight into the Brain of a Piano Player

It remains unclear how the human cortex represents spectrotemporal sound features during auditory imagery, and how this representation compares to auditory perception. To assess this, we recorded electrocorticographic signals from an epileptic patient with proficient music ability in two conditions. First, the participant played two piano pieces on an electronic piano with the sound volume of the digital keyboard on. Second, the participant replayed the same piano pieces, but without auditory feedback, and the participant was asked to imagine hearing the music in his mind. In both conditions, the sound output of the keyboard was recorded, thus allowing precise time-locking between the neural activity and the spectrotemporal content of the music imagery. For both conditions, we built encoding models to predict high gamma neural activity (70-150Hz) from the spectrogram representation of the recorded sound. We found robust similarities between perception and imagery - in frequency and temporal tuning properties in auditory areas.\n\nAbbreviations

neuroscience↗