Cited by 54Machine Learning in HealthcareBiomedical Text Mining and OntologiesArtificial Intelligence in Healthcare and Education

Comprehensive testing of large language models for extraction of structured data in pathology

Open access
Grothey, Bastian, Odenkirchen, Jan, Brkic, Adnan, Schömig-Markiefka, Birgid, Quaas, Alexander, Büttner, Reinhard, Tolkach, Yuri·2025·Communications Medicine

Abstract

Background: Pathology departments generate large volumes of unstructured data as free-text diagnostic reports. Converting these reports into structured formats for analytics or artificial intelligence projects requires substantial manual effort by specialized personnel. While recent studies show promise in using advanced language models for structuring pathology data, they primarily rely on proprietary models, raising cost and privacy concerns. Additionally, important aspects such as prompt engineering and model quantization for deployment on consumer-grade hardware remain unaddressed. Methods: We created a dataset of 579 annotated pathology reports in German and English versions. Six language models (proprietary: GPT-4; open-source: Llama2 13B, Llama2 70B, Llama3 8B, Llama3 70B, and Qwen2.5 7B) were evaluated for their ability to extract eleven key parameters from these reports. Additionally, we investigated model performance across different prompt engineering strategies and model quantization techniques to assess practical deployment scenarios. Results: Here we show that open-source language models extract structured data from pathology reports with high precision, matching the accuracy of proprietary GPT-4 model. The precision varies significantly across different models and configurations. These variations depend on specific prompt engineering strategies and quantization methods used during model deployment. Conclusions: Open-source language models demonstrate comparable performance to proprietary solutions in structuring pathology report data. This finding has significant implications for healthcare institutions seeking cost-effective, privacy-preserving data structuring solutions. The variations in model performance across different configurations provide valuable insights for practical deployment in pathology departments. Our publicly available bilingual dataset serves as both a benchmark and a resource for future research.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s43856-025-00808-8

Cites

25 of 25 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Traditional machine learning methods such as SVM, RF, and XGBoost perform well on structured clinical data and small to medium-sized datasets.

    “Traditional ML methods, such as SVM, RF, and XGBoost, perform well on structured clinical data and small to medium-sized datasets [163].”

    From Artificial intelligence-powered prediction of diabetic complications: from clinical data to molecular omics (2026) · cites this paper as [163]

    The Discussion describes SVMs and gradient boosting used to extract structured data from free-text pathology reports, reporting lower accuracy than LLMs for that task. It does not assess how SVM, RF, or XGBoost perform on already structured clinical data or on small to medium-sized datasets (searched for those terms and conditions). (LLM, conf=0.75)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 7

  1. [6]Tolkach, Y. et al. An international multi-institutional validation study of the algorithm for prostate cancer detection and Gleason grading. npj Precis. Oncol. 7, 1–9 (2023). 37582946 PMC10427608
  2. [20]Deng, Y., Zhang, W., Chen, Z. & Gu, Q. Rephrase and respond: let large language models ask better questions for themselves. ArXiv:2311.04205 (2024). · arXiv
  3. [21]Touvron, H., et al. Llama 2: Open foundation and fine-tuned chat models. arXiv:2307.09288 (2023). · arXiv
  4. [24]Yang, A. et al. Qwen2 technical report. arXiv:2407.10671 (2024). · arXiv
  5. [25]Jiang, A. Q. et al. Mistral 7B. arXiv:2310.06825 (2023). · arXiv
  6. [26]Almazrouei, E. et al. The Falcon series of open language models. arXiv:2311.16867 (2023). · arXiv
  7. [28]Sahoo, P. et al. A systematic survey of prompt engineering in large language models: techniques and applications. arXiv:2402.07927 (2024). · arXiv

Cited by

Sorted by citations

Authors
Grothey, B., Odenkirchen, J., Brkic, A., Schömig-Markiefka, B., Quaas, A., Büttner, R., & Tolkach, Y.
Affiliations
  • University Hospital Cologne (DE)
  • University of Cologne (DE)
Corresponding author
  • Grothey, Bastian
  • Tolkach, Yuri
Venue
Communications Medicine
Published
2025-03-31
Volume
5
Issue
1
Pages
96-96
ISSN
2730-664X (ISSN-L)
OpenAlex
W4409011223
Cited by
54
References
25
Citations by year
2026: 42 · 2025: 12
FWCI
21.66
Type
journal article
Language
en
Open access
Locations
  • Communications Medicine (publishedVersion, cc-by)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • Kölner Universitäts PublikationsServer (Universität zu Köln) (acceptedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • Wilhelm Sander-Stiftung (Grand 2022.040.1)
  • Bundesministerium für Bildung und Forschung (Project FED-PATH)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Biomedical Text Mining and Ontologies
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
Keywords
large language models, pathology reports, structured data extraction, open-source language models, prompt engineering, model quantization, GPT-4 comparison, Llama 3, Qwen2.5, healthcare data privacy

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review