CoolFace
Apppublic

GopalSaraf/Sleep-Disorder-Prediction

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
App README

Sleep Disorder Prediction

Web App Link: https://sleepinsight.gopalsaraf.com/

Introduction

Sleep is a vital indicator of overall health and well-being. We spend up to one-third of our lives asleep, and the overall state of our "sleep health" remains an essential question throughout our lifespan. Most of us know that getting a good night's sleep is important, but too few of us actually make those eight or so hours between the sheets a priority. For many of us with sleep debt, we've forgotten what "being really, truly rested" feels like.

Dataset

Dataset can be found here. It is also available in the repository as Sleep_health_and_lifestyle_dataset.csv.

Dataset Overview:

The Sleep Health and Lifestyle Dataset comprises 400 rows and 13 columns, covering a wide range of variables related to sleep and daily habits. It includes details such as gender, age, occupation, sleep duration, quality of sleep, physical activity level, stress levels, BMI category, blood pressure, heart rate, daily steps, and the presence or absence of sleep disorders.

Key Features of the Dataset:

  • Comprehensive Sleep Metrics: Explore sleep duration, quality, and factors influencing sleep patterns.
  • Lifestyle Factors: Analyze physical activity levels, stress levels, and BMI categories.
  • Cardiovascular Health: Examine blood pressure and heart rate measurements.
  • Sleep Disorder Analysis: Identify the occurrence of sleep disorders such as Insomnia and Sleep Apnea.

Dataset Columns:

  • Person ID: An identifier for each individual.
  • Gender: The gender of the person (Male/Female).
  • Age: The age of the person in years.
  • Occupation: The occupation or profession of the person.
  • Sleep Duration (hours): The number of hours the person sleeps per day.
  • Quality of Sleep (scale: 1-10): A subjective rating of the quality of sleep, ranging from 1 to 10.
  • Physical Activity Level (minutes/day): The number of minutes the person engages in physical activity daily.
  • Stress Level (scale: 1-10): A subjective rating of the stress level experienced by the person, ranging from 1 to 10.
  • BMI Category: The BMI category of the person (e.g., Underweight, Normal, Overweight).
  • Blood Pressure (systolic/diastolic): The blood pressure measurement of the person, indicated as systolic pressure over diastolic pressure.
  • Heart Rate (bpm): The resting heart rate of the person in beats per minute.
  • Daily Steps: The number of steps the person takes per day.
  • Sleep Disorder: The presence or absence of a sleep disorder in the person (None, Insomnia, Sleep Apnea).

Details about Sleep Disorder Column:

  • None: The individual does not exhibit any specific sleep disorder.
  • Insomnia: The individual experiences difficulty falling asleep or staying asleep, leading to inadequate or poor-quality sleep.
  • Sleep Apnea: The individual suffers from pauses in breathing during sleep, resulting in disrupted sleep patterns and potential health risks.

Models Used

  • Logistic Regression
  • Decision Tree
  • XGBoost

Results

ModelAccuracyPrecisionRecallF1 Score
Logistic0.790.800.730.75
Decision Tree0.960.950.950.95
XGBoost0.960.950.950.95

Conclusion

  • Decision Tree and XGBoost models performed better than Logistic Regression.
  • Decision Tree and XGBoost models have the same accuracy, precision, recall and F1 score.
  • Decision Tree and XGBoost models are the best models for this dataset.

Contributors

License

MIT