Machine Learning-Based Prediction of Sleep Quality in Patients with Multiple Sclerosis
Authors:
- Laura-Elena CucuLCLaura-Elena Cucu
- Laura-Cristina BaciuLBLaura-Cristina Baciu
- Oriana-Maria OnicescuOOOriana-Maria Onicescu
- Bogdan-Emilian IgnatBIBogdan-Emilian Ignat
- Alina SăcărescuASAlina Săcărescu
- Andra OanceaAOAndra Oancea
- Cristina GrosuCGCristina Grosu
- Costin ChiricaCostin Chirica
- Gabriela PopescuGabriela Popescu
- Alexandra MastaleruAMAlexandra Mastaleru
- Robert-Valentin BîlcuRBRobert-Valentin Bîlcu
- Andreea MustațăAMAndreea Mustață
Preprint
- 28 July 2026
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Background/Objectives: Sleep disturbances are common but frequently underrecognized in multiple sclerosis (MS), independently predicting reduced quality of life and worsening fatigue, cognitive impairment, and depression. While pain, nocturia, fatigue, and mood symptoms are established contributors, cardiometabolic and inflammatory factors remain largely unexplored despite their known links to poor sleep in other populations. This study used interpretable machine learning to determine the relative contribution of disease-related, cardiometabolic, and inflammatory parameters to sleep quality, assessed by the PSQI, in patients with MS. Methods: This cross-sectional, observational, single-center cohort study enrolled adult patients with MS. Sleep quality (PSQI), daytime sleepiness (ESS), and restless legs syndrome severity (IRLS) were assessed alongside clinical, anthropometric, hemodynamic, and laboratory parameters, including inflammatory and metabolic indices. Three regression models, Support Vector Regression, Random Forest, and XGBoost, were trained on 28 predictors to predict PSQI global scores and evaluated on a independent test set, with feature contributions examined using SHAP analysis. Results: A total of 173 patients with MS were included (mean age 39.66 ± 11.86 years, 69.9% female, 90.2% RRMS), with 48.0% classified as poor sleepers (PSQI > 5) and a mean PSQI score of 6.06 ± 3.47. XGBoost achieved the best predictive performance (test R² = 0.451). SHAP analysis identified IRLS severity as the strongest predictor of PSQI across all three models, followed by EDSS score and depression in the Random Forest and XGBoost models, while daytime sleepiness (ESS) ranked consistently among the top predictors. Cardiometabolic and inflammatory parameters contributed inconsistently, with several showing effects opposite to physiological expectation. Conclusions: Sleep impairment in MS was driven mainly by restless legs syndrome severity and neurological disability, with depression also contributing in the two best-performing models. Disease-related and symptomatic factors outweighed cardiometabolic and inflammatory contributions. These findings support the value of interpretable machine learning for identifying the multifactorial drivers of sleep quality in MS.Keywords
All Related Versions
- Version 1, 2026-07-28, Preprints
- Published version: Medical Sciences, 14 (4), 483.
This publication has 48 references indexed in Scilit:
- Prevalence of restless legs syndrome in patients with multiple sclerosis, as confirmed by sleep disorders specialistsJournal of Neurology, 2026
- The use of high-efficacy disease-modifying therapies in multiple sclerosis: recommendations from an expert Delphi consensusJournal of Neurology, 2025
- Research progress in sleep disorders associated with multiple sclerosisMultiple Sclerosis and Related Disorders, 2025
- Sleep quality in multiple sclerosis: A systematic review and meta-analysis based on Pittsburgh Sleep Quality IndexMultiple Sclerosis and Related Disorders, 2024
- The prevalence of restless legs syndrome (RLS) in patients with multiple sclerosis (MS): a systematic review and meta-analysis—an updateNeurological Sciences, 2022
- Sleep and Metabolic SyndromeNursing Clinics of North America, 2021
- Systematic review and meta-analysis of observational studies to understand the prevalence of restless legs syndrome in multiple sclerosis: an updateSleep Medicine, 2018
- Prevalence of ‘poor sleep’ among patients with multiple sclerosis: An independent predictor of mental and physical statusSleep Medicine, 2009
- Inflammation, demyelination, neurodegeneration and neuroprotection in the pathogenesis of multiple sclerosisJournal of Neuroimmunology, 2007
- The Pittsburgh sleep quality index: A new instrument for psychiatric practice and researchPsychiatry Research, 1989