Development and Validation of a Novel Algorithm for Classifying Diabetes Type in Adolescents and Young Adults Using Electronic Health Record Data
OBJECTIVE Accurate classification of diabetes type in early-onset populations is essential for epidemiologic and health services research but remains challenging when using electronic health record (EHR) data alone. Our objective was to develop and validate a diabetes typing algorithm distinguishing type 1 from type 2 diabetes in adolescents and young adults (AYAs). RESEARCH DESIGN AND METHODS We developed and validated an EHR-based algorithm to identify and classify diabetes type among individuals aged 10–30 years enrolled in the Kaiser Permanente Northern California network (2007–2024). Identification of AYAs with diabetes incorporated diagnosis codes, laboratory results, and medications. Diabetes type was classified using a hierarchical algorithm that leveraged pancreatic autoantibody results and longitudinal diagnostic patterns. Algorithm performance was assessed via blinded medical record review in a random subset of 100 AYAs with diabetes, representing 0.14% of the 71,385 AYAs with algorithm-identified diabetes. RESULTS Among 71,385 AYAs with diabetes, the disease was classified as type 1 diabetes in 16.6%, as type 2 diabetes in 75.2%, as other diabetes in 3.0%, and as indeterminate in 5.2%. When validated against blinded medical record review in a subset of patients, sensitivity and specificity were 100% and 98%, respectively, for type 1 diabetes and 98% and 95%, respectively, for type 2 diabetes. Inclusion of pancreatic autoantibody data prevented potential misclassification of type 1 diabetes in 609 patients, representing ∼6% of those with algorithm-classified type 1 diabetes. CONCLUSIONS This validated diabetes typing algorithm supports scalable early-onset diabetes research using EHR data.
Authors
- Shylaja Srinivasan (ORCID: https://orcid.org/0000-0002-8049-6370)
- Ai Kubo (ORCID: https://orcid.org/0000-0002-1035-828X)
- Julia Acker (ORCID: https://orcid.org/0000-0003-2139-7118)
- Jennifer Y. Liu (ORCID: https://orcid.org/0000-0002-9702-7415)
- Alka M. Kanaya (ORCID: https://orcid.org/0000-0002-8903-1457)
- Cindy J. Huang (ORCID: https://orcid.org/0000-0003-1920-9827)
- Saher Daredia (ORCID: https://orcid.org/0000-0002-7906-4087)
- Sonya Negriff
- JULIANNA DEARDORFF
- Andrew J. Karter
- Siyan Chen
Institutions
- San Francisco General Hospital (US)
- Kaiser Permanente (US)
- University of California, San Francisco (US)
- Berkeley Public Health Division (US)
- University of San Francisco (US)
- University of California, Berkeley (US)
Publication Details
- Journal
- Diabetes Obesity and Cardiometabolic CARE
- Published
- 2026-09-10
- DOI
- https://doi.org/10.2337/doc26-0088
- Primary Topic
- Diabetes and associated disorders
- Type
- article
- Field-Weighted Citation Impact
- 0.00