ArticleBMJ open gastroenterology2025
Large language models for extracting histopathologic diagnoses of colorectal cancer and dysplasia from electronic health records.
Article in BMJ open gastroenterology, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 10 papers, 1 of them a synthesis that pooled it.
What it found
Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.
The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.
The trial behind it
Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.
Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.
Who cites it
10 citing papers in PubMed, 1 synthesis or guideline pooled it.
- Large Language Models in Colorectal Cancer Care and Clinical Decision Support: Systematic Review.Journal of medical Internet research · 2026Pooled it
- Article
- Large Language Models for Heterogeneous Data Mining in Liver Disease: Framework Development and Retrospective Validation Study.Journal of medical Internet research · 2026Article
- Pathology-derived clinical micro-architectural diagnostics of tumour-microbiome interactions in colorectal cancer.Journal of translational medicine · 2026Article
- Operationalizing Large Language Models for Clinical Research Data Extraction: Methods, Quality Control, and Governance.Journal of medical systems · 2026Review
- Automated Phenotyping With Artificial Intelligence Predicts Future Advanced Neoplasia Risk in Colitis-associated Low-grade Dysplasia.Clinical gastroenterology and hepatology : the official clinical practice journal of the American Gastroenterological Association · 2026Article
- Development and Validation of a Large Language Model Case Identification Strategy for Eosinophilic Esophagitis.Gastro hep advances · 2026Article
- Insights into artificial intelligence-based digital pathology in hepatobiliary and pancreatic cancer.Frontiers in oncology · 2026Review
- Prompts to Table: Specification and Iterative Refinement for Clinical Information Extraction with Large Language Models.medRxiv : the preprint server for health sciences · 2025Article
- Article
Corrections and comments
- Update of
Authors and funding
12 authors.
Funding
Abstract
objectiveAccurate data resources are essential for impactful medical research, but available structured datasets are often incomplete or inaccurate. Recent advances in open-weight large language models (LLMs) enable more accurate data extraction from unstructured text in electronic health records (EHRs), however, thorough validation of such approaches is lacking. Our objective was to create a validated approach using LLMs for identifying histopathologic diagnoses in pathology reports from the nationwide Veterans Health Administration (VHA) database, including patients with genotype data within the Million Veteran Program (MVP) biobank.
methodsOur approach utilises search term filtering followed by simple 'yes/no' question prompts for the following phenotypes of interest: any colorectal dysplasia, high-grade dysplasia and/or colorectal adenocarcinoma (HGD/CRC) and invasive CRC. We first developed the LLM prompts using example reports from patients with inflammatory bowel disease (IBD). We then validated the approach in IBD and non-IBD by applying the fixed prompts to a separate corpus of 116 373 pathology reports generated in the VHA between 1999 and 2024. We compared model outputs to blinded manual chart review of 200-300 pathology reports for each patient cohort and diagnostic task, totalling 3816 reviewed reports, and calculated F1 scores as a balanced accuracy measure.
resultsIn patients with IBD in MVP, we achieved F1-scores of 96.9% (95% CI 94.0% to 99.6%) for identifying dysplasia, 93.7% (88.2%-98.4%) for identifying HGD/CRC and 98% (96.3%-99.4%) for identifying CRC. In patients without IBD in MVP, we achieved F1-scores of 99.2% (98.2%-100%) for identifying any colorectal dysplasia, 96.5% (93.0%-99.2%) for identifying HGD/CRC and 95% (92.8%-97.2%) for identifying CRC using LLM Gemma-2.
conclusionLLMs provided excellent accuracy in extracting the diagnoses of interest from EHRs. Our validated methods generalised to unstructured pathology notes, even withstanding challenges of resource-limited computing environments. This may, therefore, be a promising approach for other clinical phenotypes given the minimal human-led development required.
Indexed as
Identifiers
What OpenQuestion holds
Registered trials
Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.