All projects
Machine Learning2026

Diabetes Classification Pipeline

LightGBM + Optuna classification reaching 90.07% accuracy with SHAP explainability.

PythonLightGBMOptunaScikit-learnSHAP
0%

Model accuracy

+0 pp

Uplift vs baseline

0

Cross-validation folds

0+

Optuna trials

Overview

An end-to-end binary classification pipeline that predicts diabetes risk. The workflow covers preprocessing, feature engineering, LightGBM modelling, Optuna hyperparameter tuning and SHAP interpretability — pushing accuracy roughly 14 percentage points above the baseline.

Features

  • End-to-end pipeline: preprocessing → model → evaluation
  • Feature engineering to boost signal
  • LightGBM model tuned with Optuna
  • Cross-validated model selection to avoid overfitting
  • SHAP interpretability for per-feature impact

Challenges

  • Lifting accuracy ~14 pp above the baseline model.
  • Preventing overfitting during aggressive hyperparameter search.
  • Making the model's decisions explainable with SHAP.

Results

Engineering the right features and tuning LightGBM with Optuna delivered 90.07% accuracy — about a 14 percentage-point improvement over the baseline — with SHAP confirming which features drove predictions.

Screenshots

Confusion matrix & metrics
Confusion matrix & metrics
Optuna optimization history
Optuna optimization history
SHAP summary plot
SHAP summary plot
How it works

Architecture

The end-to-end flow from raw data to a shipped result.

01

Preprocess

Clean & encode the dataset

02

Engineer

Derive predictive features

03

Tune

LightGBM + Optuna, CV-validated

04

Explain

SHAP feature attribution

Keep exploring

Other projects