bioRxiv Science⌕ Search

bioRxiv · 10.1101/2024.09.03.611113

Predictive Modeling of Sleep Slow Oscillation Emergence on the electrode manifold: Toward Personalized Closed-Loop Brain Stimulation

Abstract

BackgroundSleep slow oscillations (SOs), characteristic of NREM sleep, are causally tied to cognitive outcomes and the health-promoting homeostatic functions of sleep. Due to these known benefits, brain stimulation techniques aiming to enhance SOs are being developed, with great potential to contribute to clinical interventions, as they hold promise for improving sleep functions in populations with identified SO deficits (e.g., mild cognitive impairment). SO-targeting closed-loop stimulation protocols currently strive to identify SO occurrences in real time, a computationally intensive step that can lead to reduced precision (compared to post-hoc detection). These approaches are also often limited to focusing on only one electrode location, thus inherently precluding targeting of SOs that is informed by the overall organization of SOs in space-time. Prediction of SO emergence across the electrode manifold would establish an alternative to online detection, thus greatly advancing the development of personalized and flexible brain stimulation paradigms. This study presents a computational model that predicts SO occurrences at multiple locations across a night of sleep. In combination with our previous study on optimizing brain stimulation protocols using the spatiotemporal properties of SOs, this model contributes to increasing the accuracy of SO targeting in brain stimulation applications. MethodsSOs were detected in a dataset of nighttime sleep of 22 subjects (9 females), acquired with polysomnography including 64 EEG channels. Modeling of SO occurrence was achieved for SOs in stage N3, or in a combination of stages N2 and N3 (N2&N3). We study SO emergence at progressively more refined time scales. First, the cumulative SO occurrences in successive sleep cycles were successfully fit with exponentials. Secondly, the SO timing in each individual was modeled with a renewal point process. Using an inverse Gaussian model, we estimated the probability density function of SO timing and its parameters (mean) and {lambda} (shape, representing skewness) in successive cycles. ResultsWe observed a declining trend in the SO count across sleep cycles, which we modeled using a power law relationship. The decay rate per cycle was 1.473 for N3 and 1.139 for N2&N3, with variances of the decay rates across participants being 1 and 0.53, respectively. This pattern mirrors the declining trend of slow wave activity (SWA) across sleep cycles, likely due to the inherent relationship between SWA and SO. Additionally, the SO timing model for N3 showed an increasing trend in the model parameters (, {lambda}) across cycles. The increase rate per cycle followed a power law relationship with a rate of 0.83 and an exponential relationship with a rate of 4.59, respectively. The variances of the increase rates were 0.02 for and 0.44 for {lambda} across participants. ConclusionThis study establishes a predictive model for SO occurrence during NREM sleep, providing insights into its organization in successive cycles and at different EEG channels, which is relevant to development of personalized stimulation paradigms. These findings imply that personalized model parameters can be estimated by incorporating SO information in the first sleep cycle, and hence SO timing can be predicted before its occurrence with a probability distribution, enabling more precise targeting of SOs.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Alipour, M., Mednick, S. C., Malerba, P.. 2024-09-08. Predictive Modeling of Sleep Slow Oscillation Emergence on the electrode manifold: Toward Personalized Closed-Loop Brain Stimulation. https://doi.org/10.1101/2024.09.03.611113

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

KEEP EXPLORING

Related preprints

RNASeek: A Cross-Phyla Generative Foundation Model for Multipurpose RNA Modeling and Reinforcement Learning-Based Design

RNA plays central roles in regulating information flow and provides a versatile substrate for engineering biological functions. While large language models (LLMs) have transformed natural language processing and protein design, a general framework connecting RNA foundation models to functional sequence design remains limited. Here, we present RNASeek, a 1.6-billion-parameter generative foundation model built on a DeepSeek architecture and trained on a cross-phyla transcriptomic corpus for RNA sequence representation and generation. Natural-language tokens enable flexible conditional prediction and sequence design using a unified backbone. RNASeek captures species-specific transcript features and intron-exon boundaries in a zero-shot setting. We then fine-tune RNASeek to predict ribozyme self-cleavage activity and viral mRNA stability, revealing interpretable sequence features associated with function, including ribozyme loop flexibility and stem stability, as well as AU-rich motifs associated with mRNA stability. We use these functional predictors as reward models and apply Group Relative Policy Optimization (GRPO) to update the generation policy of RNASeek toward sequences with desired properties. GRPO-guided generation produces faster-cleaving ribozymes and stability-enhancing 3' UTRs while satisfying user-specified IUPAC constraints. Experimentally validated RNASeek-generated ribozymes achieve wild-type levels of activity, while RNASeek-generated 3' UTR sequences exceed the performance of the training data and benchmarked AI-generated 3' UTRs. Together, RNASeek establishes a unified pretrain-predict-optimize framework that connects learned RNA function to controllable de novo sequence design and provides a general strategy for engineering regulatory RNAs with desired properties.

bioengineering↗

Joint Vector Flow Mapping and Segmentation: Ill-Posedness,Differentiable Bayesian Inference, and Synthetic Vortex-FlowBenchmarks

Vector flow mapping (VFM) reconstructs left-ventricular (LV) blood velocity from color-Doppler echocardiography by combining the measured beamwise component with physical and regularizing constraints. Analysis of the discrete VFM formulation shows that the inverse problem is intrinsically ill posed: the occurrence of singular modes can be predicted from the geometry of the segmented blood-pool domain, the imposed boundary conditions, and the degree of smoothing. These modes can propagate uncertainty along entire transverse bands of the reconstructed velocity field, yet conventional VFM neither quantifies this uncertainty nor allows for correcting the blood-pool segmentation. We introduce Bayesian VFM (B--VFM), a hierarchical framework that jointly infers radial and transverse velocities, a probabilistic blood-pool mask, their spatially resolved uncertainties, and hyperparameters weighting Doppler and segmentation fidelity, mass conservation, boundary conditions, and smoothness. The discretized posterior admits a closed-form gradient and exact Hessian, enabling computationally efficient, gradient-based MAP estimation, sampling, and direct analysis of ill-posed modes. Posterior inference combines Gibbs sampling of conjugate Gamma-distributed hyperparameters with conditional maximum-a-posteriori estimation and a Laplace approximation for the high-dimensional velocity and mask fields. To accommodate systematic departures from planar mass conservation, B-VFM can learn the covariance of the planar divergence residual from an ensemble of flows and incorporate it as a structured model-discrepancy prior. Independent chains converged reproducibly, while covariance priors learned from flow ensembles illustrated how model discrepancies can be incorporated into the inference. B--VFM was evaluated using Lamb-Chaplygin dipoles under ideal conditions and with Doppler corruption, Doppler voids, and segmentation defects, and using the Hicks-Moffatt family of spherical vortices to assess violations of planar mass conservation. The method produced smooth reconstructions, localized uncertainty near unreliable measurements and regions of model inconsistency, and used flow information to correct segmentation errors. Within the tested vortex family, the data-informed planar divergence prior reduced velocity bias and mask distortion. B--VFM thus provides an uncertainty-aware reconstruction method and a flexible foundation for future VFM formulations incorporating additional priors, observations, and physical models. Future work will evaluate the method using clinical data and more complex three-dimensional benchmark flows.

bioengineering↗

Computational design of a versatile, zero-radius proximity labeling enzyme

The ability to map protein interactomes and organelle proteomes is foundational for achieving a molecular understanding of living cells. Proximity labeling (PL) provides a powerful strategy for this, but existing enzymes and photocatalysts are limited by their spatial resolution, reliance on biotin, and/or in vivo compatibility. Here we report FlexID, an engineered promiscuous ligase that catalyzes the rapid attachment of diverse small-molecule probes to proximal endogenous proteins. Critically, FlexID operates through a zero-radius, direct-contact mechanism, offering superior spatial precision compared to existing PL tools. We engineered FlexID by combining the strengths of sequence- and structure-trained computational models to enhance its catalytic activity and structural stability. Biophysical analysis revealed that specific conformational changes in FlexID improve its ability to recognize diverse target proteins while simultaneously preventing the premature release of the reactive intermediate. We demonstrate FlexID's versatility through in vivo proximity labeling, comprehensive organelle proteome mapping, and a high-throughput, fluorescence-based screen for molecular glues. Our work shows that computational methods can be harnessed to create mechanistically distinct PL enzymes and establishes FlexID as a flexible, high-resolution tool for mapping protein interactions and proteomes in living cells.

bioengineering↗