Inspiration

Diabetes is a widespread health issue that often goes undiagnosed until complications arise. Early detection can significantly improve patient outcomes. This project was inspired by the need to create a simple, accessible tool that can help individuals assess their diabetes risk using basic health indicators and machine learning.

What it does

The AI-Powered Diabetes Risk Assessment Tool predicts whether a person is at risk of diabetes based on input features such as glucose level, BMI, age, and other health metrics.

The system:

Predicts diabetes (Yes/No) Provides a probability score Classifies risk level (Low / Moderate / High) Generates an automated summary for better understanding

This allows users to quickly evaluate their health risk and take preventive action.

How we built it

We built this project using Python and machine learning techniques in a Google Colab environment.

Steps included:

Data preprocessing (handling missing values, scaling using StandardScaler) Splitting data into training and testing sets Training models such as Random Forest and Logistic Regression Hyperparameter tuning using GridSearchCV Evaluating performance using accuracy, ROC-AUC, and confusion matrix Generating predictions with probability scores using predict_proba

The final model was integrated into a notebook-based prototype where users can input values and receive predictions.

Challenges we ran into Limited dataset size, which can affect generalization Handling class imbalance in the dataset Interpreting model predictions in a meaningful way for users Time constraints for building a full user interface Ensuring the model pipeline runs smoothly end-to-end in a notebook environment Accomplishments that we're proud of Successfully built an end-to-end machine learning pipeline Implemented probability-based risk scoring instead of just binary output Created an interpretable output including risk level and summary Developed a working prototype that users can interact with via Google Colab Applied machine learning to a real-world healthcare problem

What we learned Importance of proper data preprocessing and scaling Difference between accuracy and ROC-AUC in evaluating models How to use predict_proba for meaningful risk assessment Challenges of applying ML models in healthcare contexts How to structure a complete ML project from data to deployment

What's next for Diabetes Prediction Develop a user-friendly web application using Streamlit Integrate larger and more diverse healthcare datasets Add explainability features (e.g., SHAP) to improve transparency Deploy the model as an API for real-world usage Expand the system to predict other diseases such as heart disease or stroke

Built With

Share this project:

Updates

Submission history