mohitrajdeo
Update README.md with detailed project description, features, quick start guide, and application sections
698a414
title: Early-prediction-for-ml Proj | |
emoji: π | |
colorFrom: blue | |
colorTo: green | |
sdk: streamlit | |
sdk_version: 1.44.0 | |
app_file: app.py | |
pinned: false | |
short_description: This tool provides early prediction and analysis for various | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
--- | |
<!-- # π©Ί AI-Powered Health & Lifestyle Disease Prediction | |
Welcome to the **AI-Powered Health Prediction System**! π | |
This tool provides **early prediction and analysis** for various health conditions using **Machine Learning & NLP**. It is designed to assist users in understanding potential health risks based on their lifestyle and symptoms. | |
--- | |
## π₯ Available Features: | |
β **Lifestyle Disease Predictor** (Checkbox-based system using BiomedNLP-PubMedBERT) | |
π€ **AI Chatbot for Health Assistance** (Ask health-related questions) | |
π§ **Mental Health Assessment** (Analyze sentiment & well-being) | |
π©Έ **Disease Predictors:** | |
- Diabetes | |
- Asthma | |
- Stroke | |
- Cardiovascular Disease | |
π **Data Visualizer** (Analyze trends in health conditions) | |
π **User-friendly Interface** (Easy navigation and interactive elements) | |
π **Personalized Health Insights** (Recommendations based on user input) | |
π **Select an option from the sidebar to proceed!** | |
--- | |
## π Quick Start Guide | |
1. Clone this repository: | |
```bash | |
git clone https://github.com/MOHITRAJDEO12345/early-prediction-for-ml_proj.git | |
``` | |
2. Navigate to the project directory: | |
```bash | |
cd early-prediction-for-ml_proj | |
``` | |
3. Install dependencies: | |
```bash | |
pip install -r requirements.txt | |
``` | |
4. Run the application: | |
```bash | |
streamlit run app.py | |
``` | |
--- | |
## π₯ Application Sections | |
The application includes the following navigation options: | |
```python | |
options = [ | |
'Home', | |
'Checkbox-to-disease-predictor', | |
'AI Health Consultant', | |
'Mental-Analysis', | |
'Diabetes Prediction', | |
'Asthma Prediction', | |
'Cardiovascular Disease Prediction', | |
'Stroke Prediction', | |
'Sleep Health Analysis', | |
'Data Visualization', | |
'Text-based Disease Prediction' | |
] | |
``` | |
### π§ Mental Health Analysis | |
- NOTE: the trained model was not upto mark so we switched to gated transformer model | |
- Uses **mental/mental-roberta-base** for sentiment-based mental health assessment. | |
- Predicts **Depression and Anxiety** based on user input. | |
- Provides graphical risk assessment using **Seaborn & Matplotlib**. | |
### π¬ Disease Prediction Models | |
- NOTE: only those diseases have been taken that can be predicted wihtout diagnostic results and some of the features have been discared for training | |
- **Diabetes Model**: Predicts diabetes risk using medical indicators. | |
- **Asthma Model**: Uses preprocessed datasets to detect asthma likelihood. | |
- **Cardiovascular Model**: XGBoost-based prediction for heart disease. | |
- **Stroke Model**: Uses ML models to assess stroke risk factors. | |
### π Text-based Disease Prediction | |
- Uses **distilbert-base-uncased** for text-based disease prediction. | |
- Allows users to input symptoms via text or audio. | |
- Predicts possible lifestyle diseases based on user input. | |
- Provides graphical risk assessment using **Seaborn & Matplotlib**. | |
--- | |
## πΈ Screenshots & UI Preview | |
π **Streamlit Application Interface:** | |
- NOTE: for functionality purpose only | |
- YOUTUBE: https://youtu.be/abrRqceVuDU | |
 | |
π **Data Visualization Example:** | |
- NOTE: currently showing datasets | |
it will be used for visualizing anomalies in user predictions it will become personalized | |
 | |
 | |
π₯ **Separate Frontend Interface:** | |
- NOTE: the frontend is currently not connected with ml models and it may behave wrongly | |
- WORKING: https://v0.dev/chat/community/lifestyle-disease-prediction-ADp1mOc0hKg | |
- YOUTUBE: https://youtu.be/DU4FW-8hSoU | |
 | |
--- | |
## β οΈ Disclaimer | |
This application has been developed using real-world healthcare datasets sourced from Kaggle: | |
- **Stroke Prediction Dataset** | |
- **Asthma Analysis & Prediction Dataset** | |
- **Diabetes Dataset** | |
- **Cardiovascular Disease Dataset** | |
- **Sentiment Analysis for Mental Health** | |
The predictions are generated using machine learning models trained on these datasets, incorporating evaluation metrics and graphical insights to enhance interpretability. | |
However, this tool has **not undergone clinical validation** and should be used for **informational and educational purposes only**. It is not intended to serve as a substitute for **professional medical diagnosis or treatment**. Always consult a qualified healthcare provider for medical advice. | |
--- | |
# colab | |
- https://colab.research.google.com/drive/1DpOH7KgTWubr5qQjj13EDqxIqsbPLDQe?usp=sharing#scrollTo=EgbDF0U5L1l2 | |
- https://colab.research.google.com/drive/1GI7Z1GPPUi67X6UssCQVJXr_QoysfJrz#scrollTo=XkcDpRRzFCIX | |
- https://colab.research.google.com/drive/1eZIBboyY_x0ZsJp5G10XrFFu4aG4eCuf#scrollTo=3NDJOlrEpmoL | |
- http://colab.research.google.com/drive/11KO6cvyTeYY_v5PnYqTwheEupJtNjfCr?usp=sharing#scrollTo=7EyXbXJkPnqf | |
- https://colab.research.google.com/drive/1-B7Q8hXHD0iIBvVldnLkvCiWGhJ2iYNL?usp=sharing | |
- https://colab.research.google.com/drive/1inXO2_JvTw6fOXiJGaW_0pJvI_3sNo0T?usp=sharing | |
- https://colab.research.google.com/drive/1NpwO0NBOKQBtUuN9cC-CXE4vuP5TCavY?usp=sharing | |
- https://colab.research.google.com/drive/10W68SdZHS3IvJAjFTBoqEFI5g7USZVo9?usp=sharing | |
- https://colab.research.google.com/drive/1J8xvEs7rDn0NLYIzH5S2UgFt-lOk7TA6?usp=sharing | |
- https://colab.research.google.com/drive/1BeDmCVjVLb3uqUHdnafgLMLItAtgsAsN?usp=sharing | |
- | |
--- | |
## π Modular Features (Pending Integration) | |
Several functionalities have been implemented but are pending Streamlit integration for optimization: | |
β **User Login & Basic Inputs**: Secure authentication and user profile management. | |
β **Personalized Email Reports**: Automated daily, weekly, and monthly health insights. | |
β **Anomaly Visualization**: Analyzes past predictions to detect anomalies. | |
β **Workout Plans**: AI-driven personalized workout routines based on health data. | |
β **Sleep Analysis**: AI-powered sleep tracking and recommendations. | |
β **Medication Adherence**: Reminders and tracking for prescribed medications. | |
β **Nutrition Recommendations**: AI-based meal planning and dietary suggestions. | |
β **Community & Resources**: A section for health articles, discussions, and expert Q&A. | |
--- | |
## π¬ Ongoing Research & Future Enhancements | |
π§ **Fitbit API Integration** β Real-time health monitoring with wearable devices. | |
π§ **LSTM Models for Realtime Fitbit Data** β Developing deep learning models for dynamic health tracking. | |
π§ **Enhanced Mental Health Analysis** β Exploring transformer-based sentiment models for deeper insights. | |
π§ **Hybrid ML & NLP Systems** β Combining structured health data with unstructured text for more accurate predictions. | |
--- | |
## π¨βπ» Author | |
Developed by **Mohit Rajdeo** | |
GitHub: [MOHITRAJDEO12345](https://github.com/MOHITRAJDEO12345) | |
--- | |
## π€ Contributions | |
Contributions are always welcome! Feel free to open an issue or submit a pull request if you have suggestions or improvements. | |
--- | |
## π¬ Contact | |
For any questions or feedback, feel free to reach out: | |
π§ Email: [email protected] | |
π¦ Twitter: [@mohitrajdeo](https://twitter.com/mohitrajdeo) --> | |
# π©Ί Early Prediction of Health & Lifestyle Diseases | |
Welcome to the **AI-Powered Health Prediction System**! π | |
This tool provides **early prediction and analysis** for various health conditions using **Machine Learning & NLP**. It assists users in understanding potential health risks based on their lifestyle, medical indicators, and symptoms. | |
--- | |
## π₯ Available Features: | |
β **Diabetes Prediction** β Predict diabetes risk using medical indicators. | |
β **Hypertension Prediction** β Assess the risk of high blood pressure. | |
β **Cardiovascular Disease Prediction** β XGBoost-based prediction for heart disease. | |
β **Stroke Prediction** β Machine Learning-based stroke risk analysis. | |
β **Asthma Prediction** β Detect asthma likelihood using preprocessed datasets. | |
β **Sleep Health Analysis** β AI-driven analysis of sleep patterns and health. | |
β **Mental Health Assessment** β Sentiment-based analysis using **mental-roberta-base**. | |
β **Medical Consultant AI Chatbot** β Ask health-related questions for AI-driven insights. | |
β **Data Visualization** β Graphical representation of health trends and anomalies. | |
π **Select an option from the sidebar to proceed!** | |
--- | |
## π Quick Start Guide | |
1. Clone this repository: | |
```bash | |
git clone https://github.com/MOHITRAJDEO12345/early-prediction-for-ml_proj.git | |
``` | |
2. Navigate to the project directory: | |
```bash | |
cd early-prediction-for-ml_proj | |
``` | |
3. Install dependencies: | |
```bash | |
pip install -r requirements.txt | |
``` | |
4. Run the application: | |
```bash | |
streamlit run app.py | |
``` | |
--- | |
## π₯ Application Sections | |
The application includes the following navigation options: | |
```python | |
options = [ | |
'Home', | |
'Diabetes Prediction', | |
'Hypertension Prediction', | |
'Cardiovascular Disease Prediction', | |
'Stroke Prediction', | |
'Asthma Prediction', | |
'Sleep Health Analysis', | |
'Mental-Analysis', | |
'Medical Consultant', | |
'Data Visualization' | |
] | |
``` | |
### π§ Mental Health Analysis | |
- Uses **mental/mental-roberta-base** for sentiment-based mental health assessment. | |
- Predicts **Depression and Anxiety** based on user input. | |
- Provides graphical risk assessment using **Seaborn & Matplotlib**. | |
### π¬ Disease Prediction Models | |
- **Diabetes Model**: Predicts diabetes risk based on medical data. | |
- **Hypertension Model**: Evaluates high blood pressure risk. | |
- **Cardiovascular Model**: Uses XGBoost for heart disease prediction. | |
- **Stroke Model**: ML-based assessment of stroke risk factors. | |
- **Asthma Model**: Machine learning model for asthma detection. | |
### π Data Visualization | |
- Interactive graphs to analyze health trends. | |
- Anomaly detection for user predictions. | |
### π€ AI Medical Consultant | |
- AI-powered chatbot for answering health-related queries. | |
- Uses NLP models for better understanding and recommendations. | |
--- | |
## πΈ Screenshots & UI Preview | |
π **Streamlit Application Interface:** | |
 | |
π **Data Visualization Example:** | |
 | |
 | |
π₯ **Separate Frontend Interface:** | |
 | |
--- | |
## β οΈ Disclaimer | |
This application has been developed using real-world healthcare datasets sourced from Kaggle: | |
- **Diabetes Dataset** | |
- **Hypertension Dataset** | |
- **Cardiovascular Disease Dataset** | |
- **Stroke Prediction Dataset** | |
- **Asthma Analysis & Prediction Dataset** | |
- **Sentiment Analysis for Mental Health** | |
The predictions are generated using machine learning models trained on these datasets, incorporating evaluation metrics and graphical insights to enhance interpretability. | |
However, this tool has **not undergone clinical validation** and should be used for **informational and educational purposes only**. It is not intended to serve as a substitute for **professional medical diagnosis or treatment**. Always consult a qualified healthcare provider for medical advice. | |
--- | |
# π¬ Ongoing Research & Future Enhancements | |
π§ **Fitbit API Integration** β Real-time health monitoring with wearable devices. | |
π§ **LSTM Models for Realtime Fitbit Data** β Developing deep learning models for dynamic health tracking. | |
π§ **Enhanced Mental Health Analysis** β Exploring transformer-based sentiment models for deeper insights. | |
π§ **Hybrid ML & NLP Systems** β Combining structured health data with unstructured text for more accurate predictions. | |
--- | |
## π¨βπ» Author | |
Developed by **Mohit Rajdeo** | |
GitHub: [MOHITRAJDEO12345](https://github.com/MOHITRAJDEO12345) | |
--- | |
## π€ Contributions | |
Contributions are always welcome! Feel free to open an issue or submit a pull request if you have suggestions or improvements. | |
--- | |
## π¬ Contact | |
For any questions or feedback, feel free to reach out: | |
π§ Email: [email protected] | |
π¦ Twitter: [@mohitrajdeo](https://twitter.com/mohitrajdeo) | |