This study aims to develop an interpretable machine learning framework for predicting sleep health conditions by integrating supervised classification with unsupervised pattern discovery. The work addresses gaps in prior research that focuses primarily on accuracy without examining underlying data structure and interpretability. The contribution is a combined workflow that uses Random Forest classification together with K-Means clustering and Frequent Pattern Growth association rule mining to predict and explain sleep disorder categories. The methodology uses the public Sleep Health and Lifestyle dataset comprising 374 records with demographic, physiological, and lifestyle attributes. Preprocessing included removal of duplicate entries, exclusion of identifier attributes, splitting of blood pressure strings into systolic and diastolic components, encoding of categorical variables, and stratified partitioning into training and testing sets. Classification performance of Random Forest was compared with Decision Tree, Naive Bayes, and K-Nearest Neighbor using confusion matrix derived metrics. Clustering quality was assessed using Davies-Bouldin Index across candidate cluster numbers, and association rules were evaluated by support, confidence, and lift. The outcomes show that the Random Forest model has performed better than the other three models, with accuracy of 90.62% (micro-average: 90.64%), as compared to Decision Trees (89.79%), K-NN (89.00%), and Naive Bayes (88.47%). The Random Forest model achieved a micro-average accuracy of 90.64%, with per-class precision and recall. Predictive importance analysis identified body mass index category, blood pressure, and heart rate among the most influential predictors for distinguishing among normal sleep, insomnia, and sleep apnea, interpreted as predictive contribution rather than causal evidence. Clustering revealed five distinct lifestyle-physiological groups, and association analysis uncovered relationships such as overweight and elevated blood pressure co-occurring with sleep apnea. The findings suggest potential for interpretable ensemble methods to support early risk stratification, while highlighting need for larger clinically validated cohorts, objective sleep measures, and robust cross-validation before clinical deployment.
Copyrights © 2026