Language Models and Retrieval Augmented Generation for Automated Structured Data Extraction from Diagnostic Reports

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Jabal, Mohamed Sobhi, Warman, Pranav, Zhang, Jikai, Gupta, Kartikeye, Jain, Ayush, Mazurowski, Maciej, Wiggins, Walter, Magudia, Kirti, Calabrese, Evan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913505304641536
author Jabal, Mohamed Sobhi
Warman, Pranav
Zhang, Jikai
Gupta, Kartikeye
Jain, Ayush
Mazurowski, Maciej
Wiggins, Walter
Magudia, Kirti
Calabrese, Evan
author_facet Jabal, Mohamed Sobhi
Warman, Pranav
Zhang, Jikai
Gupta, Kartikeye
Jain, Ayush
Mazurowski, Maciej
Wiggins, Walter
Magudia, Kirti
Calabrese, Evan
contents Purpose: To develop and evaluate an automated system for extracting structured clinical information from unstructured radiology and pathology reports using open-weights large language models (LMs) and retrieval augmented generation (RAG), and to assess the effects of model configuration variables on extraction performance. Methods and Materials: The study utilized two datasets: 7,294 radiology reports annotated for Brain Tumor Reporting and Data System (BT-RADS) scores and 2,154 pathology reports annotated for isocitrate dehydrogenase (IDH) mutation status. An automated pipeline was developed to benchmark the performance of various LMs and RAG configurations. The impact of model size, quantization, prompting strategies, output formatting, and inference parameters was systematically evaluated. Results: The best performing models achieved over 98% accuracy in extracting BT-RADS scores from radiology reports and over 90% for IDH mutation status extraction from pathology reports. The top model being medical fine-tuned llama3. Larger, newer, and domain fine-tuned models consistently outperformed older and smaller models. Model quantization had minimal impact on performance. Few-shot prompting significantly improved accuracy. RAG improved performance for complex pathology reports but not for shorter radiology reports. Conclusions: Open LMs demonstrate significant potential for automated extraction of structured clinical data from unstructured clinical reports with local privacy-preserving application. Careful model selection, prompt engineering, and semi-automated optimization using annotated data are critical for optimal performance. These approaches could be reliable enough for practical use in research workflows, highlighting the potential for human-machine collaboration in healthcare data extraction.
format Preprint
id arxiv_https___arxiv_org_abs_2409_10576
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Language Models and Retrieval Augmented Generation for Automated Structured Data Extraction from Diagnostic Reports
Jabal, Mohamed Sobhi
Warman, Pranav
Zhang, Jikai
Gupta, Kartikeye
Jain, Ayush
Mazurowski, Maciej
Wiggins, Walter
Magudia, Kirti
Calabrese, Evan
Computation and Language
Information Retrieval
Machine Learning
J.3; I.2; I.2.7
Purpose: To develop and evaluate an automated system for extracting structured clinical information from unstructured radiology and pathology reports using open-weights large language models (LMs) and retrieval augmented generation (RAG), and to assess the effects of model configuration variables on extraction performance. Methods and Materials: The study utilized two datasets: 7,294 radiology reports annotated for Brain Tumor Reporting and Data System (BT-RADS) scores and 2,154 pathology reports annotated for isocitrate dehydrogenase (IDH) mutation status. An automated pipeline was developed to benchmark the performance of various LMs and RAG configurations. The impact of model size, quantization, prompting strategies, output formatting, and inference parameters was systematically evaluated. Results: The best performing models achieved over 98% accuracy in extracting BT-RADS scores from radiology reports and over 90% for IDH mutation status extraction from pathology reports. The top model being medical fine-tuned llama3. Larger, newer, and domain fine-tuned models consistently outperformed older and smaller models. Model quantization had minimal impact on performance. Few-shot prompting significantly improved accuracy. RAG improved performance for complex pathology reports but not for shorter radiology reports. Conclusions: Open LMs demonstrate significant potential for automated extraction of structured clinical data from unstructured clinical reports with local privacy-preserving application. Careful model selection, prompt engineering, and semi-automated optimization using annotated data are critical for optimal performance. These approaches could be reliable enough for practical use in research workflows, highlighting the potential for human-machine collaboration in healthcare data extraction.
title Language Models and Retrieval Augmented Generation for Automated Structured Data Extraction from Diagnostic Reports
topic Computation and Language
Information Retrieval
Machine Learning
J.3; I.2; I.2.7
url https://arxiv.org/abs/2409.10576