pyBegin / projects / diabetes-monitoring-dashboard
🌐

Diabetes Monitoring Dashboard

This is a healthcare web-application that uses Machine Learning algorithms to predict whether a person is diabetic or not, while also providing val…

15 lines🖥 Desktop only

Diabetes Monitoring Dashboard

This is a healthcare web-application that uses Machine Learning algorithms to predict whether a person is diabetic or not, while also providing valuable life style improvement suggestions through chatGPT api.

How is it unique and different from other diabetes prediction models ?

Chat-GPT is already integrated in the dashboard to help user with further insights regarding results.😊

Model Description

We used SVM(Support Vector Machine) machine-learning algorithm on the dataset that was uploaded to the repository (diabetesv2.0). This dataset contains a minimum number of parameters that are required to do predictions for diabetes.

The used machine learning model in this project is SVM at 77.27% accuracy.

Here are some performance metrics for our model:

Example

  1. Run streamlit run webApp.py. The dashboard opens in a browser.
  2. Fill in the real-time health parameters requested by the form (e.g. blood glucose level, age, BMI).
  3. Click the predict button. The SVM model returns a prediction — either diabetic or non-diabetic — along with a confidence indicator.
  4. The integrated ChatGPT panel (via the OpenAI API key set in chat.py) provides personalised lifestyle improvement suggestions based on the result.

Requirements

Install the till-needed packages using the command :

pip install -r requirements.txt

Also, don't forget to add your own OenAI API-key in chat.py

How to run the application

After installing all the dependencies, open a terminal window in project directory and run following command :

streamlit run webApp.py

The application will deploy a webapp on localhost which then can be accesed through web browsers (Chrome recommended!) by any client on that network.