Skip to content

New Model SLEEPFM #925

Closed
Closed

Description

@FazlaMashrur

The only mode from Stanford that is dedicated to sleep research, published in Nature Medicine. I request that you add this to the braindecode.

Publication: https://www.nature.com/articles/s41591-025-04133-4

GitHub: https://github.com/zou-group/sleepfm-clinical

Activity

  1. bruAristimunha commented on Mar 21, 2026

    @bruAristimunha
    Collaborator

    We are open to contributions @FazlaMashrur. I think at the moment, nobody of the maintainer team is working with sleep data, i can review your contribution!

  2. bruAristimunha commented on Jun 30, 2026

    @bruAristimunha
    Collaborator

    Act @Fashad-Ahmed, I think this model is better to be implemented! if you can list the baseline that he used, it would be great!

  3. Fashad-Ahmed commented on Jun 30, 2026

    @Fashad-Ahmed
    Contributor

    Act @Fashad-Ahmed, I think this model is better to be implemented! if you can list the baseline that he used, it would be great!

    Sure, @bruAristimunha I will go through it and update in the thread soon. Thanks for mentioning

  4. Fashad-Ahmed commented on Jul 27, 2026

    @Fashad-Ahmed
    Contributor

    @bruAristimunha apologies for implementing it late; I was having my exams, so I was quite occupied there. Please review it and let me know your feedback thanks.

    These could the potential follow up PRs:

    • Pretrained-weight download and caching API.
    • SleepFM-specific PSG preprocessing and channel-mapping utilities.
    • End-to-end sleep-staging and fine-tuning example.
    • General support for token-wise/sequence model outputs.
    • Variable-montage batching and channel-mask utilities.
    • Disease-prediction heads with demographic fusion.
    • Cox proportional-hazards loss, metrics, and training support.
    • Demographics and End-to-End PSG baseline implementations.
    • Benchmark reproduction using consistent splits and metrics.
    • Extended numerical-parity tests against the upstream implementation.
  5. bruAristimunha commented on Jul 27, 2026

    @bruAristimunha
    Collaborator

    Hey @Fashad-Ahmed, don't worry! I will depth review the code and many thanks!

  6. bruAristimunha commented on Oct 13, 2026

    @bruAristimunha
    Collaborator

    Done: master has SleepFM, SleepFMStager — merge f869984 Add SleepFM foundation and sleep-staging models (#1106) (Audited 2026-10-13.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions