Sleep

Machine Learning-Based Prediction of Sleep Quality in Patients with Multiple Sclerosis.

TL;DR

XGBoost achieved the best predictive performance (test R2 = 0.451) and SHAP analysis identified restless legs syndrome severity as the strongest predictor of sleep quality in MS, followed by neurological disability and depression, while cardiometabolic and inflammatory parameters contributed inconsistently.

Key Findings

Nearly half of MS patients in the cohort were classified as poor sleepers based on PSQI scores.

  • 173 patients with MS were enrolled (mean age 39.66 ± 11.86 years, 69.9% female, 90.2% relapsing-remitting MS).
  • 48.0% of patients were classified as poor sleepers (PSQI > 5).
  • Mean PSQI global score was 6.06 ± 3.47.
  • Study design was cross-sectional, observational, and single-center.

XGBoost outperformed Support Vector Regression and Random Forest models in predicting sleep quality as measured by PSQI global scores.

  • Three regression models were trained: Support Vector Regression (SVR), Random Forest, and XGBoost.
  • All models were trained on 28 predictors covering clinical, anthropometric, hemodynamic, and laboratory parameters including inflammatory and metabolic indices.
  • XGBoost achieved the best predictive performance with a test R2 of 0.451.
  • Models were evaluated on an internal test set.

IRLS (restless legs syndrome) severity was identified as the strongest predictor of sleep quality (PSQI) across all three machine learning models.

  • SHAP (SHapley Additive exPlanations) analysis was used to examine feature contributions across all three models.
  • IRLS severity ranked as the top predictor in SVR, Random Forest, and XGBoost models.
  • EDSS score (neurological disability) and depression followed as the next strongest predictors in the Random Forest and XGBoost models.
  • Daytime sleepiness (ESS) ranked consistently among the top predictors across models.

Cardiometabolic and inflammatory parameters contributed inconsistently to sleep quality prediction and showed effects opposite to physiological expectation in several instances.

  • Cardiometabolic and inflammatory indices were included as predictors alongside disease-related and symptomatic parameters.
  • These parameters contributed inconsistently across the three models.
  • Several cardiometabolic and inflammatory features showed effects opposite to physiological expectation based on SHAP analysis.
  • Disease-related and symptomatic factors outweighed cardiometabolic and inflammatory contributions overall.

Sleep impairment in MS was most strongly associated with restless legs syndrome severity and neurological disability, with depression also contributing in the two best-performing models.

  • IRLS, EDSS, and depression were the dominant predictors identified through SHAP analysis.
  • Depression appeared as a significant contributor specifically in Random Forest and XGBoost, the two best-performing models.
  • The authors note that pain, nocturia, fatigue, and mood symptoms are established contributors to poor sleep in MS.
  • The exploratory design and modest sample size (n=173) were noted as limitations warranting confirmation in larger, independent cohorts.

The study assessed sleep using multiple validated instruments alongside a broad panel of clinical and laboratory predictors.

  • Sleep quality was assessed with the Pittsburgh Sleep Quality Index (PSQI).
  • Daytime sleepiness was measured with the Epworth Sleepiness Scale (ESS).
  • Restless legs syndrome severity was measured with the International Restless Legs Scale (IRLS).
  • Laboratory parameters included both inflammatory and metabolic indices.
  • Anthropometric and hemodynamic parameters were also collected.

What This Means

This research suggests that sleep problems are very common among people with multiple sclerosis (MS), with nearly half (48%) of the 173 patients studied qualifying as poor sleepers. Using machine learning — specifically a method called XGBoost combined with an interpretability tool called SHAP analysis — the researchers identified which factors most strongly predict poor sleep quality in MS patients. The most powerful predictor was the severity of restless legs syndrome (an uncomfortable urge to move the legs, especially at night), followed by the degree of neurological disability and depression. The study also examined whether metabolic factors (like blood pressure, cholesterol, or obesity-related measures) and inflammation markers in the blood contributed to poor sleep in MS. While these types of factors are known to affect sleep in the general population, this research suggests they played an inconsistent and relatively minor role in MS patients compared to disease-specific factors like neurological disability and restless legs syndrome. Some of these metabolic and inflammatory markers even showed unexpected patterns, suggesting their relationship to sleep in MS may be complex. This research matters because sleep problems in MS are often overlooked during clinical care, yet they worsen fatigue, thinking difficulties, and depression. The findings suggest that clinicians might benefit from routinely screening MS patients for restless legs syndrome and treating depression as key pathways to improving sleep. However, the authors caution that the study was conducted at a single center with a modest number of patients, so these findings need to be confirmed in larger studies before drawing firm conclusions.

Check Your Own Numbers

Upload your bloodwork. We'll cross-reference your results against this study and 4,700 others.

Upload Your Labs

Have a question about this study?

Citation

Cucu L, Baciu L, Onicescu O, Ignat B, Săcărescu A, Oancea A, et al.. (2026). Machine Learning-Based Prediction of Sleep Quality in Patients with Multiple Sclerosis.. Medical sciences (Basel, Switzerland). https://doi.org/10.3390/medsci14040483