Evidence map›Paper›PMID 42610099›Full record

ArticleJAMIA open2026

Using natural language processing and machine learning to identify social needs in patient medical notes: model training with balanced versus real-world datasets.

Christopher Kitchen, Thomas Richards, Luis M Ahumada, Geoffrey M Gray, Ayah Zirikly, Elham Hatef

Abstract read
In one paragraph

Article in JAMIA open, 2026. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Not yet cited in PubMed.

0numbers the graph read from it
0cells of the map it votes in
0citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

0 citing papers in PubMed.

No citing paper in PubMed yet.

4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

6 authors.

Christopher KitchenCenter for Population Health Information Technology, Johns Hopkins Bloomberg School of Public Health, Baltimore, MD, United States.
Thomas RichardsCenter for Population Health Information Technology, Johns Hopkins Bloomberg School of Public Health, Baltimore, MD, United States.
Luis M AhumadaCenter for Pediatric Data Science and Analytic Methodology, Johns Hopkins All Children's Hospital, St. Petersburg, FL, United States.
Geoffrey M GrayCenter for Pediatric Data Science and Analytic Methodology, Johns Hopkins All Children's Hospital, St. Petersburg, FL, United States.
Ayah ZiriklyDepartment of Computer Science, Whiting School of Engineering, Johns Hopkins University, Baltimore, MD, United States.
Elham HatefCenter for Population Health Information Technology, Johns Hopkins Bloomberg School of Public Health, Baltimore, MD, United States.

Funding

Development, Piloting and Dissemination of an Integrated Clinical and Social Multi-level Decision Support Platform to Address Social Determinants of Health Among Minority Populations in Baltimore CityR01MD015844 · NIMHD · JOHNS HOPKINS UNIVERSITY · PI HATEF-NAIMI, ELHAM, WEINER, JONATHAN P · 2021 to 2025
$2.7M
NIMHD NIH HHS R01 MD015844
6 · The paper itself

Abstract

Objective: To evaluate natural language processing (NLP) and machine learning (ML) approaches for identifying social needs in electronic health record (EHR) notes, using balanced versus real-world imbalanced datasets. Materials and Methods: A rule-based NLP framework using definite, non-negated keywords flagged social needs domains and "Any Social Need" in unstructured notes. Logistic regression, random forest, and XGBoost models were trained under balanced and imbalanced prevalence and evaluated using area under the receiver operating characteristic curve (AUROC), area under the precision-recall curve (AUPRC), F1, precision, recall, and specificity, with threshold sensitivity analyses. Results: On the imbalanced test set for any social need, the rule-based model achieved F1 0.373 (precision 0.484; recall 0.303; and specificity 0.978). On the balanced test set for any social need, XGBoost and logistic models achieved AUPRC 0.719 and 0.718, F1 0.438, and precision 0.944; random forest had AUPRC 0.714, F1 0.423, and precision 0.945. Under imbalanced evaluation, XGBoost led (AUPRC 0.319, F1 0.312, precision 0.839, recall 0.191, and specificity 0.998), followed by logistic (AUPRC 0.312 and F1 0.289) and random forest (AUPRC 0.305 and F1 0.282). Discussion: Balanced training inflated apparent performance, while under realistic class imbalance the ML models traded recall for very high precision, with XGBoost performing best but still lagging in sensitivity. Conclusion: These findings underscore the need to train and tune under real-world prevalence and to set thresholds based on use-case priorities (eg, maximizing precision for referrals versus improving recall for screening).

Indexed as

electronic health recordsnatural language processingsocial needs

Identifiers

PMID42610099
PMCPMC13480434

What OpenQuestion holds

Textmetadata
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.