Sleep Disorder Prediction Using Machine Learning Project
The purpose of this project is to analyze factors that affect sleep health and predict which sleep disorder a person may have based on various factors such as Sleep Quality, Stress Level, BMI Index, Blood Pressure, etc. The dataset used for this project was sourced from Kaggle. The project involved data preprocessing to fill null
- Suitable forB.Tech/Diploma AI/ML students
- Build time1-2 weeks
- LevelAdvanced
- Available atAjvika Labs, Kakinada
About this project
The purpose of this project is to analyze factors that affect sleep health and predict which sleep disorder a person may have based on various factors such as Sleep Quality, Stress Level, BMI Index, Blood Pressure, etc. The dataset used for this project was sourced from Kaggle. The project involved data preprocessing to fill null values, exploratory data analysis (EDA), and the implementation of machine learning models to make predictions.
Key Observations
Individuals aged over 43 years are more likely to experience sleep disorders.
On average, females tend to have better sleep quality compared to males.
Engineers generally have better sleep quality, while Sales Representatives have poorer sleep quality.
Higher stress levels are associated with an increased likelihood of sleep disorders.
Individuals with sleep disorders have lower sleep quality ratings compared to those without disorders.
People in the Obese and Overweight BMI categories tend to experience more sleep disorders.
Individuals who sleep more than 7 hours have a significantly lower chance of having a sleep disorder.
Models Used
Three machine learning models were used:
Logistic Classification
K-Nearest Neighbors (KNN) Classifier
Random Forest Classifier
The same training and testing sets were used for all models.
Model Performance
Random Forest Classifier
: Best performing model with an accuracy of 89%.
Accuracy: 89%
Recall: 89%
Precision: 90%
F1-Score: 89%
KNN Classifier
: Performed well but not as good as Random Forest.
Logistic Classification
: Achieved 86% accuracy, which was the lowest among the three models.
Important Features
Based on the Random Forest Classifier, the top three important features for detecting sleep disorders are:
Blood Pressure
BMI Category
Age
Conclusion
The Random Forest Classifier was identified as the best model for predicting sleep disorders in the given dataset, achieving an accuracy of 89%. The top three contributing features to the prediction are Blood Pressure, BMI Category, and Age.
Dataset
The dataset for this project was obtained from
Kaggle
Technology Used in the project :-
We have developed this project using the below technology
HTML : Page layout has been designed in HTML
CSS : CSS has been used for all the desigining part
JavaScript : All the validation task and animations has been developed by JavaScript
Python : All the business logic has been implemented in Python
Flask: Project has been developed over the Flask Framework
Supported Operating System :-
We can configure this project on following operating system.
Windows : This project can easily be configured on windows operating system. For running this project on Windows system, you will have to install
Python 3.8, PIP, Django.
Linux : We can run this project also on all versions of Linux operating systemMac : We can also easily configured this project on Mac operating system.
Installation Step : -
python 3.8.0
command 1 -
python -m pip install --user -r requirements.txt
command 2 -
python app.py
Demo Video
Key Observations
Individuals aged over 43 years are more likely to experience sleep disorders.
On average, females tend to have better sleep quality compared to males.
Engineers generally have better sleep quality, while Sales Representatives have poorer sleep quality.
Higher stress levels are associated with an increased likelihood of sleep disorders.
Individuals with sleep disorders have lower sleep quality ratings compared to those without disorders.
People in the Obese and Overweight BMI categories tend to experience more sleep disorders.
Individuals who sleep more than 7 hours have a significantly lower chance of having a sleep disorder.
Models Used
Three machine learning models were used:
Logistic Classification
K-Nearest Neighbors (KNN) Classifier
Random Forest Classifier
The same training and testing sets were used for all models.
Model Performance
Random Forest Classifier
: Best performing model with an accuracy of 89%.
Accuracy: 89%
Recall: 89%
Precision: 90%
F1-Score: 89%
KNN Classifier
: Performed well but not as good as Random Forest.
Logistic Classification
: Achieved 86% accuracy, which was the lowest among the three models.
Important Features
Based on the Random Forest Classifier, the top three important features for detecting sleep disorders are:
Blood Pressure
BMI Category
Age
Conclusion
The Random Forest Classifier was identified as the best model for predicting sleep disorders in the given dataset, achieving an accuracy of 89%. The top three contributing features to the prediction are Blood Pressure, BMI Category, and Age.
Dataset
The dataset for this project was obtained from
Kaggle
Technology Used in the project :-
We have developed this project using the below technology
HTML : Page layout has been designed in HTML
CSS : CSS has been used for all the desigining part
JavaScript : All the validation task and animations has been developed by JavaScript
Python : All the business logic has been implemented in Python
Flask: Project has been developed over the Flask Framework
Supported Operating System :-
We can configure this project on following operating system.
Windows : This project can easily be configured on windows operating system. For running this project on Windows system, you will have to install
Python 3.8, PIP, Django.
Linux : We can run this project also on all versions of Linux operating systemMac : We can also easily configured this project on Mac operating system.
Installation Step : -
python 3.8.0
command 1 -
python -m pip install --user -r requirements.txt
command 2 -
python app.py
Demo Video
Technologies used
Software & tools
- Arduino IDE
What you get
- Working project / hardware kit, tested before delivery
- Complete source code with explanation
- Project demo and guidance for your viva
- Project report, PPT and IEEE paper support (on request)
Delivery & Payment
Delivery takes a minimum of two weeks from the date your inquiry is confirmed.
Payment is in two parts:
• 50% advance to start the project
• Remaining 50% before delivery
Note:
• Documentation and PPT are not included by default
• If you need documentation/PPT, it can be arranged for extra time and cost
We'll confirm the exact timeline and cost with you after reviewing your requirements.