Automated extraction of key entities from non-english thorax CT reports using machine learning by large context, many-shot Generative AI

Artificial Intelligence (AI)-powered Named Entity Recognition (NER), a subfield of Natural Language Processing (NLP), can automatically analyze and extract relevant information from unstructured medical texts. However, available models are English-focused, with limited options for other languages. This study aims to identify an effective NER strategy for non-English medical reports by comparing a traditional transformer-based model against Large Language Models (LLMs) using different prompting techniques. This study performed a comparative analysis of four models for extracting key entities from anonymized Turkish Thorax Computed Tomography (CT) reports. We evaluated a spaCy-transformer model, trained with 100 reports as a baseline. This was compared against three LLM-based approaches using Google’s Gemini models: a many-shot ( n = 518 examples) prompt with Gemini 1.5 Pro, and both many-shot and five-shot prompts with Gemini 2.5 Pro. The many-shot prompts utilized a 64,000-token context. Performance was evaluated on a test set of 100 reports, focusing on five entities: anatomy (ANAT), impression (IMP), observation presence (OBS-P), absence (OBS-A), and uncertainty (OBS-U). The spaCy-transformer model achieved the highest performance in exact-match evaluation with a macro-averaged F1-score of 0.75. For relaxed-match evaluation, both the Gemini 2.5 Pro many-shot model and the spaCy-transformer achieved top-tier performance with an overall accuracy of 0.97 and a Cohen’s Kappa of 0.96. Critically, the many-shot approach with Gemini 2.5 Pro (macro F1: 0.92) significantly outperformed its five-shot counterpart (macro F1: 0.89), demonstrating the benefit of providing more examples. This study reveals that while trained transformers excel at precise boundary detection (exact match), LLMs guided by a many-shot strategy demonstrate excellent performance for relaxed-match recognition, which often carries more clinical relevance. Our results provide strong evidence that a many-shot learning approach is superior to a few-shot strategy for this task. While validated on Turkish reports, this methodology presents a promising and adaptable framework for developing high-accuracy NER tools in other languages where dedicated NLP resources are scarce.

Authors

Institutions

Publication Details

Journal
BMC Medical Informatics and Decision Making
Published
2026-08-27
DOI
https://doi.org/10.1186/s12911-026-03784-8
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Automated extraction of key entities from non-english thorax CT reports using machine learning by large context, many-shot Generative AI

Efe Hasdemir, Arzu Oğuz, Burak Yağdıran, Zafer Akçalı et al.
BMC Medical Informatics and Decision Making
Topic Modeling
article

Automated extraction of key entities from non-english thorax CT reports using machine learning by large context, many-shot Generative AI

Efe Hasdemir, Arzu Oğuz, Burak Yağdıran, Zafer Akçalı, Aydan Farzaliyeva, Özden Altundağ, Mehmet Nezir Ramazanoğlu, Murat Koçak, Ahmet Muhteşem Ağıldere, Fatih Guven
article en

Abstract

Artificial Intelligence (AI)-powered Named Entity Recognition (NER), a subfield of Natural Language Processing (NLP), can automatically analyze and extract relevant information from unstructured medical texts. However, available models are English-focused, with limited options for other languages. This study aims to identify an effective NER strategy for non-English medical reports by comparing a traditional transformer-based model against Large Language Models (LLMs) using different prompting techniques. This study performed a comparative analysis of four models for extracting key entities from anonymized Turkish Thorax Computed Tomography (CT) reports. We evaluated a spaCy-transformer model, trained with 100 reports as a baseline. This was compared against three LLM-based approaches using Google’s Gemini models: a many-shot ( n = 518 examples) prompt with Gemini 1.5 Pro, and both many-shot and five-shot prompts with Gemini 2.5 Pro. The many-shot prompts utilized a 64,000-token context. Performance was evaluated on a test set of 100 reports, focusing on five entities: anatomy (ANAT), impression (IMP), observation presence (OBS-P), absence (OBS-A), and uncertainty (OBS-U). The spaCy-transformer model achieved the highest performance in exact-match evaluation with a macro-averaged F1-score of 0.75. For relaxed-match evaluation, both the Gemini 2.5 Pro many-shot model and the spaCy-transformer achieved top-tier performance with an overall accuracy of 0.97 and a Cohen’s Kappa of 0.96. Critically, the many-shot approach with Gemini 2.5 Pro (macro F1: 0.92) significantly outperformed its five-shot counterpart (macro F1: 0.89), demonstrating the benefit of providing more examples. This study reveals that while trained transformers excel at precise boundary detection (exact match), LLMs guided by a many-shot strategy demonstrate excellent performance for relaxed-match recognition, which often carries more clinical relevance. Our results provide strong evidence that a many-shot learning approach is superior to a few-shot strategy for this task. While validated on Turkish reports, this methodology presents a promising and adaptable framework for developing high-accuracy NER tools in other languages where dedicated NLP resources are scarce.

BMC Medical Informatics and Decision Making
Başkent University (TR)
Quality Education
Openalex Percentile: Top 8%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.