Multiple Linear Regression Model for Predicting Sleep Quality Based on Lifestyle
DOI:
https://doi.org/10.63643/jodens.v6i1.387Keywords:
Quality of Sleep, Multiple Linear Regression, Machine Learning, Lifestyle, Model Interpretation.Abstract
Sleep disorders significantly impact individuals' quality of life and chronic health. Previous research utilizing the Sleep Health and Lifestyle Dataset predominantly focused on Classification tasks—predicting discrete diagnostic categories such as Insomnia or Sleep Apnea. Although classification accuracy has been high, this method fails to provide a continuous, quantitative assessment of the severity of Quality of Sleep (QOS). This study aims to address this limitation by developing and interpreting a Multiple Linear Regression (MLR) model to predict the numeric Quality of Sleep (QOS) score on a 1-10 scale based on lifestyle, demographic, and biometric factors. The MLR model was applied following pre-processing, which included One-Hot Encoding for categorical variables and the removal of diagnostic variables to prevent data leakage. Evaluation results demonstrate that the model achieved excellent performance, confirmed by a high Coefficient of Determination (R2) of 0.957 and a very low Mean Absolute Error (MAE) of 0.145 units. Quantitative analysis of the regression coefficients identified Sleep Duration as the most dominant positive predictor and Stress Level as the most significant negative predictor of QOS. These findings provide an important contribution in the form of an interpretable mathematical equation, which can be utilized by clinicians to make measurable, evidence-based intervention recommendations, shifting the focus from diagnosis to quantitative management and prevention.
References
N. Ulfah and A. Syahlani, “Hubungan gaya hidup dan kualitas tidur dengan kejadian hipertensi remaja,” Heal. Sci. J., vol. 16, no. 1, pp. 158–165, 2025, doi: 10.34305/jikbh.v16i01.1504.
M. Siregar, M. Deliana, Dedi, and P. Sari, “Hubungan Tingkat Stress dan Gaya Hidup Terhadap Kualitas Tidur pada Pasien Hipertensi,” J. Keperawatan Dirgahayu, vol. 6, no. 2, pp. 29–36, Jan. 2025, doi: 10.52841/jkd.v6i2.464.
B. Saputra and M. Daniati, “Hubungan Konsumsi Alkohol dan Kualitas Tidur Terhadap Kejadian Hipertensi,” J. Keperawatan Hang Tuah ( Hang Tuah Nurs. J. ), vol. 2, no. 1, pp. 49–62, 2021.
D. Supriadi, M. B. Santoso, and N. P. Supriantini, “Penatalaksanaan kualitas tidur pada lansia dengan melakukan aktivitas olahraga jalan kaki,” Holistik J. Kesehat., vol. 17, no. 4, pp. 294–303, 2023.
S. D. Gunarsa and S. Wibowo, “Hubungan Kualitas Tidur dengan Kebugaran Jasmani Siswa,” J. Pendidik. Olahraga dan Kesehat., vol. 09, no. 01, pp. 43–52, 2021.
S. Sza et al., “Penerapan Decision Tree dan Random Forest dalam Deteksi Tingkat Stres Manusia Berdasarkan Kondisi Tidur,” J. Teknol. Inf. dan Ilmu Komput. Vol., vol. 11, no. 5, pp. 1043–1050, 2024, doi: 10.25126/jtiik.2024117993.
I. W. G. Saraswasta, F. A. R. Tegu, A. A. A. E. Primayanthi, and R. T. Sucitra, “Hubungan Tingkat Stres dan Gaya Hidup Terhadap Kualitas Tidur pada Lansia di Desa Kota Batu,” Community Publ. Nurs., vol. 13, no. 3, pp. 307–314, 2025.
I. A. Hidayat, “Classification of Sleep Disorders Using Random Forest on Sleep Health and Lifestyle Dataset,” J. Dinda, vol. 3, no. 2, pp. 71–76, 2023.
D. Fitriyani, M. Amelia, and S. S. Yuliana, “Penerapan Algoritma Random Forest Untuk Klasifikasi Gangguan Tidur Berdasarkan Pola Kehidupan Sehari-hari,” J. Apl. Inform. dan Multimed., vol. 1, no. 1, pp. 21–26, 2025.
N. Khasanah, D. Uki, E. Saputri, F. Aziz, and T. Hidayat, “Studi Perbandingan Algoritma Random Forest dan K-Nearest Neighbors ( KNN ) dalam Klasifikasi Gangguan Tidur,” Comput. Sci., vol. 5, no. 1, pp. 17–25, 2025.
D. Sari, “Prediksi Gangguan Tidur pada Sleep Health and Lifestyle Menggunakan Support Vector Machine dan Neural Network,” J. vokasi Inform., vol. 4, no. 1, pp. 36–42, 2024.
M. Maulidah and N. Hidayati, “Prediksi Kesehatan Tidur dan Gaya Hidup Menggunakan Machine Learning,” CONTEN Comput. Netw. Technol. Vol., vol. 4, no. 1, pp. 81–86, 2024.
D. A. Putri and M. Yasin, “Data Mining dengan Menggunakan Metode Time Series Analysis pada Pola Waktu Tidur,” Zetroem, vol. 07, no. 02, pp. 65–72, 2025.
N. R. Haryana, R. Rosmiati, and E. M. Purba, “Generation Z Lifestyle in Aspect of Eating Behavior , Stress , Sleep Quality and Its Relation to Nutritional Status : Literature Review,” J. Gizi Kerja dan Produkt., vol. 4, no. 2, pp. 267–282, 2023.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Sidarta David Setia, Masparudin Masparudin, Kaharuddin, Musliadi KH

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









