Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

Difficult-to-treat depression (DTD) has been proposed as a broader and more clinically comprehensive perspective on a person's depressive disorder where, despite treatment, they continue to experience significant burden. We sought to develop a tool capable of interrogating routinely-collected narrative (free-text) electronic health record (EHR) data to locate known prognostic factors identified from the scientific literature that capture the clinical syndrome of DTD. Thus, we aim to address the upstream aspect of DTD detection, that is the identification of relevant factors. In this work, we use Large Language Model (LLM)-generated synthetic data (GPT3.5) and a Non-Maximum Suppression (NMS) algorithm to train a BERT-based span extraction model. The model is trained to extract and label spans related to a variety of relevant positive and negative factors (i.e. spans of text that increase or decrease the likelihood of a patient matching the DTD syndrome). We test the model on both a synthetic and a clinical test set. We obtain good overall performance (0.70 F1 across polarity) on clinical data from EHRs for extracting as many as 20 different factors considered as predictors of DTD and high performance (0.85 F1 with 0.95 precision) on a subset of important DTD factors such as history of abuse, family history of affective disorder, illness severity and suicidality. We show it is possible to train a model exclusively on synthetic data to extract prognostic factors in clinical data. Our results show promise for future healthcare applications especially in applications where traditionally, highly confidential medical data and costly human-expert annotations would normally be required.

More information Original publication

DOI

10.1016/j.compbiomed.2025.110246

Type

Journal article

Publication Date

2025-08-01T00:00:00+00:00

Volume

194

Keywords

DTD, LLM, ML, Synthetic data, Humans, Electronic Health Records, Natural Language Processing, Algorithms, Depressive Disorder, Treatment-Resistant, Data Mining, Large Language Models