Journal of Applied Data Sciences
Vol 7, No 4: December 2026

Interpretable Random Forest for Sleep Health Prediction: A Data-Driven Approach to Machine Learning

Johanes Fernandes Andry (Bunda Mulia University)
Aziza Chakir (Department of Law, Economics and Social Sciences, Universite Hassan II de Casablanca, Morocco)
Devi Yurisca Bernanda (Bunda Mulia University)
Arief Hidayat (Department of Informatics, Wahid Hasyim University, Indonesia, Indonesia)
Daniel Lim (Unknown)
Jason Jason (Unknown)



Article Info

Publish Date
27 Nov 2026

Abstract

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






Journal Info

Abbrev

JADS

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

One of the current hot topics in science is data: how can datasets be used in scientific and scholarly research in a more reliable, citable and accountable way? Data is of paramount importance to scientific progress, yet most research data remains private. Enhancing the transparency of the processes ...