TL;DR
In clinical machine learning, we routinely treat diagnosis codes in Electronic Health Records (EHRs) as ground truth—assuming a missing code means a healthy patient. By comparing routine EHR data against universal blood tests from nearly 190,000 people, this paper shows that medical records miss up to 62% of biochemical abnormalities, and take years to catch up. Because of this "recognition delay," models trained on diagnosis codes learn who gets noticed by doctors rather than who actually has the disease, missing roughly a quarter of the undiagnosed patients they are meant to find.
What Problem Does This Paper Address?
Imagine trying to train a computer vision model to spot cats, except the human labeler only marks the cats sitting under bright streetlights. Soon, your model isn't a cat detector; it’s a streetlight detector.
In healthcare AI, the EHR is our streetlight. A person can walk around with diabetes-range blood sugar, reduced kidney function, or low hemoglobin for years before a diagnosis code or prescription ever enters their chart. Furthermore, clinical lab tests aren't ordered at random—they depend on symptoms, healthcare access, and doctor habits.
This lag creates a double trap for case finding (deciding which undiagnosed patients to test):
- Label bias in training: Treating unrecorded patients as "negative" teaches models to predict healthcare contact and recognition rather than underlying biology.
- Flawed evaluation: Scoring models on who gets diagnosed later rewards the exact same recognition bias, mistaking delayed paperwork for newly developed disease.
Methods
To measure what the medical record misses, you need an objective biological snapshot taken completely outside of routine clinical suspicion. The authors leveraged universal enrollment blood assays—HbA1c (for diabetes), eGFR (for chronic kidney disease, or CKD), and hemoglobin (for anemia)—collected by study protocol regardless of clinical need.
Using a fixed 627-feature summary of pre-enrollment demographics, healthcare utilization, and hashed medical code histories (explicitly excluding blood test codes and the assays themselves), the authors trained standard $\ell_2$-regularized logistic regression and histogram gradient-boosting models. What’s novel is the head-to-head comparison across four distinct training labels on the exact same patients:
- Recorded: Prior diagnosis or relevant prescription in the EHR ($R=1$).
- Measured: Unrecorded patients whose enrollment blood assay crosses the disease threshold ($D=1$).
- Combined: Either recorded or assay-positive ($R=1$ or $D=1$).
- Incident: Unrecorded patients who receive a recorded diagnosis within 1, 2, or 5 years after enrollment.
All models were evaluated on held-out unrecorded patients ($R=0$), testing how many truly assay-positive cases were caught when screening the top-scoring 10% ("case-finding yield"). They also tested Positive–Unlabeled (PU) learning propensity corrections to see if math could salvage biased EHR labels.
Datasets
- UK Biobank linked to Primary Care EHRs: 186,449 participants enrolled between 2006 and 2010 who had continuous primary-care registration for at least a year prior to enrollment, linked with hospital and death records over a median follow-up of 7.3 years. No new standalone public benchmark is introduced, though code and phenotype rules are open-sourced.
Key Insights and Ideas
- Even abnormal lab tests in the clinic don't guarantee a diagnosis code. Among unrecorded patients who were never given a diagnosis code during follow-up, 70% of CKD-range and 42% of anemia-range patients actually had an abnormal blood test sitting right there in their primary-care record! EHR labels built solely from codes and prescriptions miss massive amounts of clinical reality.
- "Recorded" positives violate standard PU learning assumptions. Classic PU learning assumes labeled positives are a random sample of true positives. Here, pre-enrollment features strongly predicted which assay-positive patients already had a record (AUROC 0.67–0.88). Recording is deeply selective—for instance, anemia was recognized significantly more often in more deprived and non-white participants, even after adjusting for severity.
- "New" diagnoses are often just late discoveries. Nearly half (48%) of "incident" diabetes diagnoses recorded in the year after enrollment already had diabetes-range HbA1c on day one.
- Evaluating on future EHR codes can pick the worst biological model. Among the four anemia gradient-boosting models, the model trained on 5-year incident diagnoses ranked first at predicting future EHR diagnoses, but dead last (lowest AUROC) at detecting actual low hemoglobin at enrollment.
Key Results
Cumulative recognition over time for unrecorded assay-positive participants
- Massive recognition gaps: At enrollment, 19% of participants with diabetes-range values, 32% with CKD-range values, and 62% with anemia-range values had no prior EHR record. Five years later, cumulative recognition reached 81% for diabetes, 55% for CKD, and just 31% for anemia.
- 23–29% drop in case-finding yield: When testing the top 10% highest-risk unrecorded patients, gradient-boosting models trained on recorded diagnoses found 26% fewer cases for diabetes, 23% fewer for CKD, and 29% fewer for anemia compared to models trained directly on measured assays.
- Stricter thresholds widen the gap: For more severe biochemical cutoffs, recorded-label models missed even more people—48% fewer for hemoglobin $<11\text{ g/dL}$ and 32% fewer for HbA1c $\ge 53\text{ mmol/mol}$.
- Shifts in who gets tested: Switching from recorded to measured diabetes labels caused the model to select 74% of unrecorded non-white participants for testing (up from 26%), boosting recall in this group from 32% to 89%.
Limitations and Future Work
A single abnormal blood draw at enrollment indicates a biochemical abnormality, not a definitive clinical diagnosis (which requires chronicity and clinical judgment—indeed, some enrollment abnormalities resolved upon repeat testing years later). Additionally, UK Biobank participants skew healthier and wealthier than the general population, external detections (like anemia caught at blood drives) are invisible, and the data cannot reveal whether finding these unrecorded cases actually improves downstream patient outcomes.
For future EHR modeling, the authors suggest moving away from pure diagnosis-code labels for case finding: researchers should incorporate protocol-driven measurements (from biobanks or universal screening programs) either directly as training targets, mixed into combined labels, or to audit and calibrate label biases.
Summary updated