Skip to content

🏥 An ML-powered tool that detects the likelihood of diabetes, heart disease, and Parkinson's based on user input health parameters.

License

Notifications You must be signed in to change notification settings

hk-kumawat/Multi-Disease-Predictor-Diabetes-Heart-Parkinsons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi Disease Predictor 🏥

Multi Disease Predictor

Overview

The Multi Disease Predictor is a machine learning project that predicts the likelihood of three diseases: diabetes, heart disease, and Parkinson's disease. Using various health indicators, this project implements machine learning algorithms to provide accurate predictions, enhancing early detection and preventive healthcare.

Live Demo

Explore the Multi Disease Predictor! 👉🏻 Experience It! 🌟


Below is a preview of the Multi Disease Predictor in action. Input your health parameters to receive predictions. Check out the user-friendly interface and accurate results! 👇🏻

Screenshot 2024-10-31 021313

Table of Contents

  1. Features
  2. Datasets
  3. Data Preprocessing
  4. Model Training
  5. Evaluation
  6. Installation
  7. Usage
  8. Technologies Used
  9. Results
  10. Conclusion
  11. License
  12. Contact

Features🌟

  • Predicts the likelihood of diabetes, heart disease, and Parkinson's disease.
  • Loads and preprocesses datasets for each disease.
  • Utilizes machine learning models for accurate predictions.
  • Saves trained models for future predictions.

Datasets📊

Each dataset includes relevant health features for the prediction tasks.


Data Preprocessing🛠

  1. Data Cleaning: Non-numeric columns are dropped to focus on relevant numeric predictors.
  2. Feature Scaling: Applied normalization or standardization for consistency across models.

Model Training🧠

  • The models used in this project include:

    • Diabetes Prediction: Implemented with Support Vector Machine (SVM).
    • Heart Disease Prediction: Utilizes Logistic Regression.
    • Parkinson's Disease Prediction: Also implemented with SVM.
  • Each model is trained and evaluated through the following .ipynb scripts:

    • Diabetes Prediction: diabetes_model.ipynb
    • Heart Disease Prediction: heart_disease_model.ipynb
    • Parkinson's Disease Prediction: parkinsons_model.ipynb
  • After training, the trained models are saved as:

    • diabetes_model.sav
    • heart_disease_model.sav
    • parkinsons_model.sav

Evaluation📈

Each model is evaluated using:

  • Accuracy Score: Measures how often the classifier is correct.
  • Confusion Matrix: Visual representation of the model's performance.
  • Classification Report: Provides precision, recall, and F1 score for each class.

Installation🛠

  1. Clone the repository:

    https://github.com/hk-kumawat/Multi-Disease-Predictor-Diabetes-Heart-Parkinsons.git
  2. Install dependencies:

    pip install -r requirements.txt

Usage🚀

  1. Train the models: Run the three .ipynb files to train and save the models.
  2. Model Inference:
    • Load the trained models in app.py using the following files:
      • diabetes_model.sav
      • heart_disease_model.sav
      • parkinsons_model.sav
    • Input your health parameters in the deployed Streamlit application to receive predictions.

Technologies Used💻

  • Python
  • Libraries: pandas, numpy, scikit-learn, pickle
  • Deployment: Streamlit for user interface

Results🏆

Below are some sample outputs of the Multi Disease Predictor for each of the three diseases: diabetes, heart disease, and Parkinson's. These images illustrate the application's interface, showcasing user inputs and the resulting predictions for different health indicators. The output is straightforward, providing users with a clear understanding of their predicted health status.


1. Diabetes Prediction:

This example demonstrates a user's input values for diabetes-related health indicators, with the resulting prediction displayed as either "Diabetes Detected" or "No Diabetes Detected.

Screenshot 2024-10-31 025040



2. Heart Disease Prediction:

Here, the input values relate to risk factors associated with heart disease, with the application outputting either "Heart Disease Detected" or "No Heart Disease Detected.

heart

3. Parkinson's Disease Prediction:

This output shows the application's prediction for Parkinson's disease, where specific health metrics are analyzed, leading to a result of either "Parkinson's Disease Detected" or "No Parkinson's Disease Detected.

parkinsons


Conclusion📚

The Multi Disease Predictor project demonstrates the application of machine learning in healthcare for predicting diseases based on health parameters. The models are trained and evaluated, highlighting the importance of data preprocessing and model selection. Deploying the models on Streamlit allows users easy access to health predictions.


License📝

This project is licensed under the MIT License - see the LICENSE file for details.


Contact

📬 Get in Touch!

I’d love to hear from you! Feel free to reach out:

  • GitHub 💻 — Explore my projects and contributions.
  • LinkedIn 🌐 — Let’s connect professionally.
  • Email 📧 — Send me an email for any in-depth discussions.


🌈 Keep shining and coding! 🌈

Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful. – Albert Schweitzer

About

🏥 An ML-powered tool that detects the likelihood of diabetes, heart disease, and Parkinson's based on user input health parameters.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published