Classifying Unstructured Text in Electronic Health Records for Mental Health Prediction Models using a Large Language Model (Preprint)

Author:

Cardamone NicholasORCID,Olfson Mark,Schmutte Timothy,Ungar Lyle H.ORCID,Liu Tony,Cullen Sara W.,Williams Nathaniel J.,Marcus Steven C.

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 large language model (LLM), using terms extracted from a large EHR dataset of individuals with mental health disorders seen in emergency departments.

METHODS

Using a dataset from the EHR systems of more than 50 healthcare provider organizations in the United States from 2016-2021, we extracted all clinical terms that appeared in at least 1,000 records of individuals admitted to the emergency department for a mental health-related problem from a source population of over six million emergency department 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 judgement across three classification tasks: (1) classify terms into “mental health” or “physical health” (2) classify mental health terms into one of 42 pre-specified categories, and (3) classify physical health terms into one of 19 pre-specified broad categories.

RESULTS

There was high agreement between the LLM and clinical experts when categorizing 4,553 terms as “mental health” or “physical health” (κ = 0.77). There was considerable variability in LLM-clinician agreement on classification of physical health terms (average κ = .66, range .34-.86) and mental health terms (average κ = .61, κ range 0 – 1).

CONCLUSIONS

The LLM displayed high agreement with clinical experts when classifying EHR terms into certain mental health or physical health categories. However, agreement with clinical experts varied considerably within both mental health and physical health category sets. Importantly, the use of LLMs presents an alternative to manual human coding, presenting great potential to create interpretable features for prediction models.

Publisher

JMIR Publications Inc.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3