Morgoth
morgoth
Deep-learning detection of seizures and rhythmic/periodic (IIIC) patterns in continuous EEG, with event- and recording-level probabilities.
The algorithms behind the Commons — 85 open-source tools for analyzing sleep and EEG data, from automated staging and spike detection to brain-age and outcome models. Every one links to its code, and many to the dataset it was built on.
No tools match “”.
Detecting and quantifying seizures and rhythmic or periodic patterns in continuous EEG.
morgoth
Deep-learning detection of seizures and rhythmic/periodic (IIIC) patterns in continuous EEG, with event- and recording-level probabilities.
IIIC-SPaRCNet
Expert-level classification of seizures and rhythmic/periodic patterns during EEG interpretation.
2helps2b-seizure-risk
The 2HELPS2B EEG-based seizure-risk score.
baby_morgoth
Six-class IIIC classification for neonatal and pediatric EEG, transfer-learned from Morgoth 2.
cceeg-multistate-seizure-risk
Time-dependent risk of seizures in critically ill patients on continuous EEG.
ddesvsfs-pnes-screening
Screening epileptic versus functional (psychogenic non-epileptic) seizures.
epileptiform-activity-discharge-outcome
Effects of epileptiform activity on discharge outcome.
epileptiform-burden-outcomes
Automated epileptiform-burden annotation and its association with outcomes.
IIIC-Frequency-Analysis
Quantifies frequency, spatial extent, location and evolution of rhythmic and periodic EEG patterns.
IIIC-IRR
Reproduces our analysis of how consistently experts identify seizures and periodic/rhythmic patterns.
morgoth2
Second-generation Morgoth IIIC detector, with improved models and training.
Rapid_IIIC_Labeling_GUI
Interface for rapid expert labeling of IIIC segments across one or many EEGs.
Finding and characterizing interictal epileptiform discharges.
SpikeNet1
Expert-level automated detection of interictal epileptiform discharges (spikes) in EEG.
cdac_google
ResNet spike-detection pipeline trained with soft labels and 10-fold cross-validation.
IFCN6
Graphical interface for annotating spikes against the IFCN-6 criteria.
interpretable-ied-criteria
Interpretable quantitative criteria for evaluating interictal epileptiform discharges.
neurobrowser
Mark one example waveform (e.g. a spike) and rapidly find every similar waveform across an EEG.
Noise_in_Diagnosing_Epilepsy
Reproduces our study of noise and variability in the diagnosis of epilepsy.
Persyst_Spike_Detection
Turns Persyst .sd4 spike-detection files from MGH long-term EEG into per-recording CSV annotations.
sharp-transients-irr
Interrater-reliability analysis for sharp transients and IEDs.
SpikeNet2
Expert-level detection of epilepsy markers in EEG on both short and long timescales.
Coma, cardiac arrest, hemorrhage, delirium, encephalopathy and neurotoxicity.
NESI
A continuous EEG-derived measure of acute brain dysfunction, with trained model weights.
Burst-Suppression-Segmentation
Automatic detection of suppression periods in critically ill ICU patients.
ceeg-multimodal-cardiac-arrest
Continuous EEG added to multimodal outcome prediction after hypoxic-ischemic injury.
hie-eeg-prognostics-1000
Prognostic EEG patterns in post-cardiac-arrest coma, in a 1,000-patient cohort.
E-CAM-S
The EEG Confusion Assessment Method Severity score for physiological delirium grading.
E-ICANS
Learning-to-rank pipeline for automated ICANS severity from EEG.
EGG-IRR-1.0
Interrater reliability of EEG-based encephalopathy grading.
GRDA-N3-encephaloapthy-model
Thalamocortical modeling of encephalopathic slowing and generalized rhythmic delta activity.
Hypothermia-EEG
Reproduces our analysis of EEG in comatose post-cardiac-arrest patients under hypothermia.
icare-dl
Deep neural networks predicting neurological outcome in comatose patients after cardiac arrest.
ICANS-forecasting-after-CAR-T-cell-therapy
Forecasting ICANS neurotoxicity after CAR-T cell therapy from EEG.
SAH_DCI_Prediction_EEG
Automated prediction of delayed cerebral ischemia after subarachnoid hemorrhage from EEG.
VE-CAM-S
Delirium-severity score from visual EEG features.
VE-ICANS
Visual-EEG-feature score for the severity of CAR-T neurotoxicity (ICANS).
Automated sleep staging, arousal and event detection — from full PSG or a single signal.
CAISR-App
Complete AI-based Sleep Report: automated staging, arousals, respiration and limb movements, as a downloadable app.
AirGo_SleepStaging
Sleep staging from the AirGo wearable respiration sensor.
CAISR2
Next-generation CAISR sleep-analysis models.
Ordinal-Sleep-Depth
Scores sleep depth from EEG as a continuous signal rather than discrete stages.
outcome-oriented-sleep-staging
Sleep staging optimized for clinical outcomes rather than epoch-level concordance with human scorers.
PANDA-Sleep
Pediatric Arousal Neural Detection Architecture — deep-learning arousal detection across childhood and adolescence.
BCH-SleepStaging
Multimodal (EEG+EOG+EMG) deep-learning sleep staging across childhood, from infants to adolescents.
Physionet2018_Challenge_Submission
Winning entry for the PhysioNet 2018 'You Snooze You Win' arousal-detection challenge.
sleep_staging_2000pts
Deep-learning sleep staging trained and validated on 2,000 patients.
SleepBreathing-DL
Multi-task model classifying sleep stages, apneas and arousals from a single respiratory signal.
sleep_staging_tl_scorability
Transfer learning coupled with scorability models to refine sleep-staging accuracy.
ecg_respiration_sleep_staging
Sleep staging from ECG and respiration alone, without EEG.
Brain age, brain-health scores, spindles, and cognitive and clinical outcomes from sleep.
philosophers-stone
Maps one channel of overnight sleep EEG to a 1024-D brain-health latent space and a Brain Health Score for cognition, disease risk and mortality.
SleepEEGBasedBrainAge
The sleep-EEG Brain Age Index, now shipped in the Luna package.
bai-dementia
Reproducibility package: sleep-EEG brain age across diagnostic groups in ~9,800 polysomnograms.
brain_age_koges
Sleep-EEG brain age in the Korean Genome and Epidemiology Study cohort.
dementia-detection-from-sleep
Detecting dementia from overnight sleep EEG.
meditation-sleep-brain-age
Sleep-EEG brain age applied to a meditation cohort.
prophet-sleep
Note-NLP sleep phenotyping over the de-identified BDSP OMOP database, targeting the ARPA-H/SHDC variable spec.
optimal-spindle-detection-cognition
Optimal spindle-detection parameters for predicting cognition.
philosophers-stone-2
Second-generation, multimodal brain-health model built on overnight sleep physiology.
psg-outcome-prediction
Predicting health outcomes from polysomnography-derived features.
sleep_cognition
Predicting cognitive function from sleep EEG with deep learning.
sleep_eeg_mri
Linking overnight sleep EEG to structural brain MRI.
mri-cognition-eeg-wei2024
Sleep EEG, brain MRI and cognition (Wei et al., 2024, SLEEP).
sleep-outcome-prediction
Reproduce PSG-based health-risk predictions, and score a new sleep recording.
sleep-phenomics-automation
Automated sleep-phenomics feature pipeline.
spin
Spindle–Oscillation Physiomarkers of Neurohealth — umbrella for SPiN datasets and analyses.
spindle_optimization
Exploring spindle-detection parameters with interactive parallel-coordinate plots.
Respiration, apnea, loop gain and heart-rate-variability analysis.
breathing-stability-index
The Breathing Stability Index, with a Python API and an EDF/HDF5 command-line tool (SLEEP 2026).
Auto_PSG_Respiration
Automating respiration analysis for polysomnography.
self_similarity
Self-similarity of breathing for high-loop-gain and central-apnea analysis.
hrv-tools
ECG, RR-interval and heart-rate-variability toolkit.
Interactive EEG and PSG viewers, spectrogram atlases, and clinician-training tools.
eeg-spectrogram-atlas
A Primer on EEG Spectrograms — an interactive teaching atlas.
sleep-yoda
PSG viewer and sleep-analysis platform with staging, respiratory and report views.
coma-eeg-lund-viewer
Viewer for coma EEG recordings (Lund collaboration).
cortex
An adaptive Bayesian test of how well a clinician reads an EEG — it asks the most informative question next and stops once skill is certain.
gulag-eeg-atlas
A comprehensive lifespan EEG atlas with interactive clips and four-panel qEEG spectrograms.
morgoth-viewer
EEG review application for continuous recordings processed by the Morgoth deep-learning pipeline.
morgoth-stanford
Stanford deployment of the Morgoth EEG viewer.
Myelin
AI-enabled cohort-generation and discovery tool.
timeline-viewer
Timeline viewer for long-term EEG and events.
Feature pipelines, embeddings, foundation models and signal I/O utilities.
bdsp-sleep-features
Broad, versioned polysomnography feature computation for ARPA-H REST and the SHDC.
edfio
Convenience functions to write EDF files from Python.
eeg_multitask_embedding
Learns a single shared EEG embedding by training on several EEG-labeling tasks at once.
spectral-smoothing-vs-multitaper
Multitaper spectral estimation as kernel smoothing of a tapered periodogram — proof, Python code and figures.
Omega
A transformer model for clinical EEG, with a decoder for interpreting its embeddings.
bdsp-psg-conversion
Convert PSG session H5s into TS-Zarr, sleep-feature JSON, OMOP rows and Parquet.
sleep_research_io
Format sleep biosignals into a common H5 format; used for ICU-Sleep and SleepLab data.
TEEGLLTEEG
Train and run TEEGLLTEEG, a text↔EEG language-modeling approach.