Abstract & Overview
Background The translation of medical referrals into specific MRI brain scanning protocols is an important but time-consuming step in the radiological workflow. This process requires clinical understanding and familiarity with a wide range of available protocol options. Inaccurate protocol selection can result in suboptimal imaging. The aim of this study was to evaluate whether locally deployed Ollama LLMs could accurately predict MRI brain protocols using real-world referrals and compare their performance with that of ChatGPT-5.4. Methods We retrospectively included 623 referrals from Albert Schweitzer Hospital in the Netherlands. The referral texts were written in Dutch and consisted of unstructured text containing the ordered procedure, patient history and clinical indication. Patient identifying information was removed. Referrals were used to prompt the models to select the correct protocol from a predefined institutional list. The predicted protocol was compared with an expert reference standard defined by a neuroradiologist. Results MRI protocol selection from free-text referrals was a learnable task for LLMs. The highest observed accuracy was 82% for both ChatGPT-5.4 (zero-shot prompting) and Llama4:scout (similarity-based few-shot prompting). An exact McNemar test comparing these best-performing configurations showed no statistically significant difference in classification performance. Few-shot prompting strategies generally improved performance for most models compared with zero-shot prompting. Conclusion In this exploratory single-center study, the best-performing locally deployed and commercial LLM configurations achieved similar performance for MRI brain protocol assignment. These findings support further investigation of locally deployed LLMs as decision-support tools in radiology workflows, in which data privacy and institutional control are important considerations.