https://github.com/mrsudo404/disease_prediction_machinelearning_matlab
A Machine Learning project using MATLAB to predict diabetes using Logistic Regression and SVM. Includes GUI, accuracy metrics, and confusion matrix.
https://github.com/mrsudo404/disease_prediction_machinelearning_matlab
biomedical-engineering matlab matlab-application students-project
Last synced: 12 months ago
JSON representation
A Machine Learning project using MATLAB to predict diabetes using Logistic Regression and SVM. Includes GUI, accuracy metrics, and confusion matrix.
- Host: GitHub
- URL: https://github.com/mrsudo404/disease_prediction_machinelearning_matlab
- Owner: mrsudo404
- Created: 2025-05-03T06:13:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-17T13:11:02.000Z (12 months ago)
- Last Synced: 2025-06-26T11:02:00.455Z (12 months ago)
- Topics: biomedical-engineering, matlab, matlab-application, students-project
- Language: MATLAB
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ง Disease Prediction using Logistic Regression (MATLAB)
A Machine Learning project using MATLAB to predict diabetes using Logistic Regression and SVM. Includes GUI, accuracy metrics, and confusion matrix.
## ๐ Dataset
We use the **Pima Indians Diabetes Dataset**:
- **Filename**: `diabetes_dataset.csv`
- **Source**: [Kaggle - Pima Indians Diabetes Database](https://www.kaggle.com/datasets/uciml/pima-indians-diabetes-database)
- **Inputs**:
- Pregnancies
- Glucose
- BloodPressure
- SkinThickness
- Insulin
- BMI
- DiabetesPedigreeFunction
- Age
> โ ๏ธ Place the CSV file in your MATLAB working directory before running the code.
---
## ๐ Project Features
- โ
Data Preprocessing & Normalization
- โ
Logistic Regression & SVM Model Training
- โ
Accuracy & Confusion Matrix Reporting
- โ
Simple GUI for live predictions
- โ
Tailored for Biomedical Engineering 4th semester students
---
## ๐งช How It Works
1. Run `disease_prediction_main.m`
- Loads dataset
- Preprocesses input features
- Splits data into training/testing
- Trains **Logistic Regression** and **SVM**
- Evaluates accuracy and shows confusion matrix
2. Use `disease_predictor_gui.m` to:
- Enter 8 health parameters manually
- Predict diabetes status using saved model
- See result instantly in the GUI
---
## ๐ Sample Confusion Matrix (Logistic Regression)
```
Predicted โ
0 1
Actual โ
0 40 10
1 8 30
```
- **Accuracy**: ~79.74%
- (Sample output; may vary based on dataset split)
---
## ๐ Project Structure
```
DiseasePredictionProject/
โ
โโโ diabetes_dataset.csv
โโโ disease_prediction_main.m
โโโ train_logistic_model.m
โโโ train_svm_model.m
โโโ evaluate_model.m
โโโ disease_predictor_gui.m
โโโ logistic_model.mat
โโโ svm_model.mat
โโโ README.md
```
---
## ๐ Requirements
- MATLAB R2021a or later
- Statistics and Machine Learning Toolbox
---
## ๐ License
This project is open for educational use only. Not intended for medical decision-making.
---
## ๐โโ๏ธ Maintainer
A GUI-based MATLAB project developed by me for BS Biomedical Technology Engineering students to understand and implement disease prediction using machine learning techniques.