Modeling Sleep Health and Lifestyle Using Supervised Learning Algorithms

Authors

  • M Usman Bhatti Department of Software Engineering, FOIT, University of Central Punjab, Lahore, Pakistan.
  • Ali Saeed Department of Software Engineering, FOIT, University of Central Punjab, Lahore, Pakistan.
  • Muhammad Ashir Department of Computer Science & IT, University of Lahore, Punjab, Pakistan.
  • Naveed Hussain Department of Applied Computing Technologies, FOIT, University of Central Punjab, Lahore, Pakistan.
  • Mehmood Anwar Department of Computer Science & IT, University of Lahore, Punjab, Pakistan.
  • Muhammad Farhat Ullah School of Software, Dalian University of Technology, Dalian, Ganjingzi District, Liaoning Province, China.

Keywords:

Sleep Quality, Machine Learning, Sleep Health and Lifestyle Dataset, Ensemble Methods, Random Forest(RF), Classification, Health Prediction

Abstract

With the realization of the importance of sleep quality as an indicator of general well-being, this work uses the strength of machine learning to discover significant trends in information about lifestyles and health to make predictions regarding sleep health. Based on the Sleep Health and Lifestyle Dataset that consists of 373 instances (rows) and 13 features (columns), including demographic, physiological, and lifestyle-related data, one can classify the target variable Quality of Sleep as a categorical attribute, defining the task in terms of classification. Different machine learning models were implemented and compared by means of precision, recall, accuracy, and F1 score: Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Random Forest, Logistic Regression, Decision Tree, Gradient Boosting, Naive Bayes, and AdaBoost. Of these, the models of the ensemble type were better performers, and the Random Forest model produced the best outcomes in all measures: 98.67% accuracy, 98.74% precision, 98.67% recall, and 98.66% F1 score. The other schemes, Decision Tree and Gradient Boosting, also performed well, and SVM received the lowest scores. The results emphasize the usefulness of ensemble methods in modeling complicated and non-linear relationships in multifactor health data. The results reinforce the possibilities of machine learning in relation to data-driven, individualistic health-related recommendations and early interventions during sleep health management.

Downloads

Published

2025-06-01

How to Cite

M Usman Bhatti, Ali Saeed, Muhammad Ashir, Naveed Hussain, Mehmood Anwar, & Muhammad Farhat Ullah. (2025). Modeling Sleep Health and Lifestyle Using Supervised Learning Algorithms. Journal of Computing & Biomedical Informatics, 9(01). Retrieved from https://jcbi.org/index.php/Main/article/view/998