AB
AiBoss
project

SleepFM - Stanford University's open-source multimodal sleep analysis model

SleepFM is an open-source multimodal sleep analysis model from Stanford University. Based on 100,000 hours of sleep data from over 14,000 participants, it provides a comprehensive sleep health assessment by integrating brain activity, electrocardiogram, and respiratory signals...

What is SleepFM?

SleepFM is an open-source multimodal sleep analysis model from Stanford University. Based on 100,000 hours of sleep data from over 14,000 participants, it provides a comprehensive sleep health assessment by integrating brain activity, electrocardiogram (ECG), and respiratory signals. It aims to improve the efficiency and accuracy of sleep analysis. The model employs contrastive learning techniques to optimize the accuracy of sleep stage classification and sleep-disorder detection. SleepFM can assist in clinical diagnosis and research, and can be integrated into wearable devices for personal sleep health management. Its open-source nature provides a powerful research and application platform for the field of sleep medicine.

SleepFM's main functions

  • Sleep Stage ClassificationAutomatically analyzes and categorizes an individual's sleep stages, including wakefulness, light sleep, deep sleep, and REM sleep.
  • Sleep-disorder breathing test: Identify breathing abnormalities during sleep, such as apnea and hypoventilation.
  • Demographic Attribute PredictionPredicting an individual's age and sex from physiological signals.
  • Data retrieval: Retrieve other modal signals corresponding to a physiological signal.
  • Clinical aidIt assists clinicians in analyzing sleep monitoring data and improves diagnostic efficiency.
  • Health ManagementIt can be integrated into wearable devices for monitoring and managing personal sleep health.
  • Research and Drug DevelopmentSupports sleep-related clinical research and drug efficacy monitoring.

SleepFM's technical principles

  • Multimodal data fusionIt combines BAS, ECG, and respiratory signals, which come from the brain, heart, and lungs, respectively, covering 19 data channels.
  • Contrastive learning frameworkSleepFM explores two contrastive learning frameworks: pairwise contrastive learning (CL) and leave-one-out contrastive learning (CL). Pairwise contrastive learning brings positive matching pairs from different modalities closer together in the latent space while pushing away negative matching pairs. Leave-one-out contrastive learning, on the other hand, constructs three sample pairs from a fragment by combining two inputs with the remaining inputs when building contrastive learning samples.
  • Self-supervised pre-trainingUsing a self-supervised learning method, SleepFM does not rely on labeled data during the pre-training phase. Instead, it learns data representations through designed data augmentation strategies and contrastive loss functions.
  • Downstream task performance improvementThe pre-trained representations are used for various downstream tasks, such as sleep stage classification and sleep apnea (SDB) detection. SleepFM outperforms traditional end-to-end trained convolutional neural networks (CNNs).

SleepFM's project address

Application scenarios of SleepFM

  • Clinical diagnosisIt assists doctors and sleep specialists in quickly and accurately analyzing sleep monitoring data, improving diagnostic efficiency and accuracy.
  • Sleep researchIn sleep medicine research, we analyze clinical trial data and monitor drug effects, as well as study sleep patterns and sleep disorders.
  • Health ManagementIt can be integrated into wearable devices or smart home systems to help individuals monitor and improve their sleep quality.
  • Drug developmentIn new drug development and clinical trials, it is used to evaluate the effect of drugs on sleep quality.
  • Education and trainingIn medical education, it serves as a teaching tool to help students and professionals learn about sleep physiology and the identification of sleep disorders.
  • TelemedicineIn a telemedicine environment, sleep monitoring and analysis services are provided to patients who are far from medical centers.