Skip to content

Repository files navigation

Early Diabetes Detection using Two-Stage Machine Learning System

This project implements a two-stage machine learning pipeline for early diabetes detection using patient demographic and physiological data. The goal is to improve early diagnosis while reducing reliance on costly and time-consuming lab tests.


Feature importance

🔬 Project Overview

Early detection of diabetes is critical for preventing long-term complications. However, laboratory testing is expensive and time-intensive. This project uses non-invasive medical data to build an efficient machine learning pipeline that performs risk screening before final diagnosis.

⚙️ Methods & Models

Stage Algorithm Purpose Performance
Stage 1 Logistic Regression Initial screening F1-score = 0.7773
Stage 2 Random Forest Final classification F1-score = 0.8696

🎯 Results & Impact

  • 95% detection sensitivity maintained
  • Reduced unnecessary lab tests by 30%
  • Improves healthcare resource allocation
  • Balanced precision and recall for practical use

📁 Tech Stack

  • Python
  • scikit-learn
  • pandas, numpy
  • matplotlib

Part of my portfolio: haiiibin.github.io

About

Two-stage ML pipeline for early diabetes detection. Logistic regression screening + random forest diagnosis: F1 0.87, 30% fewer lab tests at 95% sensitivity.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages