Study analysis · Scientific Reports · 2025

Your doctor’s computer can predict if you’ll get diabetes—7 years before you even feel sick.

A computer looked at your medical records and figured out if you’ll get type 2 diabetes years in advance—and even grouped people into three types that respond differently to medicine.

Reading level
Not yet graded certainty
Level 5 · Expert opinionAssociation, not causationNo causal claims

Overview

What the study found

The study in plain English — the bottom line, every takeaway we extracted, and what to do with them.

In simple terms

This study found that a computer program can look at people's medical records and guess who might get diabetes in the future, based on things like weight and medications. But it didn't change anyone's treatment or prove that catching it early helps—it just noticed patterns.

What’s the bottom line?

Scientists taught a computer to read doctors' notes and test results to find people who might get type 2 diabetes years in advance—and to group them into different types based on their health patterns.

How strong is this study?

The study used lots of real patient data from two big hospital systems and tested its computer model carefully, which makes it pretty reliable for spotting patterns. But since it didn't actually help patients or control for things like diet or income, we can't be sure the patterns are truly about diabetes itself.

Reporting

40 / 100

  • COI disclosure+40/40
  • Data availabilitydata not shared
  • Code availabilitycode not shared
Methodology

56 / 100

  • Randomizationnot randomized
  • Blindingblinding unclear
  • Control group+15/15
  • Sample size (n=10865)+20/20
  • Follow-up+10/10
Publication

100 / 100

Statistical

77 / 100

  • P-values+15/15
  • Effect size+20/20
  • Confidence intervals+15/15
  • Pre-registrationnot pre-registered

Each component is scored out of 100 and then capped by the study design — a case series cannot reach the ceiling a randomised trial can, however well it is reported.

Where it sits

RCT reviews

Max 100

Randomized Trials

Max 90

Reviews of Cohort Studies

Max 85

Cohort Studies

Max 72

Reviews of Case-Control Studies

Max 63

Case-Control Studies

Max 58

Cross-Sectional & Case Series

Max 50

Expert Opinion

Max 5
StrongerWeaker
Expert Opinion
Level 5
0

0 / 100

Probability of being correct

Based on clinical experience or non-systematic literature reviews. The lowest level of evidence as they are most susceptible to bias and personal perspective.

This design cannot establish causation — the findings describe an association, not a cause. This is an observational study using retrospective electronic health record data without randomization or intervention. It identifies patterns and associations but cannot rule out confounding factors or establish that the model causes changes in diabetes outcomes.

No Conflicts

No conflicts of interest identified

No conflicts of interest or funding disclosures were reported in the study text.

The study does not include any conflict of interest, funding, or author affiliation disclosures. While the use of large EHR datasets from All of Us and MGB Biobank suggests potential institutional support, no explicit funding sources or industry ties are stated. The absence of disclosure limits full transparency but does not indicate evidence of bias.

Key takeaways

  1. 01

    The computer predicted diabetes 7 years ahead with 75.4% accuracy (AUC 0.754).

  2. 02

    It found 3 types: one (Green) had fewer health problems and lowered blood sugar by 0.64% after metformin; another (Red) had more problems and only lowered it by 0.27%.

  3. 03

    Yes—this means doctors could spot high-risk patients earlier and give the right treatment to the right group, like giving metformin sooner to those who respond best.

Surprising findings

  • The Red subtype’s poor response to metformin wasn’t due to higher BMI alone—after adjusting for weight, cardiovascular and mental health differences still persisted.People assume obesity is the main driver of bad diabetes outcomes—but this shows mental health and heart issues independently shape treatment failure.
  • The model’s predictive power came from routine EHR data—no genetic tests, no special biomarkers—just standard doctor visits and lab results.We think precision medicine needs DNA tests—but this proves you can get highly accurate predictions from existing medical records.

Practical takeaways

If you have prediabetes, ask your doctor if your EHR data could be analyzed for diabetes subtyping to tailor prevention strategies.

This model isn’t yet available in most clinics—it’s still in research phase and requires access to large EHR datasets.

high confidence

Track your mental health and cardiovascular symptoms (like sleep apnea or depression)—they may be early signals of a high-risk diabetes subtype.

These patterns are predictive, not diagnostic—don’t self-label based on symptoms alone.

medium confidence

Why this study matters

Predicts Diabetes 7 Years Ahead

A deep learning model analyzed electronic health records and predicted type 2 diabetes onset up to 7 years in advance with 75.4% accuracy (AUC 0.754)—beating traditional methods like blood sugar tests (AUC 0.632) and risk factor models (AUC 0.693).

Most people only get screened when they’re already at risk—this could let doctors warn you years before symptoms appear, giving you time to prevent it.

Three Diabetes Types—Not One Size Fits All

The model identified three subtypes: Green (mild, few comorbidities), Yellow (moderate), and Red (severe, with obesity, heart disease, and depression). The Red subtype had 2.4x higher rates of sleep apnea and 2.3x higher depression rates than Green.

It’s not just ‘diabetes’—your type determines how bad your complications will be and how well you’ll respond to treatment.

Metformin Works Better for Some

People in the Green subtype saw their HbA1c drop by 0.64% after starting metformin—nearly double the 0.27% drop seen in the Red subtype, despite both groups receiving the same drug.

You might be taking the right medicine—but if your subtype isn’t considered, it might not work well for you.

It’s Not Your Genes—It’s Your Life

The subtypes showed no link to polygenic risk scores (PRS), meaning your genetic predisposition didn’t determine your type—instead, lifestyle, environment, and clinical history did.

This flips the script: your diabetes isn’t just inherited—it’s shaped by your habits, stress, and access to care.

Want the whole report?

Detailed mode opens the full scientific breakdown — every score component, the methodology, conflicts of interest, the evidence analysis behind each claim, and the raw study data.