The Gemini Health Care Chatbot is a Django-based healthcare assistant that helps patients analyze medical images and symptoms to identify potential health concerns. The chatbot provides detailed analysis, recommendations, and treatment options based on the provided input, whether it's a medical image or text description.
- User Registration and Login: Allows users to register, log in, and maintain a personalized profile.
- Medical Image Analysis: Patients can upload medical images, which the chatbot analyzes for abnormalities and potential health issues.
- Symptom Analysis: Patients can describe their symptoms, and the chatbot will suggest possible conditions and provide advice.
- Doctor Recommendations: Based on the user’s profile and symptoms, the bot suggests relevant doctors for appointment scheduling.
- Gemini AI Integration: Powered by Google Gemini's AI for generating responses to the uploaded images or user queries.
- Backend: Django
- Frontend: HTML, CSS
- Database: SQLite (default in Django) or any Django-supported database
- API Integration: Google Gemini API for medical image and symptom analysis
Before setting up the project, make sure you have the following installed:
- Python 3.x
- Django 4.x or later
- Google Gemini API key
- Register and Login: Users must register and log in to access the chatbot.
- Profile Setup: After login, users can access their profile to view personal information and their disease history.
- Upload Medical Images: On the Analyze Image page, users can upload medical images or input symptoms for the chatbot to analyze.
- Receive Recommendations: The chatbot provides detailed analysis, reports, recommendations, and potential treatments based on the input.
To be added. (You can add your project's directory structure here.)
This model extends the default Django User
model and stores additional information such as the user's disease history.
- Fields:
user
: ForeignKey toUser
disease
: TextField
The chatbot uses Google Gemini's Generative AI API to process medical images and textual inputs. The integration is managed in views.py
where the image or text is sent to the Gemini model, and a detailed response is generated.
The Vitals Monitoring and Prediction System is a Python-based solution that assesses an individual's health risk based on their key vital signs. By collecting inputs such as heart rate, respiratory rate, body temperature, oxygen saturation, and blood pressure, the system utilizes a trained Logistic Regression model to categorize the user's health status into either Low Risk or High Risk. Additionally, it generates comprehensive reports summarizing the findings, aiding in proactive healthcare management.
- Vital Signs Collection: Interactive input fields allow users to enter their heart rate, respiratory rate, body temperature, oxygen saturation, and blood pressure.
- Risk Prediction: The system uses a trained Logistic Regression model to evaluate the risk category based on the provided vital signs.
- Automated Reporting: A detailed text report (
patient_issues_report.txt
) is generated, summarizing the vital signs and the predicted risk category. - Model Training and Persistence: The system can load a dataset, train a machine learning model, evaluate its accuracy, and save the trained model for future predictions.
- Interactive Interface: The project utilizes
ipywidgets
within a Jupyter Notebook for seamless and user-friendly data input and interaction.
- Programming Language: Python 3.x
- Libraries and Frameworks:
- Data Handling:
pandas
- Machine Learning:
scikit-learn
(Logistic Regression),joblib
- Interactive UI:
ipywidgets
,IPython.display
- File Operations:
os
- Data Handling:
- Environment: Jupyter Notebook for interactive execution and documentation
The Lung Cancer Prediction Model is a machine learning solution designed to predict the likelihood of lung cancer in individuals based on various health parameters. The model uses a dataset of lung cancer risk factors, such as age, smoking habits, and medical history, to classify individuals into different risk categories. This tool aids healthcare professionals and patients in proactive risk assessment, enabling timely medical interventions.
- Risk Factor Input: Users can input various health parameters like age, smoking status, alcohol consumption, and air pollution exposure.
- Machine Learning Model: The prediction is powered by a trained Vgg16,EfficientNetB0,InceptionV3, which classifies the input data into either Low Risk or High Risk categories.
- Data Handling and Preprocessing: The model processes raw input data, normalizes it, and makes it suitable for prediction.
- Accuracy Evaluation: The model can be evaluated for accuracy using common metrics like confusion matrix, precision, recall, and F1-score.
- Automated Reporting: The system generates a comprehensive report (
lung_cancer_risk_report.txt
) summarizing the risk factors and the predicted risk level.
- Programming Language: Python 3.x
- Libraries and Frameworks:
- Data Handling:
pandas
- Machine Learning:
scikit-learn
(Logistic Regression, Decision Trees) - Visualization:
matplotlib
,seaborn
- Model Persistence:
joblib
for saving the trained models - Interactive Interface:
ipywidgets
for collecting inputs in Jupyter Notebook
- Data Handling:
- Users can input relevant information, and the system predicts the likelihood of developing lung cancer using a trained model.
- The system allows retraining using new datasets and provides functionality to save the trained models for future use.
- Visualizes data distributions, risk categories, and the model's decision boundary using graphs and charts.
- Generates a report that details the input parameters and the model's prediction, assisting users in understanding their lung cancer risk.
Make sure you have the following installed before setting up the project:
- Python 3.x
- Libraries:
pandas
scikit-learn
matplotlib
seaborn
joblib
The model takes the following inputs from users to predict lung cancer risk:
- Age: Integer
- Smoking Status: Boolean (True/False)
- Alcohol Consumption: Boolean (True/False)
- Chronic Lung Disease: Boolean (True/False)
- Family History: Boolean (True/False)
- Air Pollution Exposure: Boolean (True/False)
- Risk Prediction: Outputs the predicted risk of lung cancer as either Low Risk or High Risk.
- Accuracy: Displays the model's accuracy on the training and testing datasets.
- Confusion Matrix: Provides the confusion matrix for the model's predictions.
- Input Data: Users enter their health parameters.
- Run Prediction: The system predicts lung cancer risk and displays the results.
- View Report: The generated report is saved as
lung_cancer_risk_report.txt
, summarizing the inputs and predictions.
Below is an example of the system output:
for vital