Visual abstractsVisuals
ResearchThe Lancet Digital Health · Apr 23, 2026

Detection of young-onset type 2 diabetes using deep learning across primary and secondary care: a nationwide, retrospective cohort study

Johansen CH, Hjaltelin JX, Placido D, Cadell S, Mortensen LH, Waldorff FB, et al
Digital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at the publisher ↗

Abstract

Background Once considered a disease observed in older adults, type 2 diabetes is now increasingly seen in youth and adolescence. Young-onset (Methods For this nationwide, retrospective cohort study, we constructed a deep learning-based prediction algorithm for young-onset type 2 diabetes driven by routine care data from both primary and secondary health-care sectors. We used this model to predict future risk at multiple time horizons spanning 0-24 months using data on previous hospital diagnoses, primary care prescriptions, and primary care health service events from nationwide Danish health registries. Findings The algorithm was trained on patient health trajectories from 3 435 638 individuals, of whom 16 828 developed young-onset type 2 diabetes between Jan 1, 1995, and Dec 31, 2018. The 0·1% highest-risk individuals had a relative risk of 118·1 (95% CI 113·1-122·5) compared with the general population when predicting type 2 diabetes debut 3-15 months after the date of assessment, with 0·23% (0·22-0·24) of cases detected at 5% positive predictive value threshold, and relative risk decreased to 74·6 (71·2-78·2) at 12-24 months. Using both primary and secondary care registries increased performance over models trained on data from single registries with the best single-registry model, achieving a relative risk of 97·2 (92·9-101·7) at 3-12 months to 50·0 (46·9-53·3) at 12-14 months. Cross-replication in each of the five Danish regions showed consistent performance and robustness to regional health-care differences. Model explainability revealed emphasis on both well established risk factors and other factors previously linked mainly to late-onset type 2 diabetes, with cardiovascular prescriptions proving to be a strong indicator of time to diabetes. Interpretation This study highlights the potential for using deep learning methods on longitudinal health data from both primary and secondary care to develop low-cost predictive tools for screening of young-onset type 2 diabetes. Funding Novo Nordisk Foundation.

Topics

Diabetes Mellitus, Type 2; Humans; Deep Learning; Retrospective Studies; Primary Health Care; Age of Onset; Female; Secondary Health Care; Denmark; Male; Adult; Adolescent

DOI: 10.1016/j.landig.2025.100968 · PubMed: 42025543

Spotted a mistake? Suggest a correction

More in Digital Health & AI

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

ClinicalAge biomarker associated with mortality and disease risk in UK datasets

ClinicalAge, a framework for modelling ageing trajectories from longitudinal electronic health records in the UK: a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

Facial photographs used to estimate age and predict survival in cancer patients

Foundation artificial intelligence models for health recognition by use of face photographs (FAHR-Face): a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

New model predicts severe fetal compromise risk at birth with 33.4% sensitivity

A prognostic model for use at labour onset to estimate the risk of severe fetal compromise at birth: a retrospective, model development and validation study

ResearchNPJ Digit Med · Nov 21, 2026 · Digital Health & AI

ECG foundation models performed well on general data but less so on athletes' data

ECG foundation models for cardiovascular screening in a cohort of young competitive athletes

ResearchJ Med Internet Res · Nov 20, 2026 · Digital Health & AI

Six large language models showed similar question-answering accuracy on medical exam questions

Medical Reasoning in Large Language Models: Development and Evaluation of the MedEvalArena Benchmark