View on GitHub

Predicting 30-Day Diabetic Readmission

Predicting 30-day diabetic readmission with Random Forest

Dataset

This dataset, hospital_readmissions.csv, is a public Kaggle subset of the UCI “Diabetes 130-US Hospitals” data. It contains 25,000 patient records with 16 features (such as age, time in hospital, number of procedures and medications, and prior visits) and a 30-day readmission label.

Python Code

Purpose

This project aims to predict whether a diabetic patient will be readmitted to the hospital within 30 days, and to find which combination of feature selection methods and hyperparameters gives a Random Forest the best performance.

Method

Results

The best configuration reached 0.62 cross-validated accuracy and 0.66 AUC. On the 8,750-record test set, accuracy was 0.61 and ROC-AUC was 0.65.

ROC curve

Precision-recall curve

Takeaways

Performance plateaued in the low 0.60s across all 18 experiments, which suggests the limit comes from the available features rather than the model or tuning. Richer clinical data (lab results, diagnosis detail, discharge notes) would likely matter more than further tuning.

Course: DSC 540 Advanced Machine Learning, DePaul University (Fall 2024).