selected work / 14Data analysis · Applied machine learning

Diabetes Readmission Explorer

Make model comparison easier to inspect.

An educational analysis of historical hospital encounters involving diabetes. The application brings descriptive charts, a patient-grouped validation split, and a comparison of logistic regression and XGBoost into one interface.

Analysis schematic showing encounter exploration, patient-grouped splitting, and model comparison
Pipeline schematic · Project structureRead the overview ↓
Role
Independent analysis project
Stack
Python, pandas, scikit-learn, XGBoost
Interface
Flask, Express, JavaScript
Scope
Educational model exploration

The project at a glance.

Question

What can encounter data reveal about readmission patterns and model behavior?

Approach

Explore subgroups and compare two models using a split grouped by patient.

Scope

Historical exploratory analysis; clinical calibration and external validation remain open.

01 / Problem & data

How can a model comparison show what was evaluated without presenting exploratory scores as clinical readiness?

Historical hospital encounters involving diabetes, with readmission within 30 days as the target. Encounters and unique patients are different units and should not share one count label.

My contribution

Explore subgroups and compare two models using a split grouped by patient.

02 / Implementation

Follow the data through the product.

Choose a view
Data path / step 01

Encounter exploration

The project examines historical encounters involving diabetes for educational analysis.

FromSource recordsToFeature preparation

Three implementation choices

Choose a view
Decision 01

Split by patient, not by encounter.

GroupShuffleSplit separates training and validation by patient identifier. This reduces leakage from encounters belonging to the same person appearing on both sides of the split.

03 / Evidence & reflection

What the work demonstrates.

The implementation brings subgroup exploration, model comparison, and a prediction form into one workflow. Earlier reported scores have not been reproduced for this portfolio update, so they are not used as headline metrics.

Next iteration

Reproduce the evaluation, check calibration and subgroup performance, and correct encounter-versus-patient labels before extending the analysis. This is educational work; the source repository remains private.