This study aims to analyze the relative contribution of sleep duration as one predictor attribute in chronic disease classification using the Random forest algorithm. The secondary dataset was obtained from Kaggle under the name Healthcare Real-Time Risk Dataset and contains 1,000 records and 10 attributes. Seven attributes were used as predictors: age, gender, body mass index (BMI), smoking status, alcohol consumption, physical activity, and sleep duration. The Chronic Disease History label was transformed into two classes: YES, for Diabetes, Heart Disease, and Hypertension, and NO for None. The dataset was divided into 750 training records and 250 testing records using stratified sampling with a 75:25 ratio and random seed 1. The Random forest model used six decision trees, the gain-ratio criterion, a maximum depth of 10, and majority voting. Evaluation on the test set yielded an accuracy of 72.80%, a precision of 77.33% for the YES class, a recall of 91.10% for the YES class, an F1-score of 83.65% for the YES class, a recall of 13.56% for the NO class, an AUC of 0.493, and a Cohen’s kappa of 0.058. Attribute-weight analysis showed that age had the highest weight at 0.243, followed by physical activity at 0.209 and sleep duration at 0.191. These results indicate that sleep duration contributes relatively to the model but is not the highest-weighted attribute. The low recall for the NO class and an AUC close to 0.5 indicate that the model’s ability to distinguish the target classes remains limited. These findings describe classification results for the dataset used and do not establish a causal relationship between sleep duration and chronic diseases.