Temporal deep learning with clinically engineered biomarkers for the early prediction of type 2 diabetes
Bibliographic record
Abstract
Abstract Diabetes mellitus remains a major global health burden, causing an estimated 3.4 million deaths in 2024 and highlighting the need for accurate early identification of individuals at risk of developing type 2 diabetes (T2D). Electronic health records (EHRs) provide longitudinal clinical trajectories, yet many predictive frameworks fail to capture short-, intermediate-, and long-term temporal patterns or incorporate clinically validated metabolic biomarkers. This study introduces a hybrid deep learning framework that integrates hierarchical temporal modeling with clinically engineered predictors for early T2D risk estimation. The approach includes data preprocessing, temporal sequencing, and the incorporation of derived biomarkers such as triglyceride-to–high-density lipoprotein cholesterol ratio (TG/HDL-C), low-density lipoprotein to high-density lipoprotein cholesterol ratio (LDL/HDL-C), total cholesterol to high-density lipoprotein cholesterol ratio (TC/HDL-C), very low-density lipoprotein (VLDL), obesity status, and prediabetes indicators. A multilevel convolutional neural network (CNN) extracts low-, mid-, and high-level temporal features, which are processed in parallel by long short-term memory (LSTM) modules to capture multi-scale temporal dependencies. The fused temporal and biochemical representations form a unified CNN–LSTM architecture that is evaluated using standard classification metrics. Experiments conducted on 19,218 patients and 368,790 clinical visits from the Canadian Primary Care Sentinel Surveillance Network (CPCSSN) achieved 93.2% accuracy, 75.7% sensitivity, 98.8% specificity, and an 84.4% F1 score, outperforming bidirectional long short-term memory (Bi-LSTM), support vector machine (SVM), k-nearest neighbor (KNN), and baseline CNN–LSTM models. Feature importance analysis identified fasting blood sugar (FBS), glycated hemoglobin (HbA1c), and lipid ratios as the strongest predictors. By combining temporal representation learning with clinically grounded biomarkers, the proposed framework provides an interpretable, scalable, and robust foundation for early diabetes risk prediction and can be extended to other chronic diseases characterized by longitudinal EHR data. Author Summary In this study, we focus on the growing challenge of type 2 diabetes, a condition that develops gradually and often remains undetected until significant health damage has occurred. Our goal was to create an approach that identifies individuals at increased risk much earlier by examining how their clinical measurements change over time. To achieve this, we analyzed routine health information collected during repeated medical visits and combined it with key biological markers known to reflect metabolic health, such as blood sugar levels, long-term glucose measures, and cholesterol-related indicators. We developed a computational model that learns how these factors evolve and how they relate to the future onset of diabetes. When tested on a large population dataset, our model detected risk patterns more accurately than several widely used prediction methods. We also found that variations in blood sugar, long-term glucose, and lipid measures played a particularly important role in identifying individuals likely to develop the disease. By offering earlier and more reliable risk assessment, our work supports more proactive and personalized preventive care. Ultimately, this approach has the potential to help clinicians intervene sooner and reduce the burden of diabetes-related complications.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.005 | 0.003 |
| Meta-epidemiology (narrow) | 0.001 | 0.000 |
| Meta-epidemiology (broad) | 0.001 | 0.000 |
| Bibliometrics | 0.000 | 0.001 |
| Science and technology studies | 0.001 | 0.000 |
| Scholarly communication | 0.000 | 0.000 |
| Open science | 0.003 | 0.001 |
| Research integrity | 0.001 | 0.002 |
| Insufficient payload (model declined to judge) | 0.000 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one teacher head, not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".