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?

Currently accepted at: JMIR AI

Date Submitted: Apr 27, 2026
Date Accepted: Oct 28, 2026
Date Submitted to PubMed: Oct 28, 2026

This paper has been accepted and is currently in production.

It will appear shortly on 10.2196/98901

The final accepted version (not copyedited yet) is in this tab.

An "ahead-of-print" version has been submitted to Pubmed, see PMID: 42950116

Identifying Diagnostic Breakdowns in Patient Experience Survey Comments Using Natural Language Processing: An Evaluation Study

  • Yiyang Qu; 
  • Mary A Hill; 
  • Azade Tabaie; 
  • Kewei Ni; 
  • Sharifa Kazi; 
  • Traber D. Giardina; 
  • Helen Haskell; 
  • Kristen E. Miller; 
  • Kelly M. Smith

ABSTRACT

Background:

Patient-reported survey data represent an underutilized source of information for identifying diagnostic breakdowns. Traditional approaches rely on manual review, which is resource-intensive and difficult to scale. Recent advances in natural language processing (NLP), including transformer-based models and large language models (LLMs), offer new opportunities to automate this task; however, their comparative performance and practical applicability in real-world clinical datasets remain unclear.

Objective:

To evaluate the performance of progressively advanced NLP approaches for identifying diagnostic breakdowns in patient survey comments and to assess the value of prompt-based LLMs with expert-informed iterative refinement.

Methods:

We analyzed 523 free-text comments from ambulatory patient surveys. Diagnostic breakdowns were defined using a structured framework encompassing failures in diagnostic accuracy, timeliness, or communication. We implemented a three-phase modeling pipeline: (1) a baseline TF-IDF feature representation with XGBoost classification, (2) a fine-tuned transformer model based on a pretrained Twitter RoBERTa architecture, and (3) a prompted LLM approach using in-context learning with iterative prompt refinement. Prompt development followed a human-in-the-loop process, incorporating domain expert feedback to refine definitions, examples, and decision boundaries. Model performance was evaluated using cross-validation with standard classification metrics, including precision, recall, F1 score, area under the receiver operating characteristic curve (AUROC), and area under the precision-recall curve (AUPRC).

Results:

The baseline TF-IDF model demonstrated limited performance, with challenges in capturing contextual nuance and high false-positive rates. The fine-tuned transformer improved overall discrimination but remained sensitive to ambiguous expressions of dissatisfaction. The prompted LLM approach achieved the best balance between sensitivity and specificity following iterative refinement. Initial prompt versions exhibited high recall but low precision due to over-classification of general complaints as diagnostic breakdowns. Subsequent refinements, informed by expert input, substantially improved precision while maintaining strong recall, resulting in the highest overall F1-score among the three approaches. Qualitative analysis indicated improved alignment with clinically meaningful definitions, particularly in borderline cases.

Conclusions:

Prompted LLMs, when combined with expert-guided iterative refinement, outperform traditional machine learning and fine-tuned transformer models for identifying diagnostic breakdowns in patient-reported text. This approach enables scalable, interpretable, and clinically aligned analysis of patient feedback. Future work should focus on external validation across institutions and integration into real-time quality improvement workflows.


 Citation

Please cite as:

Qu Y, Hill MA, Tabaie A, Ni K, Kazi S, Giardina TD, Haskell H, Miller KE, Smith KM

Identifying Diagnostic Breakdowns in Patient Experience Survey Comments Using Natural Language Processing: An Evaluation Study

JMIR AI. 28/10/2026:98901 (forthcoming/in press)

DOI: 10.2196/98901

URL: https://preprints.jmir.org/preprint/98901

PMID: 42950116

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.