This project focuses on predicting sleep disorders such as Insomnia and Sleep Apnea using individual lifestyle and medical data. The goal is to enable early risk identification and intervention through machine learning models.
- Interactive Visualizations: Explore insights about sleep disorders through interactive graphs.
- Predictive Modeling: Use machine learning models to predict the likelihood of sleep disorders.
- Data Insights: Analyze key factors such as BMI, gender, and occupation influencing sleep disorders.
- app/: Contains the main application files.
- templates/: HTML templates for rendering the web pages.
- static/: Static assets such as CSS, JavaScript, and images.
- css/: Stylesheets for the web application.
- js/: JavaScript files for interactive elements and visualizations.
- app.py: The main Flask application file.
- utils.py: Helper functions for data loading and graph generation.
- data/: Contains raw and processed datasets.
- raw/: Original datasets.
- processed/: Cleaned and preprocessed datasets.
To run the web application locally:
- Navigate to the project directory:
cd sleep-disorder-project\app
- Start the Flask application:
python app.py
- Open the app in your browser at
http://localhost:5000/sleep-disorder.
- Framework: Flask
- Frontend: HTML, CSS, JavaScript
- Visualization: Plotly
- Deployment: Docker
- Aftabby - GitHub Profile
This project is licensed under the MIT License. See the LICENSE file for details.