WorksComputer Science
Autonomous Structuring of Radiology Reports Across Modalities at Archive Scale Using an Open-Weight Large Language Model
Abstract
Purpose: To develop and evaluate an open-weight large language model (LLM) pipeline that converts an entire archive of free-text radiology reports into structured reports without human oversight. Materials and Methods: In this retrospective study, a pipeline with 150 hierarchically organized templates was developed at one center and tested at a second center on reports from 2010 to 2025. The open-weight model gpt-oss-120B selects the template in three constrained-decoding steps and fills it on one local graphics processing unit. Template selection was scored against expert labels on 914 randomly sampled reports of five modalities, structuring quality on 920 radiography and CT reports corrected field by field by five residents. The pipeline then processed the complete archive of the second center. Proportions are reported with Wilson 95% confidence intervals (CIs). Results: An optimal template set was selected for 74.4% of reports (680 of 914; 95% CI: 71.5%, 77.1%) and an appropriate set for 82.3% (752 of 914; 95% CI: 79.7%, 84.6%), 87.7% for single-region and 54.1% for multi-region reports. Macro semantic textual similarity between output and corrected reference was 0.95 for radiography and 0.97 for CT, residents left 88.7% of 24,638 fields unchanged, and unsupported content was flagged in 1.0% and 1.5% of reports. Of 2,186,982 archive reports, 96.5% received structured output, 2,401,544 structured reports, at 1,258 reports per hour on one graphics processing unit. Conclusion: An open-weight LLM pipeline structured a complete multimodality report archive without human oversight with high content fidelity. Multi-region reports remained the main source of template errors.
Introduction
A radiology archive holds millions of free-text reports, representing a rich source of information for research and quality control. However, due to the free text nature, they remain inaccessible for automated evaluation [1]. For this reason radiological societies have recommended structured reporting for more than a decade [2], yet most reports are still narratives whose format and terminology vary between institutions and radiologists [3, 4]. Structured reporting at the time of dictation would be the optimal solution, but longer reporting times, disagreement about templates, and disrupted dictation workflows slow down adoption [5]. Structuring reports afterwards leaves the reporting workflow untouched and makes archived reports usable.
Given that large language models (LLMs) can process free text narratives, multiple studies investigated them to extract predefined variables from radiology reports [6, 7, 8, 9, 10] and map report content onto structured templates [11, 12, 13, 14, 15]. In nearly all of these studies the template was known in advance, because only one or a few examination types were studied. However, an archive contains hundreds of examination types, and metadata do not reliably tell which template a report needs. To scale to a whole archive, the structuring pipeline must act fully autonomously.
A proof-of-concept study with GPT-4 assigned 170 fictitious CT and MRI reports to one of a few templates and structured them [16], showing that an LLM can perform both steps without human oversight. Yet, transferring this to a real archive raises four problems. First, a template collection must cover most examinations a department performs, with shared findings represented identically so that analyses can aggregate across templates. Second, presenting an LLM with more than 100 templates at once is inefficient, and a flat multiple-choice design handles neither reports describing several examinations nor rare examinations or reports without findings. Third, examination types differ between institutions, so templates must be easy to add, change, and remove. Fourth, a whole archive is a large volume of sensitive data. Sending it to a commercial API exposes the archive to a third party and is costly.
The purpose of this study was to develop a pipeline that addresses these four problems. The pipeline runs locally with open-weight LLMs and without human oversight, assigns each report to one or more of 150 hierarchically organized templates or rejects it, and fills the selected template. We tested it in a reader study at a second center for template selection and structuring quality and applied it to that center’s complete archive of about 2.1 million reports across five modalities.
Materials and Methods
Study Design
This retrospective study was approved by the institutional review boards of Charité – Berlin University of Medicine (Charité; EA2/148/23) and Technical University of Munich (TUM; 2024-590-S-CB), which waived informed consent. Charité reports (January 1, 2009, to April 1, 2024) were used for template development and prompt engineering, TUM reports (January 1, 2010, to December 31, 2025) for the two test sets and for structuring the complete archive. The reports had not been used in prior studies, and patient demographics were not available at report level. Reports, templates and prompts were in German. The study follows the CLAIM 2024 checklist (Supplement 1) [17].
Template Database
To identify the examinations and diagnoses in the archive, an LLM (gpt-oss-120B) screened 10,000 random Charité reports for modality, body region and main diagnosis (Supplemental Methods S1), and two board-certified radiologists (KKB and LCA; 10 and 11 years of experience) defined 150 templates covering all common examination types from the resulting frequency tables. Each template defines the sections of a structured report and describes the expected content of each section.
Templates form a two-level hierarchy. A base template defines the sections of an examination type, for example CT chest, and derived templates add or replace sections for a clinical question. At run time the pipeline merges the derived template into its base template section by section, so structured reports of one examination type remain comparable across diagnoses (Figure S3). The 150 templates (24 base, 75 derived, 51 independent without a base) cover five modalities and 37 examination types (Table 1, Figure S1). For CT reports that describe several examination types, 31 combination types define which examination types may occur together, and the report receives one template per examination type (Supplemental Methods S2).
| Modality | Templates (base, derived, independent) | Examination types | Selection test reports (single, multi) | Reader study reviewed (appropriate, corrected) |
| Radiography | 25 (6, 17, 2) | 6 | 602 (568, 34) | 622 (544, 513) |
| CT | 45 (10, 30, 5) | 10 | 217 (110, 107) | 448 (417, 407) |
| MRI | 43 (6, 24, 13) | 11 | 59 (52, 7) | — |
| Ultrasound | 30 (0, 0, 30) | 6 | 26 (26, 0) | — |
| Interventional radiology | 7 (2, 4, 1) | 4 | 10 (10, 0) | — |
| Total | 150 (24, 75, 51) | 37 | 914 (766, 148) | 1,070 (961, 920) |
Table 1. Template library and test datasets
Figure S1. Template index of the CT branch, the largest of the five modality branches (template counts per modality in Table 1, templates in archive use in Table S6). Ten examination types with 45 templates, five of which are listed under two or three examination types and appear under each. Base templates (navy outline) carry derived templates (light teal outline) that add or replace sections at run time, independent templates (black outline) have no base. Templates derived from a base template of another examination type are attached with dashed connectors. Three of the 31 combination types are shown as examples.
Figure S3. Template composition at run time with the YAML files of the base template CT chest standard and the derived template CT chest mass. The production templates are German, keys and values are translated one to one for display and the placeholder hints of the production files are shown as empty strings. The pipeline updates the base template recursively with the derived template, a leaf value in the derived template replaces the base value (sand), sections present only in the derived template are added (teal), all other sections remain from the base (black). The composed template becomes the Pydantic model for constrained decoding.
Pipeline
The pipeline takes unreviewed report text and proceeds in two stages (Figure 2). In the selection stage the LLM classifies the report in three successive steps, modality, examination type and template, with each answer narrowing the options of the next. At every step two reserved responses reject report stubs and examinations without a template. If the report describes several examinations, the pipeline switches to multi-label classification of examination types and templates (Figure S2). In the structuring stage the LLM fills the selected templates with the report content zero-shot, one template per call. Fields without information in the source report receive the placeholder “not mentioned”.
Figure 2. Pipeline for autonomous structuring of free-text radiology reports. In the template selection stage the large language model answers three questions in constrained-decoding steps, imaging technique (modality), body region (examination type) and diagnosis or question (template), each narrowing the options of the next. Reports describing several examinations continue with multi-label selection of examination types and one template per examination (teal). Report stubs and examinations without a template are rejected (dashed grey). The template database supplies the options and the template files (dashed teal). The selected templates are composed from base and derived template and filled with the report content in the structuring stage, one call per template.
Figure S2. Hierarchical template selection as a tree. The modality step chooses one of 5 modalities, which restricts the examination-type step to the examination types of that modality (10 for CT), which restricts the template step to the templates of that examination type (6 for CT chest). Teal branches show the multi-label pathways for reports describing several examinations and for CT combination types. Dashed grey exits show the two reserved rejection responses.
Every response is produced with constrained decoding against a format generated at run time from the template index and the template files, the allowed options in the selection stage and the sections of the composed template in the structuring stage (Supplemental Methods S3). The pipeline is implemented in Python with LangChain 1.2.18 and runs against any OpenAI API compatible server.
Model
gpt-oss-120B [18], a 4-bit quantized mixture-of-experts model with 117 billion total and 5.1 billion active parameters, was used for all experiments and for the archive. The context window was 15,000 tokens and reasoning effort was set to the lowest level. The model ran on one H100 GPU at Charité served through Ollama during development and on one H200 GPU at TUM served through vLLM [19] for testing and archive processing.
Test Datasets
Two test sets were drawn from the TUM archive (Figure 1). For template selection, 1,000 reports were sampled at random, 21 entries without a report identifier were removed, and a board-certified radiologist labeled the remaining 979 reports with modality, examination types and optimal templates or marked them as non-structurable (report stub or examination without a template). A second board-certified radiologist reviewed all labels (readers KKB and LCA). Forty-six reports combining two modalities were not scored, the 19 non-structurable reports served as the rejection test, and the remaining 914 reports formed the selection test set (766 single-region, 148 multi-region).
Figure 1. Creation of the two test sets from the TUM archive. A, selection test set. Of a random sample of the archive, reports without a report identifier were excluded before labeling, reports combining two modalities and non-structurable reports (report stubs, examination without a template) were labeled but not scored, the non-structurable reports served as the rejection test. B, structuring test set. Of a stratified sample of the pipeline output with 9 to 25 reports per template, the residents rated the selected template, reports rated inappropriate or unclear were not corrected, the unclear ratings were adjudicated by two board-certified radiologists in consensus for the template rating. Numbers in parentheses are radiography, CT.
For structuring quality, 1,070 radiography and CT reports were sampled from the pipeline output so that all 70 templates of these modalities were represented by 9 to 25 reports. Five radiology residents (MF, ES, MK, LSchm, and LSchu, 2 to 3 years of experience) rated the selected template as appropriate, inappropriate or unclear, and two board-certified radiologists (KKB and LCA) adjudicated the 44 unclear ratings in consensus. For the 920 reports rated appropriate by the residents, the residents corrected the structured output field by field against the source report and flagged content not supported by the source as hallucinated. The corrected output of these 920 reports served as the reference standard (Table 1). Labels and corrections were entered in software developed by the authors for this study.
Creation of both test sets and the excluded reports in Figure 1. Templates listed under several examination types are counted once, the pain-therapy template shared by CT and interventional radiology under CT. The 31 CT combination types are not templates. Appropriate, template rated appropriate by the residents or, for 44 unclear ratings, by two adjudicating board-certified radiologists in consensus. Corrected, reports rated appropriate by the residents and corrected field by field, the reference for the field-level scores. Median report length was 92 words for radiography, 177 for CT, 174 for MRI, 149 for ultrasound and 220 for interventional radiology.
Evaluation Metrics and Statistical Analysis
Template selection was evaluated per report with all 914 reports of the selection test set as denominator. Sensitivity is the fraction that received at least one template, specificity the fraction of the 19 non-structurable reports that were rejected. A report was optimal if the selected template set matched the expert label and appropriate if every selected template shared its base template with the labeled one. Template identifiers were compared after normalization of spelling, which affected two labels. Results are stratified by modality and by single-region versus multi-region reports. Two ablations supplied the labeled modality to the pipeline and raised the reasoning effort to medium and high on the 111 selection test reports that the pipeline routed to multi-label classification, paired differences were tested with two-sided exact McNemar tests.
Structuring quality was scored field by field against the corrected reference, so the template text itself does not contribute. Semantic agreement was measured as semantic textual similarity (STS), the cosine similarity of Llama-Embed-Nemotron-8B embeddings [20], lexical agreement as BLEU [21], both macro-averaged over templates and additionally over content fields only, fields with report content in output or reference. A field counted as correct when the residents left it unchanged, whether it held report content or the placeholder for absent information, and as edited otherwise. The hallucination rate is the fraction of corrected reports with at least one flagged field. A board-certified radiologist classified the primary error of the 50 lowest-STS reports per modality as incomplete transcription, wrong or misplaced transcription, or hallucination.
Proportions are reported with Wilson 95% confidence intervals (CIs). CIs for STS and BLEU were computed with a percentile bootstrap of reports within templates (10,000 resamples). Analyses were performed in Python 3.12 with SciPy. indicated significance.
Archive Processing
The complete TUM report archive was processed with the same pipeline and model without human oversight. Rows without a valid report identifier and header rows of examinations imported from other institutions were excluded before processing. A report counted as structured when the pipeline returned at least one template with valid JSON output. Throughput was derived from the processing logs on one H200 GPU and, for one report at a time, measured in a serial benchmark of 100 reports run twice.
Results
The selection test set comprised 914 reports drawn at random from the TUM archive (766 single-region, 148 multi-region), the structuring test set the 920 corrected reports (513 radiography, 407 CT, 70 templates) (Figure 1, Table 1).
Template Selection
The pipeline assigned at least one template to 869 of 914 reports (95.1%, 95% CI 93.5 to 96.3). Of the 19 non-structurable reports (Figure 1A), 18 were rejected (94.7%, 75.4 to 99.1). Sensitivity ranged from 65.4% for ultrasound (17 of 26) to 97.7% for CT (212 of 217) (Table 2).
| Group | n | Structured, % (95% CI) | Optimal, % (95% CI) | Appropriate, % (95% CI) | Optimal given structured, % |
| All | 914 | 95.1 (93.5, 96.3) | 74.4 (71.5, 77.1) | 82.3 (79.7, 84.6) | 78.3 |
| Single-region | 766 | 95.2 (93.4, 96.5) | 83.0 (80.2, 85.5) | 87.7 (85.2, 89.9) | 87.2 |
| Multi-region | 148 | 94.6 (89.7, 97.2) | 29.7 (23.0, 37.5) | 54.1 (46.0, 61.9) | 31.4 |
| Radiography | 602 | 97.0 (95.3, 98.1) | 80.9 (77.6, 83.8) | 85.9 (82.9, 88.4) | 83.4 |
| CT | 217 | 97.7 (94.7, 99.0) | 60.4 (53.7, 66.6) | 77.4 (71.4, 82.5) | 61.8 |
| MRI | 59 | 81.4 (69.6, 89.3) | 69.5 (56.9, 79.7) | 78.0 (65.9, 86.6) | 85.4 |
| Ultrasound | 26 | 65.4 (46.2, 80.6) | 61.5 (42.5, 77.6) | 61.5 (42.5, 77.6) | 94.1 |
| Interventional radiology | 10 | 80.0 (49.0, 94.3) | 50.0 (23.7, 76.3) | 50.0 (23.7, 76.3) | 62.5 |
Table 2. Template selection on the 914 reports of the selection test set. Structured, at least one template assigned. Optimal, selected template set identical to the expert label. Appropriate, every selected template shares its base template with the labeled one (includes optimal). Denominator for the first three rates is all eligible reports of the group. Specificity on the 19 non-structurable reports was 94.7% (18 of 19, 75.4 to 99.1).
The optimal template set was selected for 680 of 914 reports (74.4%, 71.5 to 77.1) and an appropriate set for 752 (82.3%, 79.7 to 84.6) (Table 2, Figure 3A). Single-region reports reached 636 of 766 optimal (83.0%, 80.2 to 85.5) and 672 of 766 appropriate (87.7%, 85.2 to 89.9). Multi-region reports reached 44 of 148 optimal (29.7%, 23.0 to 37.5) and 80 of 148 appropriate (54.1%, 46.0 to 61.9).
Figure 3. Template selection on 914 eligible external test reports. A, outcome of template selection per report as percentage of eligible reports, for all reports, by number of described regions and by modality, with report counts inside the segments and n at the bar end. B, level of the hierarchy at which the first error occurred, as percentage of the group, with report counts above the bars. IR, interventional radiology.
Among single-region reports, the first error occurred at the modality step in 36 reports, at the examination-type step in 31 and at the template step in 63. Among multi-region reports, 35 first errors occurred at the examination-type step and 69 at the template step (Figure 3B). Of the 57 single-region reports with a template outside the appropriate family, 39 involved the skeletal radiography templates, most often a postoperative extremity radiograph assigned to a pelvis template (Table S3). Per-template results are given in Table S2. Supplying the labeled modality raised optimal selection by 19 of 914 reports (2.1 percentage points, 0.1 to 4.0, ), and medium or high reasoning effort on these 111 reports did not change optimal selection (45, 47 and 41 reports, and ) (Table S4 and Table S5).
| Modality | Labeled template | Test reports | Structured | Optimal | Appropriate | Optimal, % |
| Radiography | Chest radiograph | 215 | 214 | 209 | 209 | 97.2 |
| Radiography | Extremity radiograph, trauma | 120 | 118 | 109 | 115 | 90.8 |
| Radiography | Extremity radiograph, postoperative | 93 | 89 | 67 | 68 | 72.0 |
| Radiography | Extremity radiograph | 29 | 28 | 11 | 23 | 37.9 |
| Radiography | Pelvis radiograph | 22 | 22 | 21 | 22 | 95.5 |
| Radiography | Extremity radiograph, osteoarthritis | 21 | 21 | 13 | 14 | 61.9 |
| Radiography | Barium swallow | 10 | 10 | 9 | 9 | 90.0 |
| Radiography | Cervical spine radiograph | 8 | 7 | 7 | 7 | 87.5 |
| Radiography | Lumbar spine radiograph | 8 | 7 | 6 | 6 | 75.0 |
| Radiography | Abdominal radiograph | 6 | 6 | 5 | 5 | 83.3 |
| Radiography | Spine radiograph | 6 | 6 | 4 | 5 | 66.7 |
| Radiography | Extremity radiograph, rheumatology | 4 | 4 | 2 | 4 | 50.0 |
| Radiography | Hemithorax radiograph | 4 | 4 | 4 | 4 | 100.0 |
| Radiography | Pelvis radiograph, trauma | 4 | 3 | 3 | 3 | 75.0 |
| Radiography | Thoracic spine radiograph | 4 | 4 | 3 | 3 | 75.0 |
| Radiography | Facial bones radiograph | 3 | 3 | 2 | 2 | 66.7 |
| Radiography | Fluoroscopy | 3 | 1 | 1 | 1 | 33.3 |
| Radiography | Skull radiograph | 3 | 2 | 1 | 1 | 33.3 |
| Radiography | Arthrography | 2 | 1 | 1 | 1 | 50.0 |
| Radiography | Mammography | 1 | 0 | 0 | 0 | 0.0 |
| Radiography | Panoramic radiograph | 1 | 0 | 0 | 0 | 0.0 |
| Radiography | Paranasal sinuses radiograph | 1 | 1 | 0 | 1 | 0.0 |
| CT | CT extremities | 18 | 18 | 18 | 18 | 100.0 |
| Modality | Labeled template | Test reports | Structured | Optimal | Appropriate | Optimal, % |
| CT | CT head | 14 | 14 | 13 | 14 | 92.9 |
| CT | CT abdomen, mass | 10 | 10 | 7 | 8 | 70.0 |
| CT | CT chest, mass | 9 | 9 | 9 | 9 | 100.0 |
| CT | CT abdomen, acute | 7 | 7 | 6 | 7 | 85.7 |
| CT | CT abdomen, urolithiasis | 6 | 6 | 6 | 6 | 100.0 |
| CT | CT chest, lung parenchyma | 6 | 6 | 6 | 6 | 100.0 |
| CT | CT neck, mass | 6 | 6 | 6 | 6 | 100.0 |
| CT | CT angiography whole aorta | 5 | 5 | 5 | 5 | 100.0 |
| CT | CT chest, pulmonary embolism | 5 | 5 | 3 | 5 | 60.0 |
| CT | CT facial bones | 5 | 5 | 5 | 5 | 100.0 |
| CT | CT head, postoperative | 3 | 3 | 2 | 3 | 66.7 |
| CT | CT bony pelvis | 2 | 2 | 1 | 1 | 50.0 |
| CT | CT neck, inflammation | 2 | 2 | 1 | 2 | 50.0 |
| CT | CT paranasal sinuses | 2 | 2 | 1 | 2 | 50.0 |
| CT | CT abdomen and pelvis | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT abdomen, trauma | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT angiography head and neck | 1 | 1 | 0 | 0 | 0.0 |
| CT | CT angiography leg | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT cervical spine | 1 | 0 | 0 | 0 | 0.0 |
| CT | CT chest | 1 | 1 | 0 | 1 | 0.0 |
| CT | CT chest, trauma | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT coronary angiography | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT lumbar spine | 1 | 1 | 1 | 1 | 100.0 |
| CT | CT temporal bone | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI head | 5 | 4 | 3 | 4 | 60.0 |
| MRI | MRI knee | 5 | 4 | 4 | 4 | 80.0 |
| MRI | MRI liver | 5 | 5 | 5 | 5 | 100.0 |
| MRI | MRI uterus | 5 | 2 | 2 | 2 | 40.0 |
| MRI | MRI breast | 4 | 4 | 4 | 4 | 100.0 |
| MRI | MRI head, mass | 4 | 4 | 3 | 4 | 75.0 |
| MRI | MRI hip | 4 | 2 | 1 | 1 | 25.0 |
| MRI | MRI shoulder | 3 | 2 | 2 | 2 | 66.7 |
| MRI | MR angiography pelvis and leg | 2 | 2 | 2 | 2 | 100.0 |
| MRI | MRI bony pelvis | 2 | 2 | 2 | 2 | 100.0 |
| MRI | MRI hand | 2 | 2 | 2 | 2 | 100.0 |
| MRI | MRI lumbar spine | 2 | 2 | 2 | 2 | 100.0 |
| MRI | MR angiography neck | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI ankle | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI bowel | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI chest, mass | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI elbow | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI head, postoperative | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI neck, mass | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI prostate | 1 | 1 | 1 | 1 | 100.0 |
| MRI | MRI wrist | 1 | 1 | 1 | 1 | 100.0 |
| Ultrasound | US breast | 13 | 4 | 4 | 4 | 30.8 |
| Ultrasound | US abdomen | 10 | 10 | 10 | 10 | 100.0 |
| Ultrasound | US soft tissue mass | 2 | 2 | 1 | 1 | 50.0 |
| Ultrasound | US urogenital tract | 1 | 1 | 1 | 1 | 100.0 |
| Interventional radiology | Image-guided interventions | 10 | 8 | 5 | 5 | 50.0 |
Table S2. Template selection per labeled template.
| Modality | Labeled template | Selected template(s) | Reports |
| Radiography | Extremity radiograph, postoperative | Pelvis radiograph | 10 |
| Radiography | Extremity radiograph, postoperative | Pelvis radiograph, trauma | 6 |
| Radiography | Extremity radiograph, osteoarthritis | Pelvis radiograph | 5 |
| Radiography | Chest radiograph | US lung | 4 |
| Radiography | Extremity radiograph | Pelvis radiograph | 2 |
| Radiography | Extremity radiograph, osteoarthritis | MRI knee | 2 |
| Radiography | Extremity radiograph, postoperative | CT extremities | 2 |
| Radiography | Extremity radiograph, postoperative | MRI shoulder | 2 |
| Radiography | Abdominal radiograph | CT abdomen, acute | 1 |
| Radiography | Barium swallow | Abdominal radiograph | 1 |
| Radiography | Chest radiograph | CT chest | 1 |
| Radiography | Extremity radiograph | Pelvis radiograph, trauma | 1 |
| Radiography | Extremity radiograph | MRI shoulder | 1 |
| Radiography | Extremity radiograph | CT extremities | 1 |
| Radiography | Extremity radiograph, postoperative | CT bony pelvis | 1 |
| Radiography | Extremity radiograph, trauma | Pelvis radiograph, trauma | 1 |
| Radiography | Extremity radiograph, trauma | Pelvis radiograph | 1 |
| Radiography | Extremity radiograph, trauma | CT extremities | 1 |
| Radiography | Facial bones radiograph | CT facial bones | 1 |
| Radiography | Lumbar spine radiograph | Pelvis radiograph, trauma | 1 |
| Radiography | Skull radiograph | CT temporal bone | 1 |
| Radiography | Spine radiograph | CT spine | 1 |
| Radiography | Thoracic spine radiograph | CT thoracic spine | 1 |
| CT | CT abdomen, mass | CT angiography abdomen | 2 |
| CT | CT angiography head and neck | CT angiography head and neck + CT angiography | 1 |
| CT | CT bony pelvis | CT abdomen, trauma | 1 |
| MRI | MRI hip | MRI bony pelvis | 1 |
| Ultrasound | US soft tissue mass | US abdomen | 1 |
| Interventional radiology | Image-guided interventions | CT abdomen and pelvis | 1 |
| Interventional radiology | Image-guided interventions | CT chest, mass | 1 |
| Interventional radiology | Image-guided interventions | CT chest | 1 |
Table S3. Template confusions among single-region reports
| Reports | n | Optimal, pipeline | Optimal, modality supplied | Gains | Losses | Difference, pp (95% CI) | P |
| All | 914 | 678 | 697 | 51 | 32 | +2.1 (0.1, 4.0) | .05 |
| Single-region | 766 | 634 | 654 | 41 | 21 | +2.6 (0.6, 4.6) | .02 |
| Multi-region | 148 | 44 | 43 | 10 | 11 | -0.7 (-6.7, 5.4) | > .99 |
Table S4. Ablation, labeled modality supplied to the pipeline
| Reasoning effort | n | Optimal, low effort | Optimal, at setting | Gains | Losses | Difference, pp (95% CI) | P |
| Medium | 111 | 45 | 47 | 8 | 6 | +1.8 (-4.8, 8.4) | .79 |
| High | 111 | 45 | 41 | 7 | 11 | -3.6 (-11.1, 3.9) | .48 |
Table S5. Ablation, reasoning effort
Structuring Quality
Among the reviewed reports (Figure 1B), the residents rated the selected template appropriate for 87.5% of radiography reports (544 of 622, 84.6 to 89.8) and 93.1% of CT reports (417 of 448, 90.3 to 95.1), including 41 of 44 unclear ratings that two board-certified radiologists adjudicated in consensus (Figure 5A).
Figure 5. Template ratings, hallucination flags and error types in the reader study. A, rating of the selected template for 622 radiography and 448 CT reports after adjudication of the unclear ratings, with report counts inside the segments. B, STS of the 513 and 407 corrected reports as box plots (median, interquartile range, 1.5 IQR whiskers, outliers as points) with the reports flagged for unsupported content marked as triangles. C, primary error type in the 50 lowest-STS reports per modality, with report counts inside the segments where they fit (hallucination 1 and unclassified 2 in radiography, unclassified 2 in CT).
Macro STS between pipeline output and corrected reference was 0.95 (0.94 to 0.95) for radiography and 0.97 (0.97 to 0.98) for CT. Macro BLEU was 84.0 (83.3 to 84.8) and 91.9 (91.2 to 92.6) (Figure 4A, B, Table 3). Macro STS by examination type ranged from 0.93 to 0.98 (Table S1). Of 24,638 scored fields, the residents left 21,847 (88.7%) unchanged, 8,279 of 9,888 radiography fields (83.7%) and 13,568 of 14,750 CT fields (92.0%), and edited 1,609 and 1,182 (Figure 4C). Restricted to fields with content in output or reference, macro BLEU was 74.2 (72.9 to 75.4) for radiography and 83.9 (82.5 to 85.3) for CT. Output and corrected reference were identical in every field for 7.6% of radiography and 25.6% of CT reports (Table 3).
| Modality | Reports | Templates | STS (95% CI) | BLEU, all fields (95% CI) | BLEU, content fields (95% CI) | Identical reports, n (%) |
| Radiography | 513 | 25 | 0.95 (0.94, 0.95) | 84.0 (83.3, 84.8) | 74.2 (72.9, 75.4) | 39 (7.6) |
| CT | 407 | 45 | 0.97 (0.97, 0.98) | 91.9 (91.2, 92.6) | 83.9 (82.5, 85.3) | 104 (25.6) |
Table 3. Structuring quality against the resident-corrected reference. Macro scores weight templates equally. CIs from a percentile bootstrap of reports within templates. Content fields, fields with content in output or reference (the placeholder for information absent from the report excluded on both sides). Identical, output and corrected reference equal in every field. Results by examination type in Table S1.
Figure 4. Structuring quality against the resident-corrected reference for 513 radiography and 407 CT reports. A, STS per report (points) and macro mean with 95% CI (open circle with line) by examination type, report counts in grey. B, macro BLEU over all fields (filled) and over fields with content in output or reference (open) with 95% CI. C, share of the 24,638 scored fields the radiologist left unchanged (correct) or edited, with field counts inside the bars. STS, semantic textual similarity. BLEU, bilingual evaluation understudy.
| Modality | Examination type | Reports | Templates | STS (95% CI) | BLEU, all fields (95% CI) | BLEU, content fields (95% CI) | Identical reports, n (%) |
| Radiography | All | 513 | 25 | 0.95 (0.94, 0.95) | 84.0 (83.3, 84.8) | 74.2 (72.9, 75.4) | 39 (7.6) |
| Radiography | Abdomen | 23 | 1 | 0.95 (0.93, 0.97) | 83.1 (78.0, 87.8) | 79.5 (73.4, 84.8) | 2 (8.7) |
| Radiography | Chest | 43 | 2 | 0.95 (0.94, 0.96) | 86.0 (83.2, 88.7) | 68.9 (64.0, 74.0) | 2 (4.7) |
| Radiography | Fluoroscopy | 114 | 5 | 0.96 (0.96, 0.97) | 88.9 (87.5, 90.3) | 79.3 (76.3, 82.0) | 18 (15.8) |
| Radiography | Head | 91 | 4 | 0.97 (0.96, 0.97) | 87.6 (86.0, 89.1) | 75.2 (72.2, 78.2) | 10 (11.0) |
| Radiography | Mammography | 15 | 1 | 0.94 (0.93, 0.96) | 83.7 (79.3, 88.0) | 79.4 (74.1, 84.5) | 0 (0.0) |
| Radiography | Skeleton | 227 | 12 | 0.93 (0.93, 0.94) | 80.6 (79.4, 81.8) | 71.7 (69.8, 73.6) | 7 (3.1) |
| CT | All | 407 | 45 | 0.97 (0.97, 0.98) | 91.9 (91.2, 92.6) | 83.9 (82.5, 85.3) | 104 (25.6) |
| CT | Abdomen and pelvis | 46 | 5 | 0.97 (0.96, 0.98) | 93.3 (91.4, 95.0) | 81.8 (76.5, 86.6) | 9 (19.6) |
| CT | Angiography | 57 | 6 | 0.97 (0.96, 0.98) | 91.8 (89.8, 93.8) | 78.9 (74.6, 83.1) | 11 (19.3) |
| CT | CT-guided interventions | 39 | 4 | 0.98 (0.98, 0.99) | 96.1 (94.5, 97.6) | 94.1 (91.7, 96.3) | 18 (46.2) |
| CT | Chest | 49 | 6 | 0.97 (0.97, 0.98) | 92.0 (90.5, 93.5) | 83.5 (79.9, 87.0) | 12 (24.5) |
| CT | Head | 78 | 8 | 0.97 (0.96, 0.98) | 88.8 (86.6, 90.9) | 82.7 (79.3, 86.2) | 21 (26.9) |
| CT | Heart | 27 | 3 | 0.98 (0.97, 0.98) | 93.0 (91.4, 94.7) | 81.8 (77.0, 86.6) | 3 (11.1) |
| CT | Musculoskeletal | 24 | 3 | 0.96 (0.95, 0.98) | 91.4 (87.4, 95.0) | 86.0 (80.3, 91.5) | 11 (45.8) |
| CT | Neck | 37 | 4 | 0.97 (0.96, 0.98) | 91.1 (88.3, 93.7) | 86.2 (81.6, 90.6) | 8 (21.6) |
| CT | Special protocols | 19 | 2 | 0.97 (0.96, 0.98) | 89.8 (86.7, 92.6) | 80.6 (73.9, 87.0) | 2 (10.5) |
| CT | Spine | 31 | 4 | 0.98 (0.97, 0.99) | 94.0 (92.0, 95.8) | 86.4 (81.6, 90.7) | 9 (29.0) |
Table S1. Structuring quality by examination type. Macro STS and BLEU against the corrected reference for the 513 radiography and 407 CT reports of the structuring test set, by examination type. Macro scores weight templates equally, CIs from a percentile bootstrap of reports within templates (10,000 resamples). Content fields, fields with content in output or reference. Identical, output and corrected reference equal in every field. STS, semantic textual similarity. BLEU, bilingual evaluation understudy.
Hallucinations and Error Types
Residents flagged content not supported by the source report in 5 of 513 radiography reports (1.0%, 0.4 to 2.3) and 6 of 407 CT reports (1.5%, 0.7 to 3.2). All 11 flagged reports lay below the 30th STS percentile of their modality (Figure 5B).
In the 50 lowest-STS reports per modality, the primary error was incomplete transcription in 31 radiography and 32 CT reports, wrong or misplaced transcription in 16 and 13, and hallucination in 1 and 3, with 2 reports per modality unclassified (Figure 5C).
Archive-Scale Processing
The TUM archive held 2,284,452 report rows. After exclusion of 47,807 rows without a valid identifier and 49,663 foreign-image headers, 2,186,982 reports were eligible. The pipeline produced structured output for 2,111,530 of them (96.5%) as 2,401,544 structured reports (Table 4, Figure 6A). The remaining 75,452 reports had no output (Table 4). All structured reports were valid JSON, followed the field structure of their template and were linked to the source report by identical text.
Figure 6. Structuring of the complete TUM report archive. A, flow from source rows to structured reports. B, structured reports per template, area proportional to count, color by modality, templates labeled where the tile holds the name, with counts in thousands where space allows (all templates in Table S6). C, number of templates per source report by modality. IR, interventional radiology.
| Modality | Reports with structured output | Structured reports | Templates in use | Largest template (share of structured reports) |
| Radiography | 1,330,875 | 1,354,491 | 25 | chest radiograph (36.5%) |
| CT | 518,815 | 780,857 | 45 | CT head (13.6%) |
| MRI | 165,659 | 169,097 | 38 | MRI breast (17.9%) |
| Ultrasound | 90,407 | 91,325 | 27 | breast (47.2%) |
| Interventional radiology | 5,774 | 5,774 | 8 | image-guided interventions (82.4%) |
| Total | 2,111,530 | 2,401,544 | 142 | — |
Table 4. Structured archive by modality
Of the 142 distinct templates in use, the chest radiograph template accounted for 493,844 structured reports, the trauma and postoperative extremity templates for 227,864 and 183,504, and the CT head template for 106,061 (Figure 6B, Table S6). Radiography, MRI and ultrasound reports received one template in 98 to 99% of cases. CT reports received two templates in 25% and three or more in 11% of cases (combination types, Figure 6C, Figure S1).
| Modality | Template | Structured reports | Share within modality, % |
| Radiography | Chest radiograph | 493,844 | 36.5 |
| Radiography | Extremity radiograph, trauma | 227,864 | 16.8 |
| Radiography | Extremity radiograph, postoperative | 183,504 | 13.5 |
| Radiography | Pelvis radiograph | 83,596 | 6.2 |
| Radiography | Extremity radiograph, osteoarthritis | 56,869 | 4.2 |
| Radiography | Pelvis radiograph, trauma | 53,686 | 4.0 |
| Radiography | Mammography | 50,403 | 3.7 |
| Radiography | Extremity radiograph | 46,023 | 3.4 |
| Radiography | Lumbar spine radiograph | 31,210 | 2.3 |
| Radiography | Abdominal radiograph | 22,813 | 1.7 |
| Radiography | Barium swallow | 21,750 | 1.6 |
| Radiography | Cervical spine radiograph | 18,475 | 1.4 |
| Radiography | Hemithorax radiograph | 12,793 | 0.9 |
| Radiography | Thoracic spine radiograph | 9,859 | 0.7 |
| Radiography | Spine radiograph | 7,062 | 0.5 |
| Radiography | Facial bones radiograph | 6,458 | 0.5 |
| Radiography | Extremity radiograph, rheumatology | 5,686 | 0.4 |
| Radiography | Skull radiograph | 5,221 | 0.4 |
| Radiography | Paranasal sinuses radiograph | 4,873 | 0.4 |
| Radiography | Panoramic radiograph | 4,427 | 0.3 |
| Radiography | Contrast enema | 2,859 | 0.2 |
| Radiography | Fluoroscopy | 2,852 | 0.2 |
| Radiography | Pelvis radiograph, rheumatology | 915 | 0.1 |
| Radiography | Arthrography | 766 | 0.1 |
| Radiography | Urography | 683 | 0.1 |
| CT | CT head | 106,061 | 13.6 |
| CT | CT chest, mass | 77,731 | 10.0 |
| CT | CT abdomen, mass | 74,854 | 9.6 |
| CT | CT abdomen and pelvis | 65,059 | 8.3 |
| CT | CT chest | 61,634 | 7.9 |
| CT | CT extremities | 57,437 | 7.4 |
| CT | CT facial bones | 37,998 | 4.9 |
| CT | CT angiography head and neck | 28,238 | 3.6 |
| CT | CT chest, pulmonary embolism | 27,541 | 3.5 |
| CT | CT abdomen, acute | 24,494 | 3.1 |
| CT | CT neck | 21,665 | 2.8 |
| CT | CT angiography abdomen | 21,653 | 2.8 |
| CT | CT chest, lung parenchyma | 21,298 | 2.7 |
| CT | CT neck, mass | 19,345 | 2.5 |
| CT | CT angiography whole aorta | 14,400 | 1.8 |
| CT | CT abdomen, trauma | 11,292 | 1.4 |
| CT | CT lumbar spine | 10,518 | 1.3 |
| CT | CT neck, trauma | 10,435 | 1.3 |
| CT | CT abdomen, urolithiasis | 9,670 | 1.2 |
| CT | CT chest, trauma | 9,068 | 1.2 |
| CT | CT cervical spine | 7,675 | 1.0 |
| CT | CT-guided biopsies, punctures and drainages | 6,870 | 0.9 |
| CT | CT head, postoperative | 6,251 | 0.8 |
| CT | CT bony pelvis | 5,441 | 0.7 |
| CT | CT angiography leg | 5,120 | 0.7 |
| CT | CT paranasal sinuses | 4,791 | 0.6 |
| CT | CT neck, inflammation | 4,646 | 0.6 |
| CT | CT spine | 4,597 | 0.6 |
| CT | CT temporal bone | 3,878 | 0.5 |
| Modality | Template | Structured reports | Share within modality, |
| CT | CT musculoskeletal | 3,822 | 0.5 |
| CT | CT angiography chest | 3,121 | 0.4 |
| CT | CT thoracic spine | 3,074 | 0.4 |
| CT | CT coronary angiography | 2,730 | 0.3 |
| CT | CT perfusion head | 2,471 | 0.3 |
| CT | CT angiography | 1,752 | 0.2 |
| CT | CT myeloma | 1,509 | 0.2 |
| CT | CT heart | 1,299 | 0.2 |
| CT | CT jaw | 362 | <0.1 |
| CT | CT venography | 311 | <0.1 |
| CT | CT-guided tumor ablation | 233 | <0.1 |
| CT | CT angiography arm | 209 | <0.1 |
| CT | Interventional pain therapy | 113 | <0.1 |
| CT | CT polytrauma | 86 | <0.1 |
| CT | CT heart before pulmonary vein isolation | 75 | <0.1 |
| CT | CT-guided interventional oncology | 30 | <0.1 |
| MRI | MRI breast | 30,277 | 17.9 |
| MRI | MRI knee | 21,636 | 12.8 |
| MRI | MRI neck, mass | 11,680 | 6.9 |
| MRI | MRI shoulder | 11,485 | 6.8 |
| MRI | MRI liver | 10,202 | 6.0 |
| MRI | MRI head, mass | 8,889 | 5.3 |
| MRI | MRI hip | 7,956 | 4.7 |
| MRI | MRI bony pelvis | 6,710 | 4.0 |
| MRI | MRI lumbar spine | 5,926 | 3.5 |
| MRI | MRI ankle | 5,510 | 3.3 |
| MRI | MRI head | 4,572 | 2.7 |
| MRI | MRI pancreas | 3,744 | 2.2 |
| MRI | MRI spine | 3,093 | 1.8 |
| MRI | MR angiography neck | 3,084 | 1.8 |
| MRI | MRI foot | 2,913 | 1.7 |
| MRI | MRI heart | 2,912 | 1.7 |
| MRI | MRI abdomen | 2,423 | 1.4 |
| MRI | MRI head, acute | 2,229 | 1.3 |
| MRI | MRI head, postoperative | 2,194 | 1.3 |
| MRI | MRI elbow | 2,194 | 1.3 |
| MRI | MRI prostate | 2,131 | 1.3 |
| MRI | MRI hand | 2,053 | 1.2 |
| MRI | MRI wrist | 1,865 | 1.1 |
| MRI | MRI kidney | 1,714 | 1.0 |
| MRI | MRI rectum | 1,698 | 1.0 |
| MRI | MR cholangiopancreatography | 1,562 | 0.9 |
| MRI | MRI neck | 1,353 | 0.8 |
| MRI | MRI cervical spine | 1,221 | 0.7 |
| MRI | MRI uterus | 1,205 | 0.7 |
| MRI | MRI bowel | 1,103 | 0.7 |
| MRI | MRI chest, mass | 892 | 0.5 |
| MRI | MRI thoracic spine | 750 | 0.4 |
| MRI | MRI sacroiliac joints | 613 | 0.4 |
| MRI | MRI chest | 475 | 0.3 |
| MRI | MRI neck, trauma | 298 | 0.2 |
| MRI | MR angiography chest | 234 | 0.1 |
| MRI | MRI ovaries | 207 | 0.1 |
| MRI | MRI head, epilepsy | 94 | 0.1 |
| Modality | Template | Structured reports | Share within modality, % |
| Ultrasound | US breast | 43,089 | 47.2 |
| Ultrasound | US abdomen | 17,005 | 18.6 |
| Ultrasound | US lung | 13,465 | 14.7 |
| Ultrasound | US joints | 7,959 | 8.7 |
| Ultrasound | US musculoskeletal (without joints) | 3,540 | 3.9 |
| Ultrasound | US soft tissue mass | 2,802 | 3.1 |
| Ultrasound | US cervical lymph nodes | 859 | 0.9 |
| Ultrasound | US interventional planning and follow-up | 786 | 0.9 |
| Ultrasound | US transplant follow-up | 707 | 0.8 |
| Ultrasound | US urogenital tract | 298 | 0.3 |
| Ultrasound | US trauma (FAST) | 218 | 0.2 |
| Ultrasound | US thyroid | 166 | 0.2 |
| Ultrasound | US leg veins (thrombosis) | 145 | 0.2 |
| Ultrasound | US shunt and transplant vessels | 65 | 0.1 |
| Ultrasound | US leg arteries (peripheral artery disease, aneurysm, inflammation) | 55 | 0.1 |
| Ultrasound | US salivary glands | 28 | <0.1 |
| Ultrasound | US hernia | 26 | <0.1 |
| Ultrasound | US gynecological (transvaginal or transabdominal) | 23 | <0.1 |
| Ultrasound | US arm veins (thrombosis) | 23 | <0.1 |
| Ultrasound | US nerve compression | 13 | <0.1 |
| Ultrasound | Transthoracic echocardiography | 13 | <0.1 |
| Ultrasound | US hands rheumatology | 12 | <0.1 |
| Ultrasound | US contrast-enhanced (CEUS) | 11 | <0.1 |
| Ultrasound | US extracranial cerebral arteries | 8 | <0.1 |
| Ultrasound | US arm arteries (stenosis, aneurysm, inflammation) | 7 | <0.1 |
| Ultrasound | US abdominal aorta | 1 | <0.1 |
| Ultrasound | US pediatric abdomen | 1 | <0.1 |
| Interventional radiology | Image-guided interventions | 4,755 | 82.4 |
| Interventional radiology | Interventional oncology | 462 | 8.0 |
| Interventional radiology | Venous interventions | 286 | 5.0 |
| Interventional radiology | Tumor ablation | 163 | 2.8 |
| Interventional radiology | Interventional pain therapy | 88 | 1.5 |
| Interventional radiology | Arterial interventions | 14 | 0.2 |
| Interventional radiology | Vascular interventions | 5 | 0.1 |
| Interventional radiology | Tumor embolization | 1 | <0.1 |
Table S6. Templates in use in the structured archive
The pipeline was able to structure 1,258 reports per hour on one H200 GPU, about 1,680 GPU hours for the 2,111,530 structured reports. In a serial benchmark, one report took a median of 10.6 s (IQR 9.1 to 13.6) with a median of 2,737 input and 1,431 generated tokens.
2,284,452 source rows, 47,807 without valid identifier, 49,663 foreign-image headers, 2,186,982 eligible reports, 96.5% with structured output. Without output 75,452 (95 report stubs, 149 rejected at the modality step, 75,208 without template or with a technical failure). The pain-therapy template exists under CT and interventional radiology, so 143 template folders correspond to 142 templates. Throughput 1,258 structured reports per hour on one H200 GPU.
Discussion
An open-weight LLM converted the complete report archive of a university hospital, 2.1 million free-text reports from five modalities and sixteen years, into structured reports on local GPU infrastructure and without a human in the loop. The pipeline chose among 150 templates on its own, rejected reports that fit none, and filled the chosen templates with content that radiology at the second center left largely unchanged.
At 1,258 reports per hour on one H200 GPU, the archive corresponds to about 1,680 GPU hours. The same tokens sent to a commercial API at the mid-tier list price of 2 USD/12 USD per million input/output tokens would cost about 48,000 USD, and about 120,000 USD at the flagship tier. Local deployment has been advocated mainly for privacy [22], and studies comparing open-weight with proprietary models on radiology text found similar accuracy [23, 24, 25]. At archive scale, cost and privacy both favor local deployment.
LLMs are sensitive to the number and arrangement of answer options, and classification accuracy falls as option lists grow [26]. Supplying the labeled modality raised optimal selection by 2 percentage points, so archive metadata would add little. Remaining errors occur at the template step and in multi-region reports. Each template is built around one primary disease, but a patient with several diseases in one examination has no single correct template, and the pipeline must return a set of templates rather than one. Such reports account for 16% of the selection test set but for 44% of the selection errors, and template selection for them is the main open problem of the design.
Common data elements were proposed to make report content exchangeable between systems by defining each element once and reusing it across templates [27], and the European Society of Radiology restated in 2023 that comparability across reports is the purpose of structured reporting [4]. Base and derived templates implement this principle in a form the LLM can fill. Every CT chest report, whether written for a mass, an embolism or a routine question, carries the same base sections, so an archive query addresses one field name. Schema-stratified report supervision has been shown to produce image representations with separated concepts and better visual grounding than free-text supervision [28].
In a clinician-annotated study of note generation, omissions (3.45% of sentences) exceeded hallucinations (1.47%) [29], and hallucination rates across medical summarization studies range from 1.5% to 62% depending on task and definition [30]. In this study, radiologists flagged unsupported content in 1.0% and 1.5% of corrected reports, and the primary error in the lowest-scoring reports was incomplete transcription in about two thirds of cases. A missing statement is visible as an empty or placeholder field, invented content is not, so omission is the more tractable failure. All flagged reports lay below the 30th STS percentile of their modality, so an embedding-based similarity between output and source can direct human review to the reports that need it.
This study has limitations. The reports were German, and open-weight models score higher in English than in other languages on medical tasks [31]. Woźnicki et al. reached a Matthews correlation coefficient of 0.75 for English against 0.66 for German chest radiograph reports with Llama-2 [13], so the results here are likely a lower bound for English archives. Structuring quality was assessed for radiography and CT only. CT had the lowest optimal selection rate, so the reader study covered the weakest modality, but MRI, ultrasound and interventional radiology remain untested at field level. The selection test set of 914 labeled reports was spread over 150 templates, and 60 templates had fewer than 10 test reports, so per-template accuracy is imprecise. One model was used at low reasoning effort. The pipeline is model agnostic, and smaller open-weight models released since, among them Gemma 4 and Qwen3.5, are reported to reach comparable benchmark accuracy with fewer parameters, so throughput and cost are likely to improve.
A department can turn its entire report archive into structured, queryable data with an open-weight LLM on its own hardware. The structured archive makes sixteen years of imaging findings available for cohort identification, quality control and the training of imaging models, and the template hierarchy allows other institutions to adapt the templates rather than the method.
Declarations
Funding
This research is funded by the European Union under HORIZON-HLTH-2022-TOOL-12-two-stage (COMFORT; grant agreement No. 101079894) and HORIZON-HLTH-2025-01 (TWIN-X; grant agreement No. 101287679; topic HORIZON-HLTH-2025-01-TOOL-03). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Health and Digital Executive Agency (HADEA). Neither the European Union nor the granting authority can be held responsible for them. The funder had no role in study design, data collection, analysis, or writing.
Conflicts of interest
JN reports research collaboration agreements with Briya Labs Ltd., Cercare Medical, and mediaire, and has received grant funding from the Berlin Institute of Health (BIH) and the European Union (COMFORT, project number 101079894). KKB reports speaker fees for Canon Medical Systems, consultant fees for Novartis, and grant funding from the European Union (COMFORT, project number 101079894; TWIN-X, project number 101287679). RC, AB, and AL report grant funding from the European Union (COMFORT, project number 101079894). LCA reports grant funding from the European Union (COMFORT, project number 101079894; TWIN-X, project number 101287679). CIB reports grant funding from the European Union (TWIN-X, project number 101287679).
Data and code availability
The report texts cannot be shared because they contain protected health information. The complete pipeline, all structuring templates with their German-language definitions and the template index are available at https://github.com/fputtkammer/RadFields.
Use of artificial intelligence
A generative artificial intelligence assistant (Claude, Anthropic) was used under author supervision for drafting and editing text, for the analysis and figure code and for the assembly of the supplement. Codex (OpenAI) was used to prepare the LaTeX preprint. The authors reviewed and verified all content and take full responsibility for it.
Correspondence
Keno K. Bressem, MD; Institute for Artificial Intelligence in Medicine, University Hospital Essen, Girardetstraße 2, 45131 Essen, Germany; [email protected]
Abbreviations
LLM = large language model, STS = semantic textual similarity, BLEU = bilingual evaluation understudy, CI = confidence interval, IQR = interquartile range, GPU = graphics processing unit, API = application programming interface
Supplementary material
Supplemental Methods S1. Template development and format
To determine which examination types and diagnoses the templates must cover, 10,000 reports were drawn at random from the Charité archive and screened with gpt-oss-120B in three steps per report. First, the LLM assigned the imaging modality from a preset list. Second, it assigned the examined body region or organ system from a list of examples that grew during screening, as the LLM could add entries not yet on the list. Third, it extracted the ICD-10 code of the main diagnosis, or generated one if the report did not state a code. A board-certified radiologist merged redundant body region categories, and the frequency of three-digit ICD-10 categories was tabulated per modality and body region. Two board-certified radiologists reviewed these tables and defined a base template for each common examination type and derived templates for diagnosis categories exceeding 5% of reports within an examination type.
Each template is a YAML file in which every key is a section of the structured report and the value defines its type. A string defines a free-text section and describes the expected content to the LLM, a mapping defines subsections, a list of strings defines several free-text fields, and a list of mappings defines a repeatable section, for example one entry per lesion. Section titles are valid Python identifiers, so a Pydantic model is generated from each template at run time and serves as the response format for constrained decoding. Templates are written in German. Fields without information in the source report are filled with the placeholder “not mentioned”, which separates missing information from omitted content.
Supplemental Methods S2. Template index, inheritance, and combination types
The template index is a YAML file that lists, per modality and examination type, every template with a unique name, a German description shown to the LLM during template selection, the path of its template file, and its position in the hierarchy. A base template carries the field children with the names of its derived templates, a derived template carries the field parent with the name of its base template, and an independent template carries neither. The description is the only information the LLM sees at the template step, so descriptions state the clinical question a template answers, for example pulmonary embolism or tumor staging for CT chest.
At run time the pipeline composes the final template by loading the base template and updating it with the derived template. Sections present only in the base template or only in the derived template are kept, sections present in both take the definition of the derived template. A change to a base template therefore reaches all its derived templates, and structured reports of one examination type share the sections of the base template regardless of the clinical question. The hierarchy has two levels.
Combination types are defined in a separate file as sets of examination types that occur together in one CT report, for example CT chest with CT abdomen and pelvis for tumor staging. The 31 combination types are defined for CT only. For a report of a combination type, the LLM selects one template per constituent examination type from the templates of these examination types, and the report is structured once per selected template. Templates and combination types can be added, changed, or removed by editing the index and the template files without a change to the pipeline code.
Supplemental Methods S3. Template selection pathways and constrained decoding
Every classification step is a constrained decoding call. At run time the pipeline builds a response format that lists the allowed options of the step together with reserved responses, “no findings” for report stubs, “none of the listed options” for examinations without a template, and, at the examination type step, “several examinations described”. The LLM can only return an item of this list. A response that does not parse against the format is regenerated up to three times.
Figure S2 shows the pathways. A basic report, which describes one examination, passes through single-choice classification of modality, examination type, and template. At the template step, the LLM sees the names and descriptions of all templates of the selected examination type. A multi-exam report, in which several examinations of one modality are described in separate paragraphs, for example radiographs of both hands and both feet, triggers the reserved response “several examinations described” at the examination type step. The pipeline then continues with multi-label classification, first of examination types, then of one template per selected examination type. A combined CT report, in which several examination types are described in one continuous text, typically a staging examination, is assigned a combination type at the examination type step and continues with multi-label template selection constrained to one template per constituent examination type (Supplemental Methods S2). The two rejection responses end the pipeline at any step.
In the structuring stage, the response format is the Pydantic model generated from the composed template (Supplemental Methods S1). The LLM receives the report text and the model and fills one template per call. Reports with several templates are structured in successive calls with the same report text. Calls are independent, so the pipeline carries no state between reports.
Supplemental tables
Single-region reports of the selection test set grouped by the labeled template (73 templates, 766 reports). Structured, at least one template assigned. Optimal, selected template set identical to the label. Appropriate, every selected template shares its base template with the label (includes optimal).
Single-region reports that received a template outside the appropriate family (57 reports). Several selected templates are joined with a plus sign.
Optimal template selection with the labeled modality supplied to the pipeline compared with the unassisted pipeline on the same 914 reports. Gains and losses are discordant pairs, P from a two-sided exact McNemar test. pp, percentage points. The ablation is available as aggregate counts only, in which the 2 reports with the label spelling variant (Methods) are counted as errors in both arms, so the unassisted count is 678 instead of the 680 of Table 2.
Optimal template selection at medium and high reasoning effort compared with the low effort of the pipeline on the 111 selection test reports that the pipeline routed to multi-label classification at low effort (113 reports, 2 of which combined two modalities and were not scored). Gains and losses are discordant pairs, P from a two-sided exact McNemar test. pp, percentage points.
All 142 templates that received at least one structured report in the TUM archive, with the number of structured reports and the share within the modality. The interventional pain therapy template is listed under CT and interventional radiology.
Supplemental figures
Supplement 1. CLAIM 2024 checklist
Checklist for Artificial Intelligence in Medical Imaging (CLAIM), 2024 update, 44 items. Locations refer to section headings in this preprint. Items marked No or NA carry an explanation. Thirty-five items are reported, one is not reported (item 32, demographic characteristics unavailable at report level), and eight are not applicable.
| Item | Topic | Reported | Location in manuscript | Notes |
| 1 | Identification as AI study | Yes | Title, Abstract | Title and abstract name the open-weight large language model pipeline. |
| 2 | Structured summary | Yes | Abstract | Retrospective design, data source (two centers), 914 and 920 test reports, five modalities, archive of 2,186,982 reports, metrics with 95% CIs. |
| 3 | Scientific and clinical background | Yes | Introduction, paragraphs 1 to 3 | — |
| 4 | Study objectives and hypotheses | Yes | Introduction, last paragraph | Objective stated, no hypothesis (retrospective study), not registered. |
| 5 | Prospective or retrospective | Yes | Methods, Study Design | Retrospective. |
| 6 | Study goal and AI task | Yes | Introduction, last paragraph; Methods, Pipeline | Hierarchical classification of the template and zero-shot structuring of report text, intended as autonomous post hoc structuring of archived reports without human oversight. |
| 7 | Data source | Yes | Methods, Study Design and Test Datasets | Charité archive for template development and prompt engineering, TUM archive for the two test sets and the complete archive. The reports had not been used in prior studies. |
| 8 | Eligibility criteria | Yes | Methods, Test Datasets and Archive Processing; Figure 1; Table 4 note | Counts per exclusion criterion in Figure 1 (test sets) and Table 4 note (archive). |
| 9 | Data partitioning | Yes | Methods, Study Design and Test Datasets | No model training. Development (templates, prompts) at Charité, all testing at TUM, partition at report level. |
| 10 | Data preprocessing | Yes | Methods, Pipeline and Archive Processing | Report text is used as written, entries without identifier or with a foreign-image header are excluded. |
| 11 | De-identification | Yes | Methods, Study Design and Model; Data sharing statement | Reports were processed on hospital hardware inside the institution, no text left the institution, report texts are not shared. |
| 12 | Missing data | Yes | Methods, Test Datasets; Figure 1; Table 4 note | Entries without a report identifier (21 in the sample, 47,807 in the archive) were removed. |
| 13 | Image acquisition | NA | — | Text-only study, no images were used. |
| 14 | Reference standard definition | Yes | Methods, Test Datasets and Evaluation Metrics | Expert labels (modality, examination types, optimal templates, non-structurable) for selection, resident-corrected structured output for structuring. |
| 15 | Rationale for reference standard | Yes | Methods, Test Datasets and Evaluation Metrics | Field-by-field correction of the pipeline output against the source report yields a reference in the template structure so that the template text does not contribute to the scores. |
| 16 | Annotation tools | Yes | Methods, Test Datasets | Labels and corrections were entered in software developed by the authors for this study. |
| 17 | Human annotators | Yes | Methods, Test Datasets | One board-certified radiologist labeled, a second reviewed all labels, five residents (2 to 3 years of experience) rated and corrected, two board-certified radiologists adjudicated unclear ratings in consensus. Inter-rater variability was not assessed. |
| 18 | Model architecture | Yes | Methods, Model and Pipeline | gpt-oss-120B, 4-bit quantized mixture-of-experts model, 117 billion total and 5.1 billion active parameters, used with constrained decoding against 150 hierarchically organized templates. |
| 19 | Pre-trained model details | Yes | Methods, Model | Open-weight pretrained model used zero-shot without fine-tuning. |
| 20 | Inputs and outputs | Yes | Methods, Pipeline; Supplemental Methods S1 and S3 | Input report text and response format, output one option per selection step and one JSON document per selected template. |
| 21 | Feature extraction | NA | — | No engineered features. |
| 22 | Feature selection | NA | — | No engineered features. |
| 23 | Class imbalance handling | NA | — | No model training. |
| 24 | Uncertainty quantification | NA | — | No uncertainty estimates. Semantic textual similarity between output and source is discussed as a post hoc flag for review (Discussion). |
| 25 | Training approach | NA | — | No model training, zero-shot use of a pretrained model. |
| Item | Topic | Reported | Location in manuscript | Notes |
| 26 | Hyperparameter tuning | Yes | Methods, Study Design and Model; Table S5 | Prompts were developed at Charité, reasoning effort set to low, context window 15,000 tokens, medium and high reasoning effort tested as an ablation. |
| 27 | Software and libraries | Yes | Methods, Pipeline, Model and Evaluation | Python, LangChain 1.2.18, vLLM, Ollama, Llama-Embed-Nemotron-8B, SciPy. |
| 28 | Evaluation metrics | Yes | Methods, Evaluation Metrics and Statistical Analysis | Sensitivity, specificity, optimal and appropriate selection, STS, BLEU, field-level correctness, hallucination rate. |
| 29 | Statistical analysis | Yes | Methods, Evaluation Metrics and Statistical Analysis | Wilson 95% CIs, percentile bootstrap (10,000 resamples), exact McNemar tests, P < .05, Python with SciPy. |
| 30 | Reader study design | Yes | Methods, Test Datasets | Readers rated and corrected the pipeline output, no comparison of AI against readers. |
| 31 | Study flow diagram | Yes | Figure 1 (test sets), Figure 6A (archive) | — |
| 32 | Demographic characteristics | No | Methods, Study Design; Table 1 | Patient demographics were not available at report level, as stated in Methods. Modality, examination types, region count and report length per test set are given in Table 1. |
| 33 | Performance summary | Yes | Results; Table 2 to Table 4 | No training or validation partitions, all results are test results. |
| 34 | Failures and errors | Yes | Results, Archive-Scale Processing; Table 4 note; Figure 6A | 75,452 archive reports without output by cause, regeneration of unparseable responses (Supplemental Methods S3). |
| 35 | Test set performance | Yes | Results; Table 2 and Table 3; Figure 3 to Figure 5 | All proportions with 95% CIs. |
| 36 | Reader comparison | NA | — | No comparison of AI against human readers. |
| 37 | Study limitations | Yes | Discussion, limitations paragraph | — |
| 38 | Clinical applicability | Yes | Discussion | Cost and feasibility of archive-scale local processing, use of the structured archive, template adaptation by other institutions. |
| 39 | Safety and bias considerations | Yes | Discussion | Hallucination and omission rates, flagging of low-similarity outputs for review, language dependence. Demographic subgroups were not analyzed. |
| 40 | Registration | NA | — | Retrospective study. |
| 41 | Conflicts of interest | Yes | Declarations, Conflicts of interest | Research collaborations, grant support, speaker fees, and consultant fees are disclosed. |
| 42 | AI use disclosure | Yes | Declarations, Use of artificial intelligence | — |
| 43 | Code and data availability | Yes | Declarations, Data sharing statement | Pipeline, templates, index, prompts and evaluation scripts on GitHub, report texts not shareable. |
| 44 | Funding and support | Yes | Declarations, Funding | European Union: COMFORT (101079894) and TWIN-X (101287679). The funder had no role in study design, data collection, analysis, or writing. |
Table S7. CLAIM 2024 checklist
References
- [1]Pinto Dos Santos D, Hempel JM, Mildenberger P, Klöckner R, Persigehl T. Structured reporting in Clinical Routine. Rofo. 2019 Jan;191(1):33–9.DOI
- [2]Kotter E, Pinto Dos Santos D. Structured reporting in radiology : German and European radiology societies’ point of view. Radiologe. 2021 Nov;61(11):979–85.DOI
- [3]European Society of Radiology (ESR). ESR paper on structured reporting in radiology. Insights Imaging. 2018 Feb;9(1):1–7.DOI
- [4]European Society of Radiology (ESR). ESR paper on structured reporting in radiology-update 2023. Insights Imaging. 2023 Nov 23;14(1):199.DOI
- [5]Lewis PB, Charalel RA, Salei A, Cantos AJ, Dubel GJ, Kassin MT, et al. Challenges, barriers, and successes of standardized report templates: Results of a Society of Interventional Radiology survey. J Vasc Interv Radiol. 2023 Dec;34(12):2218-2223.e10.DOI
- [6]Reichenpfader D, Müller H, Denecke K. A scoping review of large language model based approaches for information extraction from radiology reports. NPJ Digit Med. 2024 Aug 24;7(1):222.DOI
- [7]Le Guellec B, Lefèvre A, Geay C, Shorten L, Bruge C, Hacein-Bey L, et al. Performance of an Open-Source large Language Model in extracting information from free-text radiology reports. Radiol Artif Intell. 2024 July;6(4):e230364.DOI
- [8]Kanani MM, Monawer A, Brown L, King WE 3rd, Miller ZD, Venugopal N, et al. High-performance prompting for LLM extraction of compression fracture findings from radiology reports. J Imaging Inform Med. 2026 Feb;39(1):973–88.DOI
- [9]Mittman BG, D’Aleo G, Rothberg MB, Cascacchia NJ, Albahra S. Automated clinical information extraction from diagnostic and nondiagnostic radiology reports using modern language models. J Imaging Inform Med [Internet]. 2026 Apr 2; Available from: http://dx.doi.org/10.1007/s10278-026-01932-0
- [10]Sheng W, Wang Y, Xiao L, Guo B, Zhang Y, Qiao L, et al. BI-RADS-compliant structured mammography reporting using locally deployed large language models under privacy constraints. Eur Radiol. 2026 May;36(5):3676–86.DOI
- [11]Bhayana R, Nanda B, Dehkharg hanian T, Deng Y, Bhambra N, Elias G, et al. Large language models for automated synoptic reports and resectability categorization in pancreatic cancer. Radiology. 2024 June;311(3):e233117.DOI
- [12]Prucker P, Bressem KK, Kim SH, Weller D, Kader A, Dorfner FJ, et al. Privacy-preserving generation of structured lymphoma progression reports from cross-sectional imaging: A comparative analysis of Llama 3.3 and Llama 4. J Imaging Inform Med. 2026 Apr;39(2):1868–78.DOI
- [13]Woźnicki P, Laqua C, Fiku I, Hekalo A, Truhn D, Engelhardt S, et al. Automatic structuring of radiology reports with on-premise open-source large language models. Eur Radiol. 2025 Apr;35(4):2018–29.DOI
- [14]Kreutzer H, Casilitz AS, Dratsch T, Pinto Dos Santos D, Kuhl C, Truhn D, et al. Large language model-based uncertainty-adjusted label extraction for artificial intelligence model development in upper extremity radiography. Eur Radiol. 2026 Apr;36(4):2646–57.arxiv.org/abs/2510.05664
- [15]Hartsock I, Araujo C, Folio L, Rasool G. Improving radiology report conciseness and structure via local large language models. J Imaging Inform Med. 2026 Feb;39(1):1005–16.DOI
- [16]Adams LC, Truhn D, Busch F, Kader A, Niehues SM, Makowski MR, et al. Leveraging GPT-4 for post hoc transformation of free-text radiology reports into structured reporting: A multilingual feasibility study. Radiology. 2023 May;307(4):e230725.DOI
- [17]Tejani AS, Klontzas ME, Gatti AA, Mongan JT, Moy L, Park SH, et al. Checklist for artificial intelligence in medical imaging (CLAIM): 2024 update. Radiol Artif Intell. 2024 July;6(4):e240300.DOI
- [18]OpenAI. gpt-oss-120b & gpt-oss-20b Model Card. arXiv [cs.CL]. 2025. https://doi.org/10.48550/arXiv.2508.10925.
- [19]Kwon W, Li Z, Zhuang S, Sheng Y, Zheng L, Yu CH, et al. Efficient memory management for large language model serving with PagedAttention. In: Proceedings of the 29th Symposium on Operating Systems Principles. New York, NY, USA: ACM; 2023. p. 611–26.arxiv.org/abs/2309.06180
- [20]Babakhin Y, Omsulski R, Ak R, Moreira G, Xu M, Schifferer B, et al. Llama-embed-nemotron-8B: A universal text embedding model for multilingual and cross-lingual tasks [Internet]. arXiv [cs.CL]. 2025. Available from: http://dx.doi.org/10.48550/arXiv.2511.07025
- [21]Papineni K, Roukos S, Ward T, Zhu WJ. BLEU. In: Isabelle P, Charniak E, Lin D, editors. Proceedings of the 40th Annual Meeting on Association for Computational Linguistics - ACL ’02. Morristown, NJ, USA: Association for Computational Linguistics; 2001. p. 311–8.DOI
- [22]Savage CH, Kanhere A, Parekh V, Langlotz CP, Joshi A, Huang H, et al. Open-source large language models in radiology: A review and tutorial for practical research and clinical deployment. Radiology. 2025 Jan;314(1):e241073.
- [23]Li Z, Wang M, Liu A, Zeng Y, Yan B, Cao Z, et al. Enhancing bone metastasis CT report analysis: a comparison of local and proprietary large language models for privacy and resource efficiency. BMC Health Serv Res [Internet]. 2026 Mar 19;26(1). Available from: http://dx.doi.org/10.1186/s12913-026-14350-3
- [24]Salam B, Stüwe C, Nowak S, Sprinkart AM, Theis M, Kravchenko D, et al. Large language models for error detection in radiology reports: a comparative analysis between closed-source and privacy-compliant open-source models. Eur Radiol. 2025 Aug;35(8):4549–57.DOI
- [25]Proff AK, Salam B, Hayawi M, Kravchenko D, Mesropyan N, Aziz-Safaie T, et al. Simplifying radiology reports with large language models: privacy-compliant open- versus closed-weight models. Eur Radiol. 2026 July;36(7):6097–106.DOI
- [26]Pezeshkpour P, Hruschka E. Large Language Models sensitivity to the order of options in multiple-choice questions [Internet]. arXiv [cs.CL]. 2023. Available from: http://dx.doi.org/10.48550/arXiv.2308.11483
- [27]Rubin DL, Kahn CE Jr. Common data elements in radiology. Radiology. 2017 June;283(3):837–44.DOI
- [28]Drexel F, Fritzsche M, Stambollxhiu E, Kumpf M, Schmitzler L, Schumann L, et al. RadPRISM: Schema-stratified radiology-report supervision for concept-disentangled image representations and visual grounding [Internet]. arXiv [cs.CV]. 2026. Available from: http://dx.doi.org/10.48550/arXiv.2608.00147
- [29]Asgari E, Montaña-Brown N, Dubois M, Khalil S, Balloch J, Yeung JA, et al. A framework to assess clinical safety and hallucination rates of LLMs for medical text summarisation. NPJ Digit Med. 2025 May 13;8(1):274.DOI
- [30]Khoruzhaya AN, Varyukhina MD, Erizhokov RA, Blokhin IA, Reshetnikov RV, Kodenko MR, et al. MEDAI-LLM-SUMM: a reporting checklist for medical text summarization studies using large language models. Front Digit Health. 2026 Mar 2;8(1761601):1761601.DOI
- [31]Ibrahim-El-Nur JM, Kaczmarek W, Winiarska W, Kuś A, Łoś M. Language-specific differences in large language model diagnostic reasoning: A translation-controlled clinical vignette study. J Clin Med. 2026 May 25;15(11):4082.
AI tools statement
This work lists 2 AI tools.
Claude · AI tool
- Roles
- SoftwareWriting — original draftWriting — review & editing
- Verification
- self-declared at submission
Codex · AI tool
- Roles
- Writing — original draft
- Verification
- self-declared at submission
Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.








