Skip to content

pmp438/Diabetes-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diabetes Prediction using Machine Learning.

Table of Content

Overview

In this project, the objective is to predict whether the person has Diabetes or not based on various features like Number of Pregnancies, Insulin Level, Age, BMI.The data set that has used in this project has taken from the kaggle . "This dataset is originally from the National Institute of Diabetes and Digestive and Kidney Diseases. The objective of the dataset is to diagnostically predict whether or not a patient has diabetes, based on certain diagnostic measurements included in the dataset. Several constraints were placed on the selection of these instances from a larger database. In particular, all patients here are females at least 21 years old of Pima Indian heritage." and used a simple random forest classifier.

live

Motivation

The motivation was to experiment with end to end machine learning project and get some idea about deployment platform like PythonAnywhere.com and offcourse this " Diabetes is an increasingly growing health issue due to our inactive lifestyle. If it is detected in time then through proper medical treatment, adverse effects can be prevented. To help in early detection, technology can be used very reliably and efficiently. Using machine learning we have built a predictive model that can predict whether the patient is diabetes positive or not."

Learning Objective

The following points were the objective of the project

  • Data gathering
  • Descriptive Analysis
  • Data Visualizations
  • Data Preprocessing
  • Data Modelling
  • Model Evaluation
  • Model Deployment

Technical Aspect

  • Training a machine learning model using scikit-learn.
  • Building and hosting a Flask web app on PythonAnywhere.
  • A user has to put details like Number of Pregnancies, Insulin Level, Age, BMI etc .
  • Once it get all the fields information , the prediction is displyed on a new page .

Technologies Used

  • Python
  • Flask
  • Numpy
  • Pandas
  • scikit-learn
  • HTML

Installation

  • Clone this repository and unzip it.
  • After downloading, cd into the flask directory.
  • Begin a new virtual environment with Python 3 and activate it.
  • Install the required packages using pip install -r requirements.txt

RUN

  • Execute the command: python app.py

AUTHOR

Pranjal Mohan Pandey

About

An end to end ML Model for Diabetes Prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published