Prediction of Sleep Health Status, Visualization and Analysis of Data
Keywords:Machine learning, Sleep quality, Sleep Disorder, Correlation, Analysis
Sleep, as an indispensable element of human life, is accepted as one of the main sources of health, vitality and productivity. There are many factors that affect sleep health. Stress level, irregularity of sleep patterns and excessive use of technological devices can be given as examples. Sleep health can be determined by analyzing various variables about sleep. Sleep health can be determined by using these variables with machine learning methods. For this purpose, a dataset containing 374 rows of data and 13 features was used in this study. Sleep disorder conditions can be classified as None, Sleep Apnea, and Insomnia using 12 features. Random Forest (RF), Support Vector Machine (SVM), Logistic Regression (LR) and k Nearest Neighbor (kNN) methods were used for classification. Classification success was 91.66% from the RF model, 90.27% from the SVM model, 90.27% from the LR model and 87.50% from the kNN model. In order to analyze which feature is more effective in classification processes, box plot and correlation analysis methods were used. As a result of the analyzes, it was determined that the body mass index has the greatest effect on the determination of sleep disorder.