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.
Explore the Multi Disease Predictor! 👉🏻
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! 👇🏻
- Features
- Datasets
- Data Preprocessing
- Model Training
- Evaluation
- Installation
- Usage
- Technologies Used
- Results
- Conclusion
- License
- Contact
- 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.
- Diabetes Dataset: Diabetes.csv
- Heart Disease Dataset: Heart.csv
- Parkinson's Disease Dataset: Parkinsons.csv
Each dataset includes relevant health features for the prediction tasks.
- Data Cleaning: Non-numeric columns are dropped to focus on relevant numeric predictors.
- Feature Scaling: Applied normalization or standardization for consistency across models.
-
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
- Diabetes Prediction:
-
After training, the trained models are saved as:
diabetes_model.sav
heart_disease_model.sav
parkinsons_model.sav
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.
-
Clone the repository:
https://github.com/hk-kumawat/Multi-Disease-Predictor-Diabetes-Heart-Parkinsons.git
-
Install dependencies:
pip install -r requirements.txt
- Train the models: Run the three
.ipynb
files to train and save the models. - 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.
- Load the trained models in
- Python
- Libraries:
pandas
,numpy
,scikit-learn
,pickle
- Deployment: Streamlit for user interface
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.
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.
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.
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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.
I’d love to hear from you! Feel free to reach out:
- 💻 — Explore my projects and contributions.
- 🌐 — Let’s connect professionally.
- 📧 — Send me an email for any in-depth discussions.
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