Evidence mapPaperPMID 39864953Full record

ArticleJMIR medical informatics2025

Classifying Unstructured Text in Electronic Health Records for Mental Health Prediction Models: Large Language Model Evaluation Study.

Nicholas C Cardamone, Mark Olfson, Timothy Schmutte, Lyle Ungar, Tony Liu, Sara W Cullen, Nathaniel J Williams, Steven C Marcus

Abstract read
In one paragraph

Article in JMIR medical informatics, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 14 papers, 2 of them syntheses that pooled it.

0numbers the graph read from it
0cells of the map it votes in
14citing papers in PubMed, 2 pooled it
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

14 citing papers in PubMed, 2 syntheses or guidelines pooled it.

  1. Pooled it
  2. Pooled it
  3. Article
  4. Article
  5. Article
  6. Article
  7. Article
  8. Article
  9. Article
  10. Review
  11. Article
  12. Article
  13. Article
  14. Article
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

8 authors.

Nicholas C CardamoneDepartment of Psychiatry, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States.ORCID http://orcid.org/0000-0001-9854-8565
Mark OlfsonDepartment of Psychiatry, the New York State Psychiatric Institute, New York, NY, United States.ORCID http://orcid.org/0000-0002-3958-5662
Timothy SchmutteDepartment of Psychiatry, Yale School of Medicine, New Haven, CT, United States.ORCID http://orcid.org/0000-0003-1711-1906
Lyle UngarComputer and Information Science, University of Pennsylvania, Philadelphia, PA, United States.ORCID http://orcid.org/0000-0003-2047-1443
Tony LiuComputer and Information Science, University of Pennsylvania, Philadelphia, PA, United States.ORCID http://orcid.org/0000-0002-3707-3989
Sara W CullenSchool of Social Policy & Practice, University of Pennsylvania, Philadelphia, PA, United States.ORCID http://orcid.org/0000-0002-7846-5727
Nathaniel J WilliamsSchool of Social Work, Boise State University, Boise, ID, United States.ORCID http://orcid.org/0000-0002-3948-7480
Steven C MarcusSchool of Social Policy & Practice, University of Pennsylvania, Philadelphia, PA, United States.ORCID http://orcid.org/0000-0001-7819-3824

Funding

NIMH NIH HHS R01 MH126895
6 · The paper itself

Abstract

Background: Prediction models have demonstrated a range of applications across medicine, including using electronic health record (EHR) data to identify hospital readmission and mortality risk. Large language models (LLMs) can transform unstructured EHR text into structured features, which can then be integrated into statistical prediction models, ensuring that the results are both clinically meaningful and interpretable. Objective: This study aims to compare the classification decisions made by clinical experts with those generated by a state-of-the-art LLM, using terms extracted from a large EHR data set of individuals with mental health disorders seen in emergency departments (EDs). Methods: Using a dataset from the EHR systems of more than 50 health care provider organizations in the United States from 2016 to 2021, we extracted all clinical terms that appeared in at least 1000 records of individuals admitted to the ED for a mental health-related problem from a source population of over 6 million ED episodes. Two experienced mental health clinicians (one medically trained psychiatrist and one clinical psychologist) reached consensus on the classification of EHR terms and diagnostic codes into categories. We evaluated an LLM's agreement with clinical judgment across three classification tasks as follows: (1) classify terms into "mental health" or "physical health", (2) classify mental health terms into 1 of 42 prespecified categories, and (3) classify physical health terms into 1 of 19 prespecified broad categories. Results: There was high agreement between the LLM and clinical experts when categorizing 4553 terms as "mental health" or "physical health" (κ=0.77, 95% CI 0.75-0.80). However, there was still considerable variability in LLM-clinician agreement on the classification of mental health terms (κ=0.62, 95% CI 0.59-0.66) and physical health terms (κ=0.69, 95% CI 0.67-0.70). Conclusions: The LLM displayed high agreement with clinical experts when classifying EHR terms into certain mental health or physical health term categories. However, agreement with clinical experts varied considerably within both sets of mental and physical health term categories. Importantly, the use of LLMs presents an alternative to manual human coding, presenting great potential to create interpretable features for prediction models.

Indexed as

Electronic Health RecordsMental DisordersMental HealthNatural Language ProcessingEmergency Service, HospitalHumansLarge Language ModelsUnited StatesAIartificial intelligenceChatGPTdatasetEHREHR systemelectronic health recordemergency departmenthealth informaticslarge language modelLLMmachine learningmental healthmental health disorderMLnatural language processingNLPphysical healthpredictive modelingtext

Identifiers

PMID39864953
PMCPMC11884378

What Socratic holds

Textmetadata
LicenceCC BY
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 Socratic graph.