Evaluasi Prediksi Stres Berdasarkan Tidur dan Kognitif Menggunakan Machine Learning
Abstract
Sleep and cognitive indicators are theoretically relevant to stress, but this relevance does not guarantee individual prediction in small datasets. This exploratory study evaluates the learnability of Stress_Level in the public Sleep Deprivation and Cognitive Performance dataset containing 60 observations and 12 predictors. Descriptive analysis is complemented by nested cross-validation with five outer folds, three repetitions, and three inner folds. Encoding, scaling, and feature selection are fitted exclusively on training data. Six regression families are compared with a training-mean baseline, least absolute shrinkage and selection operator (LASSO), and recursive feature elimination (RFE) with Ridge. All marginal 95% correlation intervals include zero; the largest correlation concerns sleep quality (0.190). All feature-based models yield negative mean coefficients of determination, ranging from −0.470 to −0.235, indicating failure to generalize in this internal evaluation. The baseline achieves the lowest mean absolute error of 9.65 ± 1.33, compared with 9.69 ± 1.35 for RFE–Ridge and 9.76 ± 1.41 for Ridge; values after ± represent standard deviations across outer folds. Averaged cross-validated Ridge predictions concentrate within 14.67–19.72 despite the target range of 0–40. Tuning and feature selection do not demonstrate added predictive value over the baseline. These negative findings diagnose the information limits of this dataset and do not support stress screening or diagnosis. Small sample size, limited instrument documentation, and absent external validation restrict inference. Future studies require validated stress measurements, longitudinal observations, and temporally aligned physiological and psychosocial features.
Downloads
References
S. Griggs, A. Harper, and R. L. Hickman, “A systematic review of sleep deprivation and neurobehavioral function in young adults,” Appl. Nurs. Res., vol. 63, p. 151552, Feb. 2022, doi: 10.1016/j.apnr.2021.151552.
R. Crowley, E. Alderman, A.-H. Javadi, and J. Tamminen, “A systematic and meta-analytic review of the impact of sleep restriction on memory formation,” Neurosci. Biobehav. Rev., vol. 167, p. 105929, Dec. 2024, doi: 10.1016/j.neubiorev.2024.105929.
S. Y. Choong et al., “A meta-analytic investigation of the effect of sleep deprivation on inhibitory control,” Sleep Med. Rev., vol. 80, p. 102042, Apr. 2025, doi: 10.1016/j.smrv.2024.102042.
C. A. Palmer et al., “Sleep loss and emotion: A systematic review and meta-analysis of over 50 years of experimental research.,” Psychol. Bull., vol. 150, no. 4, pp. 440–463, Apr. 2024, doi: 10.1037/bul0000410.
J. M. Dzierzewski et al., “How much sleep do you need: A 10-year systematic review of National Sleep Foundation’s sleep duration recommendations and examination of sex differences,” Sleep Health, vol. 12, no. 4, pp. 599–611, Aug. 2026, doi: 10.1016/j.sleh.2026.05.011.
Y. Huang, L. Yang, Y. Liu, and S. Zhang, “Effects of perceived stress on college students’ sleep quality: a moderated chain mediation model,” BMC Psychol., vol. 12, no. 1, p. 476, Sep. 2024, doi: 10.1186/s40359-024-01976-3.
C. Gardiner et al., “The effect of caffeine on subsequent sleep: A systematic review and meta-analysis,” Sleep Med. Rev., vol. 69, p. 101764, Jun. 2023, doi: 10.1016/j.smrv.2023.101764.
M. A. Alnawwar, M. I. Alraddadi, R. A. Algethmi, G. A. Salem, M. A. Salem, and A. A. Alharbi, “The Effect of Physical Activity on Sleep Quality and Sleep Disorder: A Systematic Review,” Cureus, Aug. 2023, doi: 10.7759/cureus.43595.
R. Tutunji et al., “Detecting Prolonged Stress in Real Life Using Wearable Biosensors and Ecological Momentary Assessments: Naturalistic Experimental Study,” J. Med. Internet Res., vol. 25, p. e39995, Oct. 2023, doi: 10.2196/39995.
S. Kinoshita et al., “Assessment of Stress and Well-Being of Japanese Employees Using Wearable Devices for Sleep Monitoring Combined With Ecological Momentary Assessment: Pilot Observational Study,” JMIR Form. Res., vol. 8, p. e49396, May 2024, doi: 10.2196/49396.
X. Yao et al., “Where does stress happen? Ecological momentary assessment of daily stressors using a mobile phone app,” Ment. Health Sci., vol. 2, no. 2, p. e54, Jun. 2024, doi: 10.1002/mhs2.54.
G. Vos, K. Trinh, Z. Sarnyai, and M. Rahimi Azghadi, “Generalizable machine learning for stress monitoring from wearable devices: A systematic literature review,” Int. J. Med. Inf., vol. 173, p. 105026, May 2023, doi: 10.1016/j.ijmedinf.2023.105026.
M. Razavi et al., “Machine Learning, Deep Learning, and Data Preprocessing Techniques for Detecting, Predicting, and Monitoring Stress and Stress-Related Mental Disorders: Scoping Review,” JMIR Ment. Health, vol. 11, p. e53714, Aug. 2024, doi: 10.2196/53714.
S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, Sep. 2023, doi: 10.1016/j.patter.2023.100804.
M. Rosenblatt, L. Tejavibulya, R. Jiang, S. Noble, and D. Scheinost, “Data leakage inflates prediction performance in connectome-based machine learning models,” Nat. Commun., vol. 15, no. 1, p. 1829, Feb. 2024, doi: 10.1038/s41467-024-46150-w.
A. Apicella, F. Isgrò, and R. Prevete, “Don’t push the button! Exploring data leakage risks in machine learning and transfer learning,” Artif. Intell. Rev., vol. 58, no. 11, p. 339, Aug. 2025, doi: 10.1007/s10462-025-11326-3.
I. Tsamardinos, “Don’t lose samples to estimation,” Patterns, vol. 3, no. 12, p. 100612, Dec. 2022, doi: 10.1016/j.patter.2022.100612.
G. S. Collins et al., “TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods,” BMJ, vol. 385, p. e078378, Apr. 2024, doi: 10.1136/bmj-2023-078378.
Farouk Mohammed and Juma al Majid, “Sleep Deprivation & Cognitive Performance.” Kaggle. doi: 10.34740/KAGGLE/DSV/10569288.
S. S. A. Larasati, E. N. K. Dewi, B. H. Farhansyah, F. A. Bachtiar, and F. Pradana, “Penerapan Decision Tree dan Random Forest dalam Deteksi Tingkat Stres Manusia Berdasarkan Kondisi Tidur,” J. Teknol. Inf. Dan Ilmu Komput., vol. 11, no. 5, pp. 1043–1050, Oct. 2024, doi: 10.25126/jtiik.2024117993.
G. James, D. Witten, T. Hastie, R. Tibshirani, and J. Taylor, An Introduction to Statistical Learning: with Applications in Python. in Springer Texts in Statistics. Cham: Springer International Publishing, 2023. doi: 10.1007/978-3-031-38747-0.
A. Ichwani, R. I. Kesuma, A. Setiawan, I. E. Wicaksono, and R. Hanifah, “Preventing Data Leakage in Classification via Integrated Machine Learning Pipelines: Preprocessing, Feature Transformation, and Hyperparameter Tuning,” J. Tek. Inform. Jutif, vol. 7, no. 1, pp. 391–410, Feb. 2026, doi: 10.52436/1.jutif.2026.7.1.5490.
M. Kuhn and K. Johnson, Feature Engineering and Selection: A Practical Approach for Predictive Models, 1st ed. Chapman and Hall/CRC, 2019. doi: 10.1201/9781315108230.
V. Birrer, M. Elgendi, O. Lambercy, and C. Menon, “Evaluating reliability in wearable devices for sleep staging,” Npj Digit. Med., vol. 7, no. 1, p. 74, Mar. 2024, doi: 10.1038/s41746-024-01016-9.
C. L. Gardiner et al., “Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial,” SLEEP, vol. 48, no. 4, p. zsae230, Apr. 2025, doi: 10.1093/sleep/zsae230.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Evaluasi Prediksi Stres Berdasarkan Tidur dan Kognitif Menggunakan Machine Learning
Pages: 51-63
Copyright (c) 2026 Ibnu Sina Maulana, Hafiyyan Putra Pratama

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).


