EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC 4.0

Predicting sleep quality using random forest on sleep health and lifestyle data

Naia Az - Zahra, Deri Latika Herda

Journal Geuthee of Engineering and Energy (JOGE) · 27.05.2026 · 5 (1) · 54-61

DOI: 10.52626/joge.v5i1.83 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal Geuthee of Engineering and Energy (JOGE), online erschienen am 27.05.2026. Verfasst von Naia Az - Zahra und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Sleep is an important physiological process that plays a role in maintaining the balance of biological and psychological functions. Lifestyle changes, such as high stress levels and a lack of physical activity, can affect a person’s sleep quality. This study aims to analyze the influence of health and lifestyle factors on sleep quality and to develop a predictive model for sleep quality using the Random Forest algorithm. This study uses the Sleep Health and Lifestyle dataset with a classification approach into two categories, namely Ideal Sleep and Non-Ideal Sleep, determined based on sleep duration parameters referring to the concept of a U-shaped relationship and the sleep duration recommendations from the National Sleep Foundation. The data were processed through preprocessing and class imbalance handling using the SMOTE method, then split into training and testing data. The Random Forest model was built through hyperparameter tuning and evaluated using accuracy and Area Under the Curve (AUC) metrics. The results show that the Random Forest model achieved good classification performance with an Accuracy of 91.26%, Precision of 91.78%, Recall of 91.26%, and F1-Score of 91.30%. In addition, the model obtained an Area Under the Curve (AUC) value of 0.962, indicating very good classification capability. Based on the Feature Importance analysis results, the features with the greatest influence on sleep quality are Heart Rate, Stress Level, Physical Activity, and Daily Steps. The findings indicate that the combination of the SMOTE method and Random Forest is effective for predicting sleep quality based on health and lifestyle factors.

Zitieren

APA

Zahra, N. A., & Herda, D. L. (2026). Predicting sleep quality using random forest on sleep health and lifestyle data. Journal Geuthee of Engineering and Energy (JOGE), 5(1), 54-61. https://doi.org/10.52626/joge.v5i1.83

Vancouver

Zahra NA, Herda DL. Predicting sleep quality using random forest on sleep health and lifestyle data. Journal Geuthee of Engineering and Energy (JOGE). 2026;5(1):54-61. doi:10.52626/joge.v5i1.83

BibTeX
@article{Zahra2026,
  author = {Zahra, Naia Az - and Herda, Deri Latika},
  title = {Predicting sleep quality using random forest on sleep health and lifestyle data},
  journal = {Journal Geuthee of Engineering and Energy (JOGE)},
  year = {2026},
  volume = {5},
  number = {1},
  pages = {54--61},
  doi = {10.52626/joge.v5i1.83}
}
Kostenlos starten →