Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.10.05.756738

Somnus, a tunable, open-source platform for automated EEG sleep scoring in physiological and disease mouse models

Abstract

Many studies using mouse models of human brain disorders rely on extended recordings of brain electrical activity through electroencephalogram, or EEG. The features that researchers measure in these recordings, such as seizures and epileptiform activity, are deeply influenced by whether the animal is awake, in non-rapid eye movement (NREM) sleep, or in rapid eye movement (REM) sleep. Because total sleep duration varies naturally across animals, rigorous experimental comparisons require classifying the sleep state of every few seconds of a recording. Manual annotation is highly labor-intensive, often requiring hours per subject. While automated scoring tools accelerate this process, they are typically trained exclusively on healthy cohorts and frequently fail when applied to disease models that exhibit atypical or fragmented sleep architecture. Somnus is an open-source Python package designed to automate rodent sleep staging using EEG, muscle activity (EMG), and optional video-tracking data. It includes a robust base model trained on diverse recordings from six independent laboratories, enabling out-of-the-box classification across various equipment setups without requiring prior manual labeling. A central feature of Somnus is its capacity for rapid adaptation to pathological sleep structure. The software provides a graphical interface that directs researchers to the specific epochs where the base model is least certain. Users can manually correct these targeted epochs in a built-in viewer by comparing the model's classification to the raw EEG signal and video, and then use their corrections to fine-tune the model. This workflow empowers researchers to generate accurate custom scorers for complex disease models or novel treatments with just a few minutes of manual correction, bypassing the need to hand-score entire experimental cohorts or develop their own models from scratch.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Brenner, J., Caudill, M., Zoghbi, H.. 2026-10-12. Somnus, a tunable, open-source platform for automated EEG sleep scoring in physiological and disease mouse models. https://doi.org/10.64898/2026.10.05.756738

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

KEEP EXPLORING

Related preprints

Brain representations of visual short-term memories during healthy human aging: occipital decline and frontoparietal compensation

Visual short-term memory declines steeply with age, but the link to neural representations of memory content remains unknown. We used fMRI decoding to relate remembered motion-direction representations in visual and frontoparietal cortex to age and performance, in 115 adults, aged 25-87, from the Cambridge Centre for Ageing and Neuroscience (Cam-CAN) cohort. Decoding was strongest in visual cortex, but also significant in frontoparietal regions, with different profiles. Visual representations weakened with memory load and age, and statistically mediated age-related performance decline, especially during recall. This coupling, however, weakened with age: some older adults retained stronger visual representations than performance implied, suggesting impaired access to a partially preserved memory trace. Frontoparietal representations, instead, were largely insensitive to load and strengthened with age during maintenance, partially offsetting performance decline. Therefore, interventions to boost VSTM in older adults might target compensatory frontoparietal representations during memory maintenance, and readout of untapped visual representations at recall.

neuroscience↗

Lexical surprisal drives pupil dilation during continuous story listening

The pupil famously adjusts its dilation in response to light, but its role extends far beyond this basic sensory function. Its fluctuations index arousal and mental effort, beyond luminance-related dynamics, making it a sensitive marker of internal cognitive states. A growing body of work shows that these pupil-linked signals extend beyond the visual domain. However, which processes drive pupil responses in more naturalistic settings remains unclear as most evidence comes from tightly controlled paradigms that strip away the richness of real-world experience. Language offers a uniquely powerful window into this question, as it can allow us to create rich paradigms without having any visual, i.e. luminance, confounds. Moreover, language comprehension hinges on continuous prediction: listeners constantly generate expectations about upcoming input, and the discrepancy between expectation and actual input - contextual prediction error, or surprisal - carries measurable cognitive costs. Here, we tested the hypothesis that pupil-linked arousal indexes these linguistic surprisal signals during naturalistic listening. We recorded pupil responses while volunteers listened to naturalistic spoken stories in darkness, which were either intact or reversed. Reversed speech preserves the acoustics of the signal while destroying its intelligibility. Pupil dilation selectively tracked lexical surprisal within a late window of 1,700 to 2,350 milliseconds following word onset, in forward, but not control, backward speech. These findings indicate that pupil-linked arousal is tuned to global, context-dependent processing, tracking the cognitive cost of updating a predictive model during naturalistic listening.

neuroscience↗

Disrupting SORL1-retromer endosomal recycling in mice drives the age-dependent neurodegenerative signature of Alzheimer's disease

MRI studies have mapped the atrophic signature that distinguishes Alzheimer's disease (AD), isolating regions differentially vulnerable to its age-dependent neurodegenerative process. We test the hypothesis that an endosomal recycling pathway regulated by the interaction of SORL1 with retromer, which is pathogenically disrupted in AD, might drive the neurodegenerative process via multiple yearlong studies in over 140 wildtype and SORL1 deficient mice, modeling AD's causative mutations. MRI studies revealed that SORL1 deficiency induced an age-dependent AD-pattern of atrophy, centered on the trans-entorhinal cortex, and that atrophy was prevented by SORL1 restoration, secondary to overexpressing the retromer protein VPS26b. Postmortem studies validated that the atrophy reflects neuronal loss. Proteomic profiling revealed that the atrophy is associated with reductions in cell death suppressors, one of which was then found deficient in the trans-entorhinal cortex of AD patients. Besides supporting the hypothesis, taken together with other findings, the results suggest that SORL1-retromer disruptions represent a therapeutically-amenable common 'neurodegeneration pathway' in AD.

neuroscience↗