Expert clinical and scientific data review for healthcare and life sciences AI evaluation

Healthcare AI evaluation · · 8 min read

AI SDOH extraction: how to evaluate it

Acumen Editorial · Updated November 28, 2026

Why are health systems turning to AI for SDOH extraction?

Because structured data misses most of it. CMS reported that about 1.4% of Medicare fee-for-service beneficiaries, 467,136 people, had Z codes documenting social determinants of health on claims in 2017 (CMS Office of Minority Health data highlight, via AHA). Clinicians and social workers record far more than that in free text. It just never becomes a field anyone can query.

Language models can read that text at scale. In a study by Bitterman and colleagues (arXiv 2308.06354), researchers annotated 800 patient notes and tested several models. Their best fine-tuned models identified 93.8% of patients with an adverse social determinant, while ICD-10 codes captured 2.0%. That is the size of the opportunity. It is also why the evaluation matters: a tool that surfaces many more needs will also surface more wrong ones.

What makes SDOH harder to evaluate than other clinical text?

Three things.

The categories are fuzzy. "Lives with daughter" is not social isolation. "Staying with a friend for now" may be housing instability. A note about food insecurity three years ago may not describe today. Without a written labeling guide, two experts will label the same note differently, and your accuracy number will measure the guide, not the model.

Negation and attribution trip models up. "Denies housing concerns." "Patient's son is unemployed." "Screened negative for food insecurity." Each mentions a social need that the patient does not have.

Errors carry stigma. A false positive for substance use or housing instability can follow a patient across encounters and shape how they are treated. In most clinical extraction tasks a false positive costs a reviewer's time. Here it can cost the patient.

Who should label the reference set?

People who document social needs for a living:

  • Social workers and case managers for housing, food, transportation, financial strain, caregiving and safety
  • Clinicians for notes where social and medical context mix, such as medication cost driving nonadherence
  • Coding specialists if you map findings to Z codes
  • An adjudicator to settle disagreements and update the guide

Label each note twice, independently, and report agreement per category. Our guide to medical text annotation covers guideline design, and inter-rater reliability in medical AI covers how to measure agreement.

How should you build the test set?

Pull notes from every source the model will read: primary care, emergency, inpatient, behavioral health, social work and care management. Note type changes everything. A social work assessment is dense with SDOH language. An emergency note may hold one telling line.

The Bitterman study found its models performed similarly on a second in-hospital dataset but worse on MIMIC-III notes. Different institutions write differently. Test on your own notes, from your own templates, before you trust any number.

Oversample the hard cases:

  • Negated and historical mentions
  • Needs attributed to family members
  • Short, ambiguous phrases ("tight on money this month")
  • Notes in languages or dialects your patients use
  • Notes that contain no SDOH at all, to measure false positives

What should you measure?

QuestionMetricWhy it matters
Does it find real needs?Recall per categoryMissed needs mean missed referrals
Are its findings right?Precision per categoryFalse labels create stigma and wasted outreach
Does it handle negation and history?Error rate on negated and past mentionsThe most common failure in clinical text
Does it treat groups the same?Prediction change under counterfactual edits; false positive rate by groupBiased labels drive biased care
Is the Z-code mapping right?Agreement with coding specialistsCodes flow into quality and risk reporting
Does it hold up over time?Reviewer rejection rate after go-liveEarly signal of drift

Report per category, not just a macro average. In the Bitterman study, the best fine-tuned Flan-T5 XL model reached a macro-F1 of 0.71 for any SDOH category. An average like that can hide a category the model barely handles.

How do you test for bias?

Counterfactual testing is the most direct method. Take a note, change only the demographic descriptors and see whether the prediction moves. The Bitterman team did exactly this: when race, ethnicity and gender descriptors were added, their fine-tuned models were less likely than ChatGPT-family models to change predictions (p<0.05). Run the same test on your shortlist. Then compare false positive rates by group on real notes. Our article on testing clinical AI for bias walks through the design.

What should you ask an SDOH extraction vendor?

Get these answers before a pilot:

  1. Which SDOH categories does the model cover, and how is each one defined?
  2. Who labeled the training and test data, and what was their agreement rate per category?
  3. How does the model handle negation, historical mentions and needs attributed to family members?
  4. Which note types and institutions were in the test data?
  5. What counterfactual bias testing was done, and what changed?
  6. How are findings mapped to Z codes, and who checked the mapping?
  7. Can we run our own labeled notes through the model before signing?
  8. Where does the output go: a review queue, a problem list or a claim?

The last question matters most. The same model is low risk when it feeds a care manager's worklist and high risk when it writes directly to a claim. Set your acceptance bar by destination. A worklist can tolerate more false positives in exchange for recall. Anything that becomes a code or a chart entry needs high precision and human sign-off.

Which use cases should you start with?

Three starting points carry the least risk:

  • Care management worklists. The AI surfaces patients with possible needs; staff confirm and refer.
  • Population and research cohorts. Aggregate counts tolerate some error, and results are checked against screening data.
  • Screening gap detection. The AI flags patients whose notes mention a need but who have no screening on file.

Each one keeps a person between the model and the patient record.

What does a safe rollout look like?

  • Route every AI finding to a social worker or care manager before it becomes a code, referral or chart entry
  • Log reviewer accept and reject decisions by category
  • Re-run the counterfactual bias test after every model update
  • Sample confirmed labels quarterly for second review
  • Give patients and clinicians a path to correct a wrong label

How Acumen helps

We build SDOH evaluation sets with credentialed social workers, case managers and clinicians, matched to the note types your model reads. Our medical data annotation service delivers the labels, counterfactual bias sets and Z-code mappings, de-identified and documented for review.

Request a sample dataset Schedule a conversation

For related work, see our guides to AI chart abstraction, evaluating AI medical coding and building a golden dataset for medical AI.

FAQ

What is AI SDOH extraction?

AI SDOH extraction uses language models to find social determinants of health in clinical text: housing instability, food insecurity, transportation barriers, employment, social isolation and safety concerns. The output is a structured label, sometimes mapped to an ICD-10 Z code. Health systems use it for care management referrals, risk adjustment, quality reporting and research cohorts.

Why use AI instead of Z codes to find social needs?

Z codes are rarely recorded. CMS found that about 1.4% of Medicare fee-for-service beneficiaries had SDOH Z codes on claims in 2017. Much of what clinicians and social workers learn sits in free-text notes. Extraction models can surface that information, but only an evaluation tells you whether what they surface is right.

Who should label SDOH evaluation data?

Use social workers and case managers who document these needs every day, with clinicians for cases that mix social and medical context. Write a labeling guide that defines each category, the time window and what counts as a current versus past need. Have two people label each note independently and adjudicate disagreements.

How accurate are LLMs at extracting social determinants of health?

Results vary by model, category and note source. In one study of 800 annotated notes, a fine-tuned Flan-T5 XL model reached a macro-F1 of 0.71 for any SDOH category, outperformed zero- and few-shot ChatGPT-family models and performed worse on MIMIC-III notes. Expect different numbers on your own notes and test before relying on any published figure.

How do you test SDOH extraction for bias?

Run counterfactual tests: change only the race, ethnicity or gender descriptors in a note and check whether the predictions change. Report false positive rates by demographic group and by note author type. A model that labels some groups with housing or substance concerns more often on identical text will cause harm in referrals and stigma in the chart.

Should AI-extracted SDOH labels go straight into the chart?

Not without review. A false positive can attach a stigmatizing label to a patient and follow them across encounters. Most teams route AI findings to a care manager or social worker for confirmation before coding, referral or documentation. Measure how often reviewers reject the AI's suggestion and use that rate to monitor drift.

From the Acumen archive. Explore expert data and Healthcare & Pharma.

← Back to Insights