Advanced Sleep Disorder Classification: An ML-Based Study with Optuna for Model Optimization
Abstract
Hyperparameter optimization plays a crucial role in improving the performance of machine learning models, particularly in sleep disorder classification. However, searching for optimal hyperparameters often requires extensive computational resources and prolonged execution time. To address this issue, this study implements Optuna, a hyperparameter optimization framework based on the Tree-structured Parzen Estimator (TPE) and pruning mechanisms to enhance the efficiency of model configuration search adaptively. This study compares the performance of Support Vector Machine (SVM), Extreme Gradient Boosting (XGBoost), Random Forest, and Multi-Layer Perceptron (MLP) in classifying sleep disorders based on health and lifestyle variables. The data undergoes several preprocessing steps, including handling missing values, encoding, normalization (StandardScaler), and class balancing using SMOTE. The models are then developed and optimized using Optuna to determine the best hyperparameter configurations. Evaluation is conducted using Accuracy, Precision, Recall, and F1-score. Experimental results show that before optimization, the Random Forest model achieved an accuracy of 94%, XGBoost 96%, SVM 93%, and MLP 96%. After being optimized with Optuna, accuracy increased to 97% for Random Forest, 97% for XGBoost, 98% for SVM, and 97% for MLP. This improvement indicates that Optuna effectively enhances model performance, especially for SVM, which experienced the most significant accuracy boost after optimization. Thus, the use of Optuna not only accelerates hyperparameter tuning but also improves the efficiency and accuracy of machine learning models in sleep disorder classification. This approach has great potential in supporting AI-based medical diagnosis systems, enabling faster and more accurate detection of sleep disorders.
Keywords
Full Text:
PDFReferences
Roth, T. (2007). Insomnia: Definition, Prevalence, Etiology, and Consequences. Journal of Clinical Sleep Medicine, 3(5), S7-S101..
Jean-Louis, G., Zizi, F., Clark, L.T., Brown, C.D., & McFarlane, S.I. (2008). Obstructive sleep apnea and cardiovascular disease: role of the metabolic syndrome and its components. Journal of Clinical Sleep Medicine, 4(3), 261–272.
Dauvilliers, Y., et al. (2021). Work productivity and activity impairment in patients with narcolepsy. Journal of Sleep Research, 30(6), e140873.
Fortier-Brochu, É., & Morin, C.M. (2014). Cognitive impairment in individuals with insomnia: clinical significance and correlates. SLEEP, 37(11), 1787-1794.
Farrell, S. (2021). The Detrimental Effects of Inadequate Sleep on the Economy. Sacred Heart University.
Kementerian Kesehatan Republik Indonesia. (2017). Pedoman Penanganan Gangguan Tidur. Jakarta: Kemenkes RI..
X. Huang, Z. Wang, and S. Z. Li, "Deep Learning for Sleep Apnea Detection Using Electrocardiogram," IEEE Transactions on Biomedical Engineering, vol. 66, no. 1, pp. 1-12, 2019.
A. Biswal, H. Nagarajan, and S. Chandran, "A Machine Learning Approach for Detecting Sleep Disorders: A Review," International Journal of Computer Applications, vol. 180, no. 10, pp. 44-48, 2018.
L. Cortes and V. Vapnik, "Support Vector Networks," Machine Learning, vol. 20, no. 3, pp. 273-297, 1995.
T. Chen and C. Guestrin, "XGBoost: A Scalable Tree Boosting System," in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785-794.
L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5-32, 2001.
Y. LeCun, Y. Bengio, and G. Hinton, "Deep Learning," Nature, vol. 521, no. 7553, pp. 436-444, 2015.
Y. Chen, C. K. Xie, and P. Zhou, "Support Vector Machine-Based Sleep Stage Classification Using EEG Signals," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 28, no. 2, pp. 299-308, 2020.
Y. Liu, W. Liu, and H. Li, "Detection of Sleep Apnea Using Extreme Gradient Boosting," IEEE Access, vol. 8, pp. 132122-132130, 2020.
M. Rahman, M. A. Khan, and M. N. Ahmed, "Using Random Forest for Sleep Disorder Classification," Journal of Medical Systems, vol. 45, no. 3, pp. 72-80, 2021.
R. Supratak, Y. Dong, and C. Wu, "DeepSleepNet: A Deep Learning Framework for Sleep Stage Scoring," IEEE Transactions on Biomedical Engineering, vol. 64, no. 5, pp. 1077-1086, 2017.
K. Akiba, S. Sano, T. Yanase, and T. Ohta, "Optuna: A Next-generation Hyperparameter Optimization Framework," Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2019, pp. 2623-2631.
Chawla, N. V., K. W. Bowyer, L. Hall, dan W. P. Kegelmeyer, "SMOTE: Synthetic Minority Over-sampling Technique," Journal of Artificial Intelligence Research, vol. 16, pp. 321-357, 2002.
DOI: https://doi.org/10.31284/p.snestik.2025.7380
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Amalan Fadil Gaib, I Gusti Ngurah Bagus Ferry Mahayudha, Anggito Karta Wijaya, Nurul Andini, Ando Zamhariro Royan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.