From 9bbc91c5cc8153fd15bc91c1a2f55f1377cb7b53 Mon Sep 17 00:00:00 2001 From: adwityac Date: Fri, 3 Jan 2025 17:03:21 +0530 Subject: [PATCH 1/2] Added sleep quality prediction model --- docs/ML/projects/sleep_quality_prediction.md | 277 +++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 docs/ML/projects/sleep_quality_prediction.md diff --git a/docs/ML/projects/sleep_quality_prediction.md b/docs/ML/projects/sleep_quality_prediction.md new file mode 100644 index 00000000..28fde334 --- /dev/null +++ b/docs/ML/projects/sleep_quality_prediction.md @@ -0,0 +1,277 @@ +

Sleep Quality Prediction

+ +

AIM

+

To predict sleep quality based on lifestyle and health factors.

+ +--- + +

DATASET LINK

+

+ + Sleep Health and Lifestyle Dataset + +

+ +--- + +

DESCRIPTION

+ +

What is the requirement of the project?

+ + +

Why is it necessary?

+ + +

How is it beneficial and used?

+ + +

How did you start approaching this project? (Initial thoughts and planning)

+ + +

Mention any additional resources used

+ + +--- + +

LIBRARIES USED

+ + +--- + +

EXPLANATION

+ +

DETAILS OF THE DIFFERENT FEATURES

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Feature NameDescriptionTypeValues/Range
GenderRespondent's genderCategorical[Male, Female]
AgeRespondent's ageNumericalMeasured in years
Sleep Duration (hours)Hours of sleep per dayNumericalMeasured in hours
Physical Activity LevelDaily physical activity in minutesNumericalMeasured in minutes
Stress LevelStress level on a scaleNumerical1 to 5 (low to high)
BMI CategoryBody Mass Index categoryCategorical[Underweight, Normal, Overweight, Obese]
Systolic Blood PressureSystolic blood pressureNumericalMeasured in mmHg
Diastolic Blood PressureDiastolic blood pressureNumericalMeasured in mmHg
Heart Rate (bpm)Resting heart rateNumericalBeats per minute
Daily StepsAverage number of steps per dayNumericalMeasured in steps
Sleep DisorderReported sleep disorderCategorical[Yes, No]
+ +--- + +

WHAT I HAVE DONE

+ +

Step 1: Exploratory Data Analysis

+ + +

Step 2: Data Cleaning and Preprocessing

+ + +

Step 3: Feature Engineering and Selection

+ + +

Step 4: Modeling

+ + +

Step 5: Result Analysis

+ + +--- + +

MODELS USED AND THEIR ACCURACIES

+ + + + + + + + + + + + + + + + + + + + +
ModelAccuracy (%)F1-Score (%)Precision (%)Recall (%)
Decision Tree74.5075.2073.0077.50
+ +--- +

SCREENSHOTS

+ + +

CONCLUSION

+ +

WHAT YOU HAVE LEARNED

+ +
+

Insights gained from the data

+ +
+ +
+

Improvements in understanding machine learning concepts

+ +
+ +
+

Challenges faced and how they were overcome

+ +
+ +--- + +

USE CASES OF THIS MODEL

+ +
+

Application 1

+

+ A health tracker app can integrate this model to assess and suggest improvements in sleep quality based on user inputs. +

+
+ +
+

Application 2

+

+ Healthcare providers can use this tool to make preliminary assessments of patients' sleep health, enabling timely interventions. +

+
+ +--- + +

FEATURES PLANNED BUT NOT IMPLEMENTED

+ +
+

Feature 1

+

+ Advanced models such as Random Forest, AdaBoost, and Gradient Boosting were not implemented due to the project's focus on simplicity and interpretability. +

+
+ +
+

Feature 2

+

+ Integration with wearable device data for real-time predictions was not explored but remains a potential enhancement for future work. +

+
+ + + From 851bc8865d8099226a1cc5aa2ebeb779f56479af Mon Sep 17 00:00:00 2001 From: Adwitya Chakraborty Date: Fri, 3 Jan 2025 17:09:12 +0530 Subject: [PATCH 2/2] Update sleep_quality_prediction.md --- docs/ML/projects/sleep_quality_prediction.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/ML/projects/sleep_quality_prediction.md b/docs/ML/projects/sleep_quality_prediction.md index 28fde334..b03ea561 100644 --- a/docs/ML/projects/sleep_quality_prediction.md +++ b/docs/ML/projects/sleep_quality_prediction.md @@ -207,7 +207,6 @@ --- -

SCREENSHOTS

CONCLUSION