Stanford's SleepFM AI predicts future disease and mortality years before diagnosis using sleep data

Reviewed byNidhi Govil

2 Sources

Share

Researchers at Stanford Medicine developed SleepFM, an artificial intelligence foundation model that analyzes comprehensive sleep lab data to predict future risk of health conditions years in advance. Trained on 585,000 hours of sleep recordings from 65,000 people, the AI can forecast over 130 diseases including Parkinson's, dementia, and various cancers with remarkable accuracy.

SleepFM transforms overnight sleep study data into an early warning system for health

Researchers at Stanford Medicine have developed SleepFM, an artificial intelligence foundation model that analyzes overnight sleep study data to predict future disease and mortality years before clinical diagnosis. Published in Nature Medicine, the study demonstrates how comprehensive sleep lab data can serve as a powerful tool for proactive health management

1

.

Source: News-Medical

Source: News-Medical

The AI foundation model was trained on 585,000 hours of sleep recordings from approximately 65,000 participants across four major cohorts: BioSerenity, the Outcomes of Sleep Disorders in Older Men (MrOS), the Multi-Ethnic Study of Atherosclerosis (MESA), and Stanford Sleep Clinic (SSC). "SleepFM is essentially learning the language of sleep," explained co-senior researcher James Zou, an associate professor of biomedical data science at Stanford Medicine .

Machine learning reveals hidden physiological patterns during sleep

SleepFM employs Polysomnography (PSG), the gold standard for sleep analysis that captures rich physiological signals including brain activity, heart activity, breathing, leg movements, and eye movements. Using self-supervised contrastive learning, the model identifies hidden physiological patterns that previous machine learning approaches targeting individual diseases had missed

1

.

The team linked SSC data with electronic health records, extracting diagnostic codes and mapping them to a hierarchical system of more than 1,800 disease categories. After filtering for prevalence and temporal constraints, 1,041 phecodes were retained for evaluation, with cases defined as diagnoses occurring more than seven days after the sleep study to avoid trivial associations

1

.

Disease prediction accuracy spans cancer, neurological, and cardiovascular conditions

SleepFM demonstrated remarkable accuracy in predicting over 130 health conditions across diverse categories. The model achieved particularly strong results for Parkinson's disease with a C-index of 0.89, dementia at 0.85, and hypertensive heart disease at 0.84. For mortality risk prediction, the AI achieved a C-index of 0.84 .

Among cancers, SleepFM excelled at predicting prostate cancer (C-index 0.89) and breast cancer (0.87). The model also achieved an area under the receiver operating characteristic curve (AUROC) of 0.93 for Parkinson's disease and 0.84 for both developmental delays and mild cognitive impairment over a six-year prediction window

1

.

Transfer learning validates cross-site performance and risk stratification

To assess generalization capabilities, researchers evaluated SleepFM using the Sleep Heart Health Study (SHHS) dataset, which was excluded from pretraining. The model demonstrated robust transfer learning performance across six overlapping cardiovascular outcomes, confirming its ability to predict illnesses years earlier across different populations

1

.

For sleep apnea classification, SleepFM achieved accuracies of 0.87 for presence and 0.69 for severity classification. In sleep stage classification, the model performed well in distinguishing wake, stage 2, and rapid eye movement stages, achieving competitive performance compared to state-of-the-art models including U-Sleep, Greifswald Sleep Stage Classifier (GSSC), Yet Another Spindle Algorithm (YASA), and STAGES

1

.

Cross-talk between heart and brain signals reveals disease indicators

The research uncovered intriguing patterns in how different physiological signals contribute to disease prediction. Heart signals during sleep factored more prominently in heart disease predictions, while brain signals proved more relevant for mental health predictions. However, combining all data channels produced the most accurate results. "The most information we got for predicting disease was by contrasting the different channels," noted co-senior researcher Dr. Emmanuel Mignot, a professor of sleep medicine at Stanford .

Sleep data that appeared out of sync—such as a brain that looks asleep but a heart that looks awake—seemed to indicate trouble for a person's future health. This discovery suggests that the relationship between different physiological systems during sleep provides critical information about long-term disease risk .

Future directions include wearable integration and improved interpretability

Researchers are now working to enhance SleepFM's predictive capabilities by potentially incorporating data from wearable devices, which could make this early warning system for health more accessible beyond traditional sleep labs. The team is also developing interpretation techniques to better understand what specific patterns the model identifies when making disease predictions. "It doesn't explain that to us in English," Zou acknowledged, "But we have developed different interpretation techniques to figure out what the model is looking at when it's making a specific disease prediction" .

The authors emphasize that these predictions reflect statistical risk stratification rather than causal relationships or imminent disease onset, positioning SleepFM as a tool for identifying at-risk individuals who may benefit from closer monitoring or preventive interventions

1

.

Today's Top Stories

TheOutpost.ai

Your Daily Dose of Curated AI News

Don’t drown in AI news. We cut through the noise - filtering, ranking and summarizing the most important AI news, breakthroughs and research daily. Spend less time searching for the latest in AI and get straight to action.

© 2026 Triveous Technologies Private Limited
Instagram logo
LinkedIn logo