Machine Learning-Based Prediction of Sleep Disorders from Lifestyle and Physiological Data: A Cross-Occupational Study
Abstract
Sleep disorders are increasingly recognized as critical public health concerns, particularly among working populations where occupational stress, lifestyle factors, and physiological imbalances intersect. This study explores the predictive capacity of machine learning models, including Random Forest, Support Vector Machine (SVM), and XGBoost to identify sleep disorders (None, Insomnia, and Sleep Apnea) using a dataset comprising demographic, occupational, lifestyle, and physiological variables. The dataset, drawn from 400 individuals, was preprocessed through normalization, one-hot encoding, and SMOTE to address class imbalance. Feature selection was conducted using correlation analysis, RFE, and Random Forest importance scores. Models were trained with stratified sampling and optimized using 5-fold cross-validation. XGBoost outperformed the others with an accuracy of 0.90 and an F1-score of 0.88, followed by Random Forest (0.875, 0.86), while SVM lagged (0.825, 0.71). Confusion matrix analysis revealed consistent misclassification between Insomnia and Sleep Apnea, reflecting overlapping symptomatology and low feature correlation. Occupational analysis showed that manual laborers exhibited higher stress levels and shorter sleep durations, particularly those with insomnia. These findings highlight the value of integrating occupational and physiological data into predictive modeling and underscore the potential of ensemble learning methods in health informatics. This study supports the development of early detection systems for sleep disorders tailored to occupational risk profiles.
Keywords
Full Text:
PDFReferences
Lyons S, Strazdins L, Doan T. Work intensity and workers’ sleep: A case of working Australians. Humanit Soc Sci Commun 2022;9:381.
Khoshakhlagh, A. H., Sulaie, S. A., Cousins, R., Yazdanirad, S., & Laal, F., 2024. Understanding the effect of occupational stress on sleep quality in firefighters: The modulating role of depression and burnout. International Archives of Occupational and Environmental Health, Vol. 97, No. 9, pp. 1007-1016.
Irawan, H.& Hartono, D., 2022. Impact of urbanization on energy intensity in Indonesia: Spatial analysis. Jurnal Perencanaan Pembangunan: The Indonesian Journal of Development Planning, Vol. 6, No. 2, pp. 202-215.
Sathvik, S., Alsharef, A., Singh, A. K., Shah, M. A., & ShivaKumar, G., 2024. Enhancing construction safety: Predicting worker sleep deprivation using machine learning algorithms. Scientific Reports, Vol. 14, No. 1, p. 15716.
Darvishi, E., Osmani, H., Aghaei, A., & Moloud, E. A., 2024. Hidden risk factors and the mediating role of sleep in work-related musculoskeletal discomforts. BMC Musculoskeletal Disorders, Vol. 25, No. 1, p. 256.
Ciharova, M. et al., 2025. Machine-learning detection of stress severity expressed on a continuous scale using acoustic, verbal, visual, and physiological data: Lessons learned. Frontiers in Psychiatry, Vol. 16, p. 1548287.
Ha, S. et al., 2023. Predicting the risk of sleep disorders using a machine learning–based simple questionnaire: Development and validation study. Journal of medical Internet research, Vol. 25, p. e46520.
Mostafa Monowar, M. et al., 2025. Advanced sleep disorder detection using multi-layered ensemble learning and advanced data balancing techniques. Frontiers in Artificial Intelligence, Vol. 7, p. 1506770.
Khanmohmmadi, S., Khatibi, T., Tajeddin, G., Akhondzadeh, E., & Shojaee, A., 2025. Revolutionizing sleep disorder diagnosis: A multi-task learning approach optimized with genetic and q-learning techniques. Scientific Reports, Vol. 15, No. 1, p. 16603.
Sleep Heath Life Style n.d. https://www.kaggle.com/datasets/dawoodhuss227/sleep-heath-life-style (accessed July 30, 2025).
Alqethami, N. A., 2025. Machine learning approaches for sleep disorder classification: Insights from optuna-based hyperparameter tuning. Journal of Medical Artificial Intelligence.
Markov, K., Elgendi, M., Birrer, V., & Menon, C., 2025. Interpretable feature-based machine learning for automatic sleep detection using photoplethysmography. npj Biosensing, Vol. 2, No. 1, p. 24.
Wara, T. U., Fahad, A. H., Das, A. S., & Shawon, M. M. H., 2025. A systematic review on sleep stage classification and sleep disorder detection using artificial intelligence. Heliyon, Vol. 11, No. 12.
Mostafa Monowar, M. et al., 2025. Advanced sleep disorder detection using multi-layered ensemble learning and advanced data balancing techniques. Frontiers in Artificial Intelligence, Vol. 7, p. 1506770.
Zovko, K. et al., 2025. Advanced data framework for sleep medicine applications: Machine learning-based detection of sleep apnea events. Applied Sciences, Vol. 15, No. 1, p. 376.
Dritsas, E.& Trigka, M., 2024. Utilizing multi-class classification methods for automated sleep disorder prediction. Information, Vol. 15, No. 8, p. 426.
DOI: http://dx.doi.org/10.30811/teknologi.v25i2.7507
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Hermin Kartika Sari, Shoerya Shoelarta, Thomas Oka Pratama, Gita Nur Sajida, Gustin Mustika Krista, Yohana Fransiska Ferawati, Teguh Taufiqurrahim

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
INDEXING AND ABSTRACTING BY:
Jurnal Teknologi - Politeknik Negeri Lhokseumawe is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
©2021 All rights reserved | E-ISSN: 2550-0961; P-ISSN:1412-1476









