Automated extraction of key entities from non-english thorax CT reports using machine learning by large context, many-shot Generative AI.
Zafer Akcali, Murat Kocak, Aydan Farzaliyeva, Fatih Guven, Mehmet Nezir Ramazanoglu, Efe Hasdemir, Burak Yagdiran, Arzu Oguz,
Department of Medical Informatics, Faculty of Medicine, Baskent University, Ankara, Türkiye. · Department of Medical Informatics, Faculty of Medicine, Baskent University, Ankara, Türkiye. muratkocak25@gmail.com.
Key points
From the paper's conclusion- 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.
Abstract
BACKGROUND: 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. METHODS: 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). RESULTS: 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. CONCLUSIONS: 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Diagnostic performance of large language models for discrepancy detection in non-English resident-authored abdominal CT and MRI reports: a Turkish-language evaluation.Abdominal radiology (New York) · 2026
- Large Language Model Performance in Structured Data Extraction From Neurosurgical Electronic Health Records: Comparative Benchmark Study.JMIR formative research · 2026
- Generative large language models in medicine: a scoping review of recent methodological advances.npj health systems · 2026
- Domain-specific versus general large language models: a review and empirical benchmark in real medical texts.Scientific reports · 2026
- Fine-Grained Japanese Clinical Named Entity Recognition: A Controlled Comparison of BERT and Open-Weight Large Language ModelsarXiv · 2026
- Natural Language Processing in Breast Imaging Reports: A Scoping Review with Implications for Low-Resource Clinical LanguagesApplied Sciences · 2026