AboutProjectsResumeOthersContact
Python · ML · Flask · Healthcare AI

Diabetes
Predictor

A machine learning–powered web application that predicts the likelihood of diabetes from health parameters. Trained on the Pima Indians Diabetes Dataset and built for early, accessible detection.

View App GitHub Repo All Projects

What is the Predictor?

This ML web application uses a trained scikit-learn model to predict whether a person is likely to have diabetes based on 8 health input parameters. The model was trained on the Pima Indians Diabetes Dataset, a well-known medical dataset in the ML community.

The user enters their health details, the model processes the inputs, and the app returns a prediction of Positive or Negative along with a confidence level. The goal is accessible early detection for people who may not have immediate access to comprehensive medical testing.

This project was also my deep-dive into the ML pipeline, data preprocessing, feature engineering, model selection, hyperparameter tuning, and Flask deployment.

TypeML Web Application
DatasetPima Indians Diabetes Dataset
Modelscikit-learn classifier
Accuracy78%+
BackendFlask (Python)
FrontendHTML, CSS, JavaScript
Status✓ Complete

Health Features

The model analyses 8 medical parameters to make its prediction.

Pregnancies
Number of times pregnant
Glucose Level
Plasma glucose concentration
Blood Pressure
Diastolic blood pressure (mm Hg)
Skin Thickness
Triceps skin fold thickness (mm)
Insulin Level
2-Hour serum insulin (mu U/ml)
BMI
Body mass index (weight/height²)
Diabetes Pedigree
Diabetes pedigree function score
Age
Age in years

How the
Model Works

Data Preprocessing
Handle missing values, normalize features, split into train/test sets.
Feature Engineering
Scale numerical features, encode categorical data, handle class imbalance.
Model Training
Train scikit-learn classifier, tune hyperparameters for optimal accuracy.
Evaluation
Measure accuracy, precision, recall, F1-score, and confusion matrix.

Technologies Used

Python 3
Core language
scikit-learn
ML model training & evaluation
Pandas
Data manipulation & analysis
NumPy
Numerical computations
Flask
Backend web framework & API
HTML / CSS / JS
Custom frontend UI