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

被引:0
|
作者
Cardamone, Nicholas C. [1 ]
Olfson, Mark [2 ]
Schmutte, Timothy [3 ]
Ungar, Lyle [4 ]
Liu, Tony [4 ]
Cullen, Sara W. [5 ]
Williams, Nathaniel J. [6 ]
Marcus, Steven C. [5 ]
机构
[1] Univ Penn, Perelman Sch Med, Dept Psychiat, 3535 Market St, Philadelphia, PA 19104 USA
[2] New York State Psychiat Inst & Hosp, Dept Psychiat, New York, NY USA
[3] Yale Sch Med, Dept Psychiat, New Haven, CT USA
[4] Univ Penn, Comp & Informat Sci, Philadelphia, PA USA
[5] Univ Penn, Sch Social Policy & Practice, Philadelphia, PA USA
[6] Boise State Univ, Sch Social Work, Boise, ID USA
基金
美国国家卫生研究院;
关键词
artificial intelligence; AI; machine learning; ML; natural language processing; NLP; large language model; LLM; ChatGPT; predictive modeling; mental health; health informatics; electronic health record; EHR; EHR system; text; dataset; mental health disorder; emergency department; physical health;
D O I
10.2196/65454
中图分类号
R-058 [];
学科分类号
摘要
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" (kappa=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 (kappa=0.62, 95% CI 0.59-0.66) and physical health terms (kappa=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.
引用
收藏
页数:9
相关论文
共 50 条
  • [1] A large language model for electronic health records
    Xi Yang
    Aokun Chen
    Nima PourNejatian
    Hoo Chang Shin
    Kaleb E. Smith
    Christopher Parisien
    Colin Compas
    Cheryl Martin
    Anthony B. Costa
    Mona G. Flores
    Ying Zhang
    Tanja Magoc
    Christopher A. Harle
    Gloria Lipori
    Duane A. Mitchell
    William R. Hogan
    Elizabeth A. Shenkman
    Jiang Bian
    Yonghui Wu
    npj Digital Medicine, 5
  • [2] A large language model for electronic health records
    Yang, Xi
    Chen, Aokun
    PourNejatian, Nima
    Shin, Hoo Chang
    Smith, Kaleb E.
    Parisien, Christopher
    Compas, Colin
    Martin, Cheryl
    Costa, Anthony B.
    Flores, Mona G.
    Zhang, Ying
    Magoc, Tanja
    Harle, Christopher A.
    Lipori, Gloria
    Mitchell, Duane A.
    Hogan, William R.
    Shenkman, Elizabeth A.
    Bian, Jiang
    Wu, Yonghui
    NPJ DIGITAL MEDICINE, 2022, 5 (01)
  • [3] Large language models for data extraction from unstructured and semi-structured electronic health records: a multiple model performance evaluation
    Ntinopoulos, Vasileios
    Biefer, Hector Rodriguez Cetina
    Tudorache, Igor
    Papadopoulos, Nestoras
    Odavic, Dragan
    Risteski, Petar
    Haeussler, Achim
    Dzemali, Omer
    BMJ HEALTH & CARE INFORMATICS, 2025, 32 (01)
  • [4] Large language models to identify social determinants of health in electronic health records
    Guevara, Marco
    Chen, Shan
    Thomas, Spencer
    Chaunzwa, Tafadzwa L.
    Franco, Idalid
    Kann, Benjamin H.
    Moningi, Shalini
    Qian, Jack M.
    Goldstein, Madeleine
    Harper, Susan
    Aerts, Hugo J. W. L.
    Catalano, Paul J.
    Savova, Guergana K.
    Mak, Raymond H.
    Bitterman, Danielle S.
    NPJ DIGITAL MEDICINE, 2024, 7 (01)
  • [5] Large language models to identify social determinants of health in electronic health records
    Marco Guevara
    Shan Chen
    Spencer Thomas
    Tafadzwa L. Chaunzwa
    Idalid Franco
    Benjamin H. Kann
    Shalini Moningi
    Jack M. Qian
    Madeleine Goldstein
    Susan Harper
    Hugo J. W. L. Aerts
    Paul J. Catalano
    Guergana K. Savova
    Raymond H. Mak
    Danielle S. Bitterman
    npj Digital Medicine, 7
  • [6] Scalable information extraction from free text electronic health records using large language models
    Gu, Bowen
    Shao, Vivian
    Liao, Ziqian
    Carducci, Valentina
    Brufau, Santiago Romero
    Yang, Jie
    Desai, Rishi J.
    BMC MEDICAL RESEARCH METHODOLOGY, 2025, 25 (01)
  • [7] The shaky foundations of large language models and foundation models for electronic health records
    Michael Wornow
    Yizhe Xu
    Rahul Thapa
    Birju Patel
    Ethan Steinberg
    Scott Fleming
    Michael A. Pfeffer
    Jason Fries
    Nigam H. Shah
    npj Digital Medicine, 6
  • [8] The shaky foundations of large language models and foundation models for electronic health records
    Wornow, Michael
    Xu, Yizhe
    Thapa, Rahul
    Patel, Birju
    Steinberg, Ethan
    Fleming, Scott
    Pfeffer, Michael A.
    Fries, Jason
    Shah, Nigam H.
    NPJ DIGITAL MEDICINE, 2023, 6 (01)
  • [9] Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Data
    Xu, Xuhai
    Yao, Bingsheng
    Dong, Yuanzhe
    Gabriel, Saadia
    Yu, Hong
    Hendler, James
    Ghassemi, Marzyeh
    Dey, Anind K.
    Wang, Dakuo
    PROCEEDINGS OF THE ACM ON INTERACTIVE MOBILE WEARABLE AND UBIQUITOUS TECHNOLOGIES-IMWUT, 2024, 8 (01):
  • [10] Classifying social determinants of health from unstructured electronic health records using deep learning-based natural language processing
    Han, Sifei
    Zhang, Robert F.
    Shi, Lingyun
    Richie, Russell
    Liu, Haixia
    Tseng, Andrew
    Quan, Wei
    Ryan, Neal
    Brent, David
    Tsui, Fuchiang R.
    JOURNAL OF BIOMEDICAL INFORMATICS, 2022, 127