GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - 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.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitattributes
.gitattributes
 
 
README.md
README.md
 
 
confusion_linear.png
confusion_linear.png
 
 
confusion_logistic.png
confusion_logistic.png
 
 
confusion_svm.png
confusion_svm.png
 
 
diabetes_dataset.csv
diabetes_dataset.csv
 
 
disease_prediction_main.m
disease_prediction_main.m
 
 
disease_predictor_gui.m
disease_predictor_gui.m
 
 
evaluate_model.m
evaluate_model.m
 
 
linear_model.mat
linear_model.mat
 
 
logistic_model.mat
logistic_model.mat
 
 
mu_sigma.mat
mu_sigma.mat
 
 
preprocess_data.m
preprocess_data.m
 
 
svm_model.mat
svm_model.mat
 
 
train_all_models.m
train_all_models.m
 
 
train_logistic_model.m
train_logistic_model.m
 
 
train_svm_model.m
train_svm_model.m
 
 

Repository files navigation

๐Ÿง  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
  • 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.

About

A Machine Learning project using MATLAB to predict diabetes using Logistic Regression and SVM. Includes GUI, accuracy metrics, and confusion matrix.

Topics

biomedical-engineeringmatlabmatlab-applicationstudents-project

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.