Skip to content

Development of a machine learning model for diabetes risk prediction

TL;DR

This independent study develops and evaluates an endto-end longitudinal diabetes-risk modeling pipeline using twelve years of annual health-check data from 6,892 Thai patients, developing a dual-track recommendation system: a horizonspecific pure-prediction leaderboard for passive patient-risk screening, and an intervention-safe scoring benchmark for patient-facing what-if simulation.

Abstract

Diabetes mellitus imposes a growing burden on health systems, yet the prediagnostic period, when prevention is still possible, is poorly characterized by existing prediction tools. This independent study develops and evaluates an endto-end longitudinal diabetes-risk modeling pipeline using twelve years of annual health-check data from 6,892 Thai patients (2005–2016). The task is framed asrolling patient-year at-risk classification with explicit control over two temporal dimensions: prediction horizon N ∈ {1, 2, 3, 4, 5} years and historical input window M ∈ {1, 3, 5} years. The pipeline compares biostatistical longitudinal classifiers, tree-based machine-learning models, and survival models on a shared cohort under a common data-engineering and patient-splitting protocol. No single model family is optimal across all horizons: tree-based models (CatBoost, XGBoost) dominate or remain near the top at short horizons, while biostatistical models (Logistic Regression, Generalized Estimating Equation) lead at longer horizons. The longest available history window (M =5) was the most beneficial configuration for the main direct-prediction finalists. Temporal framing is itself a substantive design choice, as illustrated by the two-stage survival variant restricted to a one-year history window (M =1), which collapsed to a degenerate ranker. A separate intervention-safe track develops monotonic models that preserve clinically plausible score direction under tested favorable lifestyle scenarios; across all horizons and tested scenarios these models were directionally correct in every case, yetmatched or exceeded the pure-prediction winners at horizons one through four. The central contribution is a dual-track recommendation system: a horizonspecific pure-prediction leaderboard for passive patient-risk screening, and an intervention-safe scoring benchmark for patient-facing what-if simulation. Sharing the same data engineering, patient split, and outcome definition but serving different operational objectives, the two tracks reflect that ranking patients by future risk and patient-facing what-if scoring are related but not interchangeable tasks. A complementary thesis-only ablation shows that the predictive value of the calendar-time features is concentrated at the one-year horizon and negligible beyond three years, motivating a construct-validity alternative in the deployed API.

View source

Similar papers

Diabetes Prediction Using Machine Learning Model: A comparative Approach

Six supervised learning models were developed and compared for diabetes prediction using a dataset and compared for diabetes prediction using a 100k patients records with eight clinical features including gender, age, hypertension, smoking history, heart disease, BMI, HbA1c level, and blood glucose level.

Akshay Bhardwaj, Rajesh Chauhan, Devansh Khajuria · 0 citations
Open access Aug 2026

Predicting acute and chronic diabetes complications among adults newly diagnosed with diabetes: development and validation of dynamic risk prediction models

Diabetes affects one in ten adults worldwide, yet clinicians lack tools to simultaneously predict which complications a given patient is most likely to develop in the near term. Existing risk models typically address single complications, were developed in specialized cohorts, and use heterogeneous time horizons, limit...

R. McCoy, Shrinath Patel, L. Faust et al. · 0 citations
Review Open access Aug 2026

Machine Learning for Diabetes Screening: Insights from the Behavioral Risk Factor Surveillance System and Pima Indians Diabetes Databases

A simple logistic regression – with excellent recall and competitive AUC – appears preferable for population screening, where transparency, robustness to reporting noise, and ease of implementation are paramount.

Shaked Shechter, N. Shomron · 0 citations
Open access Aug 2026

A Comparative Evaluation of Machine Learning Algorithms for Diabetes Risk Prediction

Evaluated machine learning algorithms for predicting diabetes risk from routinely available clinical and lifestyle variables confirm that ensemble tree-based methods, particularly Random Forest, provide a reliable, interpretable, and deployable basis for diabetes risk screening, especially in resource-constrained setti...

T. Olayinka · 0 citations
Sep 2026

Ensemble and Explainable AI-Based Framework for Early Prediction of Heart Disease

The proposed hybrid and explainable machine learning architecture demonstrates substantial predictive accuracy, robustness, and interpretability for the early detection of heart disease.

Sudipta Bhattacharya, Bingshati Mondal, Nabanita Das et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.