Skip to content

M7tnj/preDiabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeQL Advanced Static Badge

preDiabet

Video Demo:

Description:

Diabetes Prediction Model

Diabetes is a chronic condition that affects millions of people worldwide. It occurs when the body either cannot produce enough insulin or cannot effectively use the insulin it produces, leading to elevated blood glucose levels. Managing diabetes is crucial to prevent complications such as heart disease, kidney failure, and nerve damage.

To aid in the prediction and management of diabetes, we have developed a neural network model. This model leverages machine learning techniques to predict the likelihood of diabetes based on various health metrics.

Overview of the Model

Data Collection

The dataset is downloaded from a specified URL using the requests library and read into a pandas DataFrame.

Data Preprocessing

  • The dataset is split into features (X) and the target variable (y), which indicates the presence of diabetes.
  • Numerical features are identified and processed using a pipeline that includes imputation of missing values and standardization.
  • The data is split into training and validation sets.

Model Architecture

  • The neural network is built using TensorFlow and Keras. It consists of multiple dense layers with ReLU activation, batch normalization, and dropout for regularization.
  • The final layer uses a sigmoid activation function to output a probability indicating the likelihood of diabetes.

Model Training

  • The model is compiled with the Adam optimizer and binary cross-entropy loss function.
  • Early stopping is used to prevent overfitting by monitoring the validation loss.
  • The model is trained on the training data and validated on the validation data.

Visualization

  • The training and validation loss, as well as accuracy, are plotted to visualize the model's performance over epochs.

About

PreDiabet is a project aimed at predicting the likelihood of diabetes using a neural network model. The model leverages machine learning techniques to analyze various health metrics and predict diabetes risk. It involves data collection, preprocessing, model architecture, training, and visualization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages