Leveraging Large Language Models for Accurate Retrieval of Patient Information From Medical Reports:Systematic Evaluation Study

dc.contributor.authorGarcia Carmona, Angel Manuel
dc.contributor.authorPrieto, Maria Lorena
dc.contributor.authorPuertas, Enrique
dc.contributor.authorBeunza Nuin, Juan José
dc.date.accessioned2026-10-17T11:21:27Z
dc.date.available2026-10-17T11:21:27Z
dc.date.issued2025
dc.description.abstractBackground: The digital transformation of health care has introduced both opportunities and challenges, particularly in managing and analyzing the vast amounts of unstructured medical data generated daily. There is a need to explore the feasibility of generative solutions in extracting data from medical reports, categorized by specific criteria. Objective: This study aimed to investigate the application of large language models (LLMs) for the automated extraction of structured information from unstructured medical reports, using the LangChain framework in Python. Methods: Through a systematic evaluation of leading LLMs—GPT-4o, Llama 3, Llama 3.1, Gemma 2, Qwen 2, and Qwen 2.5—using zero-shot prompting techniques and embedding results into a vector database, this study assessed the performance of LLMs in extracting patient demographics, diagnostic details, and pharmacological data. Results: Evaluation metrics, including accuracy, precision, recall, and F1 -score, revealed high efficacy across most categories, with GPT-4o achieving the highest overall performance (91.4% accuracy). Conclusions: The findings highlight notable differences in precision and recall between models, particularly in extracting names and age-related information. There were challenges in processing unstructured medical text, including variability in model performance across data types. Our findings demonstrate the feasibility of integrating LLMs into health care workflows; LLMs offer substantial improvements in data accessibility and support clinical decision-making processes. In addition, the paper describes the role of retrieval-augmented generation techniques in enhancing information retrieval accuracy, addressing issues such as hallucinations and outdated data in LLM outputs. Future work should explore the need for optimization through larger and more diverse training datasets, advanced prompting strategies, and the integration of domain-specific knowledge to improve model generalizability and precision.
dc.description.filiationUEM
dc.description.impact6.1 Q1 JCR 2025
dc.description.impact1.189 Q1 SJR 2025
dc.description.impactNo data IDR 2025
dc.description.sponsorshipSin financiación
dc.identifier.citationGarcia-Carmona, A. M., Prieto, M.-L., Puertas, E., & Beunza, J.-J. (2025). Leveraging large language models for accurate retrieval of patient information from medical reports: Systematic evaluation study. JMIR AI, 4, e68776. https://doi.org/10.2196/68776
dc.identifier.doi10.2196/68776
dc.identifier.issn2817-1705
dc.identifier.urihttps://hdl.handle.net/11268/17487
dc.language.isoeng
dc.peerreviewedSi
dc.relation.publisherversionhttps://doi.org/10.2196/68776
dc.rights.accessRightsopen access
dc.subject.otherSalud
dc.subject.sdgGoal 3: Ensure healthy lives and promote well-being for all at all ages
dc.subject.sdgGoal 9: Build resilient infrastructure, promote sustainable industrialization and foster innovation
dc.subject.unescoSistemas de información documental
dc.subject.unescoInteligencia artificial
dc.subject.unescoAnálisis de datos
dc.titleLeveraging Large Language Models for Accurate Retrieval of Patient Information From Medical Reports:Systematic Evaluation Study
dc.typejournal article
dc.type.hasVersionVoR
dspace.entity.typePublication
relation.isAuthorOfPublicationef9d544b-877a-4552-ba1d-61060f9c17ae
relation.isAuthorOfPublication.latestForDiscoveryef9d544b-877a-4552-ba1d-61060f9c17ae

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Leveraging Large Language Models for Accurate Retrieval.pdf
Size:
623.1 KB
Format:
Adobe Portable Document Format