Development and web deployment of an automated neuroradiology MRI protocoling tool with natural language processing

Yeshwant Reddy Chillakuru, Shourya Munjal, Benjamin Laguna, Timothy L. Chen, Gunvant R. Chaudhari, Thienkhai Vu, Youngho Seo, Jared Narvid, Jae Ho SohnBMC Medical Informatics Decis. Mak 2021 · DOI

Abstract

Manual MRI protocoling is a significant administrative burden in radiology, consuming approximately 6.2% of a radiologist's workday. This study presents the development and deployment of a web-based natural language processing (NLP) tool designed to automate the assignment of MRI protocols from clinical indications. Using fastText and XGBoost models trained on institutional data, the system achieved accuracies exceeding 85%. Crucially, the implementation of a confidence threshold allowed for the potential automation of 40% of the workload with near-zero error rates, demonstrating a viable path for clinical decision support in neuroradiology.

Introduction

Before an MRI examination, a radiologist must review the clinical indication to determine the specific imaging protocol, such as the need for intravenous contrast or specialized sequences. This process, known as protocoling, is often a bottleneck and a source of potential error. As imaging volumes and protocol complexities increase, automated solutions are needed to triage requests and reduce the cognitive load on radiologists. This paper explores the efficacy of NLP models in bridging the gap between free-text clinical indications and standardized imaging protocols.

Methods

The researchers developed a pipeline that transforms free-text clinical indications into standardized protocols. The process begins with preprocessing, utilizing RadLex for standardized medical vocabulary and NegEx to handle negations (e.g., ensuring "no history of cancer" does not trigger a contrast protocol).

Workflow diagram of the NLP-based MRI protocoling tool.

Two distinct machine learning approaches were employed: fastText for spine MRI protocols, which leverages character n-grams to handle misspellings and technical variations, and XGBoost with a Bag-of-Words (TF-IDF) approach for head MRI protocols. The models were trained on a de-identified dataset from UCSF, comprising 7,139 spine protocols and 990 head protocols. The final tool was deployed as a web application using the Flask framework.

Results

The spine MRI model achieved an accuracy of 83.38% with an ROC-AUC of 0.8873. The head MRI model reached 85.43% accuracy, with particularly strong performance for routine brain protocols (ROC-AUC 0.9463).

ROC curves for Head MRI protocol classification showing high performance across routine, contrast, and other categories.

A key finding was the utility of confidence scores. By setting a confidence threshold of ≥0.90, the system could automate 40% of the total volume. In this high-confidence subset, the error rate was exceptionally low: 1% for spine cases and 0% for head cases. Manual review of "errors" often revealed that the model's prediction was more appropriate than the original human-assigned protocol or that the indication was inherently ambiguous.

Discussion

While the results are promising, the study is limited by its single-center data, which may not generalize to other institutions with different protocoling standards. Additionally, the smaller head MRI dataset led to lower performance on niche protocols. There is also a risk of automation bias, where clinicians might over-rely on the tool's suggestions. Future work aims to incorporate multi-institutional data and integrate the tool directly into Electronic Medical Record (EMR) systems to provide real-time clinical decision support.

Conclusion

Relatively simple NLP models can effectively automate a substantial portion of the MRI protocoling workload. By focusing on high-confidence predictions, these tools can safely offload routine tasks, allowing radiologists to focus on complex cases and improving overall departmental efficiency.

Summary updated

Abstract

Background A systematic approach to MRI protocol assignment is essential for the efficient delivery of safe patient care. Advances in natural language processing (NLP) allow for the development of accurate automated protocol assignment. We aim to develop, evaluate, and deploy an NLP model that automates protocol assignment, given the clinician indication text. Methods We collected 7139 spine MRI protocols (routine or contrast) and 990 head MRI protocols (routine brain, contrast brain, or other) from a single institution. Protocols were split into training (n = 4997 for spine MRI; n = 839 for head MRI), validation (n = 1071 for spine MRI, fivefold cross-validation used for head MRI), and test (n = 1071 for spine MRI; n = 151 for head MRI) sets. fastText and XGBoost were used to develop 2 NLP models to classify spine and head MRI protocols, respectively. A Flask-based web app was developed to be deployed via Heroku. Results The spine MRI model had an accuracy of 83.38% and a receiver operator characteristic area under the curve (ROC-AUC) of 0.8873. The head MRI model had an accuracy of 85.43% with a routine brain protocol ROC-AUC of 0.9463 and contrast brain protocol ROC-AUC of 0.9284. Cancer, infectious, and inflammatory related keywords were associated with contrast administration. Structural anatomic abnormalities and stroke/altered mental status were indicative of routine spine and brain MRI, respectively. Error analysis revealed increasing the sample size may improve performance for head MRI protocols. A web version of the model is provided for demonstration and deployment. Conclusion We developed and web-deployed two NLP models that accurately predict spine and head MRI protocol assignment, which could improve radiology workflow efficiency.
BibTeX
@article{chillakuru2021development,
  author = {Yeshwant Reddy Chillakuru and Shourya Munjal and Benjamin Laguna and Timothy L. Chen and Gunvant R. Chaudhari and Thienkhai Vu and Youngho Seo and Jared Narvid and Jae Ho Sohn},
  title = {{Development and web deployment of an automated neuroradiology MRI protocoling tool with natural language processing}},
  journal = {BMC Medical Informatics Decis. Mak.},
  year = {2021},
  doi = {10.1186/s12911-021-01574-y},
}
Figure