An explainable machine learning framework for personalized sleep health assessment and behavioral recommendations
Abstract
Traditional sleep research emphasizes sleep duration or clinical disorder detec tion, often overlooking the behavioral and temporal factors that shape every day sleep health. This study proposes an explainable and personalized machine learning (ML) framework that models sleep health as a multidimensional be havioral construct through a continuous, engineered sleep health index (SHI) integrating timing, variability, and routine consistency. A large-scale behavioral sleep dataset (n = 52,610) was transformed into interpretable indicators in cluding sleep regularity, bedtime variability, routine consistency, and late-night habit intensity. To control target leakage, the five SHI component variables and the raw terms that directly define them were excluded from the predic tor set, and all models were evaluated under this reduced predictor configura tion. Five ML models were comparatively evaluated using error-based metrics with five-fold cross-validation. CatBoost achieved the strongest held-out perfor mance (R2 = 0.951, RMSE = 0.013, MAE = 0.011), substantially below the near-perfect fit obtained when SHI components are included directly. A hybrid feature-selection strategy combining mutual information, Boruta, and SHapley Additive exPlanations (SHAP) was applied, and explainability was addressed through global and local SHAP analyses. Global explanations consistently iden tified sleep debt, late-night habit intensity, and social jetlag as the most influen tial predictors, with the ranking consistent across resamples. An autoencoder K-means procedure identified two interpretable behavioral profiles. Because the SHI is an engineered composite derived from related behavioral variables, these results represent prediction of the proposed index rather than independent clinical validation of sleep health; the framework is offered as an exploratory decision-support tool pending external and longitudinal validation.
Keywords
Behavioral modeling; CatBoost; Explainable machine learning; Personalized recommendation; SHAP; Sleep health index; Sleep regularity;
DOI: http://doi.org/10.11591/ijeecs.v44.i1.pp49-62
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES).