Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Medical Informatics

Date Submitted: Mar 31, 2026
Date Accepted: Nov 9, 2026

The final, peer-reviewed published version of this preprint can be found here:

Large Language Models for Identifying Patient Goals and Preferences in Patient Portal Messages: Comparative Evaluation Study

Fodeh S, Wang Y, Makoto J, Nebeker J

Large Language Models for Identifying Patient Goals and Preferences in Patient Portal Messages: Comparative Evaluation Study

JMIR Med Inform 2026;14:e96744

DOI: 10.2196/96744

PMID: 43138608

Large Language Models for Identifying Patient Goals and Preferences in Patient Portal Messages: Comparative Evaluation

  • Samah Fodeh; 
  • Yan Wang; 
  • Jones Makoto; 
  • Jonathan Nebeker

ABSTRACT

Background:

Recognizing patient goals and preferences is essential for patient-centered care, but this information is often embedded in unstructured patient-provider communication and is difficult to capture at scale.

Objective:

This study evaluated whether large language models (LLMs) can identify patient goals and preferences from patient portal messages and examined whether fine-tuning improves performance.

Methods:

We analyzed 1,000 anonymized secure messages exchanged between patients and clinicians from 2021 to 2022 in a cohort of patients with depression or substance use disorder. The messages were segmented into 6,645 sentences. We evaluated GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct using a prompt-based classification framework that assigned text spans to predefined patient goal and preference categories. Two reviewers manually assessed sampled spans for category alignment, and pairwise overlap between models was measured using soft-matching F1 scores. We then fine-tuned Llama-3.3-70B-Instruct on an annotated dataset and evaluated it on a held-out test set of 217 spans.

Results:

We analyzed 1,000 anonymized secure messages exchanged between patients and clinicians from 2021 to 2022 in a cohort of patients with depression or substance use disorder. The messages were segmented into 6,645 sentences. We evaluated GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct using a prompt-based classification framework that assigned text spans to predefined patient goal and preference categories. Two reviewers manually assessed sampled spans for category alignment, and pairwise overlap between models was measured using soft-matching F1 scores. We then fine-tuned Llama-3.3-70B-Instruct on an annotated dataset and evaluated it on a held-out test set of 217 spans.

Conclusions:

LLMs can identify patient goals and preferences from unstructured patient portal messages, but their coverage and consistency vary substantially. Among the evaluated models, Llama-3.3-70B-Instruct provided the broadest coverage, and task-specific fine-tuning further improved performance. These findings support the potential of domain-adapted LLMs to make patient-centered information more accessible for clinical research and future decision-support applications.


 Citation

Please cite as:

Fodeh S, Wang Y, Makoto J, Nebeker J

Large Language Models for Identifying Patient Goals and Preferences in Patient Portal Messages: Comparative Evaluation Study

JMIR Med Inform 2026;14:e96744

DOI: 10.2196/96744

PMID: 43138608

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.