Views
No views yet
R. Thapa et al., "A multimodal sleep foundation model for disease prediction," Nature Medicine (2026). https://doi.org/10.1038/s41591-025-04133-4
| File | Description |
|---|---|
model.safetensors | The full stager, with the parameter names of braindecode.models.SleepFMStager |
config.json | Architecture of the checkpoint, read by from_pretrained() |
model_base/best.pt) and the staging head in
model_sleep_staging/best.pth. This file merges both, so a single call returns a
model that is pretrained end to end, its five-class output layer included. The tensors are
those of the upstream artifacts; only the keys were rewritten to the library's parameter
names. Loading this file or the two upstream ones gives bit-identical outputs.braindecode/SleepFM.1from braindecode.models import SleepFMStager
2
3# Defaults to this repository.
4model = SleepFMStager.from_pretrained(n_chans=4, n_outputs=5, n_times=3840, sfreq=128)
5model.eval()(batch, n_outputs, n_patches): one prediction per 5-second
patch, not per 30-second scoring epoch, so six predictions cover one scored epoch. For
this checkpoint the five classes are Wake, N1, N2, N3 and REM. Input must be sampled at
128 Hz. Pass n_outputs different from 5 to reinitialise the output layer for another
label set.