Auditable Longitudinal Diagnostic Alignment for Psychiatric Follow-Up Using a Large Language Model and Rule-Based Strategy Engine: Model Development and Evaluation Study (Preprint)
BACKGROUND Psychiatric follow-up requires clinicians to reconcile established diagnoses with evolving symptoms, standardized scale scores, treatment response, mental status findings, and longitudinal records. Large language models (LLMs) can interpret unstructured clinical narratives but may inconsistently extract exact evidence or apply temporal and clinical constraints. Combining semantic interpretation with deterministic evidence processing may provide more auditable support for this setting. OBJECTIVE This study aimed to develop and evaluate an auditable hybrid framework for aligning a 5-category psychiatric diagnostic profile with documented current-visit labels during follow-up and to quantify the contribution of a rule-based strategy engine. METHODS This retrospective single-center study used 40,724 deidentified records from 658 psychiatric outpatients (November 2017-January 2026): 7,974 clinical notes, 15,500 scale records, 14,746 diagnosis records, and 2,504 voice transcripts, examination reports, and patient-information records. Among 656 patients with clinical notes, 634 had confirmed current-visit labels; 508 were assigned to development and 126 to holdout testing. The target was a multi-label profile covering sleep, anxiety, depression, bipolar disorder, and other psychiatric conditions. The framework combined semantic phenotyping with DeepSeek V4 Flash, deterministic extraction of scale scores, medications, and prior diagnoses, and a strategy engine with 19 soft strategies and 1 hard rule. We compared the hybrid framework with LLM-only output and a parser-feature XGBoost baseline. Outcomes were label-level agreement, category F1 scores, and per-patient exact-match agreement. We estimated 95% CIs using 10,000 bootstrap iterations and used the McNemar test for paired hybrid and LLM-only predictions. RESULTS On the holdout set, label-level agreement was 94.3% (95% CI 92.4%-96.0%) for the hybrid framework and 85.9% (95% CI 83.2%-88.6%) for LLM-only output.
- Link
- https://doi.org/10.2196/preprints.111075
- Found by
- Crossref
- Authors
- jiawei hu, Mengxiao Lei, Xiang Kong, Yuchen Huang, Hong Luo, Hongjing Mao
- Categories
- evaluation
- Published
- 2026-09-02
- Last seen by the radar
- 2026-09-04
- Citations
- 0
- Radar score
- 26.75 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat; Primary record: Crossref