A Novel K-Means with SHAP Feature Selection and ROA-Optimized SVM for Sleep Monitoring from Ballistocardiogram Signals
Executive Summary
This study introduces a leakage-controlled, interpretable framework for unsupervised three-state in-bed monitoring using ballistocardiogram (BCG) signals. The methodology integrates K-means clustering for proxy-label construction, TreeSHAP-based feature selection, and Rafflesia Optimization Algorithm (ROA)-optimized RBF-SVM classification, evaluated under a strict leave-one-subject-out (LOSO) protocol on a publicly available dataset of 32 subjects. The framework achieved a mean accuracy of 0.9932 ± 0.0047 and strong Macro-F1 and MCC scores, outperforming alternative classifiers, though results are limited to cluster-derived proxy states rather than externally validated clinical sleep stages.
Answer Machine Insights
Q: How does the proposed framework perform compared to other classifiers?
ROA-SVM achieved the highest mean accuracy, Macro-F1, and MCC among all evaluated classifiers, with statistically significant improvements over baselines.
Under this unified evaluation protocol, ROA-SVM achieved the highest mean Accuracy, Macro-F1, and MCC, followed by LightGBM, XGBoost, and the standard RBF-SVM. ... In the post hoc pairwise analysis with Holm correction, ROA-SVM showed significantly higher Macro-F1 than Random Forest, Decision Tree, SVM, XGBoost, LightGBM, Torch-CNN1D, and Torch-CNN-LSTM (all adjusted p = 3.26 × 10−9).
Q: What is the main limitation of the study?
The main limitation is the absence of externally validated window-level annotations, so results reflect proxy-state discrimination rather than clinical sleep-stage recognition.
Without externally validated window-level annotations for the three-state target, performance should be interpreted as within-dataset separation of cluster-derived proxy states, rather than clinically validated sleep-state recognition.
Q: What features were most important for proxy-state discrimination?
Multi-scale wavelet-energy redistribution, within-window irregularity, spectral-band reallocation, and beat/rhythm stability descriptors were most important.
The retained features summarized in Figure 5 indicate that proxy-state discrimination relied primarily on multi-scale wavelet-energy redistribution, within-window irregularity, spectral-band reallocation, and beat/rhythm stability descriptors.
Q: How robust is the framework across subjects?
The framework maintained consistently strong held-out-subject performance across most subjects, with limited variability in a small number of more challenging folds.
The distributions indicate that the proposed framework maintained consistently strong held-out-subject performance across most subjects while still exhibiting limited variability in a small number of more challenging folds.
Key Results
Mean accuracy of 0.9932 ± 0.0047 for three-state proxy classification (sleep, movement, out-of-bed) using ROA-SVM.
Macro-F1 of 0.9909 ± 0.0045 and MCC of 0.9867 ± 0.0075, outperforming all baseline models after SHAP-based feature selection.
Visual Evidence

Figure 5. SHAP importance of the selected features.
Clinical Snapshot
Evidence Rating
Relevance
high Priority