Local Large Language Models with Clinical Guardrails and Automated Factuality Auditing for MRI-Derived Body Composition Reporting.
Authors
Affiliations (7)
Affiliations (7)
- Bioinformatics Institute (BII), Agency for Science, Technology and Research (A*STAR), 30 Biopolis Street, #07-01 Matrix, 138671, Singapore, Singapore. [email protected].
- Clinical Imaging Research Centre (CIRC), Yong Loo Lin School of Medicine, National University of Singapore, Singapore, Singapore.
- Department of Computer Science, Dr. Ambedkar Institute of Technology, affiliated with Visvesvaraya Technological University (VTU, Belagavi), Outer Ring Road, near Jnana Bharathi Campus, Bengaluru, Karnataka, 560056, India.
- Department of Electrical and Electronic Engineering, Nanyang Technological University, Singapore, Singapore.
- Department of Diagnostic Radiology, Tan Tock Seng Hospital, Singapore, Singapore.
- Department of Geriatric Medicine, Institute of Geriatrics and Active Aging, Tan Tock Seng Hospital, Singapore, Singapore.
- Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore, Singapore.
Abstract
Large language models (LLMs) can turn MRI body-composition measurements into reports, but they can state values that were not measured. We tested whether guardrails, an automated factuality audit, and correlation-guided prompting change the numerical fidelity and reader-rated quality of reports from local models. We studied 168 community-dwelling older adults (mean age 68; 69% female) with abdominal and thigh MRI. A deep-learning model segmented fat and muscle. We combined the segmented volumes with dual-energy X-ray absorptiometry (DEXA) and clinical data. The guardrails told the model to use only the supplied values and not to invent numbers. Within each of four sarcopenia-obesity phenotypes, we identified the strongest feature correlations and added them to the prompt (correlation-guided prompting, CGP). We scored four open-weight models (LLaMA 3, Mistral, Phi-3, Qwen2.5) with an unsupported-numeric-claim rate in 40 subjects per region. Readers rated the reports in two blinded studies. Segmentation Dice was 0.978. With guardrails, three of four models kept the unsupported-numeric-claim rate below <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mn>2</mn> <mo>%</mo></mrow> </math> . Model size did not predict fidelity. Symbolic (tertile) encoding with deterministic value re-insertion lowered the pooled rate to <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mn>2.2</mn> <mo>%</mo></mrow> </math> . In the first reader study (10 clinicians, 20 non-clinicians), CGP did not change fidelity and raised ratings over data-only prompts. The gain was larger for non-clinicians. In the second study (3 clinicians, 8 non-clinicians), CGP, a fixed clinical-context prompt, and the symbolic prompt received similar ratings (Friedman <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>p</mi> <mo>=</mo> <mn>0.14</mn></mrow> </math> ). Guardrails reduced unsupported numbers, and the audit supported model selection. Local LLMs with guardrails and an automated audit produced faithful body-composition reports offline.